:root {
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-dark: #2C2A29;
    --text-light: #FFFFFF;
    --accent-beige: #BCAE9A;
    --tab-active: #EDE8D0;
    --border-light: #EBEBEB;
    --transition-smooth: 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.wrapper {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    padding: 4rem 0;
    /* min-height: 100vh; */
    /* overflow-x: hidden; */
    position: relative;
}

/* Typography */
.fraunces-elegant {
    font-family: "Fraunces", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "SOFT" 0, "WONK" 0;
}

/* =========================================
           MAIN SECTIONS
           ========================================= */
.top-banner {
    width: 100%;
    margin: -4rem 0 3rem 0;
    line-height: 0;
}

.top-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.header-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.header-section h1 {
    font-size: 3.2rem;
    font-weight: 300;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.header-section p {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7A7571;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
}

.nav-btn:hover {
    background: var(--card-bg);
    color: var(--accent-beige);
    border-color: var(--accent-beige);
    box-shadow: 0 6px 20px rgba(188, 174, 154, 0.15);
}

.highlight-arrow {
    border: 2px solid var(--accent-beige);
    color: var(--accent-beige);
    background: #FFFFFF;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(188, 174, 154, 0.4);
    width: 55px;
    height: 55px;
    font-size: 2rem;
}

.highlight-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(188, 174, 154, 0.6);
    background: var(--accent-beige);
    color: #fff;
}

.showcase-section {
    width: 100%;
    padding: 4rem 0 6rem 0;
    text-align: center;
    background: var(--bg-color);
    color: var(--text-dark);
}

.showcase-section h2 {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 4rem;
    color: var(--text-dark);
}

/* =========================================
           SECTION 1: HERO TABS (HIDDEN ON DESKTOP) & CAROUSEL
           ========================================= */
.hero-tabs {
    margin-bottom: 2.5rem;
}

.category-tabs-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

.category-tabs-wrapper {
    background: #F8F6F3;
    border-radius: 60px;
    padding: 6px;
    display: inline-flex;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-light);
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 90vw;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.category-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.category-tab-btn {
    background: transparent;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #7A7571;
    padding: 14px 32px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab-btn:hover {
    color: var(--text-dark);
}

.category-tab-btn.active {
    background: var(--tab-active);
    color: #2C2A29;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    font-weight: 600;
    border-color: var(--tab-active);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto 6rem auto;
    display: flex;
    align-items: center;
}

.carousel-container .nav-btn.prev {
    left: 2rem;
}

.carousel-container .nav-btn.next {
    right: 2rem;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.card {
    width: 460px;
    height: 560px;
    background: var(--card-bg);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.main-category {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: var(--transition-smooth);
    z-index: 2;
    background: var(--card-bg);
}

.main-category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.main-category::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 100%);
    transition: var(--transition-smooth);
}

.main-category-content {
    position: absolute;
    bottom: 3rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    padding: 0 1.5rem;
}

.main-category h2 {
    color: var(--text-light);
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.sub-50k-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.sub-category-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    padding: 0.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.8rem;
    background: var(--card-bg);
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.sub-tile {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 2px;
    text-decoration: none;
    background: #F0F0F0;
    height: 100%;
}

.sub-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.sub-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
}

.sub-tile span {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
    padding: 0 0.5rem;
}

.sub-tile:hover img {
    transform: scale(1.1);
}

/* =========================================
           SECTION 2: SHOP BY PRICE
           ========================================= */
.value-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.mobile-arrows {
    display: none;
}

.price-accordion {
    display: flex;
    width: 100%;
    height: 550px;
    gap: 1rem;
    padding: 0 2rem;
}

.price-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid var(--border-light);
}

.price-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 1s ease, filter 0.8s ease;
    filter: grayscale(20%) brightness(0.8);
}

.price-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    opacity: 0.7;
    transition: opacity 0.5s;
    pointer-events: none;
}

.panel-content {
    position: absolute;
    bottom: 3rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.panel-content h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
}

.panel-content p {
    color: var(--accent-beige);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

/* =========================================
           SECTION 3: OCCASIONS (TALLER & ELEGANT)
           ========================================= */
.deck-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.deck-stack {
    position: relative;
    height: 750px;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    perspective: 1000px;
}

.deck-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: linear-gradient(to top, rgba(125, 35, 35, 0.95) 0%, rgba(125, 35, 35, 0.5) 45%, transparent 100%);
    padding: 5rem 2.5rem 2.5rem 2.5rem;
    text-align: left;
    border-radius: 0 0 4px 4px;
    pointer-events: none;
}

