/* =========================================================
   Linora — Home page only (loaded by index.html after theme.css)
   Hero rail, 3D showcase, categories, quick-view popup
   ========================================================= */

/* ---------- page intro loader ---------- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    pointer-events: none;
    display: grid;
    place-items: center;
}

.page-loader-panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50.5%;
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
    animation: loaderPanel 1s var(--ease-out) 1.1s forwards;
}

.page-loader-panel:first-child {
    top: 0;
}

.page-loader-panel:nth-child(2) {
    bottom: 0;
    --dir: 1;
}

.page-loader-logo {
    position: relative;
    width: 170px;
    max-width: 50vw;
    opacity: 0;
    animation: loaderLogo 1.5s var(--ease-out) forwards;
}

@keyframes loaderLogo {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateX(70deg) translateY(30px);
        filter: blur(8px);
    }

    40%,
    65% {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px) scale(.92);
    }
}

@keyframes loaderPanel {
    to {
        transform: translateY(calc(-100% * (1 - 2 * var(--dir, 0))));
    }
}




/* ---------- HERO ---------- */
/* hero is always exactly one screen tall; the rail fills what's left */
.home .hero-3d {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    padding: 84px 0 clamp(16px, 3vh, 36px);
    background: radial-gradient(120% 80% at 50% 0%, #eef2fb 0%, #f8f9fc 45%, #ffffff 100%);
    overflow: hidden;
    isolation: isolate;
}



/* hero copy */
.hero-intro {
    position: relative;
    z-index: 2;
    flex: none;
    text-align: center;
}

.stage-wrap {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
}

.hero-title {
    margin: clamp(8px, 2vh, 18px) 0 clamp(4px, 1.2vh, 10px);
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: clamp(26px, min(6.4vw, 9vh), 84px);
    line-height: 1.02;
    letter-spacing: -1.5px;
    color: var(--ink);
    perspective: 800px;
}

.hero-title em {
    /* font-family: "Playfair Display", serif; */
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(100deg, var(--navy) 10%, var(--navy-soft) 45%, var(--gold) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: .08em;
}

.hero-line {
    display: inline-block;
}

.split-char {
    display: inline-block;
    transform-origin: 50% 100% -20px;
    will-change: transform, opacity;
}

.hero-sub {
    max-width: 480px;
    margin: 0 auto;
    color: var(--muted);
    font-family: "Quicksand", sans-serif;
    font-size: 16px;
    font-weight: 500;
}

/* rail with depth */
.home .stage {
    z-index: 1;
    perspective: 1600px;
}

.home .item {
    transform-origin: 50% 0;
}

.home .dress img {
    filter: drop-shadow(0 18px 18px rgba(1, 23, 74, .22));
    transition: transform .6s var(--ease-out);
}

.home .item:hover .dress img {
    transform: translateY(-6px) scale(1.04);
}

.home .hook {
    background: linear-gradient(var(--navy), #8a93a8);
}

.home .hanger {
    border-color: #4a5168;
}

.home .banner-price {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(1, 47, 123, .1);
    box-shadow: 0 6px 16px rgba(1, 47, 123, .12);
    color: var(--navy);
    font-weight: 600;
    font-family: "Quicksand", sans-serif;
}

/* ---------- categories ---------- */
@property --ring-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.home .category-section {
    padding: 50px 0 20px;
}

.home .category-image {
    padding: 3px;
    background: conic-gradient(from var(--ring-angle), var(--navy), var(--gold), var(--gold-soft), var(--navy-soft), var(--navy));
    animation: ringSpin 6s linear infinite;
    /* box-shadow: 0 12px 26px -12px rgba(1, 47, 123, .45); */
    transition: transform .55s var(--ease-spring), box-shadow .4s;
}

.home .category-image img {
    border: 1px solid #fff;
}

@keyframes ringSpin {
    to {
        --ring-angle: 360deg;
    }
}

.home .category-item {
    perspective: 600px;
}

.home .category-item:hover .category-image {
    border: none !important;
    /* transform: translateY(-10px) rotateY(18deg) rotateX(8deg); */
    /* box-shadow: 0 24px 36px -14px rgba(1, 47, 123, .55); */
}

.home .category-item h5 {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
}


/* ---------- 3D showcase carousel ---------- */
.showcase-3d {
    position: relative;
    margin: 40px 0;
    padding: 90px 0;
    overflow: hidden;
    background:
        radial-gradient(60% 80% at 80% 50%, rgba(60, 99, 184, .55), transparent 70%),
        radial-gradient(40% 60% at 10% 10%, rgba(201, 164, 106, .25), transparent 70%),
        linear-gradient(135deg, var(--navy-deep), var(--navy));
    color: #fff;
}

.showcase-3d::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(70% 70% at 70% 50%, #000, transparent);
    -webkit-mask-image: radial-gradient(70% 70% at 70% 50%, #000, transparent);
    pointer-events: none;
}

.showcase-copy h2 {
    margin: 6px 0 16px;
    font-family: "Quicksand", sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -1px;
}

.showcase-copy h2 em {
    /* font-family: "Playfair Display", serif; */
    color: var(--gold-soft);
}

.showcase-copy p {
    max-width: 420px;
    color: rgba(255, 255, 255, .72);
    font-family: "Quicksand", sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.showcase-stats {
    display: flex;
    gap: 28px;
    margin: 26px 0 30px;
}

.showcase-stats strong {
    display: block;
    font-family: "Quicksand", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.showcase-stats span {
    font-family: "Quicksand", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}

.home .showcase-copy .banner-collection-btn {
    margin: 0;
}

.carousel-3d {
    --card-w: 210px;
    --card-h: 290px;
    position: relative;
    height: 500px;
    perspective: 1200px;
    perspective-origin: 50% 30%;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.carousel-3d.drag {
    cursor: grabbing;
}

.carousel-3d-ring {
    position: absolute;
    top: 60px;
    left: 50%;
    width: var(--card-w);
    height: var(--card-h);
    margin-left: calc(var(--card-w) / -2);
    transform-style: preserve-3d;
}

.c3d-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
    color: #fff;
    text-decoration: none;
    transition: border-color .3s;
}

.c3d-card:hover {
    border-color: var(--gold);
    color: #fff;
}

.c3d-card img {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 86%;
    height: 72%;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .35));
    pointer-events: none;
}

.c3d-card strong {
    font-family: "Quicksand", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.c3d-card small {
    font-family: "Quicksand", sans-serif;
    font-size: 13px;
    color: var(--gold-soft);
    font-weight: 700;
}

.carousel-3d-floor {
    position: absolute;
    left: 50%;
    bottom: 40px;
    width: 80%;
    height: 90px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent);
    filter: blur(6px);
}


/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .showcase-3d {
        padding: 70px 0 40px;
        text-align: center;
    }

    .showcase-copy p {
        margin: 0 auto;
    }

    .showcase-stats {
        justify-content: center;
    }

    .home .showcase-copy .banner-collection-btn {
        margin: 0 auto;
    }

}

/* short screens (laptops, landscape): tighten the copy */
@media (max-height: 720px) {
    .hero-sub {
        display: none;
    }

}

@media (max-width: 767px) {
    .home .hero-3d {
        /* leave room for the fixed bottom nav */
        /* minus the bar and the raised cart button above it */
        height: calc(100vh - var(--bottom-nav-height) - 20px);
        height: calc(100svh - var(--bottom-nav-height) - 20px);
        min-height: 480px;
        padding: 78px 0 16px;
    }

    .hero-title {
        letter-spacing: -.5px;
        font-size: clamp(26px, 9.2vw, 44px);
    }

    .hero-sub {
        display: block;
        font-size: 14px;
        padding: 0 16px;
    }

    .carousel-3d {
        --card-w: 120px;
        --card-h: 170px;
        height: 300px;
    }

    .carousel-3d-ring {
        top: 40px;
    }

    .c3d-card strong {
        font-size: 12px;
    }

    .showcase-stats {
        gap: 18px;
    }

    .showcase-stats strong {
        font-size: 24px;
    }
}

/* phones: keep category names on one line */
@media (max-width: 500px) {
    .home .category-item {
        padding: 10px 2px;
    }

    .home .category-item h5 {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* phones / small tablets in landscape: hero must still fit the short screen */
@media (max-height: 500px) and (orientation: landscape) {
    .home .hero-3d {
        min-height: 0;
        padding-top: 66px;
    }

    .home .hero-3d .hero-title {
        margin: 0 0 4px;
        font-size: clamp(24px, 9vh, 40px);
    }
}

/* =========================================================
   Quick view popup (hero rail + 3D showcase)
   ========================================================= */


.qv-modal .modal-dialog {
    max-width: 980px;
}

/* opening transition: swings up in 3D */
.qv-modal.fade .modal-dialog {
    transform: perspective(1400px) rotateX(14deg) translateY(50px) scale(.94);
    opacity: 0;
    transition: transform .65s var(--ease-out), opacity .4s ease;
}

.qv-modal.show .modal-dialog {
    transform: none;
    opacity: 1;
}

.qv-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 50px 100px -30px rgba(0, 23, 74, .55);
}

.qv-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 6;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(1, 47, 123, .12);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .85);
    color: var(--ink);
    font-size: 17px;
    transition: background .3s, color .3s;
}

.qv-close:hover {
    background: var(--navy);
    color: #fff;
}

.qv-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 580px;
}

/* ---- visual side ---- */
.qv-visual {
    --qx: 0;
    --qy: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 24px 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(160deg, #eef2fb 0%, #e3e9f6 55%, #f4ecdd 100%);
    perspective: 1100px;
}

.qv-glow {
    position: absolute;
    top: 18%;
    left: 50%;
    width: 360px;
    height: 360px;
    margin-left: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 164, 106, .35), rgba(60, 99, 184, .18) 50%, transparent 70%);
    filter: blur(20px);
    animation: qvGlow 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes qvGlow {
    to {
        transform: scale(1.15);
        opacity: .7;
    }
}

.qv-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 99px;
    background: #fff;
    color: var(--navy);
    font-family: "Quicksand", sans-serif;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 20px -8px rgba(1, 47, 123, .3);
}

