/* Ariana Nila: page stylesheet for product pages (is_product).
   Loaded on those pages only, straight after style.css (inc/page-styles.php).
   Every rule here came out of style.css unchanged and keeps its original
   order. A "copy of style.css" rule repeats a style.css rule that followed
   the one before it there, so it still wins now that this file loads later;
   tests/Unit/PageStyles/PageStylesTest.php keeps each copy identical. */

.an-prod-card--small .an-prod-card__name { font-size: 13px; }

.an-prod-card--small .an-prod-card__price { font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   PDP PAGE
   ═══════════════════════════════════════════════════════════ */

.an-pdp {
    padding-bottom: 80px;
}

.an-pdp__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    padding-top: 24px;
}

/* ─── Gallery ──────────────────────────────── */
.an-pdp__gallery {
    position: sticky;
    top: calc(var(--topbar-h, 36px) + var(--an-header-h, 68px) + 24px);
    /* Grid items default to min-width:auto, so a wide thumbnail strip
       (7+ images) inflates the 1fr column past the viewport on mobile. */
    min-width: 0;
}

.an-pdp__gallery-main {
    position: relative;
    background: var(--an-cream);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-pdp__main-img {
    /* Absolutely fill the aspect-ratio box. iOS Safari mis-computes
       height:100% on a flex child inside an aspect-ratio container,
       letting the image overflow to its natural (taller) ratio —
       which looks fine in desktop devtools emulation but breaks on
       real devices. Absolute positioning removes that dependency. */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* --an-focus-y is set inline on .an-pdp__gallery-main from the product's
       "Gallery Image Focus" field (0% = top of photo … 100% = bottom). */
    object-position: 50% var(--an-focus-y, 50%);
    display: block;
    transition: opacity 0.2s ease;
}

.an-pdp__main-img--loading { opacity: 0.5; }

.an-pdp__no-image {
    width: 100%;
    height: 100%;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--an-serif);
    font-size: 80px;
    color: rgba(0,0,0,0.1);
    font-weight: 300;
}

.an-pdp__no-image::after {
    content: "Image coming soon";
    font-family: var(--an-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(63,74,60,0.52);
}

.an-pdp__stock-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--an-sans);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 1px;
    background: var(--an-black);
    color: #fff;
}

.an-pdp__stock-badge--ready-to-ship { background: #2d7a4a; }

.an-pdp__stock-badge--limited-stock  { background: var(--an-gold-dark); }

.an-pdp__stock-badge--made-to-order  { background: var(--an-black); }

/* ── PDP gallery — zoom cursor ─── */
.an-pdp__gallery-main { cursor: zoom-in; }

/* ── PDP gallery — prev/next arrows on the main image ─── */
.an-pdp__gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(246, 241, 235, 0.85);
    border: none;
    border-radius: 50%;
    color: var(--an-black);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.an-pdp__gallery-nav--prev { left: 14px; }

.an-pdp__gallery-nav--next { right: 14px; }

.an-pdp__gallery-nav svg { width: 20px; height: 20px; }

.an-pdp__gallery-main:hover .an-pdp__gallery-nav,
.an-pdp__gallery-nav:focus-visible { opacity: 1; }

.an-pdp__gallery-nav:hover { background: var(--an-cream); }

@media (hover: none) {
    .an-pdp__gallery-nav { opacity: 1; }
}

/* ── PDP name row (title + wishlist heart) ─── */
.an-pdp__name-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.an-pdp__name-row .an-pdp__name { flex: 1; }

/* ── Wishlist button on PDP (inline, not absolute) ─── */
.an-wishlist-btn--pdp {
    position: static;
    flex-shrink: 0;
    background: none;
    margin-top: 6px;
    width: 36px;
    height: 36px;
}

.an-wishlist-btn--pdp svg {
    width: 20px;
    height: 20px;
}

/* ── Video thumbnail + play icon ─── */
.an-pdp__thumb--video {
    position: relative;
}

.an-pdp__thumb--video img {
    filter: brightness(0.7);
}

.an-pdp__play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}

.an-pdp__play-icon svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* ── PDP video iframe embed ─── */
.an-pdp__video-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* ── Lightbox ─── */
.an-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.an-lightbox.is-open { display: flex; }

.an-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.an-lightbox__img-wrap {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.an-lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 1px;
}

.an-lightbox__close,
.an-lightbox__prev,
.an-lightbox__next {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
}

.an-lightbox__close:hover,
.an-lightbox__prev:hover,
.an-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.22);
}

.an-lightbox__close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 0;
}

.an-lightbox__close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.an-lightbox__prev,
.an-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 32px;
    font-weight: 200;
    line-height: 1;
}

.an-lightbox__prev { left: 20px; }

.an-lightbox__next { right: 20px; }

@media (max-width: 600px) {
    .an-lightbox__prev { left: 8px; }

    .an-lightbox__next { right: 8px; }
}

.an-pdp__gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    /* fit-content + auto margins = centered when thumbs fit, but the first
       thumb stays reachable when they overflow (justify-content:center
       clips the left edge of a scroll container). */
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    flex-wrap: nowrap;
}

.an-pdp__gallery-thumbs::-webkit-scrollbar { display: none; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-pdp__thumb {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 1px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--an-cream);
    transition: border-color 0.2s;
}

/* ─── Info ─────────────────────────────────── */
.an-pdp__info {
    min-width: 0;
}

.an-pdp__appointment-card {
    padding: 28px;
    border: 1px solid rgba(63, 74, 60, 0.16);
    background: rgba(246, 241, 235, 0.72);
}

.an-pdp__appointment-card .an-pdp__name {
    margin-top: 8px;
}

