/* ==========================================================================
   Qemmah — Product page (productmodule::customers.products.single)
   Editorial layout: a photo stage framed by the brand arch, beside a dark
   "atelier" buy panel; then tabbed details next to a designer spotlight.
   Scoped to .qm-pdp. Tokens come from premium.css; the similar-products
   cards and section header come from sections-premium.css (.qm-sections).
   The variant / quantity / add-to-cart markup is driven by cart.js and
   index.js, so those classes stay and are only restyled here.
   ========================================================================== */

.qm-pdp {
    --qp-line: rgba(161, 120, 92, .16);
    --qp-text: #3a2a22;
    --qp-muted: #8a7466;
    --qp-dark-1: #1a1210;
    --qp-dark-2: #2b1a14;
    --qp-dark-3: #4a2c20;
    --qp-on-dark: rgba(255, 255, 255, .78);
    --qp-on-dark-dim: rgba(255, 255, 255, .55);
    --qp-gold-line: rgba(226, 193, 156, .22);
    --qp-card: 0 0 0 1px rgba(161, 120, 92, .1), 0 2px 6px -2px rgba(58, 34, 25, .06), 0 30px 60px -36px rgba(58, 34, 25, .38);

    padding-bottom: 48px;
    color: var(--qp-text);
}

/* --------------------------------------------------------------------------
   2. Showcase
   -------------------------------------------------------------------------- */

.qm-pdp__showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: start;
    gap: clamp(24px, 3vw, 44px);
}

/* ----- Gallery ----- */

.qm-pdp__gallery {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    padding-top: 26px; /* room for the arch outline above the stage */
}

.qm-pdp__gallery:not(:has(.qm-pdp__thumbs)) { grid-template-columns: minmax(0, 1fr); }

.qm-pdp__thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 640px;
    overflow-y: auto;
    scrollbar-width: none;
}

.qm-pdp__thumbs::-webkit-scrollbar { display: none; }

.qm-pdp__thumb {
    flex: none;
    width: 84px;
    aspect-ratio: 4 / 5;
    padding: 0;
    overflow: hidden;
    background: #f3e9df;
    border: 0;
    border-radius: 14px;
    opacity: .6;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: opacity .25s, outline-color .25s, transform .3s var(--qm-ease);
}

.qm-pdp__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qm-pdp__thumb:hover { opacity: .9; }
.qm-pdp__thumb.is-active { opacity: 1; outline-color: var(--qm-gold-3); }

.qm-pdp__stage { position: relative; isolation: isolate; }

/* the brand arch, drawn as a gold outline peeking above the photo */
.qm-pdp__stage::before {
    content: "";
    position: absolute;
    inset: -26px 9% 30%;
    z-index: -1;
    border: 1px solid rgba(199, 154, 114, .55);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    pointer-events: none;
}

/* warm glow behind the stage */
.qm-pdp__stage::after {
    content: "";
    position: absolute;
    inset: 4% 0 -4%;
    z-index: -2;
    border-radius: 40px;
    background: radial-gradient(closest-side, rgba(226, 193, 156, .4), transparent);
    filter: blur(10px);
    pointer-events: none;
}

.qm-pdp__track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 28px;
    box-shadow: 0 0 0 1px rgba(161, 120, 92, .12), 0 40px 80px -46px rgba(58, 34, 25, .6);
}

.qm-pdp__track::-webkit-scrollbar { display: none; }

.qm-pdp__slide {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 4 / 5;
    max-height: 680px;
    margin: 0;
    overflow: hidden;
    scroll-snap-align: start;
    background: #efe5da;
}

/* soft blurred fill of the same photo, so any aspect ratio sits well */
.qm-pdp__slide::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: var(--qm-slide) center / cover no-repeat;
    filter: blur(28px) saturate(1.1);
    opacity: .55;
    transform: scale(1.1);
}

.qm-pdp__slide > img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qm-pdp__slide .zoomImg { z-index: 2; background: #fff; cursor: zoom-in; }

.qm-pdp__flags {
    position: absolute;
    top: 18px;
    inset-inline-start: 18px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: none;
}

.qm-pdp__flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6);
}