.qv-badge i {
    color: var(--gold);
}

.qv-pic {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--qx) * 18deg)) rotateX(calc(var(--qy) * -14deg));
    transition: transform .5s var(--ease-out);
}

.qv-pic img {
    max-width: 78%;
    max-height: 330px;
    object-fit: contain;
    filter: drop-shadow(0 30px 28px rgba(0, 23, 74, .28));
    transform: translateZ(40px);
    animation: qvFloat 5s ease-in-out infinite;
}

/* image change transitions (direction-aware) */
.qv-pic.swap img {
    animation: qvSwapIn .7s var(--ease-out), qvFloat 5s ease-in-out .7s infinite;
}

.qv-pic.swap[data-dir="next"] img {
    animation: qvFromRight .7s var(--ease-out), qvFloat 5s ease-in-out .7s infinite;
}

.qv-pic.swap[data-dir="prev"] img {
    animation: qvFromLeft .7s var(--ease-out), qvFloat 5s ease-in-out .7s infinite;
}

@keyframes qvFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -12px;
    }
}

@keyframes qvSwapIn {
    from {
        opacity: 0;
        transform: translateZ(-120px) scale(.85);
    }
}

@keyframes qvFromRight {
    from {
        opacity: 0;
        transform: translateX(90px) translateZ(-80px) rotateY(-50deg);
    }
}