.an-pdp__breadcrumb {
    font-family: var(--an-sans);
    font-size: 11px;
    color: var(--an-charcoal);
    color: color-mix(in srgb, var(--an-charcoal) 86%, #000);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.an-pdp__breadcrumb a {
    color: var(--an-charcoal);
    color: color-mix(in srgb, var(--an-charcoal) 86%, #000);
    text-decoration: none;
}

.an-pdp__breadcrumb a:hover { color: var(--an-black); }

.an-pdp__breadcrumb span { color: var(--an-grey-light); font-size: 10px; }

.an-pdp__name {
    font-family: var(--an-serif);
    font-size: clamp(24px, 3vw, 38px);
    font-style: italic;
    font-weight: 300;
    line-height: 1.15;
    margin: 0 0 20px;
}

/* ─── Price ─────────────────────────────────── */
.an-pdp__price-area {
    margin-bottom: 24px;
}

.an-pdp__price-current {
    font-family: var(--an-sans);
    font-size: 28px;
    font-weight: 400;
    color: var(--an-black);
}

.an-pdp__offer-badge {
    background: var(--an-cream);
    border: 1px solid rgba(var(--an-gold-rgb), 0.3);
    border-radius: 1px;
    padding: 16px 20px;
}

.an-pdp__offer-label {
    font-family: var(--an-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--an-gold-text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.an-pdp__offer-hint {
    font-family: var(--an-sans);
    font-size: 12px;
    color: var(--an-charcoal);
    color: color-mix(in srgb, var(--an-charcoal) 86%, #000);
    margin: 0;
}

/* ─── Sections (variants, personalise, etc.) ── */
.an-pdp__section {
    padding: 20px 0;
    /*border-top: 1px solid rgba(0,0,0,0.07);*/
}

/*.an-pdp__option-group {*/
/*    margin-top: 18px;*/
/*}*/

/*.an-pdp__option-group + .an-pdp__option-group {*/
/*    margin-top: 24px;*/
/*}*/

.an-pdp__option-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.an-pdp__option-group-head h3 {
    font-family: var(--an-serif);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--an-black);
    margin: 0;
}

.an-pdp__option-kicker {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--an-dark);
    color: #fff;
    font-family: var(--an-sans);
    font-size: 10px;
    letter-spacing: 0.04em;
}

.an-pdp__option-grid,
.an-pdp__addon-stack {
    display: grid;
    gap: 12px;
}

.an-pdp__option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.an-pdp__option-card {
    padding: 16px;
    /*border: 1px solid rgba(42, 38, 35, 0.12);*/
    border-radius: 1px;
    background: #fafafa;
    /*box-shadow: 0 10px 24px rgba(42, 38, 35, 0.04);*/
}

.an-pdp__option-card + .an-pdp__option-card {
    margin-top: 12px;
}

.an-pdp__option-grid .an-pdp__option-card + .an-pdp__option-card,
.an-pdp__addon-stack .an-pdp__option-card + .an-pdp__option-card {
    margin-top: 0;
}

.an-pdp__section-label {
    font-family: var(--an-sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--an-dark);
}

/* Variant swatches */
.an-pdp__variant-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.an-pdp__metal-swatches,
.an-pdp__shape-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.an-pdp__variant-btn {
    font-family: var(--an-sans);
    font-size: 12px;
    padding: 8px 14px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 1px;
    background: #f6f6f6;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.an-pdp__variant-btn small {
    font-size: 10px;
    color: var(--an-gold);
}

.an-pdp__variant-btn:hover {
    border-color: var(--an-black);
}

.an-pdp__variant-btn.is-selected {
    border-color: var(--an-black);
    background: var(--an-black);
    color: #fff;
}

.an-pdp__variant-btn.is-selected small { color: var(--an-gold); }

.an-pdp__variant-btn.is-unavailable {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.an-pdp__variant-btn.is-unavailable::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(0,0,0,.12) 4px,
        rgba(0,0,0,.12) 5px
    );
    border-radius: inherit;
}

/* Select dropdowns */
.an-pdp__select {
    width: 100%;
    font-family: var(--an-sans);
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--an-dark);
    padding: 14px 44px 14px 20px;
    border: 1.5px solid var(--an-border, #e0ddd8);
    border-radius: 1px;
    background: #f6f6f6;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b37c67' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

.an-pdp__select:hover,
.an-pdp__select:focus {
    border-color: var(--an-dark);
    outline: none;
}

.an-pdp__size-guide {
    font-family: var(--an-sans);
    font-size: 11px;
    color: var(--an-gold);
    text-decoration: underline;
    margin-top: 6px;
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* ── Size Guide Popup ─────────────────────── */
.an-size-guide-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.an-size-guide-popup.is-open { display: flex; }

.an-size-guide-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.an-size-guide-popup__panel {
    position: relative;
    background: #f6f6f6;
    border-radius: 1px;
    max-width: 560px;
    width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 28px 28px;
    z-index: 1;
}

.an-size-guide-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--an-black);
    line-height: 1;
}

.an-size-guide-popup__title {
    font-family: var(--an-serif);
    font-size: 22px;
    font-style: italic;
    font-weight: 300;
    margin: 0 0 18px;
}

.an-size-guide-popup table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--an-sans);
    font-size: 13px;
}

.an-size-guide-popup th {
    background: var(--an-off-white);
    padding: 8px 10px;
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid var(--an-grey-light);
}

.an-size-guide-popup td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.an-size-guide-popup p {
    font-family: var(--an-sans);
    font-size: 12px;
    color: var(--an-grey);
    margin: 14px 0 0;
}

/* Personalisation */
.an-pdp__sub-label {
    font-family: var(--an-sans);
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 10px;
    color: var(--an-dark);
}

.an-pdp__personalise-row {
    padding: 16px;
    border-top: 1px solid rgba(42, 38, 35, 0.12);
}

.an-pdp__personalise-row:first-child { border-top: 1px solid rgba(42, 38, 35, 0.12); }

.an-pdp__toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--an-sans);
    font-size: 14px;
    justify-content: space-between;
}

.an-pdp__toggle-label > span {
    flex: 1;
}

.an-pdp__toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--an-black);
    cursor: pointer;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-pdp__addon-price {
    font-size: 12px;
    color: var(--an-gold);
    font-weight: 500;
    margin-left: 6px;
}

.an-pdp__addon-description {
    font-family: var(--an-sans);
    font-size: 12px;
    color: var(--an-grey);
    margin: 2px 0 10px;
    line-height: 1.5;
}

.an-pdp__custom-addon-head {
    margin-bottom: 10px;
}

.an-pdp__custom-addon-head .an-pdp__section-label {
    margin-bottom: 0;
}

.an-pdp__custom-addon-select {
    margin-top: 2px;
}

.an-pdp__custom-addon-textwrap {
    margin-top: 12px;
}

.an-pdp__custom-addon-textwrap .an-pdp__field-hint {
    margin-top: 6px;
}

/* Multi-field options ("Two Rings" → two name boxes) stack their inputs. */
.an-pdp__custom-addon-textwrap .an-pdp__custom-addon-textinput + .an-pdp__custom-addon-textinput {
    margin-top: 8px;
}

.an-pdp__conditional-field {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(42, 38, 35, 0.08);
}

.an-pdp__text-input {
    width: 100%;
    font-family: var(--an-sans);
    font-size: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 1px;
    box-sizing: border-box;
    background: #f6f6f6;
}

/* ── Locket dual upload layout ────────────── */
.an-pdp__locket-uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.an-pdp__upload-half .an-pdp__engraving-placement-label {
    font-size: 12px;
    margin-bottom: 6px;
}

@media (max-width: 480px) {
    .an-pdp__locket-uploads { grid-template-columns: 1fr; }
}