.qm-pdp__flag--gold { background: var(--qm-gloss-gold); text-shadow: 0 1px 1px rgba(58, 34, 25, .35); }
.qm-pdp__flag--sale { background: linear-gradient(180deg, #e46a5c, #c0392b); direction: ltr; }

.qm-pdp__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    font-size: 15px;
    color: var(--qm-ink);
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .3s, transform .3s var(--qm-ease);
}

.qm-pdp__nav--prev { inset-inline-start: 16px; }
.qm-pdp__nav--next { inset-inline-end: 16px; }
.qm-pdp__stage:hover .qm-pdp__nav { opacity: 1; }
.qm-pdp__nav:hover { transform: scale(1.06); }

.qm-pdp__count {
    position: absolute;
    bottom: 16px;
    inset-inline-end: 16px;
    z-index: 3;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: rgba(26, 18, 16, .55);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    direction: ltr;
    pointer-events: none;
}

/* ----- Atelier buy panel (dark) ----- */

.qm-pdp__panel {
    position: sticky;
    top: 150px;
    overflow: hidden;
    isolation: isolate;
    margin-top: 26px;
    padding: 30px 30px 26px;
    color: #fff;
    background:
        radial-gradient(520px 320px at 100% -10%, rgba(226, 193, 156, .32), transparent 60%),
        radial-gradient(420px 300px at -10% 110%, rgba(161, 120, 92, .4), transparent 60%),
        linear-gradient(155deg, var(--qp-dark-1) 0%, var(--qp-dark-2) 50%, var(--qp-dark-3) 100%);
    border-radius: 28px;
    box-shadow: 0 50px 90px -50px rgba(26, 18, 16, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* fine diamond lattice, as in the hero */
.qm-pdp__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .06;
    background-image:
        linear-gradient(45deg, #fff 1px, transparent 1px),
        linear-gradient(-45deg, #fff 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse at 100% 0, #000 0%, transparent 65%);
    mask-image: radial-gradient(ellipse at 100% 0, #000 0%, transparent 65%);
}

/* gold hairline along the top edge */
.qm-pdp__panel::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--qm-gold-2), var(--qm-gold-4), var(--qm-gold-2), transparent);
    opacity: .85;
}

.qm-pdp__panel-glow {
    position: absolute;
    top: -120px;
    inset-inline-end: -80px;
    z-index: -1;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: #c79a72;
    filter: blur(70px);
    opacity: .35;
}

.qm-pdp__panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }

.qm-pdp__by {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 5px 14px 5px 5px;
    font-size: 13px;
    color: var(--qp-on-dark) !important;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--qp-gold-line);
    border-radius: 999px;
    text-decoration: none;
    transition: background-color .25s, border-color .25s;
}

[dir="rtl"] .qm-pdp__by, .qm-ar .qm-pdp__by { padding: 5px 5px 5px 14px; }
.qm-pdp__by:hover { background: rgba(255, 255, 255, .14); border-color: rgba(226, 193, 156, .5); }
.qm-pdp__by img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.qm-pdp__by span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.qm-pdp__by b { color: var(--qm-gold-1); }

.qm-pdp__love {
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: rgba(255, 255, 255, .1);
    border: 1px solid var(--qp-gold-line);
    border-radius: 50%;
    transition: transform .3s var(--qm-ease), background-color .3s;
}

.qm-pdp__love:hover { transform: scale(1.06); background: rgba(255, 255, 255, .18); }
.qm-pdp__love svg { width: 19px; height: 19px; }
.qm-pdp__love:not(.loved) svg path { stroke: var(--qm-gold-1); }

.qm-pdp__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    text-align: start;
}