@keyframes qvFromLeft {
    from {
        opacity: 0;
        transform: translateX(-90px) translateZ(-80px) rotateY(50deg);
    }
}

.qv-platform {
    position: relative;
    width: 58%;
    height: 30px;
    margin-top: -14px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 23, 74, .22), transparent);
}

.qv-platform::before {
    content: "";
    position: absolute;
    inset: 4px 10%;
    border-radius: 50%;
    border: 1px solid rgba(1, 47, 123, .18);
}

.qv-nav {
    position: absolute;
    top: 45%;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 10px 24px -8px rgba(1, 47, 123, .35);
    transition: background .3s, color .3s;
}

.qv-nav:hover {
    background: var(--navy);
    color: #fff;
}

.qv-nav.prev {
    left: 18px;
}

.qv-nav.next {
    right: 18px;
}

.qv-thumbs {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    max-width: 100%;
    margin-top: 16px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.qv-thumbs::-webkit-scrollbar {
    display: none;
}

.qv-thumbs button {
    flex: none;
    width: 56px;
    height: 56px;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 6px 14px -8px rgba(0, 23, 74, .35);
    opacity: .65;
    transition: opacity .3s, border-color .3s, background .3s;
}

.qv-thumbs button:hover {
    opacity: 1;
}

.qv-thumbs button.active {
    opacity: 1;
    background: #fff;
    border-color: var(--navy);
}

.qv-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---- info side ---- */
.qv-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 46px 40px;
    font-family: "Quicksand", sans-serif;
}

.qv-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
}