.an-pdp__field-hint {
    font-size: 11px;
    color: var(--an-grey-light);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.an-pdp__char-counter {
    font-variant-numeric: tabular-nums;
    transition: color 0.2s;
}

.an-pdp__char-counter--near { color: var(--an-grey); }

.an-pdp__char-counter--full { color: #c0392b; font-weight: 600; }

/* Required marker on custom add-on labels */
.an-pdp__required-mark {
    color: var(--an-gold-dark);
    font-weight: 600;
    margin-left: 1px;
}

/* Upload zone */
.an-pdp__upload-zone {
    border: 1.5px dashed rgba(42, 38, 35, 0.2);
    border-radius: 1px;
    padding: 24px 18px;
    text-align: center;
    background: #f6f6f6;
    transition: border-color 0.2s, background 0.2s;
}

.an-pdp__upload-zone.is-dragging {
    border-color: var(--an-gold);
    background: var(--an-off-white);
}

.an-pdp__upload-placeholder svg {
    width: 32px;
    height: 32px;
    color: var(--an-grey-light);
    margin-bottom: 8px;
}

.an-pdp__upload-placeholder p {
    font-family: var(--an-sans);
    font-size: 13px;
    color: var(--an-grey);
    margin: 0 0 4px;
}

.an-pdp__upload-placeholder button {
    background: none;
    border: none;
    color: var(--an-gold);
    font-family: var(--an-sans);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.an-pdp__upload-placeholder small {
    font-size: 11px;
    color: var(--an-grey-light);
    display: block;
}

.an-pdp__upload-preview {
    position: relative;
    display: inline-block;
}

/* Respect [hidden] on elements whose display is overridden by CSS */
.an-pdp__upload-preview[hidden],
.an-pdp__upload-placeholder[hidden],
.an-pdp__conditional-field[hidden],
.an-pdp__delivery-info[hidden],
.an-modal[aria-hidden="true"] { display: none !important; }

.an-pdp__upload-preview img {
    max-height: 120px;
    border-radius: 1px;
    display: block;
}

.an-pdp__upload-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--an-black);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.an-pdp__privacy-note {
    font-size: 11px;
    color: var(--an-grey-light);
    margin: 8px 0 0;
}

.an-pdp__instruction-link {
    font-family: var(--an-sans);
    font-size: 12px;
    color: var(--an-gold);
    margin-top: 6px;
    display: inline-block;
}

/* Segment buttons (breast milk delivery) */
.an-pdp__segment-btns {
    display: flex;
    gap: 0;
    border: 1px solid rgba(42, 38, 35, 0.16);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f6f6f6;
}

.an-pdp__segment-btn {
    flex: 1;
    font-family: var(--an-sans);
    font-size: 12px;
    padding: 12px 14px;
    border: none;
    background: #f6f6f6;
    cursor: pointer;
    color: var(--an-grey);
    border-right: 1px solid rgba(0,0,0,0.15);
    transition: background 0.2s, color 0.2s;
}

.an-pdp__segment-btn:last-child { border-right: none; }

.an-pdp__segment-btn.is-selected {
    background: var(--an-black);
    color: #fff;
}

.an-pdp__delivery-info {
    font-family: var(--an-sans);
    font-size: 13px;
    color: var(--an-muted);
    line-height: 1.6;
    background: rgba(239,230,222,0.72);
    padding: 14px 16px;
    border-radius: 1px;
    border: 1px solid rgba(42, 38, 35, 0.08);
}

.an-pdp__delivery-info a {
    color: var(--an-gold);
}

.an-pdp__store-label {
    margin: 0 0 10px;
}

.an-pdp__store-options {
    display: grid;
    gap: 8px;
}

/* Gift box */
.an-pdp__gift-box-label {
    cursor: pointer;
    display: block;
    min-width: 0;
}

.an-pdp__gift-box-label input { display: none; }

.an-pdp__gift-box-card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 86%;
    border: 1px solid rgba(42, 38, 35, 0.14);
    border-radius: 1px;
    padding: 16px;
    transition: border-color 0.2s;
    background: #f6f6f6;
}

.an-pdp__gift-box-label input:checked ~ .an-pdp__gift-box-card {
    border-color: var(--an-gold);
    background: var(--an-off-white);
}

.an-pdp__gift-box-layout {
    display: grid;
    grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.an-pdp__gift-box-preview {
    margin-bottom: 0;
    border-radius: 1px;
    overflow: hidden;
    min-height: 150px;
    height: 100%;
    position: relative;
    background: var(--an-off-white);
    cursor: zoom-in;
}

.an-pdp__gift-box-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.an-pdp__gift-box-zoom {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 1px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.an-pdp__gift-box-zoom:hover { background: #f6f6f6; }

.an-pdp__gift-box-zoom svg { width: 16px; height: 16px; stroke: var(--an-black); }

/* Lightbox */
.an-lightbox {
    display: none;
}

.an-lightbox.is-open {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.an-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.an-lightbox__img {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 1px;
    z-index: 1;
}

.an-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.an-lightbox__close:hover { background: rgba(255,255,255,0.3); }

.an-lightbox__close svg { width: 20px; height: 20px; stroke: #fff; }

.an-pdp__gift-box-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--an-gold);
}

.an-pdp__gift-box-icon svg {
    width: 100%;
    height: 100%;
}

/* Stone color swatches */
/* ── Checkbox add-on group ───────────────────────────────
   A Custom Add-On of type "Checkbox Options": a list of tickable choices,
   drawn as radios when the add-on is set to single selection. Both look
   identical on purpose — which one is on the page is the merchant's decision
   about the product, not a visual language the customer has to learn — so the
   ticked state is what carries the meaning, and the native control is left
   visible to say whether one or several may be held.
   See woocommerce/single-product/addon-checkboxes.php. */
.an-pdp__addon-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.an-pdp__addon-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid rgba(42, 38, 35, 0.14);
    border-radius: 1px;
    background: #f6f6f6;
    transition: border-color 0.2s, background 0.2s;
}

.an-pdp__addon-checkbox:has(.an-pdp__custom-addon-check:checked) {
    border-color: var(--an-gold);
    background: var(--an-off-white);
}

.an-pdp__custom-addon-check {
    accent-color: var(--an-gold-dark);
    flex: 0 0 auto;
    margin: 0;
}

.an-pdp__addon-checkbox-label {
    font-family: var(--an-sans);
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--an-black);
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

/* Empty when the option is free, and on every GET OFFER product — the element
   is always present so the JS can rewrite it after a metal change. */
.an-pdp__addon-checkbox-price:empty {
    display: none;
}

.an-pdp__stone-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.an-pdp__required-mark {
    color: var(--an-gold-dark);
    margin-left: 2px;
    font-weight: 600;
}

.an-pdp__stone-color-opt {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid rgba(42, 38, 35, 0.14);
    border-radius: 1px;
    background: #f6f6f6;
    transition: border-color 0.2s, background 0.2s;
}

.an-pdp__stone-color-cb {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.an-pdp__stone-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    outline: 2px solid rgba(0,0,0,0.1);
    transition: outline-color 0.2s, border-color 0.2s;
    display: block;
}

/* Rainbow Mix: no single hex represents it, so show the full spectrum. */
.an-pdp__stone-dot--rainbow {
    background: conic-gradient(
        #e05c5c,
        #e0a35c,
        #e0d75c,
        #7dc76a,
        #5cb8e0,
        #7d6ad2,
        #c76ac0,
        #e05c5c
    );
}

.an-pdp__stone-color-opt:has(.an-pdp__stone-color-cb:checked) .an-pdp__stone-dot {
    outline-color: var(--an-gold);
    border-color: #fff;
}

.an-pdp__stone-color-opt:has(.an-pdp__stone-color-cb:checked) {
    border-color: var(--an-gold);
    background: var(--an-off-white);
}

.an-pdp__stone-name {
    font-family: var(--an-sans);
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--an-charcoal);
}

/* Diamond type tabs (Natural / Lab-grown) */
.an-pdp__stone-tabs-card {
    padding-bottom: 0;
    margin-bottom: 4px;
}

.an-pdp__stone-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--an-grey-light);
    margin-top: 14px;
}

.an-pdp__stone-tab {
    flex: 1;
    padding: 12px 16px 14px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: var(--an-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--an-charcoal);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.an-pdp__stone-tab:hover { color: var(--an-black); }

.an-pdp__stone-tab.is-active {
    color: var(--an-black);
    border-bottom-color: var(--an-gold);
}

.an-stone-tab-group > .an-pdp__diamond-addon:first-child {
    margin-top: 2px;
}

/* Engraving placement */
.an-pdp__engraving-placement-label {
    font-family: var(--an-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--an-grey);
    margin: 10px 0 6px;
}

.an-pdp__engraving-placement-label:first-child { margin-top: 0; }

.an-pdp__engraving-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin: 14px 0;
}

.an-pdp__gift-message-wrap {
    margin-top: 12px;
    padding: 14px;
    background: rgba(239,230,222,0.72);
    border-radius: 1px;
    border: 1px solid rgba(0,0,0,0.08);
}

.an-pdp__gift-message-label {
    font-family: var(--an-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.an-pdp__text-input--textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--an-sans);
    font-size: 13px;
}

.an-pdp__gift-box-card strong {
    font-family: var(--an-sans);
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

.an-pdp__gift-box-card p {
    font-family: var(--an-sans);
    font-size: 12px;
    color: var(--an-charcoal);
    margin: 4px 0 0;
}

/* Shipping info */
.an-pdp__shipping-info {
    background: var(--an-cream);
    border-radius: 1px;
    padding: 16px !important;
    border-top: 1px solid rgba(0,0,0,0.07) !important;
}

.an-pdp__shipping-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--an-sans);
    font-size: 13px;
    color: var(--an-muted);
    padding: 6px 0;
}

.an-pdp__shipping-row svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--an-charcoal);
}

/* Store option rows — the breast-milk sample drop-off on the PDP, and the
   pickup store at checkout (.an-checkout-pickup, further down). */
.an-pdp__pickup-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    /*border: 1px solid rgba(42, 38, 35, 0.12);*/
    /*border-radius: 6px;*/
    background: #fafafa;
    cursor: pointer;
}

/*.an-pdp__pickup-option.is-selected {*/
/*    border-color: var(--an-gold);*/
/*    background: var(--an-off-white);*/
/*}*/

.an-pdp__pickup-option input {
    margin-top: 2px;
    accent-color: var(--an-gold);
}

.an-pdp__pickup-option span {
    display: grid;
    gap: 3px;
    font-family: var(--an-sans);
    font-size: 12px;
    color: var(--an-grey);
}

