/* --- Brand Variables & Theme --- */
:root {
    --bg-dark: #0a0809; /* Deep charcoal warm-black background */
    --card-bg: #151213; /* Muted stone surface background */
    --gold-primary: #bfa054; /* Muted antique gold */
    --gold-light: #d8c292; /* Champagne highlight gold */
    --text-main: #ffffff;
    --text-sub: #a19a95; /* Soft stone grey */
    --whatsapp-green: #128235;
    --whatsapp-hover: #169d41;
    --navbar-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; /* Lock browser window viewport to support navigation slide */
    height: 100vh;
}

/* --- Navigation Header --- */
header {
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    border-bottom: 1px solid rgba(191, 160, 84, 0.15);
    background: rgba(10, 8, 9, 0.96);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--gold-primary);
}

.logo-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--text-main);
}

.brand-logo-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    border: 1px solid rgba(191, 160, 84, 0.4);
    background-color: #fdfdfd;
    padding: 2px;
    object-fit: contain;
}

.nav-links-container {
    position: relative;
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--gold-light);
}

.nav-underline {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    border-radius: 2px;
    transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: none;
}

/* --- Slide Pane Window Shell --- */
.viewport-container {
    width: 100vw;
    height: calc(100vh - var(--navbar-height));
    margin-top: var(--navbar-height);
    overflow: hidden;
    position: relative;
}

.views-wrapper {
    display: flex;
    width: 200vw;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.view-side {
    width: 100vw;
    height: 100%;
    position: relative;
}

/* --- SIDE 1: Spotlight (Carousel Core) --- */
.spotlight-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spotlight-container {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.spotlight-container.fading {
    opacity: 0;
}

/* Landscape Showcase Layout: 3 Suits Side-by-Side */
.spotlight-landscape-grid {
    display: flex;
    gap: 2.5rem;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 6%;
}

.spotlight-panel {
    flex: 1;
    height: 100%;
    max-height: 75vh;
    max-width: 380px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(191, 160, 84, 0.15);
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.spotlight-panel:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 35px rgba(191, 160, 84, 0.15);
}

.spotlight-panel-imgbox {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.spotlight-panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.spotlight-panel:hover .spotlight-panel-img {
    transform: scale(1.04);
}

.spotlight-panel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem;
    background: linear-gradient(to top, rgba(10, 8, 9, 0.98) 0%, rgba(10, 8, 9, 0.75) 55%, rgba(10, 8, 9, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 60%;
}

.panel-tag {
    color: var(--gold-primary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.panel-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-sub);
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panel-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

/* Portrait Layout Optimization (Zero Face or Dress Cropping on Phones) */
.spotlight-portrait-slide {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
}

.spotlight-portrait-imgbox {
    width: 100%;
    height: 52%; /* Vertical proportion reserved purely for the suit framing */
    position: relative;
    overflow: hidden;
    background-color: #000;
    border-bottom: 1px solid rgba(191, 160, 84, 0.1);
}

.spotlight-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.spotlight-portrait-content {
    width: 100%;
    height: 48%; /* Bottom housing for typography details & call-to-actions */
    padding: 2rem 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portrait-tag {
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.portrait-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.portrait-desc {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.portrait-price {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 1.2rem;
}

.portrait-actions {
    display: flex;
    gap: 1rem;
}

/* Universal Button Elements */
.btn {
    padding: 0.8rem 1.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-whatsapp-spotlight {
    background-color: var(--whatsapp-green);
    color: var(--text-main);
}

.btn-whatsapp-spotlight:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 130, 53, 0.35);
}

/* Navigation Overlays */
.carousel-navigation {
    position: absolute;
    bottom: 2.5%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.carousel-arrow {
    background: transparent;
    border: 1px solid rgba(191, 160, 84, 0.25);
    color: var(--gold-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    border-color: var(--gold-primary);
    background-color: rgba(191, 160, 84, 0.08);
    color: var(--gold-light);
}

.carousel-indicators {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--gold-primary);
    transform: scale(1.3);
    box-shadow: 0 0 6px var(--gold-primary);
}

/* --- SIDE 2: Catalog Core --- */
#catalog-view {
    overflow-y: auto;
    padding-bottom: 6rem;
    background-color: var(--bg-dark);
}

.catalog-header {
    text-align: center;
    padding: 4rem 1rem 1.5rem;
}

.catalog-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.catalog-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-sub);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(191, 160, 84, 0.25);
    color: var(--text-sub);
    padding: 0.55rem 1.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
    color: var(--bg-dark);
    font-weight: 500;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(191, 160, 84, 0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

#catalog-view.visible .product-card {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(191, 160, 84, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.product-img-wrapper {
    position: relative;
    height: 440px;
    overflow: hidden;
    background-color: #000;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img {
    transform: scale(1.04);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.8rem;
    gap: 8px;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.product-price {
    font-family: 'Poppins', sans-serif;
    color: var(--gold-light);
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
}

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-buy.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #ffffff;
    border: none;
}

.btn-buy.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    box-shadow: 0 4px 12px rgba(22, 130, 52, 0.35);
}

/* Stagger list delays */
.product-card:nth-child(1) { transition-delay: 0.04s, 0s; }
.product-card:nth-child(2) { transition-delay: 0.10s, 0s; }
.product-card:nth-child(3) { transition-delay: 0.16s, 0s; }
.product-card:nth-child(4) { transition-delay: 0.22s, 0s; }
.product-card:nth-child(5) { transition-delay: 0.28s, 0s; }
.product-card:nth-child(6) { transition-delay: 0.34s, 0s; }
.product-card:nth-child(7) { transition-delay: 0.40s, 0s; }
.product-card:nth-child(8) { transition-delay: 0.46s, 0s; }
.product-card:nth-child(9) { transition-delay: 0.52s, 0s; }

/* --- Responsive Layout Configurations --- */
@media (max-width: 991px) {
    .spotlight-landscape-grid {
        gap: 1.5rem;
        padding: 2rem 3%;
    }
    .panel-overlay {
        padding: 1.2rem;
    }
    .panel-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 4%;
    }
    .logo-text {
        font-size: 1.15rem;
    }
    .logo-sub {
        font-size: 0.9rem;
    }
    .brand-logo-img {
        height: 36px;
        width: 36px;
    }
    .nav-links-container {
        gap: 1.2rem;
    }
    .nav-link {
        font-size: 0.95rem;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .catalog-title {
        font-size: 2rem;
    }
}