.qm-pdp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 22px; font-size: 13px; color: var(--qp-on-dark-dim); }
.qm-pdp__stars { display: inline-flex; align-items: center; gap: 8px; color: var(--qp-on-dark-dim) !important; text-decoration: none; }
.qm-pdp__stars b { color: #fff; }
.qm-pdp__stars:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.qm-pdp__sku b { margin-inline-start: 4px; color: var(--qp-on-dark); font-weight: 700; }

/* five stars filled to --qm-score */
.qm-stars {
    position: relative;
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    direction: ltr;
}

.qm-stars::before { content: "\f005\f005\f005\f005\f005"; color: rgba(226, 193, 156, .28); }

.qm-stars::after {
    content: "\f005\f005\f005\f005\f005";
    position: absolute;
    inset: 0;
    width: calc(var(--qm-score, 0) / 5 * 100%);
    overflow: hidden;
    color: #f4b400;
    white-space: nowrap;
}

.qm-stars--lg { font-size: 16px; letter-spacing: 3px; }
.qm-pdp__tabs .qm-stars::before { color: #eadfd3; }

/* ----- Price ----- */

.qm-pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }

.qm-pdp__now {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: clamp(30px, 2.8vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(100deg, #f6e3c8 0%, #e2c19c 35%, #fff5e6 50%, #c79a72 75%, #f6e3c8 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: qm-gold-flow 7s linear infinite;
}

/* the currency glyph is an inline SVG (currentColor): give it a solid gold */
.qm-pdp__now svg { width: .66em; height: .66em; color: var(--qm-gold-2); fill: currentColor; }
.qm-pdp__was { display: inline-flex; align-items: baseline; gap: 4px; font-size: 18px; color: var(--qp-on-dark-dim); }
.qm-pdp__was svg { width: .75em; height: .75em; }

.qm-pdp__vat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 0; padding-bottom: 22px; font-size: 13px; color: var(--qp-on-dark-dim); border-bottom: 1px solid var(--qp-gold-line); }

.qm-pdp__save {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 3px 10px;
    font-weight: 700;
    color: #9fe0b5;
    background: rgba(46, 139, 87, .18);
    border-radius: 999px;
}

.qm-pdp__save svg { width: .8em; height: .8em; }

.qm-pdp__oos {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #ffb4a8;
    background: rgba(192, 57, 43, .18);
    border: 1px solid rgba(255, 140, 120, .25);
    border-radius: 14px;
}

/* ----- Variants ----- */

.qm-pdp__variant { margin-top: 20px; }
.qm-pdp__label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--qp-on-dark-dim); letter-spacing: .02em; }

.qm-pdp .qm-pdp__sizes { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }

.qm-pdp .size_variants div.size_container {
    width: auto;
    min-width: 52px;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(226, 193, 156, .35) !important;
    border-radius: 12px;
    transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}

.qm-pdp .size_variants div.size_container span { font-size: 14px; }
.qm-pdp .size_variants div.size_container:hover { background: rgba(255, 255, 255, .12); border-color: var(--qm-gold-2) !important; }

.qm-pdp .size_variants div.size_container.active {
    color: var(--qp-dark-1);
    background: var(--qm-gloss-gold);
    border-color: transparent !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 22px -12px rgba(226, 193, 156, .8);
}

.qm-pdp__colors { display: flex; flex-wrap: wrap; gap: 10px; }

.qm-pdp .color_container {
    width: 40px;
    height: 40px;
    padding: 4px;
    background: transparent;
    border: 1px solid rgba(226, 193, 156, .35) !important;
    border-radius: 50%;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--qm-ease);
}

.qm-pdp .color_container span { width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.qm-pdp .color_variants:hover .color_container { transform: scale(1.06); }
.qm-pdp .color_variants.active .color_container { border: 2px solid var(--qm-gold-2) !important; box-shadow: 0 0 0 4px rgba(226, 193, 156, .18); }

/* ----- Quantity + add to cart ----- */

.qm-pdp__buy { display: flex; gap: 12px; margin-top: 24px; }

.qm-pdp .qm-pdp__qty {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    width: 132px;
    height: 56px;
    margin: 0;
    padding: 0 6px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--qp-gold-line);
    border-radius: 16px;
}

.qm-pdp .qm-pdp__qty input { width: 44px; height: 100%; min-height: 0; margin: 0; font-size: 17px; font-weight: 800; color: #fff; background: transparent; box-shadow: none; }

.qm-pdp .qm-pdp__qty .plus,
.qm-pdp .qm-pdp__qty .minus {
    position: static;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 !important;
    font-size: 12px;
    color: var(--qm-gold-1);
    background: rgba(255, 255, 255, .08);
    border-radius: 11px;
    transition: background-color .2s, color .2s;
}

.qm-pdp .qm-pdp__qty .plus:hover,
.qm-pdp .qm-pdp__qty .minus:hover { color: #fff; background: rgba(255, 255, 255, .16); }

.qm-pdp .qm-pdp__cart.cart-button {
    flex: 1;
    height: 56px;
    margin: 0;
    padding: 0;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--qp-dark-1);
    background: linear-gradient(180deg, #f6e3c8 0%, #e2c19c 45%, #c79a72 100%) !important;
    border: 0;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -3px 8px rgba(107, 62, 46, .3), 0 18px 34px -16px rgba(226, 193, 156, .55);
    transition: filter .25s, transform .25s var(--qm-ease);
}

.qm-pdp .qm-pdp__cart.cart-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.qm-pdp .qm-pdp__cart .add-to-cart { display: inline-flex; align-items: center; gap: 8px; color: var(--qp-dark-1); text-shadow: 0 1px 0 rgba(255, 255, 255, .45); white-space: nowrap; }
.qm-pdp .qm-pdp__cart .added { color: #fff; }
.qm-pdp .qm-pdp__cart .added { white-space: nowrap; }
.qm-pdp .qm-pdp__cart .cart_icon,
.qm-pdp .qm-pdp__cart .cart_boxes { color: var(--qp-dark-2); }
.qm-pdp .qm-pdp__cart .loading { position: absolute; inset: 0; display: grid; place-items: center; }

.qm-pdp .qm-pdp__cart.cart-button.loading,
.qm-pdp .qm-pdp__cart.cart-button.added_succ,
.qm-pdp .qm-pdp__cart.add_to_cart.active { color: #fff; background: linear-gradient(180deg, #6b3e2e, #3a2219) !important; }
.qm-pdp .qm-pdp__cart.added_succ .cart_icon,
.qm-pdp .qm-pdp__cart.added_succ .cart_boxes { color: var(--qm-gold-1); }

/* ----- Trust + share ----- */

.qm-pdp__trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 24px 0 0;
    padding: 18px 0 0;
    list-style: none;
    border-top: 1px solid var(--qp-gold-line);
}

.qm-pdp__trust li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--qp-on-dark);
    text-align: center;
}

.qm-pdp__trust i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    color: var(--qm-gold-2);
    background: rgba(226, 193, 156, .1);
    border: 1px solid rgba(226, 193, 156, .28);
    border-radius: 50%;
}