.an-pdp__pickup-option strong {
    color: var(--an-black);
}

.an-pdp__pickup-option em {
    font-style: normal;
}

.an-pdp__pickup-option a {
    color: var(--an-gold-dark);
    font-weight: 600;
}

/* CTA buttons */
.an-pdp__ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0;
}

.an-pdp__confidence {
    margin-top: 18px;
    padding: 18px 18px 16px;
    background: rgba(246,241,235,0.72);
    border: 1px solid rgba(201,179,162,0.28);
    border-radius: 1px;
}

.an-pdp__confidence-title {
    margin: 0 0 12px;
    font-family: var(--an-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--an-gold-dark);
}

.an-pdp__confidence-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.an-pdp__confidence-list li {
    display: grid;
    gap: 3px;
    font-family: var(--an-sans);
    font-size: 12px;
    line-height: 1.55;
    color: var(--an-charcoal);
}

.an-pdp__confidence-list strong {
    color: var(--an-dark);
    font-size: 12px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-btn--whatsapp svg {
    width: 20px;
    height: 20px;
}

.an-pdp__wa-btn {
    width: 100%;
    box-sizing: border-box;
}

/* Description */
.an-pdp__description {
    padding: 24px 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    font-family: var(--an-sans);
    font-size: 14px;
    color: var(--an-muted);
    line-height: 1.8;
}

/* ─── Read more / clamp (long + short description) ─── */
.an-readmore { position: relative; }

.an-readmore__content > :first-child { margin-top: 0; }

.an-readmore__content > :last-child { margin-bottom: 0; }

.an-readmore.is-collapsed .an-readmore__content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.an-readmore__toggle {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--an-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--an-gold-dark);
    transition: color 0.2s ease;
}

.an-readmore__toggle:hover { color: var(--an-black); }

.an-readmore__toggle[hidden] { display: none; }

/* Collapsed: lift the toggle onto the last clamped line, with the text
   fading into it so it reads as a "… read more" continuation. */
.an-readmore.is-collapsed .an-readmore__toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-top: 0;
    padding-left: 3.5em;
    line-height: inherit;
    background: linear-gradient(
        to right,
        rgba(246, 241, 235, 0) 0,
        var(--an-cream) 2.4em,
        var(--an-cream) 100%
    );
}

/* Long description wrapper carries 24px vertical padding — align to its content edge. */
.an-pdp__description.an-readmore.is-collapsed .an-readmore__toggle {
    bottom: 24px;
}

/* Related products */
.an-pdp__related {
    padding: 32px 0;
    border-top: 1px solid rgba(0,0,0,0.07);
}

.an-pdp__related-title {
    font-family: var(--an-serif);
    font-size: 20px;
    font-weight: 300;
    margin: 0 0 20px;
}

.an-pdp__related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ─── WooCommerce default reset on PDP ──────── */
/* Hide WC default tabs and related (we render our own) */
.single-product .woocommerce-tabs,
.single-product .related.products,
.single-product .upsells.products {
    display: none !important;
}

