@font-face {
    font-family: "Callheart";
    src: url("Callheart.ttf") format("truetype");
}
:root {
    --color-bg-base: #fdfcf9;
    --color-text-main: #bbd798;
    --color-accent: #bbd798; /* Sleek black instead of green */
    --font-title: 'Sarina', cursive;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: #670527;
    color: var(--color-text-main);
    font-family: var(--font-body);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 60px;
}

/* --- Top Navigation Bar --- */
.top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0dbce;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-left, .nav-right {
    flex: 1;
}

.nav-center {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.nav-brand-small {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.1rem;
    color: #670527;
}

/* --- Layout --- */
.top-header {
    text-align: center;
    padding: 80px 1rem 2rem 1rem;
    position: relative;
    z-index: 10;
}
.main-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 6vw, 5rem);
    margin: 0 0 15px 0;
    color: var(--color-text-main);
    line-height: 1;
    letter-spacing: -1px;
}
.tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-top: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}
.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    min-height: 700px;
}
.honeycomb-container {
    width: calc(100vw - 20px);
    height: 850px;
    position: relative;
    flex-shrink: 0;
}
/* --- Sidebars --- */
.sidebar-left, .sidebar-right {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: -140px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.sidebar-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sidebar-title {
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--color-text-main);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
}
.spotlight-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.spotlight-card:hover {
    transform: translateY(-5px);
}
.spotlight-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.curated-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.watermark-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #670527;
    z-index: -1;
    pointer-events: none;
}

.top-header {
    text-align: center;
    padding: 3rem 0 1rem 0;
}

.main-title {
    position: relative;
    display: inline-block;
    
    font-size: 5.5rem;
    font-weight: 400;
    letter-spacing: -3px;
    z-index: 1;
    color: var(--color-text-main);
}

.tagline {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -1rem;
}

/* --- Dropdowns --- */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: #670527;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.dropbtn:hover {
    color: #670527;
    opacity: 0.8;
    border-bottom: 2px solid #670527;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fdfbf7;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #e0dbce;
    border-radius: 6px;
    z-index: 101;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 5px);
    padding: 12px 20px;
    white-space: nowrap;
}

.dropdown-content::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px dashed #b5a68d;
    border-radius: inherit;
    pointer-events: none;
}

.dropdown-content a {
    color: #670527;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 2;
    border-radius: 4px;
}

.dropdown-content a:hover {
    background-color: #f0ebe1;
    transform: translateX(2px);
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    animation: fadeInDropdown 0.3s ease;
}

.brands-dropdown .dropdown-content {
    max-height: 400px;
    overflow-y: auto;
    /* Optional: custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #d4af37 transparent;
    padding-top: 0;
}

.search-container {
    padding: 10px 0;
    background: #fdfbf7;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #e0dbce;
    margin-bottom: 5px;
}

#brandSearchInput {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}

#brandSearchInput:focus {
    border-color: #d4af37;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Remove old splatter blob */
.main-title::before {
    display: none;
}

/* --- Hero Layout (3 Columns) --- */
.hero-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Moves the sidebars up to the top */
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 3rem;
    transition: opacity 0.4s ease;
}

/* Sidebars (Left & Right) */
.sidebar-left, .sidebar-right {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Space between the two widgets in each sidebar */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sidebar-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    position: relative;
    
    /* WOVEN TAG STYLE */
    display: inline-block;
    background-color: #fdfbf7;
    border: 1px solid #e0dbce;
    padding: 0.5rem 2rem;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03), 0 6px 20px rgba(0,0,0,0.3);
}

.sidebar-title::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px dashed #b5a68d; /* Fine stitching */
    border-radius: inherit;
    pointer-events: none;
}

.sidebar-widget {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the title pill and card */
    position: relative;
}

/* Optional: Adding a soft highlight light behind the entire widget */
.sidebar-widget::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 350px; height: 350px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -2;
    pointer-events: none;
}

.spotlight-card {
    /* WOVEN TAG STYLE */
    background-color: #fdfbf7;
    border: 1px solid #e0dbce;
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.03), 0 8px 25px rgba(0,0,0,0.4);
    position: relative;
}

.spotlight-card::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 2px dashed #b5a68d;
    border-radius: inherit;
    pointer-events: none;
}

.spotlight-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.spotlight-brand-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.spotlight-price {
    color: var(--color-accent);
    font-weight: 500;
}

.curated-stack {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.curated-polaroid-wrapper {
    position: absolute;
    transition: z-index 0.1s;
}

.curated-polaroid-wrapper:hover {
    z-index: 100 !important;
}

.curated-polaroid {
    background-color: #fdfbf7;
    border: 1px solid #e0dbce;
    padding: 15px 15px 30px 15px;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.03), 0 8px 25px rgba(0,0,0,0.4);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    cursor: pointer;
    text-align: center;
    position: relative;
}

.curated-polaroid::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 2px dashed #b5a68d;
    border-radius: inherit;
    pointer-events: none;
}

.curated-polaroid-wrapper:hover .curated-polaroid {
    transform: scale(1.15);
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
}

