/* ==========================================================================
   Phase 8 — Engagement features (wishlist, reviews, stock notifications)

   Tokens (mirrored from style.css):
     • Champagne gold     #C9A961
     • Soft gold accent   #A88848
     • Ink                #1A1A1B
     • Bone               #FAFAF7
     • Mist               #E8E6E0
     • Whisper            #888880
     • Crimson hint       #9C2B23
     • Forest hint        #2D7A45
   ========================================================================== */

/* ── Wishlist heart on product card ───────────────────────────────────── */
.product-card-image {
    position: relative;
}

.product-card-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(232, 230, 224, 0.85);
    border-radius: 50%;
    color: #888880;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
                color 240ms cubic-bezier(0.22, 1, 0.36, 1),
                background-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.product-card-heart:hover,
.product-card-heart:focus-visible {
    color: #C9A961;
    border-color: rgba(201, 169, 97, 0.4);
    background: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .product-card-heart:hover {
        transform: translateY(-1px) scale(1.03);
    }
}

.product-card-heart.is-active {
    color: #C9A961;
    background: #fff;
    border-color: rgba(201, 169, 97, 0.6);
}

.product-card-heart.is-active .product-card-heart-icon {
    fill: #C9A961;
    stroke: #C9A961;
}

.product-card-heart.is-pulsing {
    animation: amc-heart-pulse 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes amc-heart-pulse {
    0%   { transform: scale(1); }
    34%  { transform: scale(.94); }
    68%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ───────────────────────────────────────────────────────────────────────────
 * Wishlist heart "favoriting" animation — Package D.
 *
 * Three-phase bloom on add (640 ms total):
 *   • 0–80 ms     press-in    1 → 0.85   (sharp ease-in)
 *   • 80–360 ms   bloom       0.85 → 1.18 (overshoot via keyframe shape)
 *   • 360–640 ms  settle      1.18 → 1.0  (smooth deceleration)
 *
 * A single radiating ring (::after) expands from the heart centre during
 * the bloom phase, fading to zero opacity by the time the heart settles.
 * Disciplined: ONE ring, no confetti, no multiple sparkles — premium
 * brands earn the polish through restraint, not abundance.
 *
 * Removing from wishlist runs a quieter reverse (320 ms, no ring,
 * shallower scale) — un-favoriting should feel calmer than
 * favouriting. Pulling back, not celebrating.
 *
 * Triggered by the centralised flipWishlistButton/animation handler
 * in phase8.js, which adds `.is-favoriting` or `.is-unfavoriting` on
 * the [data-wishlist-toggle] element and removes the class on
 * `animationend` so the next tap can replay cleanly.
 * ─────────────────────────────────────────────────────────────────────── */

/* Anchor for the radiating ring pseudo on every wishlist toggle EXCEPT
 * .product-card-heart — that one already has `position: absolute` (it
 * overlays the catalog product image at top-right via offset:12px,12px).
 * A blanket `position: relative` here would override the absolute and
 * collapse the heart back into the document flow — the regression that
 * floated it mid-card. The :not() exclusion preserves the catalog
 * card layout while keeping the ring anchored on every other surface
 * (PDP detail button, header heart, wishlist page tile, …). */
[data-wishlist-toggle]:not(.product-card-heart) {
    position: relative;
}

[data-wishlist-toggle].is-favoriting {
    animation: amc-heart-favorite 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
[data-wishlist-toggle].is-favoriting::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border: 1.5px solid #C9A961;
    border-radius: 50%;
    opacity: 0.4;
    transform: translate(-50%, -50%);
    animation: amc-heart-ring 420ms 90ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
    box-sizing: border-box;
}

[data-wishlist-toggle].is-unfavoriting {
    animation: amc-heart-unfavorite 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes amc-heart-favorite {
    0%   { transform: scale(1); }
    16%  { transform: scale(0.94); }
    58%  { transform: scale(1.06); }
    100% { transform: scale(1.0); }
}

@keyframes amc-heart-ring {
    0%   { width: 0; height: 0; opacity: 0.4; }
    100% { width: 56px; height: 56px; opacity: 0; }
}

@keyframes amc-heart-unfavorite {
    0%   { transform: scale(1); }
    46%  { transform: scale(0.96); }
    100% { transform: scale(1.0); }
}

@media (prefers-reduced-motion: reduce) {
    [data-wishlist-toggle].is-favoriting,
    [data-wishlist-toggle].is-unfavoriting {
        animation: none;
    }
    [data-wishlist-toggle].is-favoriting::after { display: none; }
}

.product-card-heart-icon {
    pointer-events: none;
    transition: fill 240ms cubic-bezier(0.22, 1, 0.36, 1), stroke 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Catalog rating row ───────────────────────────────────────────────── */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #1A1A1B;
}

.product-card-stars {
    display: inline-flex;
    gap: 1px;
    color: rgba(26, 26, 27, 0.18);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.product-card-stars .star.is-full {
    color: #C9A961;
}

.product-card-stars .star.is-half {
    color: #C9A961;
    background: linear-gradient(90deg, #C9A961 50%, rgba(26, 26, 27, 0.18) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card-rating-text {
    font-size: 12px;
    color: #1A1A1B;
}

.product-card-rating-count {
    color: #888880;
    margin-left: 2px;
}

/* ── Wishlist on product detail page ──────────────────────────────────── */
.product-detail-wishlist {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: transparent;
    border: 1px solid rgba(26, 26, 27, 0.14);
    color: #1A1A1B;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 260ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
                background-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 44px;
}

.product-detail-wishlist:hover,
.product-detail-wishlist:focus-visible {
    color: #C9A961;
    border-color: rgba(201, 169, 97, 0.45);
    transform: translateY(-1px);
}

.product-detail-wishlist.is-active {
    color: #C9A961;
    border-color: rgba(201, 169, 97, 0.55);
    background: rgba(201, 169, 97, 0.08);
}

.product-detail-wishlist.is-active .product-detail-wishlist-icon {
    fill: #C9A961;
    stroke: #C9A961;
}

/* ── PDP product info column — visual order via CSS `order`
       DOM source order matches visual order so keyboard/AT users get the
       same sequence as sighted users. Order numbers documented below as a
       safety net in case the DOM ever drifts.
       Visual sequence: short-desc → klub block → trust badges → CTA →
       wishlist (CTA + wishlist share .product-cta-row) → stock indicator.
       Mobile ≤768px hides the CTA via the existing [data-pdp-cta] rule —
       the Package D sticky bar takes over. */
.product-info > .klub-cashback-card { order: 1; }
.product-info > .product-trust-block { order: 2; }
.product-info > .product-cta-row { order: 3; }
.product-info > .product-stock { order: 4; }

/* ── Refined product trust block (3 emphasized items, replaces .product-badges)
       Strict 3-column grid at every viewport from 320px upward — never stacks
       vertically. Sits between the AMCKREDIT cashback block and the CTA row.
       Hairline separators above and below. Icons share a vertical baseline;
       labels center-align within their column and may wrap to 2 lines
       (text-wrap: balance for tasteful breaks). */
.product-trust-block {
    list-style: none;
    margin: 12px 0 0;
    padding: 36px 0;
    border-top: 1px solid var(--color-border-gray);
    border-bottom: 1px solid var(--color-border-gray);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
}

.product-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 44px;
    padding: 0 4px;
    text-align: center;
}

.product-trust-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    margin: 0 auto;
}

.product-trust-label {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: #1A1410;
    letter-spacing: 0.005em;
    text-align: center;
    text-wrap: balance;
}

@media (max-width: 1023px) {
    .product-trust-block {
        gap: 20px;
        padding: 32px 0;
    }
    .product-trust-icon { width: 48px; height: 48px; }
    .product-trust-label { font-size: 14px; }
}

@media (max-width: 768px) {
    .product-trust-block {
        gap: 12px;
        padding: 28px 0;
    }
    .product-trust-icon { width: 40px; height: 40px; }
    .product-trust-label { font-size: 13px; }
    .product-trust-item { gap: 12px; padding: 0 2px; }
}

/* ── Related products carousel (single row, manual + auto navigation) ──── */
.related-carousel {
    position: relative;
    margin: 0 -8px;
}

.related-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 8px 18px;
    /* Hide scrollbar */
}

.related-carousel-track::-webkit-scrollbar {
    display: none;
}

.related-carousel-track:focus {
    outline: none;
}

.related-carousel-track:focus-visible {
    outline: 2px solid #C9A961;
    outline-offset: 4px;
}

.related-carousel-slide {
    flex: 0 0 calc((100% - 24px * 3) / 4);
    scroll-snap-align: start;
    min-width: 0;
}

@media (max-width: 1280px) {
    .related-carousel-slide {
        flex-basis: calc((100% - 24px * 2) / 3);
    }
}

@media (max-width: 980px) {
    .related-carousel-slide {
        flex-basis: calc((100% - 24px) / 2);
    }
}

/* Mobile peek-carousel: active card centered in the viewport with symmetric
   neighbor peeks on each side. scroll-padding-inline + padding-inline mirror
   so that even the FIRST and LAST cards can sit centered (without those, the
   first card would flush left and the last card would flush right). */
@media (max-width: 767px) {
    .related-carousel-track {
        --card-width: calc(100vw - 80px);
        gap: 16px;
        padding-inline: calc(50% - var(--card-width) / 2);
        scroll-padding-inline: calc(50% - var(--card-width) / 2);
    }
    .related-carousel-slide {
        flex-basis: var(--card-width);
        scroll-snap-align: center;
    }
}

@media (min-width: 376px) and (max-width: 540px) {
    .related-carousel-track {
        --card-width: calc(100vw - 100px);
    }
}

@media (min-width: 541px) and (max-width: 767px) {
    .related-carousel-track {
        --card-width: 360px;
    }
}

.related-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid rgba(201, 169, 97, 0.45);
    border-radius: 50%;
    color: #C9A961;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(14, 20, 18, 0.08);
    transition: background-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
                color 280ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.related-carousel-arrow:hover,
.related-carousel-arrow:focus-visible {
    background: #C9A961;
    border-color: #C9A961;
    color: #FFFFFF;
    outline: none;
    transform: translateY(-50%) translateY(-1px);
}

.related-carousel-arrow-prev {
    left: -22px;
}

.related-carousel-arrow-next {
    right: -22px;
}

.related-carousel-arrow[hidden] {
    display: none;
}

@media (max-width: 767px) {
    .related-carousel-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .related-carousel-track {
        scroll-behavior: auto;
    }
}

/* ── Stock notify button on out-of-stock detail ───────────────────────── */
.product-stock-notify-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-stock-notify-button.is-subscribed {
    background: rgba(201, 169, 97, 0.14);
    color: #C9A961;
    border: 1px solid rgba(201, 169, 97, 0.6);
}

/* ── Header wishlist icon (next to cart) ──────────────────────────────── */
.wishlist-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #1A1A1B;
    text-decoration: none;
    transition: color 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wishlist-icon:hover { color: #C9A961; transform: translateY(-1px); }

.wishlist-icon-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #C9A961;
    color: #0A0A0B;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    opacity: 0;
    transform: scale(.6);
    transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1), transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wishlist-icon-badge.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ── Account sidebar count badge ──────────────────────────────────────── */
.account-nav-item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-nav-count {
    display: inline-block;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: rgba(201, 169, 97, 0.14);
    color: #A88848;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
}

/* ── Wishlist account page ────────────────────────────────────────────── */
.wishlist-empty,
.reviews-empty-account,
.stock-alerts-empty {
    text-align: center;
    padding: 64px 24px;
    background: #FAFAF7;
    border: 1px solid #E8E6E0;
}

.wishlist-empty-icon,
.stock-alerts-empty-icon {
    color: #C9A961;
    opacity: .7;
    margin: 0 0 18px 0;
}

.wishlist-empty-title,
.stock-alerts-empty-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #1A1A1B;
    margin: 0 0 10px 0;
}

.wishlist-empty-lead,
.stock-alerts-empty-lead {
    max-width: 440px;
    margin: 0 auto 22px auto;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.wishlist-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 22px 0;
}

.wishlist-sort-select {
    border: 1px solid rgba(26, 26, 27, 0.16);
    background: #fff;
    padding: 9px 28px 9px 12px;
    font-size: 13px;
    color: #1A1A1B;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.wishlist-clear-trigger {
    color: #9C2B23;
}

.product-grid-wishlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.product-card-wishlist {
    position: relative;
}

.product-card-saved-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #888880;
    padding: 4px 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(232, 230, 224, 0.6);
    pointer-events: none;
}

