/* Quick view popup — used on every page with product cards (moved out of home.css). */
/* =========================================================
   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);
}

/* Virtual try-on / Customise it: open their own pages with the choices made here */
.qv-extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.qv-extra {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid rgba(201, 164, 106, .55);
    border-radius: 14px;
    background: linear-gradient(120deg, #fbf7ef, #fff 80%);
    color: var(--ink, #14161f);
    font-family: "Quicksand", sans-serif;
    text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.qv-extra:hover {
    border-color: var(--gold, #c9a46a);
    color: var(--ink, #14161f);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -16px rgba(150, 110, 40, .6);
}

.qv-extra > i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00174a, var(--navy, #012f7b));
    color: var(--gold, #c9a46a);
    font-size: 14px;
}

.qv-extra span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.qv-extra strong {
    font-size: 13.5px;
    color: var(--navy, #012f7b);
}

.qv-extra small {
    font-size: 12px;
    color: var(--muted, #6b7080);
}

.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);
}


/* ---- 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;
    }

}