/* Style WooCommerce add to cart form to match design */
.an-pdp__ctas form.cart {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.an-pdp__ctas form.cart .qty {
    display: none;
}

.an-pdp__ctas form.cart .single_add_to_cart_button {
    display: block;
    width: 100%;
    background: var(--an-gold) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 1px !important;
    font-family: var(--an-sans) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 16px 24px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    text-align: center !important;
    box-shadow: none !important;
}

.an-pdp__ctas form.cart .single_add_to_cart_button:hover {
    background: var(--an-gold-dark) !important;
}

/* ── Add to Cart + Pay Now, side by side ──────────────────
 * Pay Now is the same add-to-cart submit, only it continues
 * to checkout. Both buttons share one row and stack on narrow
 * screens. The child selector keeps the row off the variable
 * product form, whose <form class="cart"> also holds the
 * variations table — there the pair lives in the variation
 * add-to-cart wrapper instead. */
.an-pdp__ctas > form.cart,
.an-pdp__wc-variable-form .woocommerce-variation-add-to-cart {
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    gap: 10px;
}

/* The quantity <div> stays in the DOM once its input is hidden, so as a flex
 * item it still claims a gap — that offset the row from the WhatsApp button
 * below and left the two buttons unequal. Hide the wrapper, not just the input;
 * a display:none input is still submitted, so quantity=1 keeps posting. */
.an-pdp__ctas form.cart .quantity,
.an-pdp__wc-variable-form .woocommerce-variation-add-to-cart .quantity {
    display: none;
}

.an-pdp__ctas > form.cart .single_add_to_cart_button,
.an-pdp__wc-variable-form .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.an-pdp__buynow-btn {
    flex: 1 1 0;
    min-width: 140px;
    margin: 0 !important;
}

.an-pdp__buynow-btn {
    background: var(--an-dark);
    color: #fff;
    border: none;
    border-radius: 1px;
    font-family: var(--an-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 24px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.an-pdp__buynow-btn:hover:not(:disabled) {
    background: var(--an-black);
    color: #fff;
}

.an-pdp__buynow-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Metal color swatches ────────────────────────────── */
.an-pdp__metal-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.an-pdp__metal-swatch {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px 7px 9px;
    border: 1.5px solid var(--an-border, #e0ddd8);
    border-radius: 1px;
    background: #f6f6f6;
    font-size: 12px;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: var(--an-sans);
    color: var(--an-dark);
}

.an-pdp__metal-swatch:hover {
    border-color: var(--an-dark);
}

/* ── Swatch dropdown (more than AN_SWATCH_DROPDOWN_MAX options) ── */
/* The card holds nothing but the dropdown, so a full-width card leaves a wide
   empty band beside it. Match the geometry of a Chain Length card instead:
   one cell of the two-column .an-pdp__option-grid, i.e. half the row minus
   half the 12px gap. Solid white, since the translucent fill only reads as a
   tint when there is nothing else in the card. */
.an-pdp__option-card--dropdown {
    width: calc(50% - 6px);
    box-sizing: border-box;
    background: #fafafa;
}

.an-pdp__swatch-dropdown {
    position: relative;
}

.an-pdp__swatch-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-family: var(--an-sans);
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--an-dark);
    text-align: left;
    padding: 14px 44px 14px 20px;
    border: 1.5px solid var(--an-border, #e0ddd8);
    border-radius: 1px;
    background: #f6f6f6;
    cursor: pointer;
    transition: border-color 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b37c67' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

/* Slightly smaller than the pill dot so the trigger matches the height of a
   plain .an-pdp__select. */
.an-pdp__swatch-dropdown-trigger .an-pdp__metal-dot {
    width: 15px;
    height: 15px;
}

.an-pdp__swatch-dropdown-trigger:hover,
.an-pdp__swatch-dropdown-trigger:focus-visible,
.an-pdp__swatch-dropdown.is-open .an-pdp__swatch-dropdown-trigger {
    border-color: var(--an-dark);
    outline: none;
}

.an-pdp__metal-swatches--menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    border: 1.5px solid var(--an-border, #e0ddd8);
    border-radius: 1px;
    background: #f6f6f6;
    box-shadow: 0 12px 28px rgba(42, 38, 35, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.an-pdp__swatch-dropdown.is-open .an-pdp__metal-swatches--menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.an-pdp__metal-swatches--menu .an-pdp__metal-swatch {
    width: 100%;
    border: 0;
    border-radius: 1px;
    padding: 9px 12px;
    background: transparent;
    /* Pills stack the dot above the name (.an-pdp__variant-btn); in a list a
       single row reads like a native select option. */
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.an-pdp__metal-swatches--menu .an-pdp__metal-dot {
    width: 15px;
    height: 15px;
}

.an-pdp__metal-swatches--menu .an-pdp__metal-swatch:hover,
.an-pdp__metal-swatches--menu .an-pdp__metal-swatch.is-selected {
    background: var(--an-cream);
    color: var(--an-dark);
}

.an-pdp__metal-swatches--menu .an-pdp__metal-swatch.is-selected .an-pdp__metal-dot {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--an-dark);
}

.an-pdp__metal-swatch.is-selected {
    border-color: var(--an-dark);
    background: var(--an-dark);
    color: #fff;
}

.an-pdp__metal-swatch.is-selected .an-pdp__metal-dot {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(var(--an-white-rgb),0.5);
}

.an-pdp__metal-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.12);
}

.an-pdp__metal-name {
    white-space: nowrap;
}

/* Per-metal price. In the dropdown list it sits at the far right of the row,
   like a native select option's trailing detail. */
.an-pdp__metal-price {
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.02em;
    color: var(--an-grey);
}

.an-pdp__metal-swatches--menu .an-pdp__metal-price {
    margin-left: auto;
}

.an-pdp__metal-swatch.is-selected .an-pdp__metal-price {
    color: inherit;
    opacity: 0.85;
}

/* ── Diamond shape swatches ──────────────────────────── */
.an-pdp__shape-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.an-pdp__shape-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 10px 10px;
    border: 1.5px solid var(--an-border, #e0ddd8);
    border-radius: 1px;
    background: #f6f6f6;
    min-width: 72px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: var(--an-sans);
}

.an-pdp__shape-swatch svg,
.an-pdp__shape-swatch img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: opacity 0.15s;
}

.an-pdp__shape-swatch span {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--an-muted, #5b544f);
    transition: color 0.15s;
    white-space: nowrap;
}

.an-pdp__shape-swatch:hover {
    border-color: var(--an-dark);
}

.an-pdp__shape-swatch:hover svg,
.an-pdp__shape-swatch:hover img  { opacity: 1; }

.an-pdp__shape-swatch:hover span { color: var(--an-dark); }

.an-pdp__shape-swatch.is-selected {
    border-color: var(--an-dark);
    background: var(--an-cream, #FAF9F6);
}

.an-pdp__shape-swatch.is-selected svg,
.an-pdp__shape-swatch.is-selected img  { opacity: 1; }

.an-pdp__shape-swatch.is-selected span { color: var(--an-dark); font-weight: 600; }

/* ── Attr selection label (e.g. "— Oval") ────────────── */
.an-pdp__attr-val {
    font-weight: 400;
    color: var(--an-muted, #5b544f);
    font-size: 13px;
    margin-left: 4px;
}

/*
.an-pdp__attr-val::before {
    content: '— ';
}
*/
/* ── Quality / Carat pill swatches ───────────────────── */
.an-pdp__variant-swatches--pill {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.an-pdp__variant-swatches--pill .an-pdp__variant-btn {
    border: 1px solid var(--an-border, #e0ddd8);
    border-radius: 1px;
    padding: 9px 16px;
    font-size: 12px;
    background: #f6f6f6;
    color: var(--an-dark);
    font-family: var(--an-sans);
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.15s;
}

.an-pdp__variant-swatches--pill .an-pdp__variant-btn:hover {
    border-color: var(--an-dark);
}

.an-pdp__variant-swatches--pill .an-pdp__variant-btn.is-selected {
    border-color: var(--an-dark);
    background: var(--an-dark);
    color: #fff;
}

/* ── Variable product form: hide native WC elements ──── */
.an-pdp__wc-variable-form table.variations,
.an-pdp__wc-variable-form .reset_variations,
.an-pdp__wc-variable-form .woocommerce-variation-description,
.an-pdp__wc-variable-form .woocommerce-variation-price {
    display: none !important;
}

.an-pdp__wc-variable-form form.variations_form.cart {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.an-pdp__wc-variable-form .single_variation_wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.an-pdp__wc-variable-form .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.an-pdp__wc-variable-form .woocommerce-variation-add-to-cart .qty {
    display: none;
}

.an-pdp__wc-variable-form .woocommerce-variation-availability p {
    font-size: 12px;
    color: var(--an-muted);
    margin: 0 0 12px;
}

.an-pdp__wc-variable-form .woocommerce-variation-availability p.out-of-stock {
    color: #c0392b;
}

.an-pdp__wc-variable-form .single_add_to_cart_button {
    display: block;
    width: 100%;
    background: var(--an-gold) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 1px !important;
    font-family: var(--an-sans) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 16px 24px !important;
    cursor: pointer !important;
    transition: background 0.2s ease, opacity 0.2s ease !important;
    text-align: center !important;
    box-shadow: none !important;
}

.an-pdp__wc-variable-form .single_add_to_cart_button:hover:not(:disabled) {
    background: var(--an-gold-dark) !important;
}

.an-pdp__wc-variable-form .single_add_to_cart_button:disabled,
.an-pdp__wc-variable-form .single_add_to_cart_button.disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

/* ── Attribute group — warning state ──────────────────── */
.an-pdp__wc-attr.has-warning .an-pdp__section-label,
.an-pdp__section.has-warning .an-pdp__section-label,
.an-pdp__upload-zone.has-warning {
    color: #b94a34;
}

.an-pdp__wc-attr.has-warning .an-pdp__variant-swatches,
.an-pdp__section.has-warning .an-pdp__variant-swatches,
.an-pdp__upload-zone.has-warning {
    animation: an-shake 0.38s ease;
}

.an-pdp__upload-zone.has-warning {
    border-color: #b94a34;
    background: rgba(185, 74, 52, 0.04);
}

.an-pdp__attr-warning {
    font-size: 12px;
    color: #b94a34;
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.an-pdp__attr-warning::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: #b94a34;
    border-radius: 50%;
    flex-shrink: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ═══════════════════════════════════════════════════════════
   PDP STEPPER
   ═══════════════════════════════════════════════════════════ */

/* Personalisation hint above step nav */
.an-pdp__personalise-hint {
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--an-grey);
    margin: 0 0 10px;
    text-transform: uppercase;
}

/* Step nav bar */
.an-pdp__step-nav-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--an-off-white);
}

.an-pdp__step-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex: 1 1 0;
    min-width: 0;
    transition: opacity 0.2s;
}

/* Steps not yet reached: the bar is dimmed, the label is not (ARI-27 — a
   dimmed label fell to 2:1). Still clickable so customers can jump ahead. */
.an-pdp__step-btn.is-upcoming .an-pdp__step-dash {
    opacity: 0.55;
}

.an-pdp__step-btn.is-upcoming .an-pdp__step-label {
    color: var(--an-grey);
    color: color-mix(in srgb, var(--an-grey) 93%, #000);
}

.an-pdp__step-btn:not(.is-active):hover {
    opacity: 1;
}

.an-pdp__step-btn:not(.is-active):hover .an-pdp__step-dash {
    background: var(--an-gold);
}

.an-pdp__step-dash {
    width: 100%;
    height: 1px;
    background: var(--an-grey-light);
    transition: background 0.2s, width 0.2s;
}

.an-pdp__step-label {
    font-family: var(--an-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--an-grey);
    white-space: nowrap;
    transition: color 0.2s;
}

/* Active step */
.an-pdp__step-btn.is-active .an-pdp__step-dash {
    background: var(--an-black);
}

.an-pdp__step-btn.is-active .an-pdp__step-label {
    color: var(--an-black);
}

/* Completed step */
.an-pdp__step-btn.is-done .an-pdp__step-dash {
    background: var(--an-gold);
}

.an-pdp__step-btn.is-done .an-pdp__step-label {
    color: var(--an-gold-text);
}

.an-pdp__step-price-bar {
    display: none;
}

.an-pdp__step-price-inline {
    font-family: var(--an-serif);
    font-size: 17px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
    color: var(--an-dark);
    margin-top: -1px;
}

/* Panels */
.an-pdp__panel {
    display: none;
}

.an-pdp__panel.is-active {
    display: block;
    animation: an-panel-in 0.25s ease;
}

.an-pdp__panel-intro {
    font-size: 13px;
    color: var(--an-charcoal);
    margin: 0 0 24px;
    letter-spacing: 0.01em;
}

/* Panel footer (back / next) */
.an-pdp__panel-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--an-off-white);
}

.an-pdp__panel-footer--back-only {
    justify-content: flex-start;
}

.an-pdp__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid var(--an-off-white);
    padding: 12px 20px;
    font-family: var(--an-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--an-charcoal);
    cursor: pointer;
    border-radius: 1px;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.an-pdp__back-btn:hover {
    border-color: var(--an-dark);
    color: var(--an-dark);
}

.an-pdp__back-btn svg {
    width: 14px;
    height: 14px;
}

.an-pdp__next-btn {
    flex: 1;
}

.an-pdp__next-btn svg {
    width: 14px;
    height: 14px;
    margin-left: 6px;
}

/* Trust list (panel 1) */
.an-pdp__trust-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.an-pdp__trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--an-charcoal);
    letter-spacing: 0.02em;
}

.an-pdp__trust-list svg {
    width: 16px;
    height: 16px;
    color: var(--an-gold);
    flex-shrink: 0;
}

/* Short description */
.an-pdp__short-desc {
    font-size: 14px;
    color: var(--an-dark);
    line-height: 1.7;
    margin: 16px 0 0;
}

.an-pdp__short-desc p { margin: 0 0 8px; }

.an-pdp__short-desc p:empty { display: none; }

/* drop blank paragraphs from wpautop */
.an-pdp__short-desc ul,
.an-pdp__short-desc ol { margin: 6px 0 10px; padding-left: 1.2em; }

.an-pdp__short-desc li { margin: 0 0 4px; padding: 0; line-height: 1.5; }

.an-pdp__short-desc li:last-child { margin-bottom: 0; }

.an-pdp__short-desc h1,
.an-pdp__short-desc h2,
.an-pdp__short-desc h3,
.an-pdp__short-desc h4,
.an-pdp__short-desc h5 {
    font-family: var(--an-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--an-black);
    margin: 12px 0 6px;
}

.an-pdp__short-desc > :first-child { margin-top: 0; }

.an-pdp__short-desc > :last-child { margin-bottom: 0; }

/* Order summary (panel complete) */
.an-pdp__summary {
    background: var(--an-cream);
    /*border: 1px solid var(--an-off-white);*/
    /*border-radius: 4px;*/
    padding: 20px 24px;
    margin-bottom: 24px;
}

.an-pdp__summary-title {
    font-family: var(--an-serif);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--an-dark);
    margin: 0 0 14px;
}

.an-pdp__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--an-off-white);
}