.wishlist-remove-form {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    z-index: 3;
}

.wishlist-remove-button {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(232, 230, 224, 0.6);
    border-radius: 50%;
    color: #888880;
    cursor: pointer;
    padding: 0;
    transition: color .2s ease, background .2s ease;
}

.wishlist-remove-button:hover {
    color: #9C2B23;
    background: #fff;
}

/* ── Reviews section on product detail ──────────────────────────────────
   Spacing tuned so end-of-tab-text → VÉLEMÉNYEK eyebrow lands in the
   48–72 px target. Combined with .product-tabs { margin-bottom: 0 } and
   .product-tab-panels { padding-bottom: 32px }, the visible gap reads
   as one continuous editorial flow with the hairline as the hinge. */
.reviews-section {
    margin: 0;
    padding: 32px 0 0 0;
    border-top: 1px solid #E8E6E0;
}

.reviews-header {
    margin: 0 0 32px 0;
}

.reviews-eyebrow {
    margin: 0 0 6px 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A88848;
}

.reviews-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    color: #1A1A1B;
    margin: 0;
}

.reviews-empty {
    text-align: center;
    padding: 56px 24px;
    background: #FAFAF7;
    border: 1px solid #E8E6E0;
}

.reviews-empty-icon {
    color: #C9A961;
    opacity: .7;
    margin: 0 0 16px 0;
}

