/* ====================================
   BRANDS PAGE STYLES
   ==================================== */

:root {
    --primary-color: #FF8800;
    --primary-light: #FFB84D;
    --primary-dark: #E67E00;
    --dark-text: #0F172A;
    --light-text: #64748B;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --success-color: #22C55E;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
}

/* ====================================
   BRANDS SECTION MAIN CONTAINER
   ==================================== */

.brands-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 80px 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   PAGE HEADER
   ==================================== */

.page-header {
    text-align: center;
    margin-bottom: 70px;
    animation: fadeInDown 0.8s ease-out;
}

.header-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 136, 0, 0.2);
}

.page-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 18px;
    color: var(--light-text);
    font-weight: 500;
}

/* ====================================
   BRANDS CONTAINER & GRID
   ==================================== */

.brands-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

/* ====================================
   BRAND CARD
   ==================================== */

.brand-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
    perspective: 1000px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(255, 136, 0, 0.15);
    transform: translateY(-8px);
}

.brand-card-inner {
    display: contents;
}

.brand-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.05), rgba(255, 184, 77, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 20px;
    transition: var(--transition);
}

.brand-card:hover .brand-image {
    transform: scale(1.1);
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 136, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    font-size: 36px;
    color: var(--white);
}

.brand-card:hover .brand-overlay {
    opacity: 1;
}

.brand-overlay i {
    animation: slideInRight 0.5s ease-out;
}

/* ====================================
   BRAND CONTENT
   ==================================== */

.brand-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.4;
}

.brand-product-count {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.brand-product-count i {
    font-size: 12px;
}

/* ====================================
   BRANDS INFO SECTION
   ==================================== */

.brands-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    padding: 60px 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 60px;
}

.info-item {
    text-align: center;
    padding: 20px;
}

.info-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    transition: var(--transition);
}

.info-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-dark);
}

.info-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.info-item p {
    font-size: 13px;
    color: var(--light-text);
    margin: 0;
}

/* ====================================
   ANIMATIONS
   ==================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* TABLET - 1024px */
@media (max-width: 1024px) {
    .page-title {
        font-size: 40px;
    }

    .brands-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
        margin-bottom: 60px;
    }

    .brand-image-wrapper {
        height: 180px;
    }

    .brand-content {
        padding: 20px 15px;
    }

    .brands-info {
        padding: 50px 30px;
        gap: 20px;
    }
}

/* MEDIUM - 768px */
@media (max-width: 768px) {
    .brands-section {
        padding: 60px 0;
    }

    .page-header {
        margin-bottom: 50px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .brands-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
        margin-bottom: 50px;
    }

    .brand-image-wrapper {
        height: 160px;
    }

    .brand-name {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .brand-product-count {
        font-size: 12px;
    }

    .brand-content {
        padding: 15px 12px;
    }

    .brands-info {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 25px;
        gap: 15px;
    }

    .info-item {
        padding: 15px;
    }

    .info-item i {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .info-item h4 {
        font-size: 14px;
    }

    .info-item p {
        font-size: 12px;
    }
}

/* MOBILE - 480px */
@media (max-width: 480px) {
    .brands-section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .page-header {
        margin-bottom: 30px;
    }

    .header-badge {
        font-size: 11px;
        padding: 6px 16px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .brands-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
        margin-bottom: 40px;
    }

    .brand-image-wrapper {
        height: 140px;
    }

    .brand-name {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .brand-product-count {
        font-size: 11px;
    }

    .brand-content {
        padding: 12px 10px;
    }

    .brand-overlay i {
        font-size: 28px;
    }

    .brands-info {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 15px;
        gap: 12px;
        margin-top: 40px;
    }

    .info-item {
        padding: 12px;
    }

    .info-item i {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .info-item h4 {
        font-size: 12px;
    }

    .info-item p {
        font-size: 11px;
    }
}

/* EXTRA SMALL - 375px */
@media (max-width: 375px) {
    .brands-section {
        padding: 30px 0;
    }

    .container {
        padding: 0 12px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 20px;
    }

    .brands-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        margin-bottom: 30px;
    }

    .brand-image-wrapper {
        height: 120px;
    }

    .brand-image {
        padding: 15px;
    }

    .brand-name {
        font-size: 12px;
    }

    .brand-content {
        padding: 10px 8px;
    }

    .brands-info {
        grid-template-columns: 1fr;
        padding: 20px 12px;
        gap: 10px;
    }

    .info-item {
        padding: 10px;
    }

    .info-item i {
        font-size: 20px;
    }

    .info-item h4 {
        font-size: 11px;
    }

    .info-item p {
        font-size: 10px;
    }
}

/* ====================================
   ADDITIONAL UTILITIES
   ==================================== */

/* Loading state for images */
.brand-image.loading {
    opacity: 0.5;
}

.brand-image.loaded {
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Active/Focus state for accessibility */
.brand-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .brands-section {
        background: none;
        padding: 0;
    }

    .brand-card {
        page-break-inside: avoid;
    }

    .brand-overlay {
        display: none;
    }
}