.an-pdp__summary-row:last-child { border-bottom: none; }

.an-pdp__summary-label { color: var(--an-charcoal); }

.an-pdp__summary-value { color: var(--an-dark); font-weight: 500; }

.an-pdp__summary-empty { font-size: 13px; color: var(--an-charcoal); margin: 0; }

.an-pdp__summary-price {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--an-grey-light);
    font-family: var(--an-serif);
    font-size: 22px;
    color: var(--an-black);
    text-align: right;
}

@media (max-width: 640px) {
    .an-pdp__step-nav-bar {
        margin-bottom: 24px;
    }

    .an-pdp__step-label {
        font-size: 9px;
        letter-spacing: 0.06em;
    }

    .an-pdp__step-price-inline {
        font-size: 14px;
    }

    .an-pdp__step-nav-bar {
        gap: 16px;
    }

    .an-pdp__panel-footer {
        flex-wrap: wrap;
    }

    .an-pdp__next-btn {
        flex: 1 0 100%;
        order: -1;
    }

    .an-pdp__back-btn {
        flex: 1;
    }
}

/* ═══════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════ */

.an-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 24px;
}

.an-modal[aria-hidden="false"] {
    pointer-events: auto;
}

.an-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.an-modal[aria-hidden="false"] .an-modal__overlay {
    opacity: 1;
}

.an-modal__panel {
    position: relative;
    background: #f6f6f6;
    border-radius: 1px;
    width: 100%;
    max-width: 540px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 40px;
    transform: scale(0.95) translateY(8px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.32,0.72,0,1), opacity 0.3s ease;
    box-sizing: border-box;
}

.an-modal[aria-hidden="false"] .an-modal__panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.an-modal__panel--narrow { max-width: 400px; }

.an-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--an-charcoal);
    line-height: 1;
    padding: 4px;
}

.an-modal__close:hover { color: var(--an-black); }

.an-modal__head {
    margin-bottom: 24px;
}

.an-modal__title {
    font-family: var(--an-serif);
    font-size: 26px;
    font-weight: 300;
    margin: 8px 0 6px;
}

.an-modal__sub {
    font-family: var(--an-sans);
    font-size: 13px;
    color: var(--an-charcoal);
    margin: 0;
}

.an-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.an-modal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.an-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.an-modal__field label {
    font-family: var(--an-sans);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--an-muted);
}

.an-modal__field label span { color: var(--an-gold); }

.an-modal__field label small { color: var(--an-grey-light); font-size: 10px; text-transform: none; }

.an-modal__field input,
.an-modal__field select,
.an-modal__field textarea {
    font-family: var(--an-sans);
    font-size: 14px;
    padding: 11px 14px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 1px;
    background: #f6f6f6;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.an-modal__field input:focus,
.an-modal__field select:focus,
.an-modal__field textarea:focus {
    outline: none;
    border-color: var(--an-black);
}

.an-modal__success {
    text-align: center;
    padding: 40px 20px;
}

.an-modal__success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--an-gold);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.an-modal__success h3 {
    font-family: var(--an-serif);
    font-size: 22px;
    font-weight: 300;
    margin: 0 0 8px;
}

.an-modal__success p {
    font-family: var(--an-sans);
    font-size: 14px;
    color: var(--an-charcoal);
    margin: 0 0 24px;
}

.an-modal__steps {
    font-family: var(--an-sans);
    font-size: 14px;
    color: var(--an-muted);
    line-height: 1.8;
    padding-left: 20px;
    margin: 0 0 24px;
}

.an-modal__hint {
    font-family: var(--an-sans);
    font-size: 13px;
    color: var(--an-charcoal);
    margin: 0;
}