.qm-pdp__trust li.is-off i { color: #ffb4a8; border-color: rgba(255, 140, 120, .3); background: rgba(192, 57, 43, .12); }

.qm-pdp__share { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12.5px; color: var(--qp-on-dark-dim); }
.qm-pdp__share span { margin-inline-end: auto; }

.qm-pdp__share a {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 15px;
    color: var(--qm-gold-1) !important;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--qp-gold-line);
    border-radius: 50%;
    transition: background-color .2s, color .2s;
}

.qm-pdp__share a:hover { color: #fff !important; background: rgba(255, 255, 255, .16); }
.qm-pdp__share a.is-copied { color: var(--qp-dark-1) !important; background: var(--qm-gold-2); }

/* --------------------------------------------------------------------------
   3. Details tabs + designer spotlight
   -------------------------------------------------------------------------- */

.qm-pdp__more {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 24px;
    margin-top: clamp(40px, 5vw, 64px);
    scroll-margin-top: 160px;
}

.qm-pdp__tabs {
    padding: 8px 30px 28px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--qp-card);
}

.qm-pdp__tablist { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 22px; border-bottom: 1px solid var(--qp-line); scrollbar-width: none; }
.qm-pdp__tablist::-webkit-scrollbar { display: none; }

.qm-pdp__tab {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 6px 16px;
    margin-inline-end: 18px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--qp-muted);
    background: none;
    border: 0;
    transition: color .2s;
}

.qm-pdp__tab::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--qm-gloss-gold);
    transform: scaleX(0);
    transition: transform .35s var(--qm-ease);
}

.qm-pdp__tab:hover { color: var(--qm-ink); }
.qm-pdp__tab.is-active { color: var(--qm-ink); }
.qm-pdp__tab.is-active::after { transform: scaleX(1); }

.qm-pdp__tab small {
    min-width: 22px;
    padding: 1px 7px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--qm-brown);
    background: #f6ede4;
    border-radius: 999px;
}

.qm-pdp__tabpanel.is-active { animation: qp-fade .35s var(--qm-ease); }

@keyframes qp-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.qm-pdp__desc { font-size: 15px; line-height: 2; color: var(--qp-text); }
.qm-pdp__desc p:last-child { margin-bottom: 0; }
.qm-pdp__muted { color: var(--qp-muted); }

.qm-pdp__policies { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.qm-pdp__policies li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 14.5px;
    font-weight: 700;
    background: #faf5f0;
    border-radius: 14px;
}