.reviews-empty-lead {
    max-width: 420px;
    margin: 0 auto 22px auto;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.reviews-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 768px) {
    .reviews-grid { grid-template-columns: 1fr; gap: 32px; }
}

.reviews-summary {
    background: #FAFAF7;
    padding: 28px;
    border: 1px solid #E8E6E0;
    position: sticky;
    top: 28px;
}

.reviews-summary-average {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 6px 0;
}

.reviews-summary-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 44px;
    font-weight: 500;
    color: #1A1A1B;
    line-height: 1;
}

.reviews-summary-stars {
    color: rgba(26, 26, 27, 0.18);
    font-size: 18px;
    letter-spacing: 0.05em;
    line-height: 1;
}

.reviews-summary-stars .star.is-full {
    color: #C9A961;
}

.reviews-summary-stars .star.is-half {
    color: #C9A961;
    background: linear-gradient(90deg, #C9A961 50%, rgba(26, 26, 27, 0.18) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reviews-summary-meta {
    margin: 0 0 22px 0;
    font-size: 12px;
    color: #888880;
}

.reviews-distribution {
    list-style: none;
    margin: 0 0 22px 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.reviews-distribution-row {
    display: grid;
    grid-template-columns: 24px 1fr 32px;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #888880;
}

.reviews-distribution-bar {
    display: block;
    height: 6px;
    background: rgba(26, 26, 27, 0.06);
    overflow: hidden;
}

.reviews-distribution-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #C9A961, #A88848);
    transform-origin: left center;
    transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1), opacity 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reviews-distribution-count {
    text-align: right;
    color: #1A1A1B;
}

.reviews-summary-cta {
    width: 100%;
    margin: 14px 0 0 0;
}

.reviews-summary-own-status {
    margin: 18px 0 0 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #E8E6E0;
    font-size: 12px;
    color: #1A1A1B;
}

.reviews-summary-own-status-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 10px;
}

