/* 
 * Brand Detail Page Styles
 * Extracted from templates/brands/brand_detail.html
 * Date: 2026-01-13
 * 
 * This page displays individual brand information with:
 * - Sticky hero image
 * - Brand content and social links
 * - Featured products grid
 * - Product slideout/modal overlay
 */

/* ========================================
   PAGE LAYOUT
   ======================================== */

.brand-page {
    background: #ffffff;
    min-height: 100vh;
}

.brand-page__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

/* ========================================
   BREADCRUMB NAVIGATION
   ======================================== */

.brand-breadcrumb {
    font-family: 'Comfortaa', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 24px;
}

.brand-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
}

.brand-breadcrumb a:hover {
    text-decoration: underline;
}

.brand-breadcrumb__current {
    color: #2563eb;
    font-weight: 600;
}

/* ========================================
   MAIN 2-COLUMN LAYOUT
   ======================================== */

.brand-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 60px;
    align-items: start;
}

/* ========================================
   LEFT COLUMN - HERO IMAGE (STICKY)
   ======================================== */

.brand-hero-image {
    position: sticky;
    top: 40px;
}

.brand-hero-image__frame {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.brand-hero-image__frame img {
    width: 100%;
    height: auto;
    display: block;
}

.brand-hero-image__placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 18px;
    border-radius: 24px;
    font-family: 'Comfortaa', system-ui, sans-serif;
}

/* ========================================
   RIGHT COLUMN - BRAND CONTENT
   ======================================== */

.brand-content {
    padding-top: 20px;
}