.an-modal__hint a { color: var(--an-gold); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-grid-show-more[hidden] { display: none !important; }

@media (max-width: 960px) {
    /* PDP */
    .an-pdp__inner          { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }

    .an-pdp__gallery        { position: static; }

    .an-pdp__related-grid   { grid-template-columns: repeat(2, 1fr); }

    /* Modal */
    .an-modal__panel        { padding: 28px 20px; }

    .an-modal__row          { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .an-pdp__related-grid   { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .an-pdp__variant-swatches { gap: 6px; }

    .an-pdp__option-grid,
    .an-pdp__gift-box-layout { grid-template-columns: 1fr; }

    .an-pdp__option-card { padding: 14px; }

    .an-pdp__option-card--dropdown { width: auto; }

    .an-pdp__gift-box-preview { min-height: 180px; }

    .an-pdp__step-nav-bar {
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .an-pdp__step-nav-bar::-webkit-scrollbar { display: none; }

    .an-pdp__step-label {
        font-size: 9px;
        letter-spacing: 0.06em;
    }

    .an-pdp__step-price-inline {
        font-size: 14px;
    }

    .an-pdp__panel-footer {
        flex-direction: column;
        align-items: stretch;
        margin-top: 24px;
        padding-top: 18px;
    }

    .an-pdp__panel-footer .an-btn,
    .an-pdp__panel-footer .an-pdp__back-btn,
    .an-pdp__next-btn {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .an-pdp__summary {
        padding: 18px 16px;
        border-radius: 1px;
    }

    .an-pdp__summary-row {
        gap: 12px;
        align-items: flex-start;
    }

    .an-pdp__summary-value {
        text-align: right;
        overflow-wrap: anywhere;
    }

    .an-pdp__shipping-info,
    .an-pdp__confidence {
        border-radius: 1px;
    }

    .an-pdp__shipping-row {
        align-items: flex-start;
    }

    .an-pdp__confidence {
        padding: 16px;
    }

    .an-pdp__segment-btns { flex-direction: column; }

    .an-pdp__segment-btn {
        border-right: none;
        border-bottom: 1px solid rgba(42, 38, 35, 0.14);
    }

    .an-pdp__segment-btn:last-child { border-bottom: none; }
}

.an-pdp-wrapper > .woocommerce-notices-wrapper {
    max-width: 1240px;
    margin: 32px auto 0;
    padding: 0 24px;
}

.an-pdp-wrapper .woocommerce-message,
.an-pdp-wrapper .woocommerce-info,
.an-pdp-wrapper .woocommerce-error {
    border-radius: 1px;
    padding: 18px 22px;
    font-family: var(--an-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    list-style: none;
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 18px 40px rgba(42,38,35,0.08);
}

.an-pdp-wrapper .woocommerce-message {
    background: linear-gradient(135deg, rgba(var(--an-gold-rgb),0.08), rgba(255,255,255,0.92));
    border: 1px solid rgba(var(--an-gold-rgb),0.42);
    color: var(--an-dark);
}

.an-pdp-wrapper .woocommerce-info {
    background: linear-gradient(135deg, rgba(var(--an-gold-rgb),0.05), rgba(255,255,255,0.92));
    border: 1px solid rgba(var(--an-gold-rgb),0.28);
    color: var(--an-dark);
}

.an-pdp-wrapper .woocommerce-error {
    background: linear-gradient(135deg, rgba(231,76,60,0.06), rgba(255,255,255,0.92));
    border: 1px solid rgba(231,76,60,0.24);
    color: var(--an-dark);
}

.an-pdp-wrapper .woocommerce-message::before,
.an-pdp-wrapper .woocommerce-info::before,
.an-pdp-wrapper .woocommerce-error::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 10px;
    margin-top: 1px;
}

.an-pdp-wrapper .woocommerce-message::before,
.an-pdp-wrapper .woocommerce-info::before {
    background: var(--an-gold);
    box-shadow: 0 0 0 6px rgba(var(--an-gold-rgb),0.12);
}

.an-pdp-wrapper .woocommerce-error::before {
    background: #e74c3c;
    box-shadow: 0 0 0 6px rgba(231,76,60,0.10);
}

.an-pdp-wrapper .woocommerce-message .button,
.an-pdp-wrapper .woocommerce-info .button {
    margin-left: auto;
    padding: 11px 18px !important;
    background: transparent !important;
    color: var(--an-dark) !important;
    font-family: var(--an-sans) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 1px !important;
    border: 1px solid rgba(var(--an-gold-rgb),0.55) !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.an-pdp-wrapper .woocommerce-message .button:hover,
.an-pdp-wrapper .woocommerce-info .button:hover {
    background: var(--an-gold) !important;
    border-color: var(--an-gold) !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .an-pdp-wrapper .woocommerce-message,
    .an-pdp-wrapper .woocommerce-info,
    .an-pdp-wrapper .woocommerce-error {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 16px 18px;
        gap: 14px;
    }

    .an-pdp-wrapper .woocommerce-message .button,
    .an-pdp-wrapper .woocommerce-info .button {
        margin-left: 0;
    }
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wc-block-breadcrumbs {
    margin-bottom: 20px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .woocommerce-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    backdrop-filter: blur(10px);
    font-family: var(--an-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--an-grey);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wp-block-query-title {
    max-width: 820px;
    margin: 0 auto 18px;
    font-family: var(--an-serif);
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: 0.03em;
    text-align: center;
    color: var(--an-black);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .woocommerce-result-count {
    margin: 0;
    font-family: var(--an-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--an-grey);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .woocommerce-ordering {
    margin: 0;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .woocommerce-ordering .orderby {
    min-width: 240px;
    padding: 12px 42px 12px 16px;
    border: 1px solid rgba(var(--an-gold-rgb), 0.28);
    border-radius: 1px;
    background-color: #f6f6f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6F5A' stroke-width='1.8'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    color: var(--an-black);
    font-family: var(--an-sans);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    appearance: none;
    -webkit-appearance: none;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wp-block-woocommerce-product-collection {
    margin-bottom: 0;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wc-block-product-template__responsive.columns-3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 45px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wc-block-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 14px 14px 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wc-block-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(42, 38, 35, 0.1);
    border-color: rgba(var(--an-gold-rgb), 0.2);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wc-block-components-product-image {
    margin-bottom: 0;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wp-block-post-title {
    margin: 18px 0 8px;
    text-align: left !important;
    font-family: var(--an-serif);
    font-size: 24px !important;
    font-weight: 400;
    line-height: 1.2 !important;
    color: var(--an-black);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wp-block-woocommerce-product-price,
body.post-type-archive-product .wc-block-grid__product-price {
    margin-bottom: 14px !important;
    text-align: left !important;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wc-block-grid__product-price {
    font-family: var(--an-sans);
    font-size: 13px;
    color: var(--an-grey);
    line-height: 1.6;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wc-block-components-product-price .woocommerce-Price-amount {
    color: var(--an-black);
    font-weight: 600;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wc-block-components-product-button {
    margin-top: auto;
    align-items: stretch;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wc-block-components-product-button .wp-block-button__link,
body.post-type-archive-product .wc-block-components-product-button .added_to_cart {
    width: 100%;
    min-height: 46px;
    padding: 13px 18px;
    border: 1px solid var(--an-gold);
    border-radius: 1px;
    background: transparent;
    color: var(--an-black);
    font-family: var(--an-sans);
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wp-block-query-pagination {
    gap: 12px;
    margin-top: 42px;
    justify-content: center;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.post-type-archive-product .wp-block-query-pagination .current,
body.post-type-archive-product .wp-block-query-pagination a:hover {
    background: var(--an-black);
    border-color: var(--an-black);
    color: #fff;
}

@media (max-width: 1180px) {
    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    body.post-type-archive-product .wc-block-product-template__responsive.columns-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    body.post-type-archive-product .woocommerce-ordering .orderby {
        width: 100%;
        min-width: 0;
    }

    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    body.post-type-archive-product .wc-block-product-template__responsive.columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 22px;
    }

    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    body.post-type-archive-product .wp-block-post-title {
        font-size: 20px !important;
    }
}

@media (max-width: 560px) {
    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    body.post-type-archive-product .wp-block-query-title {
        font-size: 40px;
    }

    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    body.post-type-archive-product .wc-block-product-template__responsive.columns-3 {
        grid-template-columns: 1fr;
    }

    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    body.post-type-archive-product .wc-block-product {
        border-radius: 1px;
        padding: 12px;
    }
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__nl-fields[hidden] {
    display: none;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__nl-input:focus { border-color: var(--an-gold); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__newsletter .an-btn--gold {
    border-radius: 0 1px 1px 0;
    white-space: nowrap;
    font-size: 11px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__social-link svg {
    width: 15px;
    height: 15px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__social-link:hover {
    border-color: var(--an-gold);
    color: var(--an-gold);
    background: rgba(var(--an-gold-rgb),0.08);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__nav li { list-style: none; margin: 0; padding: 0; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__nav a {
    font-size: 13px;
    color: var(--foot-text);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__nav a:hover { color: var(--an-gold); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__address p {
    font-size: 13px;
    color: var(--foot-text);
    margin: 0;
    line-height: 1.6;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__wa-link svg { width: 16px; height: 16px; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__wa-link:hover { color: var(--an-black) !important; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__email-link:hover { color: var(--an-gold); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-btn--outline-gold:hover {
    background: var(--an-gold-text);
    border-color: var(--an-gold-text);
    color: #fff;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__trust-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--an-gold);
    opacity: 0.7;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__legal-nav li { list-style: none; margin: 0; padding: 0; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__legal-nav a {
    font-size: 11px;
    color: var(--an-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__legal-nav a:hover { color: var(--an-black); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-wa-float svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body.admin-bar .an-service-hero {
    padding-top: calc(32px + var(--topbar-h, 36px) + var(--an-header-h, 68px) + 48px);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-service-form__select-proxy:focus {
    outline: none;
    border-color: var(--an-gold);
    box-shadow: 0 0 0 3px rgba(var(--an-gold-rgb), .10);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-service-picker[hidden] {
    display: none;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-service-picker__option.is-selected {
    border-color: var(--an-gold);
    background: rgba(var(--an-gold-rgb), .08);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-upload-zone.is-dragover,
.an-upload-zone:focus-within {
    border-color: var(--an-gold);
    background: var(--an-off-white);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-section p,
.an-info-section li {
    font-family: var(--an-sans);
    font-size: 14px;
    color: var(--an-muted);
    line-height: 1.8;
    margin: 0 0 12px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-section ul,
.an-info-section ol {
    padding-left: 20px;
    margin: 0 0 12px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block .wp-block-buttons {
    justify-content: center;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block .wp-block-button {
    margin: 0 auto;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block .an-btn,
.an-info-cta-block a.an-btn {
    border-color: var(--an-gold-dark) !important;
    color: var(--an-gold-dark) !important;
    background: transparent !important;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block .wp-block-button.an-btn {
    display: block;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block .wp-block-button__link {
    display: inline-block;
    min-width: 260px;
    font-family: var(--an-sans) !important;
    font-size: 11px !important;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.4 !important;
    text-align: center;
    padding: 15px 40px;
    border: 1px solid var(--an-gold-dark) !important;
    border-radius: 0 !important;
    color: var(--an-gold-dark) !important;
    background: transparent !important;
    transition: all 0.35s var(--an-ease);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block .wp-block-button__link:hover {
    background: var(--an-gold-dark) !important;
    color: #fff !important;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block .an-btn:hover,
.an-info-cta-block a.an-btn:hover {
    background: var(--an-gold-dark) !important;
    color: #fff !important;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block p {
    font-family: var(--an-serif);
    font-size: 18px;
    font-weight: 300;
    color: var(--an-black);
    margin: 0 0 20px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-learn-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--an-sans);
    font-size: 13px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-learn-table th {
    background: var(--an-black);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    letter-spacing: .5px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-learn-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    color: var(--an-dark);
}

@media (max-width: 700px) {
    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    .an-service-form__select-proxy.is-mobile-picker {
        display: flex;
    }
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-quote-checkout-notice strong { display: block; margin-bottom: 2px; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-quote-checkout-notice p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--an-gold);
    line-height: 1.5;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-cookie-banner__text a { color: var(--an-gold-text); text-decoration: underline; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-cookie-banner__manage:hover { border-color: var(--an-black); background: rgba(var(--an-black-rgb), 0.05); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-cookie-banner__accept:hover { background: var(--an-black); border-color: var(--an-black); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-cookie-modal[aria-hidden="true"] { display: none; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-cookie-modal__option-info strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-cookie-modal__option-info p { margin: 0; font-size: 12px; color: var(--an-charcoal); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-cookie-modal__toggle-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-cookie-modal__toggle-wrap input:checked + .an-cookie-modal__slider { background: var(--an-gold); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-btn--outline:hover { border-color: var(--an-dark); }

.an-modal__chip {
    padding: 7px 14px;
    border: 1.5px solid var(--an-off-white);
    border-radius: 1px;
    font-family: var(--an-sans);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--an-dark);
    background: none;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.an-modal__chip.is-selected,
.an-modal__chip:hover { border-color: var(--an-gold); background: var(--an-gold); color: #fff; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-quote-checkout-notice strong { font-family: var(--an-serif); font-size: 15px; color: var(--an-black); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-quote-checkout-notice p { font-family: var(--an-sans); font-size: 13px; color: var(--an-charcoal); margin: 4px 0 0; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-checkout-account__row input[type="checkbox"] { flex-shrink: 0; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-checkout-account__field label { display: block; font-family: var(--an-sans); font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--an-dark); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-pwd-wrap input { width: 100%; padding-right: 62px !important; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-pwd-toggle:hover { color: var(--an-black); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-checkout-invoice__row input[type="checkbox"] { flex-shrink: 0; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-checkout-invoice .form-row { padding: 0; margin: 0 0 12px; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-checkout-invoice label { display: block; font-family: var(--an-sans); font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--an-dark); }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.wc-block-components-sidebar{
    width: 100%;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.wc-block-components-sidebar-layout .wc-block-components-main{
    width: 100%;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.woocommerce table.shop_table{
    border:0;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body .wc-block-components-notice-banner.is-success {
    background-color: var(--an-success-bg);
    border-color: var(--an-success-bg);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body .wc-block-components-notice-banner.is-success,
body .wc-block-components-notice-banner.is-success .wc-block-components-notice-banner__content {
    color: #fff;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
body .wc-block-components-notice-banner:focus {
    outline: none;
}

@media (max-width: 900px) {
    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    .an-hub-trust .an-trust__grid {
        display: flex;
        grid-template-columns: none;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* A finger swipes this natively; a mouse gets dragging from
         * assets/js/trust-slider.js, and the cursor advertises it. */
        cursor: grab;
        /* Room for the hover/focus lift and for the last card to clear
         * the right edge instead of ending flush against it. */
        padding: 4px 4px 8px;
        margin: 0 -4px;
    }

    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    .an-hub-trust .an-trust-card {
        flex: 0 0 auto;
        width: min(74vw, 260px);
        box-sizing: border-box;
        padding: 26px 22px;
        scroll-snap-align: start;
    }
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-payment-help__item:last-child {
    margin-bottom: 0;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.woocommerce-error .an-payment-help,
.woocommerce-info .an-payment-help,
.woocommerce-message .an-payment-help {
    background: transparent;
    padding: 0;
    margin: 14px 0 0;
    max-width: none;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-payment-note__mark {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border: 1px solid var(--an-gold-light);
    border-radius: 999px;
    color: var(--an-gold-dark);
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-deposit__option:first-of-type {
    border-top: 0;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-deposit__option input {
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--an-gold-dark);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-deposit.is-deposit .an-deposit__balance,
.an-deposit.is-deposit .an-deposit__note {
    display: block;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-deposit__balance strong {
    color: var(--an-black);
    white-space: nowrap;
}

/* The product page states both options for the piece itself, before shipping is
   known. Quieter than the price above it: it informs, it does not ask. */
.an-pdp__deposit {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--an-grey-light);
    background: rgba(246, 241, 235, .6);
    font-family: var(--an-sans);
    font-size: 12px;
    line-height: 1.6;
    color: var(--an-grey);
    color: color-mix(in srgb, var(--an-grey) 93%, #000);
}

.an-pdp__deposit-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 4px;
}

.an-pdp__deposit-label {
    letter-spacing: .02em;
    color: var(--an-black);
}

.an-pdp__deposit-full {
    font-weight: 600;
    color: var(--an-black);
}

/* Bold, but a paler ink than the full amount — the client's own instruction. */
.an-pdp__deposit-amount {
    font-weight: 600;
    color: var(--an-grey);
    color: color-mix(in srgb, var(--an-grey) 93%, #000);
}

.an-pdp__deposit-balance {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(201, 179, 162, .5);
}

.an-pdp__deposit-balance strong {
    font-weight: 600;
    color: var(--an-black);
    white-space: nowrap;
}

.an-pdp__deposit-note {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.6;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-deposit-summary__table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--an-sans);
    font-size: 13px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-deposit-summary__table th,
.an-deposit-summary__table td {
    padding: 9px 0;
    border-bottom: 1px solid var(--an-grey-light);
    text-align: left;
    font-weight: 400;
    color: var(--an-grey);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-deposit-summary__table td {
    text-align: right;
    font-weight: 600;
    color: var(--an-black);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-bg-picture > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: var(--an-bg-fit, cover);
    object-position: var(--an-bg-position, center center);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 2px solid var(--an-dark);
    outline-offset: 2px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-hero :focus-visible,
.an-hub-hero :focus-visible,
.an-tile :focus-visible,
.an-tile:focus-visible,
.an-appointment :focus-visible,
.an-topbar :focus-visible {
    outline-color: #fff;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-appointment--dark-text :focus-visible {
    outline-color: var(--an-dark);
}