.status-pending  { background: #FFF7E6; color: #A88848; }
.status-approved { background: #E6F4EA; color: #2D7A45; }
.status-rejected { background: #FCEAE9; color: #9C2B23; }
.status-hidden   { background: #F3F3F0; color: #666; }
.status-sent     { background: #E6F4EA; color: #2D7A45; }
.status-available { background: rgba(201, 169, 97, 0.14); color: #A88848; }

/* ── Reviews list ─────────────────────────────────────────────────────── */
.reviews-sort-form {
    margin: 0 0 22px 0;
    text-align: right;
}

.reviews-sort-select {
    border: 1px solid rgba(26, 26, 27, 0.16);
    background: #fff;
    padding: 9px 28px 9px 12px;
    font-size: 13px;
    color: #1A1A1B;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.reviews-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.review-card {
    padding: 0 0 28px 0;
    border-bottom: 1px solid #E8E6E0;
}

.review-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-card-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 8px 0;
}

.review-card-stars {
    color: rgba(26, 26, 27, 0.18);
    font-size: 14px;
    letter-spacing: 0.05em;
}

.review-card-stars .star.is-full,
.review-account-stars .star.is-full {
    color: #C9A961;
}

.review-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: #1A1A1B;
    margin: 0;
    line-height: 1.3;
}

.review-card-author {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #888880;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.review-card-author > span:first-child {
    color: #1A1A1B;
    font-weight: 500;
}

.review-card-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2D7A45;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.review-card-date {
    font-size: 11px;
    color: #888880;
}

.review-card-body {
    font-size: 14px;
    line-height: 1.6;
    color: #1A1A1B;
    margin: 0;
}

.reviews-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 32px 0 0 0;
}

.reviews-pagination-info {
    font-size: 12px;
    color: #888880;
}

/* ── Account reviews list ─────────────────────────────────────────────── */
.account-filter-pills {
    display: flex;
    gap: 8px;
    margin: 0 0 24px 0;
    flex-wrap: wrap;
}

.account-filter-pill {
    display: inline-block;
    padding: 7px 14px;
    font-size: 12px;
    color: #888880;
    text-decoration: none;
    border: 1px solid #E8E6E0;
    background: #fff;
    transition: color 240ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
                background-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 14px;
}

.account-filter-pill:hover {
    color: #1A1A1B;
    border-color: rgba(26, 26, 27, 0.3);
    transform: translateY(-1px);
}

.account-filter-pill.is-active {
    background: #1A1A1B;
    color: #FAFAF7;
    border-color: #1A1A1B;
}

.reviews-list-account {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-account-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #E8E6E0;
}

.review-account-product {
    display: block;
    width: 96px;
    height: 96px;
    overflow: hidden;
    background: #FAFAF7;
}

.review-account-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-account-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    color: #888880;
}

.review-account-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 8px 0;
    flex-wrap: wrap;
}

.review-account-product-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    color: #1A1A1B;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.review-account-product-name:hover {
    border-bottom-color: #C9A961;
}