.qv-info #mName {
    margin: 6px 0 10px;
    /* font-family: "Playfair Display", serif; */
    font-size: 34px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
}

.qv-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #f5a623;
    font-size: 13px;
}

.qv-rating span {
    margin-left: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.qv-info #mPrice {
    margin: 16px 0 10px;
    font-family: "Quicksand", sans-serif;
    font-size: 30px !important;
    font-weight: 700;
    color: var(--navy);
}

.qv-info #mDesc {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 15px !important;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
}

.qv-option-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.qv-option-head a {
    color: var(--navy);
    font-size: 13px;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.qv-sizes {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.qv-sizes .size-btn {
    min-width: 52px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid rgba(20, 22, 31, .15);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 14px;
    transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}

.qv-sizes .size-btn:hover {
    border-color: var(--navy);
}

.qv-sizes .size-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    box-shadow: 0 10px 20px -10px rgba(1, 47, 123, .7);
}

.qv-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.qv-qty {
    display: flex;
    align-items: center;
    height: 54px;
    border: 1px solid rgba(20, 22, 31, .15);
    border-radius: 16px;
    overflow: hidden;
}

.qv-qty button {
    width: 40px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    transition: background .3s;
}

.qv-qty button:hover {
    background: var(--canvas);
}

.qv-qty span {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
}

.qv-info .qv-cart {
    flex: 1;
    height: 54px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-family: "Quicksand", sans-serif;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
    box-shadow: 0 16px 30px -14px rgba(1, 47, 123, .8);
    transition: background .3s, box-shadow .3s;
}

.qv-info .qv-cart:hover {
    box-shadow: 0 20px 36px -14px rgba(1, 47, 123, .9);
}

.qv-info .qv-cart.added {
    background: linear-gradient(135deg, #12804a, #2fb36f);
}

.qv-info .qv-wish {
    position: static;
    flex: none;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(20, 22, 31, .15);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    opacity: 1;
    transform: none;
    font-size: 17px;
}

.qv-info .qv-wish.active {
    border-color: #e0245e;
    background: #fff0f4;
}

.qv-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 22px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(20, 22, 31, .08);
    list-style: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.qv-perks i {
    margin-right: 6px;
    color: var(--navy);
}

.qv-details {
    align-self: flex-start;
    margin-top: 16px;
    color: var(--navy);
    font-family: "Quicksand", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.qv-details:hover {
    color: var(--navy-soft);
}

/* ---- 3D showcase cards are buttons now ---- */
.c3d-card {
    padding: 14px;
    font: inherit;
    cursor: pointer;
}

.c3d-view {
    position: absolute;
    top: 46%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 99px;
    background: #fff;
    color: var(--navy);
    font-family: "Quicksand", sans-serif;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.c3d-card:hover .c3d-view,
.c3d-card:focus-visible .c3d-view {
    opacity: 1;
}

/* ---- popup on phones: bottom sheet ---- */
@media (max-width: 767px) {
    .qv-modal .modal-dialog {
        align-items: flex-end;
        min-height: 100%;
        margin: 0;
        max-width: none;
    }

    .qv-modal.fade .modal-dialog {
        transform: translateY(100%);
        opacity: 1;
        transition: transform .55s var(--ease-out);
    }

    .qv-modal.show .modal-dialog {
        transform: none;
    }

    .qv-modal .modal-content {
        max-height: 94svh;
        overflow-y: auto;
        border-radius: 26px 26px 0 0;
    }

    .qv-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .qv-visual {
        padding: 52px 16px 10px;
        min-height: 290px;
    }

    .qv-pic img {
        max-height: 180px;
    }

    .qv-nav {
        width: 38px;
        height: 38px;
    }

    .qv-nav.prev {
        left: 10px;
    }

    .qv-nav.next {
        right: 10px;
    }

    .qv-thumbs button {
        width: 46px;
        height: 46px;
    }

    .qv-info {
        padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
        align-items: stretch;
    }

    .qv-info #mName {
        font-size: 26px;
    }

    .qv-info #mPrice {
        font-size: 24px !important;
        margin-top: 10px;
    }

    .qv-info #mDesc {
        font-size: 14px !important;
        margin-bottom: 16px;
    }

    .qv-sizes {
        margin-bottom: 18px;
    }

    .qv-sizes .size-btn {
        flex: 1;
    }

    /* the carousel has no hover on touch, so keep the hint visible */
    .c3d-view {
        display: none;
    }
}