.deck-info-overlay h3 {
    font-size: 3.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: none;
    font-weight: 300;
}

.deck-pagination {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-start;
}

.deck-pagination .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.deck-pagination .dot.active {
    background-color: #fff;
    transform: scale(1.5);
}

#deck-arrow-prev {
    left: -5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

#deck-arrow-next {
    right: -5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.deck-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.deck-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-card.state-0 {
    transform: translateX(0) scale(1) rotate(0deg);
    z-index: 4;
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.deck-card.state-1 {
    transform: translateX(35px) translateY(-15px) scale(0.95) rotate(4deg);
    z-index: 3;
    opacity: 0.8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.deck-card.state-2 {
    transform: translateX(70px) translateY(-30px) scale(0.9) rotate(8deg);
    z-index: 2;
    opacity: 0.5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.deck-card.state-3 {
    transform: translateX(105px) translateY(-45px) scale(0.85) rotate(12deg);
    z-index: 1;
    opacity: 0.2;
    box-shadow: none;
}

.deck-card.animating-out-next {
    transform: translateX(-150px) translateY(50px) rotate(-15deg) scale(1.05);
    opacity: 0;
    z-index: 5;
}

.deck-card.animating-out-prev {
    transform: translateX(150px) translateY(50px) rotate(15deg) scale(1.05);
    opacity: 0;
    z-index: 5;
}

/* =========================================
           SECTION 4: 3D REVOLVING CAROUSEL 
           ========================================= */
.camp-scene-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1500px;
    height: 650px;
}

.camp-nav-3d {
    z-index: 20;
}

#btn-prev-camp {
    left: 4rem;
}

#btn-next-camp {
    right: 4rem;
}

.carousel-3d {
    width: 460px;
    height: 460px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -230px;
    margin-top: -230px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotateY(calc(var(--i) * 90deg)) translateZ(430px);
    transform-style: preserve-3d;
    pointer-events: none;
}

.card-3d a{
    text-decoration: none;
    color: inherit !important;
}

.card-3d-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease, opacity 0.8s ease, box-shadow 0.8s ease;
}

.card-3d.active .card-3d-inner {
    filter: blur(0px);
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.card-3d.next .card-3d-inner,
.card-3d.prev .card-3d-inner {
    filter: blur(6px);
    opacity: 0.6;
    transform: scale(0.85) translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-3d.back .card-3d-inner {
    filter: blur(10px);
    opacity: 0.3;
    transform: scale(0.75) translateY(-140px);
    pointer-events: none;
}

.card-3d-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

.card-3d.active:hover .card-3d-inner img {
    transform: scale(1.05);
}

.card-3d-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    z-index: 2;
}

.card-3d-content {
    position: relative;
    z-index: 3;
    padding: 2.5rem;
    text-align: center;
    width: 100%;
}

.card-3d-content h3 {
    color: var(--text-light);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-3d-content p {
    color: var(--accent-beige);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* =========================================
           SECTION 5: MOST SOLD (HORIZONTAL 1x4 DESKTOP)
           ========================================= */
.everyday-experience-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-tabs-wrapper-grid {
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px;
    height: auto;
}

.category-tabs-wrapper-grid .category-tab-btn {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    margin-bottom: 5px;
    padding: 14px 35px;
}

.category-tabs-wrapper-grid .category-tab-btn.active {
    background: var(--tab-active);
    color: #2C2A29;
    border-color: var(--tab-active);
}

.everyday-carousel-wrapper {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
}

.everyday-carousel-wrapper .nav-btn {
    display: none;
}

/* 4 items horizontally desktop */
.everyday-panels-container {
    width: 100%;
    max-width: 1400px;
}

.category-content-panel {
    display: none;
    width: 100%;
}

.category-content-panel.active {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
    animation: fadeInGrid 0.5s ease forwards;
}

@keyframes fadeInGrid {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dainty-product-tile {
    background: #fff;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
    text-decoration: none;
    min-height: 480px;
}

.dainty-product-tile:hover {
    background: #fafafa;
}

.dainty-product-tile-img {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.dainty-product-tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.dainty-product-tile:hover img {
    transform: scale(1.05);
}

.dainty-tile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.dainty-tile-info h4 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.dainty-tile-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dark);
    font-weight: 500;
}

/* Explore Collection CTA Desktop (Hidden initially, shown in flex layout) */
.explore-cta-container {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 2rem 0 1rem 0;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: #fff;
}

.explore-cta {
    background: var(--tab-active);
    color: #2C2A29;
    padding: 14px 38px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.explore-cta:hover {
    transform: translateY(-3px);
}

/* =========================================
           SECTION 6: BY DESIGN
           ========================================= */
.spotlight-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 600px;
    overflow: hidden;
}

.spotlight-track {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}

.spotlight-card {
    position: absolute;
    width: 360px;
    height: 520px;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 5;
    pointer-events: none;
    transition: border-color 0.5s ease;
}

.spotlight-card.prev {
    transform: translateX(-120%) scale(0.85);
    opacity: 0.5;
    z-index: 1;
    filter: grayscale(40%);
}

.spotlight-card.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.spotlight-card.active::before {
    border-color: rgba(188, 174, 154, 0.6);
}

.spotlight-card.next {
    transform: translateX(120%) scale(0.85);
    opacity: 0.5;
    z-index: 1;
    filter: grayscale(40%);
}

.spotlight-card.hidden {
    transform: translateX(0) scale(0.5);
    opacity: 0;
    z-index: 0;
}

.spotlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.spotlight-card.active:hover img {
    transform: scale(1.05);
}

.spotlight-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 40%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.spotlight-content {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 6;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

.spotlight-card.active .spotlight-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.spotlight-content h3 {
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.spotlight-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-beige);
}

.spotlight-nav {
    z-index: 20;
    background: var(--card-bg);
}

#sl-prev {
    left: 4rem;
}

#sl-next {
    right: 4rem;
}

/* =========================================
           SECTION 7: MEN'S JEWELLERY
           ========================================= */
.mens-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mens-cat {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
}

.mens-cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.mens-cat::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    z-index: 2;
}