.review-account-status {
    padding: 3px 10px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.review-account-stars {
    color: rgba(26, 26, 27, 0.18);
    font-size: 14px;
    letter-spacing: 0.05em;
    margin: 0 0 6px 0;
    display: inline-block;
}

.review-account-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    color: #1A1A1B;
    margin: 0 0 6px 0;
}

.review-account-text {
    font-size: 13px;
    line-height: 1.55;
    color: #1A1A1B;
    margin: 0 0 10px 0;
}

.review-account-meta {
    margin: 0 0 12px 0;
    font-size: 11px;
    color: #888880;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.review-account-admin-note {
    color: #9C2B23;
    font-style: italic;
}

.review-account-actions {
    display: flex;
    gap: 12px;
}

/* ── Stock alerts account page ────────────────────────────────────────── */
.stock-alerts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stock-alert-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #E8E6E0;
}

.stock-alert-product {
    display: block;
    width: 80px;
    height: 80px;
    overflow: hidden;
    background: #FAFAF7;
}

.stock-alert-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stock-alert-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    color: #888880;
}

.stock-alert-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    color: #1A1A1B;
    text-decoration: none;
    margin: 0 0 4px 0;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.stock-alert-name:hover {
    border-bottom-color: #C9A961;
}

.stock-alert-price {
    font-size: 14px;
    color: #1A1A1B;
    margin: 0 0 6px 0;
}