.brand-content__title {
    font-family: 'Comfortaa', system-ui, -apple-system, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.brand-content__description {
    font-family: 'Comfortaa', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.63;
    color: #454545;
    margin-bottom: 32px;
}

/* ========================================
   SOCIAL ICONS
   ======================================== */

.brand-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-socials__link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.brand-socials__link:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.brand-socials__link svg {
    width: 20px;
    height: 20px;
    fill: #111827;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.brand-section__title {
    font-family: 'Comfortaa', system-ui, -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px 0;
}

/* ========================================
   PRODUCT GRIDS
   ======================================== */

.brand-products {
    margin-bottom: 48px;
}

.brand-products__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* ========================================
   PRODUCT CARD (211x211px)
   ======================================== */

.brand-product-card {
    display: flex;
    flex-direction: column;
    width: 211px;
}

.brand-product-card__frame {
    width: 211px;
    height: 211px;
    padding: 19px 21px 9px 19px;
    border-radius: 30px;
    border: 2px solid #f0f0f0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.brand-product-card__frame:hover {
    border-color: #7dd3fc;
}

.brand-product-card__image {
    width: 171px;
    height: 157px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-product-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-product-card__image--empty {
    color: #d1d5db;
    font-size: 12px;
    font-family: 'Comfortaa', system-ui, sans-serif;
}

.brand-product-card__button {
    font-family: 'Comfortaa', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.38;
    color: #2563eb;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.brand-product-card__button:hover {
    color: #1d4ed8;
}

.brand-product-card__name {
    margin-top: 12px;
    font-family: 'Comfortaa', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (max-width: 1005px) {
    .brand-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .brand-hero-image {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    .brand-content__title {
        font-size: 26px;
    }

    .brand-content__description {
        text-align: left;
    }

    .brand-products__grid {
        justify-content: center;
    }
}

/* ========================================
   PRODUCT SLIDEOUT / MODAL OVERLAY
   ======================================== */

.product-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    justify-content: flex-end;
}

.product-overlay.active {
    display: flex;
}

.product-slideout {
    width: 936px;
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    position: relative;
    border-left: 5px solid #e50695;
}

/* Close button */
.product-slideout__close {
    position: absolute;
    top: 21px;
    left: -50px;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.product-slideout__close:hover {
    transform: scale(1.05);
}

.product-slideout__close svg {
    width: 15px;
    height: 15px;
    stroke: #333;
    stroke-width: 2.5;
}

/* Gallery section */
.product-slideout__gallery {
    width: 480px;
    flex-shrink: 0;
    padding: 40px 10px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-slideout__main-image {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.product-slideout__main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Thumbnail navigation */
.product-slideout__thumb-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.product-slideout__arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-slideout__arrow:hover {
    border-color: #333;
}

.product-slideout__arrow svg {
    width: 14px;
    height: 14px;
    stroke: #333;
    stroke-width: 2;
}

.product-slideout__thumbnails {
    display: flex;
    gap: 12px;
    max-width: 320px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-slideout__thumbnails::-webkit-scrollbar {
    display: none;
}

.product-slideout__thumb {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 4px;
    border: 2px solid #d9d9d9;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
}

.product-slideout__thumb:hover,
.product-slideout__thumb.active {
    border-color: #696969;
}

.product-slideout__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Gray divider */
.product-slideout__divider {
    width: 2px;
    background-color: #d9d9d9;
    align-self: stretch;
    margin: 0 0 0 10px;
}

/* Info section */
.product-slideout__info {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.product-slideout__brand-logo {
    width: 150px;
    margin-bottom: 20px;
}

.product-slideout__brand-logo img {
    max-width: 100%;
}

.product-slideout__name {
    font-family: 'Comfortaa', system-ui, sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
}

.product-slideout__description {
    font-family: 'Comfortaa', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    font-weight: bold;
    color: #454545;
    margin-bottom: 28px;
}

.product-slideout__section-title {
    font-family: 'Comfortaa', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.product-slideout__includes {
    margin-bottom: 28px;
}

.product-slideout__includes ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.product-slideout__includes li {
    font-family: 'Comfortaa', system-ui, sans-serif;
    font-size: 14px;
    color: #454545;
    margin-bottom: 8px;
}

.product-slideout__where-to-buy {
    margin-bottom: 24px;
}

.product-slideout__online-link {
    font-family: 'Comfortaa', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 12px;
}

.product-slideout__retailers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-slideout__retailer {
    height: 44px;
    padding: 8px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product-slideout__retailer:hover {
    border-color: #333;
}

.product-slideout__retailer img {
    max-height: 28px;
    max-width: 100px;
    object-fit: contain;
}

/* Where to Buy - Toggle Tabs */
.store-toggle-cont {
    margin-bottom: 16px;
}

.store-toggle-cont ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 32px;
    border-bottom: 2px solid #e5e7eb;
    justify-content: center;
}

.store-toggle-cont li {
    font-family: 'Comfortaa', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.store-toggle-cont li:hover {
    color: #111827;
}

.store-toggle-cont li.active {
    color: #111827;
    border-bottom-color: #54C8E8;
}

/* Where to Buy - Retailer Logos */
.wtb-cont {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}

.wtb-logo-cont {
    min-height: 40px;
    flex: 0 0 auto;
    width: fit-content;
}

.wtb-logo-cont a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease;
    white-space: nowrap;
}

.wtb-logo-cont a:hover {
    border-color: #9ca3af;
}

.wtb-logo-display {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    text-decoration: none;
    white-space: nowrap;
    cursor: default;
}

.retailer-logo {
    max-height: 32px;
    max-width: 100px;
    object-fit: contain;
}

/* Responsive adjustments for Where to Buy */
@media (max-width: 768px) {
    .wtb-logo-cont {
        min-width: 84px;
    }
}

/* Slideout responsive */
@media (max-width: 960px) {
    .product-slideout {
        flex-direction: column;
        overflow-y: auto;
        height: 100vh;
    }

    .product-slideout__gallery {
        width: 100%;
        padding: 60px 20px 30px;
        justify-content: flex-start;
        flex-shrink: 0;
    }

    .product-slideout__divider {
        display: none;
    }

    .product-slideout__info {
        border-top: 2px solid #d9d9d9;
        overflow-y: visible;
        flex-shrink: 0;
    }

    .product-slideout__close {
        left: 10px;
        top: 10px;
    }
}