.curated-polaroid-img {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.curated-polaroid-brand {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1550px) {
    .hero-layout {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    .sidebar-left, .sidebar-right {
        display: flex;
        width: 250px;
        margin-top: 0;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
    }
    .sidebar-widget {
        width: 100%;
        transform: scale(0.8);
    }

}

.bubble {
    border-radius: 50%;
    /* WOVEN TAG STYLE */
    background-color: #fdfbf7;
    border: 1px solid #e0dbce;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.03), 0 8px 25px rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: absolute;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
    overflow: hidden;
}

.bubble::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 2px dashed #b5a68d;
    border-radius: 50%;
    pointer-events: none;
}

.bubble:hover {
    box-shadow: inset 0 0 20px rgba(0,0,0,0.03), 0 16px 40px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.brand-name {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: color 0.3s ease;
    pointer-events: none; /* Let D3 handle mouse events on the bubble */
}

.bubble:hover .brand-name {
    color: #000000;
}

.bubble-logo {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
    pointer-events: none;
    mix-blend-mode: multiply;
    mix-blend-mode: multiply; /* Magically removes solid white backgrounds from logos! */
}

.bubble-logo-mask {
    width: 80%;
    height: 80%;
    background-color: #ff477e; /* Vibrant brand pink */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.bubble:hover .bubble-logo,
.bubble:hover .bubble-logo-mask {
    transform: scale(1.1);
}

/* Splash Screen Animation */
.splash-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* Darkened slightly to make popup pop over the main page */
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.splash-square {
    width: 380px;
    height: 380px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-square::before {
    content: '';
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 2px solid var(--color-accent);
    outline: 1px solid var(--color-accent);
    outline-offset: -5px;
    opacity: 0.8;
    z-index: 10;
    pointer-events: none;
    /* Adding ornate corner accents via box-shadow trick */
    background: 
        radial-gradient(circle at 100% 100%, transparent 6px, var(--color-accent) 7px, var(--color-accent) 8px, transparent 9px) 0 0 / 20px 20px no-repeat,
        radial-gradient(circle at 0 100%, transparent 6px, var(--color-accent) 7px, var(--color-accent) 8px, transparent 9px) 100% 0 / 20px 20px no-repeat,
        radial-gradient(circle at 100% 0, transparent 6px, var(--color-accent) 7px, var(--color-accent) 8px, transparent 9px) 0 100% / 20px 20px no-repeat,
        radial-gradient(circle at 0 0, transparent 6px, var(--color-accent) 7px, var(--color-accent) 8px, transparent 9px) 100% 100% / 20px 20px no-repeat;
    animation: fadeInContent 1s ease 1.2s forwards;
    opacity: 0;
}

.splash-piece {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #f4f1ea;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.piece-tl {
    /* Torn edge diagonal cut */
    clip-path: polygon(0 0, 100% 0, 0 100%);
    animation: slideInTL 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.piece-br {
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    animation: slideInBR 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    /* Delay to let the square pieces attach first */
    animation: fadeInContent 0.6s ease 1s forwards; 
}

.splash-title {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.splash-ornament {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.splash-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.splash-brands {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-text-main);
    line-height: 2;
    margin-bottom: 2rem;
    font-weight: 400;
}

.splash-hint {
    font-size: 0.85rem;
    color: var(--color-text-main);
    opacity: 0.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulseHint 2s infinite ease-in-out;
}

@keyframes slideInTL {
    0% { transform: translate(-150vw, -150vh) rotate(-45deg); opacity: 0; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}

@keyframes slideInBR {
    0% { transform: translate(150vw, 150vh) rotate(45deg); opacity: 0; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}

@keyframes fadeInContent {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* --- Transition Animations --- */
.bubble {
    /* Base transitions + the vital transform/opacity for falling/returning */
    transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
}

.bubble.falling {
    transform: translateY(150vh) !important;
    opacity: 0;
    pointer-events: none;
}

.bubble.selected {
    z-index: 100;
    cursor: default;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    /* Transform applied via JS */
}

/* Hide header when transitioning */
.top-header {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- Product Page --- */
.product-page {
    position: relative; /* Restores document flow to perfectly push the footer down */
    width: 100vw;
    min-height: 850px;
    padding: 120px 4rem 4rem 4rem;
    z-index: 50;
    background-color: #670527;
    color: var(--color-text-main);
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin-top: -850px; /* Exact height of honeycomb container to perfectly overlay it */
}

.product-page.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s; /* DELAYED fade in */
}

.product-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 40px;
    left: 4rem;
    right: 4rem;
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.price-filter input, .price-filter select {
    width: 90px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: transparent;
    color: var(--color-text-main);
}

.price-filter select {
    width: auto;
    cursor: pointer;
}

.price-filter input::placeholder {
    color: #999;
}

.filter-btn {
    background: var(--color-text-main);
    color: #670527;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    font-family: var(--font-body);
}

.filter-btn:hover {
    transform: scale(1.05);
    background: #444;
}

.back-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--color-text-main);
    color: var(--color-text-main);
    transform: translateX(-5px);
}

.load-more-container {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.load-more-btn {
    background: transparent;
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--color-text-main);
    color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    max-width: calc(100vw - 20px);
    margin: 0 auto;
}

.product-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.product-image-ph {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center top; /* Focus on the garment on models */
    display: block;
}

.product-details {
    padding: 1.5rem;
    text-align: center;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.product-price {
    font-size: 1.2rem;
    color: var(--color-accent);
}

/* --- Global Footer --- */
.footer-divider {
    display: none; /* Removed in favor of a solid block footer */
}

.global-footer {
    background: #bbd798;
    color: #670527;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-mission, .footer-contact {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #670527;
}

.footer-mission strong, .footer-contact strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #670527;
    display: inline-block;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
}

/* --- Feedback Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    color: #333;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-family: var(--font-body);
}

.modal-content h2 {
    font-family: var(--font-title);
    margin-top: 0;
    font-size: 2rem;
    color: #111;
}

.modal-content p {
    margin-bottom: 1rem;
    color: #555;
}

.modal-content textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    box-sizing: border-box;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.close-modal:hover {
    color: #111;
}

/* --- Page Specific: Tops under 3k --- */
.page-tops {
    padding: 120px 4rem 4rem 4rem; /* Offset for top-nav-bar */
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: calc(100vw - 20px);
    margin: 0 auto;
}

.brand-grid-card {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #f0ebe1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0dbce;
}

.brand-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.brand-grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    pointer-events: none;
}

.brand-grid-name {
    position: relative;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    padding: 0 1rem;
    margin-top: 250px; /* Push to bottom */
}

.brand-grid-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    max-height: 50%;
    z-index: 3;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.home-btn {
    position: absolute;
    top: 100px; /* Below the nav bar */
    left: 2rem;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #d4af37;
    border-radius: 30px;
    color: #d4af37;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.home-btn:hover {
    background: #d4af37;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* Adjust grid header so it does not overlap with the back button */
.section-header {
    margin-top: 40px;
}

/* Favorites & Like Button Styling */
.like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    z-index: 10;
    user-select: none;
}

.like-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.like-btn.liked {
    color: #e74c3c;
    background: #fff;
}

.product-item {
    position: relative; /* Ensure absolute positioning works for the like button */
}

/* Nav Item specifically for Liked */
.nav-liked-btn {
    margin-left: 20px;
    font-weight: 600;
    color: #670527 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-liked-btn:hover {
    color: #670527 !important;
    opacity: 0.8;
}

.main-title {
    display: block;
    text-align: center;
    line-height: 1;
    margin-bottom: 25px;
}

/* --- Featured Brand Section --- */
.featured-brand-section {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.15); /* Slightly darker overlay for contrast */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-brand-title {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--color-text-main);
    margin-bottom: 2rem;
    text-align: center;
}

.featured-brand-content {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.featured-brand-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.featured-brand-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.featured-brand-image:hover img {
    transform: scale(1.05);
}

.featured-brand-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured-brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    font-family: var(--font-body);
}

.featured-brand-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .featured-brand-content {
        flex-direction: column;
    }
}

.sarina-regular {
  font-family: "Sarina", cursive;
  font-weight: 400;
  font-style: normal;
}

/* --- CART UI --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--color-bg-main);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-bg-alt);
}

.cart-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-main);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-bg-alt);
    padding-bottom: 1.5rem;
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #e30a5c;
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls button {
    background: var(--color-bg-alt);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
}

.cart-item-controls .remove-item {
    margin-left: auto;
    background: none;
    color: #999;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-bg-alt);
    background: var(--color-bg-main);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: #670527;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.checkout-btn:hover {
    opacity: 0.9;
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Navbar adjustments */
    .top-nav-bar {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
        gap: 0.5rem;
        justify-content: center;
        text-align: center;
    }
    .brands-dropdown .dropdown-content {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
        max-width: 90vw;
    }
    .nav-left, .nav-right {
        flex: none;
    }
    .nav-right {
        display: none; /* Hide empty space on mobile */
    }
    .nav-center {
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .dropbtn {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    .nav-liked-btn {
        font-size: 0.8rem !important;
        margin-left: 5px !important;
    }

    /* Hero */
    .top-header {
        padding-top: 80px;
    }
    .main-title {
        font-size: 2.5rem !important; /* Override previous */
    }
    .tagline {
        font-size: 0.9rem;
    }

    /* Layout & sidebars */
    .hero-layout {
        flex-direction: column;
        padding: 1rem 0;
        min-height: auto;
    }
    .sidebar-left, .sidebar-right {
        display: none !important;
    }
    
    .honeycomb-container {
        height: 600px !important; 
    }

    /* Product Page */
    .product-page {
        padding: 180px 1rem 1rem 1rem;
        margin-top: -600px;
    }
    .page-tops {
        padding: 100px 1rem 1rem 1rem;
    }
    .product-page-header {
        left: 1rem;
        right: 1rem;
        top: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .price-filter {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .product-grid, .brands-grid {
        gap: 1rem;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .product-image, .product-image-ph {
        height: 200px;
    }
    
    /* Modals & specific elements */
    .splash-square {
        width: 90vw;
        height: 90vw;
    }
    .splash-title {
        font-size: 2.2rem;
    }
    
    /* Cart */
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
    }
}