.stock-alert-status {
    margin: 0;
    font-size: 12px;
}

.stock-alert-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* ── Modal overlay (review modal + clear-wishlist confirm) ────────────── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), visibility 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 11, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(10, 10, 11, 0.18);
    transform: translateY(10px) scale(.98);
    transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card-wide {
    max-width: 580px;
}

.modal.is-open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-eyebrow {
    margin: 0 0 6px 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A88848;
}

.modal-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #1A1A1B;
    margin: 0 0 14px 0;
    line-height: 1.25;
}

.modal-lead {
    margin: 0 0 22px 0;
    font-size: 14px;
    line-height: 1.55;
    color: #555;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    color: #888880;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-close:hover { color: #1A1A1B; transform: rotate(90deg); }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 22px 0 0 0;
    flex-wrap: wrap;
}

/* ── Review submission form ───────────────────────────────────────────── */
.review-form-rating {
    border: 0;
    margin: 0 0 22px 0;
    padding: 0;
}

.review-form-label {
    display: block;
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #1A1A1B;
}

.review-rating-input {
    display: flex;
    gap: 6px;
}

.review-rating-star {
    background: transparent;
    border: 0;
    padding: 4px;
    font-size: 32px;
    line-height: 1;
    color: rgba(26, 26, 27, 0.16);
    cursor: pointer;
    transition: color 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.review-rating-star:hover,
.review-rating-star.is-active {
    color: #C9A961;
}

.review-rating-star:hover {
    transform: translateY(-1px) scale(1.03);
}

.review-rating-error,
.review-form-error {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #9C2B23;
}

.review-form-meta {
    margin: 6px 0 0 0;
    font-size: 11px;
    color: #888880;
    text-align: right;
}

.review-form-helper {
    margin: 0 0 0 0;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.55;
    color: #888880;
    background: #FAFAF7;
    border-left: 3px solid #C9A961;
}

.form-group {
    margin: 0 0 18px 0;
}

.form-input {
    width: 100%;
    padding: 11px 13px;
    font-size: 14px;
    font-family: inherit;
    color: #1A1A1B;
    background: #fff;
    border: 1px solid rgba(26, 26, 27, 0.16);
    transition: border-color 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.form-input:focus {
    outline: 0;
    border-color: #C9A961;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

/* ── Auth context note (login + register pages) ───────────────────────── */
.auth-context-note {
    margin: 0 0 22px 0;
    padding: 12px 14px;
    background: #FAFAF7;
    border-left: 3px solid #C9A961;
}

.auth-context-note p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #1A1A1B;
}

/* Invalid / inactive referral code variant — neutral rather than
 * welcoming. The customer arrived via a real link, but the inviter's
 * code is no longer usable; we still let them register, just without
 * any reward attribution. Border shifts from champagne to the warm
 * beige hairline so the row reads as informational, not promotional. */
.auth-referral-note--invalid {
    border-left-color: #E8E2D5;
    background: #F2EDE3;
}
.auth-referral-note--invalid p {
    color: #1A1A1B;
    opacity: 0.78;
}

/* ── Toast (post-action feedback) ─────────────────────────────────────── */
.amc-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 18px);
    padding: 12px 22px;
    background: #1A1A1B;
    color: #FAFAF7;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 16px 40px rgba(10, 10, 11, 0.32);
    z-index: 9500;
    opacity: 0;
    transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.amc-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.amc-toast.is-error {
    background: #9C2B23;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .reviews-section {
        margin-top: 0;
        padding-top: 24px;
    }

    .reviews-title {
        font-size: 24px;
    }

    .reviews-summary {
        position: static;
        padding: 22px;
    }

    .reviews-summary-number {
        font-size: 36px;
    }

    .product-card-heart {
        top: 8px;
        right: 8px;
    }

    .review-account-card,
    .stock-alert-card {
        grid-template-columns: 1fr;
    }

    .review-account-product,
    .stock-alert-product {
        width: 100%;
        height: 180px;
    }
}