.mens-cat h3 {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    font-weight: 300;
    z-index: 3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mens-cat.center {
    width: 360px;
    height: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.mens-cat.side {
    width: 280px;
    height: 400px;
    opacity: 0.9;
    z-index: 1;
}

.mens-cat:hover {
    transform: translateY(-12px);
    opacity: 1;
    box-shadow: 0 30px 60px rgba(188, 174, 154, 0.25);
    z-index: 3;
}

.mens-cat:hover img {
    transform: scale(1.05);
}

@media (min-width: 769px) {    
    
    .hero-tabs {
        display: none !important;
    }
    
    .price-panel:hover {
        flex: 4;
    }

    .price-panel:hover img {
        transform: translateX(-50%) scale(1.05);
        filter: grayscale(0%) brightness(1);
    }

    .price-panel:hover::after {
        opacity: 1;
    }

    .price-panel:hover .panel-content h3 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .price-panel:hover .panel-content p {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    .carousel-track {
        scroll-snap-type: none;
        /* Crucial for smooth JS scroll */
    }

    .card.has-subs:hover .main-category {
        width: 45%;
    }

    .card.has-subs:hover .main-category::after {
        background: rgba(0, 0, 0, 0.4);
    }

    .card.has-subs:hover .main-category h2 {
        font-size: 1.4rem;
    }

    .card.has-subs:hover .sub-category-wrapper {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }
}

/* =========================================
           MOBILE RESPONSIVENESS
           ========================================= */
@media (max-width: 768px) {
    
    .top-banner {
        margin: -4rem 0 2rem 0;
    }

    .header-section h1 {
        font-size: 2.2rem;
    }

    .showcase-section {
        padding: 3rem 0;
    }

    .showcase-section h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    /* Hero adjustments */
    .carousel-container .nav-btn {
        display: flex;
        width: 45px;
        height: 45px;
        top: 40%;
        transform: translateY(-50%);
        font-size: 1.8rem;
    }

    .carousel-container .nav-btn.prev {
        left: 10px;
    }

    .carousel-container .nav-btn.next {
        right: 10px;
    }

    .carousel-track {
        padding: 1rem;
        gap: 1.5rem;
        scroll-snap-type: x mandatory;
    }

    .card {
        flex: 0 0 85vw;
        height: auto;
        border: none;
        background: transparent;
        box-shadow: none;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .main-category {
        position: relative !important;
        height: 350px;
        width: 100% !important;
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .main-category-content {
        bottom: 1.5rem;
    }

    .sub-category-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        opacity: 1;
        transform: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 15px 0 0 0;
        background: transparent;
        pointer-events: auto;
    }

    .sub-tile {
        height: 130px;
        border-radius: 8px;
    }

    /* Cards with no sub-categories (e.g. "Sub 50k") have nothing rendered below the
               image, leaving a tall empty gap compared to cards that show the 2x2 sub-tile
               grid. Stretch the hero image itself so the card height stays consistent. */
    .card:not(.has-subs) .main-category {
        height: 630px;
    }

    /* SEC 2: Shop by Price - Reference UI (Fancy 2x2 Grid) */
    .value-carousel-wrapper .mobile-arrows {
        display: none;
    }

    .price-accordion {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 12px;
        height: auto;
        padding: 1rem;
        overflow: visible;
        scroll-snap-type: none;
    }

    .price-panel {
        flex: unset;
        height: 260px;
        width: 100%;
        scroll-snap-align: unset;
        border-radius: 6px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border: none;
        background: #E5E0D8;
        /* fallback so the panel never looks like an empty void */
    }

    .price-panel::before {
        content: '';
        position: absolute;
        inset: 6px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        z-index: 2;
        pointer-events: none;
        border-radius: 4px;
    }

    /* Simplified, non-transform image positioning: fills the panel edge-to-edge
               with no risk of being pushed off-frame by the left:50%/translateX combo. */
    .price-panel img {
        position: absolute;
        inset: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: none;
        filter: brightness(0.85);
        z-index: 1;
    }

    .price-panel::after {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
        z-index: 2;
    }

    .panel-content {
        z-index: 3;
        bottom: 1.5rem;
    }

    .panel-content p {
        opacity: 1;
        transform: translateY(0);
        color: rgba(255, 255, 255, 0.9);
        letter-spacing: 0.1em;
        font-weight: 500;
        font-size: 0.65rem;
    }

    .panel-content h3 {
        font-size: 1.8rem;
        color: #fff;
        font-weight: 300;
        margin-bottom: 0.3rem;
    }

    /* SEC 3: Occasion */
    .deck-container {
        padding: 1rem;
    }

    .deck-stack {
        height: 500px;
        max-width: 320px;
    }

    .deck-card.state-1 {
        transform: translateX(6%) translateY(-15px) scale(0.95) rotate(4deg);
    }

    .deck-card.state-2 {
        transform: translateX(12%) translateY(-30px) scale(0.9) rotate(8deg);
    }

    .deck-card.state-3 {
        transform: translateX(18%) translateY(-45px) scale(0.85) rotate(12deg);
    }

    #deck-arrow-prev {
        left: -1.5rem;
    }

    #deck-arrow-next {
        right: -1.5rem;
    }

    .deck-info-overlay {
        padding: 3rem 1.5rem 1.5rem 1.5rem;
    }

    .deck-info-overlay h3 {
        font-size: 2.2rem;
    }

    /* SEC 4: Campaigns */
    .camp-scene-container {
        height: 450px;
        perspective: 800px;
    }

    .card-3d-content{
        padding: 1.5rem;
    }

    .carousel-3d {
        width: 260px;
        height: 340px;
        margin-left: -130px;
        margin-top: -170px;
    }

    .card-3d {
        transform: rotateY(calc(var(--i) * 90deg)) translateZ(180px);
    }

    .card-3d.next .card-3d-inner,
    .card-3d.prev .card-3d-inner {
        transform: scale(0.85);
    }

    .card-3d.back .card-3d-inner {
        transform: scale(0.7) translateY(-50px);
    }

    .card-3d-content h3 {
        font-size: 1.5rem;
    }

    #btn-prev-camp {
        left: 1rem;
    }

    #btn-next-camp {
        right: 1rem;
    }

    /* SEC 5: Most Sold Mobile (2x2 Grid, Pop Animation, Fits Viewport) */
    .category-tabs-container {
        padding: 0 1rem;
    }

    /* Elegant single-row, horizontally-scrollable pill tab bar — matches the
               hero-tabs styling so every tab (All Collections/Rings/Earrings/Pendants/
               Nosepins) is reachable via a swipe instead of wrapping messily. */
    .category-tabs-wrapper-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        background: #F8F6F3;
        border: 1px solid var(--border-light);
        border-radius: 60px;
        padding: 6px;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100%;
    }

    .category-tabs-wrapper-grid::-webkit-scrollbar {
        display: none;
    }

    .category-tabs-wrapper-grid .category-tab-btn {
        background: transparent;
        border: none;
        border-radius: 50px;
        margin-bottom: 0;
        padding: 12px 22px;
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .category-tabs-wrapper-grid .category-tab-btn.active {
        background: var(--tab-active);
        color: #2C2A29;
        border-color: var(--tab-active);
        font-weight: 600;
    }

    .category-content-panel.active {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        border: none;
        background: transparent;
    }

    /* Remove borders as per screenshot, fill viewport nicely */
    .dainty-product-tile {
        border: none;
        background: transparent;
        padding: 10px;
        min-height: unset;
        height: auto;
        opacity: 0;
        /* for pop animation */
    }

    .dainty-product-tile:hover {
        background: transparent;
    }

    .dainty-product-tile-img {
        height: 180px;
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dainty-product-tile img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .dainty-tile-info h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .dainty-tile-info p {
        font-size: 0.7rem;
    }

    /* Cute pop-out animation staggered */
    .category-content-panel.active .dainty-product-tile {
        animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    .category-content-panel.active .dainty-product-tile:nth-child(1) {
        animation-delay: 0.1s;
    }

    .category-content-panel.active .dainty-product-tile:nth-child(2) {
        animation-delay: 0.2s;
    }

    .category-content-panel.active .dainty-product-tile:nth-child(3) {
        animation-delay: 0.3s;
    }

    .category-content-panel.active .dainty-product-tile:nth-child(4) {
        animation-delay: 0.4s;
    }

    .explore-cta-container {
        border: none;
        background: transparent;
        padding-top: 1.5rem;
        opacity: 0;
        animation: popIn 0.5s forwards 0.5s;
    }

    /* SEC 6: Design */
    .spotlight-container {
        height: 480px;
    }

    .spotlight-nav {
        display: none;
    }

    .spotlight-card {
        width: 260px;
        height: 380px;
    }

    .spotlight-card.prev {
        transform: translateX(-80%) scale(0.85);
        opacity: 0.3;
    }

    .spotlight-card.next {
        transform: translateX(80%) scale(0.85);
        opacity: 0.3;
    }

    /* SEC 7: Mens */
    /* .mens-categories {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .mens-cat {
        width: 100% !important;
        height: 350px !important;
        border-radius: 12px;
    }

    .mens-cat.center {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        height: 400px !important;
        order: -1;
    }

    .mens-cat h3 {
        font-size: 2rem;
    } */

    .mens-categories {
        position: relative;
        display: block;
        width: 100%;
        height: 390px;
        max-width: 100%;
        margin: 4rem auto 0;
        overflow: hidden;
        touch-action: pan-y;
    }

    .mens-categories > a {
        position: absolute;
        top: 50%;
        left: 50%;
        display: block;
        width: 180px;
        height: 280px;
        margin: 0;
        padding: 0;

        transform-origin: center center;

        transition:
            transform 0.5s ease,
            opacity 0.5s ease,
            width 0.5s ease,
            height 0.5s ease;

        will-change: transform;
    }


    /* -----------------------------------------
       CENTER
       ----------------------------------------- */

    .mens-categories > a.mens-center {
        width: 260px;
        height: 360px;

        transform:
            translate(-50%, -50%);

        opacity: 1;
        z-index: 3;
    }


    /* -----------------------------------------
       LEFT
       ----------------------------------------- */

    .mens-categories > a.mens-left {
        width: 180px;
        height: 280px;

        transform:
            translate(calc(-50% - 145px), -50%);

        opacity: 0.9;
        z-index: 1;
    }


    /* -----------------------------------------
       RIGHT
       ----------------------------------------- */

    .mens-categories > a.mens-right {
        width: 180px;
        height: 280px;

        transform:
            translate(calc(-50% + 145px), -50%);

        opacity: 0.9;
        z-index: 1;
    }


    /* Card itself */

    .mens-cat {
        width: 100% !important;
        height: 100% !important;
        transition:
            box-shadow 0.5s ease,
            opacity 0.5s ease;
    }


    .mens-cat img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* Disable desktop hover movement on mobile */

    .mens-cat:hover {
        transform: none;
        box-shadow: none;
    }

    .mens-cat:hover img {
        transform: none;
    }


    .mens-cat h3 {
        bottom: 18px;
        font-size: 1.4rem;
    }

    .mens-categories > a.mens-center .mens-cat {
        opacity: 1 !important;
    }

    .mens-categories > a.mens-center img {
        opacity: 1 !important;
    }

    .mens-categories > a.mens-left .mens-cat,
    .mens-categories > a.mens-right .mens-cat {
        opacity: 0.55 !important;
    }
}