/* =====================================================
   BRAND DETAIL PAGE - Django Styles
   static/css/pages/brand-detail.css
   ===================================================== */

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
    background: var(--color-stone-50);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-stone-100);
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb__link {
    color: var(--color-stone-500);
    transition: color 0.2s;
}

.breadcrumb__link:hover {
    color: var(--color-gold);
}

.breadcrumb__separator {
    color: var(--color-stone-300);
}

.breadcrumb__current {
    color: var(--color-stone-800);
    font-weight: 500;
}

/* =====================================================
   BRAND HERO
   ===================================================== */
.brand-hero {
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--color-stone-900) 0%, var(--color-stone-800) 100%);
    overflow: hidden;
}

.brand-hero__bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(184, 134, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(184, 134, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Decorative pattern */
.brand-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.brand-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .brand-hero {
        padding: 4rem 0;
    }
    
    .brand-hero__content {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }
}

/* Brand Logo */
.brand-hero__logo {
    width: 120px;
    height: 120px;
    background: var(--color-white);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .brand-hero__logo {
        width: 160px;
        height: 160px;
        padding: 2rem;
    }
}

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

.brand-hero__logo-fallback {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
}

@media (min-width: 768px) {
    .brand-hero__logo-fallback {
        font-size: 4rem;
    }
}

/* Brand Info */
.brand-hero__info {
    flex: 1;
}

.brand-hero__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
    .brand-hero__title {
        font-size: 2.75rem;
    }
}

.brand-hero__description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem;
    max-width: 600px;
}

@media (min-width: 768px) {
    .brand-hero__description {
        font-size: 1.125rem;
    }
}

/* Brand Stats */
.brand-hero__stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .brand-hero__stats {
        justify-content: flex-start;
    }
}

.brand-stat {
    text-align: center;
}

@media (min-width: 768px) {
    .brand-stat {
        text-align: left;
    }
}

.brand-stat__value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
}

@media (min-width: 768px) {
    .brand-stat__value {
        justify-content: flex-start;
    }
}

.brand-stat__icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-gold);
}

.brand-stat__label {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

/* Website Link */
.brand-hero__website {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.brand-hero__website:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.brand-hero__website svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* =====================================================
   GENDER TABS
   ===================================================== */
.gender-tabs-section {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-stone-100);
    position: sticky;
    top: 60px;
    z-index: 40;
}

@media (min-width: 768px) {
    .gender-tabs-section {
        top: 80px;
    }
}

.gender-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.gender-tabs::-webkit-scrollbar {
    display: none;
}

.gender-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-stone-100);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-600);
    white-space: nowrap;
    transition: all 0.2s;
}

.gender-tab:hover {
    background: var(--color-stone-200);
    color: var(--color-stone-800);
}

.gender-tab--active {
    background: var(--color-gold);
    color: var(--color-white);
}

.gender-tab--active:hover {
    background: var(--color-gold-dark);
    color: var(--color-white);
}

.gender-tab__icon {
    font-size: 1rem;
}

.gender-tab__count {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
}

.gender-tab--active .gender-tab__count {
    background: rgba(255, 255, 255, 0.2);
}

/* =====================================================
   BRAND PRODUCTS
   ===================================================== */
.brand-products {
    padding: 2rem 0 4rem;
    background: var(--color-off-white);
}

/* Toolbar */
.brand-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-white);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-stone-100);
}

.brand-toolbar__left,
.brand-toolbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-toolbar__count {
    font-size: 0.9375rem;
    color: var(--color-stone-600);
}

.brand-toolbar__count strong {
    color: var(--color-stone-800);
}

/* Sort Dropdown */
.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-dropdown__label {
    font-size: 0.875rem;
    color: var(--color-stone-500);
    display: none;
}

@media (min-width: 640px) {
    .sort-dropdown__label {
        display: block;
    }
}

.sort-dropdown__select {
    padding: 0.625rem 2.25rem 0.625rem 0.875rem;
    background: var(--color-stone-100);
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-700);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2378716C' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    background-size: 1rem;
}

/* View Toggle */
.view-toggle {
    display: none;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--color-stone-100);
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .view-toggle {
        display: flex;
    }
}

.view-toggle__btn {
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--color-stone-400);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle__btn:hover {
    color: var(--color-stone-600);
}

.view-toggle__btn--active {
    background: var(--color-white);
    color: var(--color-gold);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-toggle__btn svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

/* =====================================================
   PRODUCTS GRID
   ===================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .products-grid {
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* List View */
.products-grid--list {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.products-grid--list .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid--list .product-card__image {
    width: 160px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .products-grid--list .product-card__image {
        width: 200px;
    }
}

.products-grid--list .product-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.25rem;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pagination__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-white);
    border: 1px solid var(--color-stone-200);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-700);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination__btn:hover:not(.pagination__btn--disabled) {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.pagination__btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination__btn svg {
    width: 1rem;
    height: 1rem;
}

.pagination__btn span {
    display: none;
}

@media (min-width: 640px) {
    .pagination__btn span {
        display: inline;
    }
}

.pagination__pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination__page {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-stone-200);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-700);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination__page:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.pagination__page--active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: white;
}

.pagination__ellipsis {
    padding: 0 0.5rem;
    color: var(--color-stone-400);
}

/* =====================================================
   NO RESULTS
   ===================================================== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-white);
    border-radius: 1rem;
}

.no-results__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--color-stone-300);
}

.no-results__icon svg {
    width: 100%;
    height: 100%;
}

.no-results__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-stone-800);
    margin: 0 0 0.5rem;
}

.no-results__text {
    color: var(--color-stone-500);
    margin: 0 0 1.5rem;
}

/* =====================================================
   BRAND STORY
   ===================================================== */
.brand-story {
    padding: 4rem 0;
    background: var(--color-white);
}

.brand-story__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.brand-story__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-stone-850);
    margin: 0 0 1.5rem;
}

.brand-story__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.brand-story__text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-stone-600);
}

.brand-story__text p {
    margin: 0 0 1rem;
}

.brand-story__text p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   OTHER BRANDS
   ===================================================== */
.other-brands {
    padding: 3rem 0 4rem;
    background: var(--color-off-white);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-stone-850);
    margin: 0 0 2rem;
    text-align: center;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--color-white);
    border-radius: 1rem;
    border: 1px solid var(--color-stone-100);
    text-align: center;
    transition: all 0.2s;
}

.brand-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.1);
    transform: translateY(-2px);
}

.brand-card__logo {
    width: 64px;
    height: 64px;
    background: var(--color-stone-50);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.brand-card__logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.brand-card__logo span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
}

.brand-card__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-stone-800);
    margin-bottom: 0.25rem;
}

.brand-card__count {
    font-size: 0.8125rem;
    color: var(--color-stone-500);
}
