/* ==================== BRAND LANDING PAGE ==================== */

.brand-page {
    background: #fff;
}

/* Full-width banner images */
.brand-banner {
    width: 100%;
    display: block;
}
.brand-banner img {
    width: 100%;
    height: auto;
    display: block;
}
.brand-banner a {
    display: block;
}
.brand-banner a:hover img {
    opacity: 0.92;
    transition: opacity 0.3s;
}

/* Two-column CTA grid */
.brand-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.brand-cta-grid a {
    display: block;
    overflow: hidden;
}
.brand-cta-grid img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s, opacity 0.3s;
}
.brand-cta-grid a:hover img {
    transform: scale(1.02);
    opacity: 0.92;
}

/* Category carousel */
.brand-category-carousel {
    padding: 20px 0;
    background: #fff;
}
.brand-category-carousel .carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 20px;
}
.brand-category-carousel .carousel-track::-webkit-scrollbar {
    display: none;
}
.brand-category-carousel .carousel-item {
    flex-shrink: 0;
    width: calc(20% - 10px);
    min-width: 180px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.brand-category-carousel .carousel-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.brand-category-carousel .carousel-item a {
    display: block;
}
.brand-category-carousel .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Products section (brand page specific) */
.brand-products-section {
    padding: 30px 20px 40px;
    background: #fff;
}
.brand-products-section.bg-light {
    background: #f5f7f8;
}
.brand-products-section .container {
    max-width: 1320px;
    margin: 0 auto;
}
.brand-section-heading {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 24px;
    letter-spacing: 0.02em;
}

/* 2x2 image grid */
.brand-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.brand-grid-2x2 img {
    width: 100%;
    height: auto;
    display: block;
}

/* Brand story section (text + image) */
.brand-story-section {
    padding: 0;
    background: #fff;
}
.brand-story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
}
.brand-story-text {
    padding: 40px 60px;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}
.brand-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 3-column grid */
.brand-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.brand-grid-3 img {
    width: 100%;
    height: auto;
    display: block;
}

/* 4-column grid */
.brand-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.brand-grid-4 a {
    display: block;
    transition: opacity 0.3s;
}
.brand-grid-4 a:hover {
    opacity: 0.85;
}
.brand-grid-4 img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== PRODUCT CAROUSEL ==================== */
.brand-carousel-wrapper {
    position: relative;
    padding: 0 48px;
}
.brand-carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}
.brand-carousel-track::-webkit-scrollbar {
    display: none;
}
.brand-carousel-card {
    flex: 0 0 calc(20% - 13px);
    min-width: 0;
}
.brand-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: 1px solid #e0e0e0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    color: #333;
}
.brand-carousel-nav:hover {
    background: #3A9DAE;
    color: white;
    border-color: #3A9DAE;
}
.brand-carousel-prev { left: 0; }
.brand-carousel-next { right: 0; }

/* Product card styles for brand pages (same as category pages) */
.brand-page .product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}
.brand-page .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.brand-page .product-card .product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.brand-page .product-image-wrap {
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    min-height: 200px;
}
.brand-page .product-image-wrap .product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
}
.brand-page .product-info {
    padding: 14px;
}
.brand-page .product-name {
    font-size: 0.9rem;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
}
.brand-page .product-code {
    font-size: 0.75rem;
    color: #a0aab4;
    margin: 0 0 6px;
    font-weight: 500;
    font-style: italic;
}
.brand-page .product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.brand-page .product-price {
    font-size: 1.15rem;
    color: #f5a623;
    font-weight: 700;
}
.brand-page .price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}
.brand-page .product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}
.brand-page .badge-sale {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}
.brand-page .product-actions {
    margin-top: auto;
}
.brand-page .add-to-cart-btn {
    width: 100%;
    background: #3A9DAE;
    color: white;
    border: none;
    padding: 12px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 0 0 10px 10px;
}
.brand-page .add-to-cart-btn:hover {
    background: #2D8A9A;
}
.brand-page .add-to-cart-btn.added {
    background: #28a745;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .brand-carousel-card {
        flex: 0 0 calc(25% - 12px);
    }
}

@media (max-width: 992px) {
    .brand-story-text {
        padding: 30px 40px;
    }
    .brand-grid-3 {
        grid-template-columns: 1fr;
    }
    .brand-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-category-carousel .carousel-item {
        width: calc(33% - 8px);
        min-width: 160px;
    }
    .brand-carousel-card {
        flex: 0 0 calc(33.333% - 11px);
    }
}

@media (max-width: 768px) {
    .brand-cta-grid {
        grid-template-columns: 1fr;
    }
    .brand-story-row {
        grid-template-columns: 1fr;
    }
    .brand-story-text {
        padding: 24px 20px;
        font-size: 0.95rem;
    }
    .brand-story-image img {
        max-height: 300px;
        object-fit: cover;
    }
    .brand-grid-2x2 {
        grid-template-columns: 1fr;
    }
    .brand-category-carousel .carousel-item {
        width: calc(50% - 6px);
        min-width: 140px;
    }
    .brand-carousel-wrapper {
        padding: 0 36px;
    }
    .brand-carousel-card {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .brand-story-text {
        padding: 20px 16px;
        font-size: 0.9rem;
    }
    .brand-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .brand-carousel-card {
        flex: 0 0 calc(50% - 8px);
    }
}