.qm-pdp__policies i { display: grid; place-items: center; width: 34px; height: 34px; font-size: 14px; background: #fff; border-radius: 50%; box-shadow: 0 6px 14px -10px rgba(58, 34, 25, .6); }
.qm-pdp__policies .is-ok i { color: #2e8b57; }
.qm-pdp__policies .is-off i { color: #b0453a; }
.qm-pdp__policies a { margin-inline-start: auto; font-size: 13px; font-weight: 600; color: var(--qm-brown); text-decoration: underline; text-underline-offset: 3px; }

.qm-pdp__reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.qm-pdp__score { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; }
.qm-pdp__score > b { font-size: 34px; font-weight: 800; line-height: 1; color: var(--qm-ink); }

.qm-pdp__review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--qm-brown) !important;
    background: #fff;
    border: 1px solid #e3d3c3;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .25s, background-color .25s;
}

.qm-pdp__review-btn:hover { background: #fcf8f4; border-color: var(--qm-gold-3); }
.qm-pdp__tabs .reviews { margin-top: 12px; }

.qm-pdp__empty { display: grid; place-items: center; gap: 6px; padding: 28px 0 8px; color: var(--qp-muted); text-align: center; }
.qm-pdp__empty i { font-size: 30px; color: var(--qm-gold-3); }
.qm-pdp__empty p { margin: 0; font-size: 14.5px; font-weight: 600; }

/* ----- Designer spotlight ----- */

.qm-pdp__designer {
    position: sticky;
    top: 150px;
    overflow: hidden;
    isolation: isolate;
    padding: 30px 24px 26px;
    text-align: center;
    background:
        radial-gradient(260px 180px at 50% 0, rgba(226, 193, 156, .45), transparent 70%),
        linear-gradient(180deg, #fffaf5 0%, #f6ece2 100%);
    border: 1px solid rgba(161, 120, 92, .18);
    border-radius: 24px;
    box-shadow: var(--qp-card);
}

/* arch outline around the medallion */
.qm-pdp__designer::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 50%;
    z-index: -1;
    width: 150px;
    height: 170px;
    border: 1px solid rgba(199, 154, 114, .45);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    transform: translateX(-50%);
}

.qm-pdp__designer-eyebrow { display: block; margin-bottom: 18px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--qm-gold-4); }

.qm-pdp__medallion {
    width: 104px;
    height: 104px;
    margin: 0 auto 16px;
    padding: 4px;
    border-radius: 50%;
    background: var(--qm-gloss-gold);
    box-shadow: 0 18px 34px -18px rgba(107, 62, 46, .8);
}

.qm-pdp__medallion img { display: block; width: 100%; height: 100%; border: 3px solid #fff; border-radius: 50%; object-fit: cover; background: #fff; }

.qm-pdp__designer h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--qm-ink); }
.qm-pdp__designer-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 0 0 20px; font-size: 13px; color: var(--qp-muted); }
.qm-pdp__designer-meta i { font-size: 11px; color: #f4b400; }

.qm-pdp__designer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    font-size: 14.5px;
    font-weight: 800;
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(58, 34, 25, .35);
    background: var(--qm-gloss-gold);
    border-radius: 14px;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 26px -14px rgba(107, 62, 46, .8);
    transition: filter .25s, transform .25s var(--qm-ease);
}

.qm-pdp__designer-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.qm-pdp__designer-cta i { font-size: 12px; }

/* --------------------------------------------------------------------------
   4. Similar products (cards from sections-premium.css)
   -------------------------------------------------------------------------- */

.qm-pdp .qimma_sec { padding-top: 52px; }

/* --------------------------------------------------------------------------
   5. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .qm-pdp__showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .qm-pdp__gallery { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
    .qm-pdp__thumb { width: 70px; }
    .qm-pdp__more { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 991px) {
    .qm-pdp__showcase,
    .qm-pdp__more { grid-template-columns: 1fr; }
    /* relative, not static: the panel's absolute glow must stay inside its overflow clip */
    .qm-pdp__panel, .qm-pdp__designer { position: relative; top: auto; }
    .qm-pdp__panel { margin-top: 0; }
    .qm-pdp__gallery { grid-template-columns: 1fr; }
    .qm-pdp__thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; }
    .qm-pdp__thumb { width: 64px; }
    .qm-pdp__nav { display: none; }
    .qm-pdp__slide { max-height: none; }
}

@media (max-width: 575px) {
    .qm-pdp__gallery { padding-top: 18px; }
    .qm-pdp__stage::before { inset: -18px 12% 40%; }
    .qm-pdp__track { border-radius: 22px; }
    .qm-pdp__panel { padding: 24px 18px 20px; border-radius: 22px; }
    .qm-pdp__buy { gap: 8px; }
    .qm-pdp .qm-pdp__qty { width: 116px; }
    .qm-pdp__trust li { font-size: 11px; }
    .qm-pdp__tabs { padding: 4px 18px 22px; border-radius: 20px; }
    .qm-pdp__tab { margin-inline-end: 8px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .qm-pdp *,
    .qm-pdp *::before,
    .qm-pdp *::after { animation: none !important; transition: none !important; }
    .qm-pdp__track { scroll-behavior: auto; }
}
