/* Reuse the storefront product layout, typography, controls and cart button.
   Only the two-product selection and its summary need additional styling. */
.gift-form { min-width: 0; }
.gift-slot { min-width: 0; border: 0; border-top: 1px solid #303030; padding: .6rem 0 0; margin: 1rem 0; }
.gift-slot legend { padding: 0 .6rem 0 0; color: var(--gold); font-size: .82rem; font-weight: 700; }
.gift-slot-info { margin: .65rem 0 0; font-size: .75rem; line-height: 1.5; }
.gift-slot-info a { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem 0; color: #aaa; text-decoration: none; transition: color .2s ease; }
.gift-slot-info a span { font-size: .7rem; }
.gift-slot-info a:hover, .gift-slot-info a:focus-visible { color: var(--gold); }
.gift-slot-info a:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.gift-summary { margin-top: 1.25rem; padding: .85rem 1.25rem; border: 1px solid #3c3425; border-radius: 8px; background: linear-gradient(135deg, #1b1812 0%, #111 70%); }
.gift-summary .gift-summary-heading { margin: 0 0 .65rem; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.gift-summary-box { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding-bottom: .6rem; color: #bbb; font-size: .82rem; line-height: 1.6; }
.gift-summary strong { color: var(--white); font-size: .82rem; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gift-summary-item { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; align-items: start; gap: .65rem; padding: .65rem 0; border-top: 1px solid #ffffff0f; line-height: 1.6; }
.gift-summary-number { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1px solid #57482d; border-radius: 50%; color: var(--gold); font-size: .65rem; }
.gift-summary-details { min-width: 0; }
.gift-summary-name { display: block; color: #eee; font-size: .86rem; overflow-wrap: anywhere; }
.gift-summary-scent { display: block; margin-top: .2rem; color: #aaa; font-size: .75rem; overflow-wrap: anywhere; }
.gift-summary-scent > span { color: #d7c5a1; }
.gift-summary-scent.is-pending > span { color: #aaa; font-style: italic; }
.gift-summary .gift-total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .35rem 1rem; margin: .25rem 0 0; padding-top: .6rem; border-top: 1px solid #57482d; }
.gift-total-label { color: #ddd; font-size: .85rem; }
.gift-summary .gift-total .product-price-current { margin: 0; color: var(--gold); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; white-space: nowrap; }
.gift-summary .gift-progress { display: flex; align-items: baseline; gap: .5rem; margin: .5rem 0 0; color: #aaa; font-size: .75rem; line-height: 1.6; }
.gift-progress[data-complete="true"] { color: #d7c5a1; }
.gift-progress[data-complete="true"]::before { content: '\2713'; color: var(--gold); }
@media (max-width: 480px) {
    .gift-summary { padding: .8rem 1rem; }
    .gift-summary-item { gap: .5rem; grid-template-columns: 1.4rem minmax(0, 1fr) auto; }
    .gift-summary-number { width: 1.4rem; height: 1.4rem; }
    .gift-summary strong { font-size: .75rem; }
}
.gift-form .gift-summary + .detail-cart-row { margin-top: 1.25rem; }
.gift-add:disabled { opacity: .5; cursor: not-allowed; }
.gift-secondary { margin: .5rem 0; }
#giftFeedback, #giftLoadStatus, #giftCartLink { font-size: .82rem; line-height: 1.6; margin-top: .65rem; }
#giftFeedback:empty, #giftLoadStatus:empty { display: none; }
#giftFeedback[data-error="true"] { color: #f1b7a9; }
.gift-builder [hidden] { display: none !important; }
/* An editorial triptych: the box and the two personal selections. */
.gift-preview-edit { width: min(100%, 400px); margin: 1.1rem auto 0; padding-top: 1.25rem; border-top: 1px solid #303030; text-align: center; }
.gift-preview-eyebrow { margin: 0 0 .55rem; color: #b7aa90; font-size: .65rem; font-weight: 700; letter-spacing: .22em; line-height: 1.5; }
.gift-preview-title { margin: 0 0 1.3rem; color: #eee9e1; font-family: 'Bodoni Moda', Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 400; line-height: 1.35; }
.gift-preview .gift-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; align-items: start; }
.gift-preview-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: span 2; gap: .8rem; }
.gift-preview-box, .gift-preview-product, .gift-preview-empty { min-width: 0; margin: 0; }
.gift-preview .gift-thumbs .gallery-thumb { width: 100%; height: auto; aspect-ratio: 1; padding: 0; border: 1px solid #353535; background: #111; }
.gift-preview .gift-thumbs .gallery-thumb.active, .gift-preview .gift-thumbs .gallery-thumb:hover { border-color: #b7aa90; }
.gift-thumbs .gallery-thumb:focus-visible { outline: 1px solid #eee; outline-offset: 3px; }
.gift-thumbs .gallery-thumb img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.gift-preview-empty { display: flex; flex-direction: column; gap: .6rem; }
.gift-preview-number { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #303030; background: linear-gradient(145deg, #171614, #0b0b0b); color: #b7aa90; font-family: 'Bodoni Moda', Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 400; line-height: 1; }
.gift-preview .gift-preview-label, .gift-preview .gift-thumbs figcaption { color: #ccc7bf; font-family: 'Lato', sans-serif; font-size: .78rem; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.gift-preview .gift-thumbs figcaption { margin-top: .6rem; }
.gift-preview-caption { margin: 1.2rem 0 0; padding-top: .9rem; border-top: 1px solid #242424; color: #aaa; font-size: .78rem; line-height: 1.7; text-align: center; }
@media (max-width: 480px) {
    .gift-preview .gift-thumbs, .gift-preview-products { gap: .55rem; }
    .gift-preview .gift-preview-label, .gift-preview .gift-thumbs figcaption { font-size: .72rem; }
}
/* Incomplete selections are not an unavailable product. Keep the label legible. */
html body .gift-builder #giftAdd:disabled {
    background: #25221c !important;
    border-color: #8b7546 !important;
    color: #dbc58f !important;
    -webkit-text-fill-color: #dbc58f !important;
    opacity: 1;
    text-shadow: none !important;
}
html body .gift-builder #giftAdd:disabled span {
    color: #dbc58f !important;
    -webkit-text-fill-color: #dbc58f !important;
    text-shadow: none !important;
}
html body .gift-builder #giftAdd:disabled::before { display: none !important; }

/* One radio group per gift slot: photographs replace product dropdowns. */
.gift-choice-hint { margin: .25rem 0 .65rem; font-size: .75rem; color: #aaa; line-height: 1.5; }
.gift-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; max-height: 360px; overflow-y: auto; padding: 3px 7px 3px 3px; scrollbar-color: #bcbcbc #242424; scrollbar-width: thin; }
.gift-product-card { position: relative; display: flex; flex-direction: column; gap: .3rem; min-width: 0; padding: .5rem; border: 1px solid #333; background: #111; cursor: pointer; border-radius: 4px; }
.gift-product-card:hover { border-color: #8b7546; }
.gift-product-card:has(input:checked) { border-color: #8b7546; background: #252016; }
.gift-product-card:has(input:focus-visible) { outline: 1px solid var(--gold); outline-offset: 2px; }
.gift-product-card img { width: 100%; height: 100px; object-fit: cover; border-radius: 2px; }
html body .gift-product-card input[type=radio] { appearance: none; -webkit-appearance: none; position: absolute; top: .8rem; right: .8rem; width: 21px; height: 21px; min-width: 21px; margin: 0; border: 1px solid #c9a962; border-radius: 3px; background: #111; cursor: pointer; }
html body .gift-product-card input[type=radio]:checked { background: #c9a962; }
.gift-product-card input:checked::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #111; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gift-card-name { color: var(--white); font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.gift-card-price { color: var(--gold); font-size: .75rem; margin-top: auto; }
.gift-color-choices { border: 0; margin: .7rem 0; padding: 0; }
.gift-color-choices label { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1rem; font-size: .82rem; cursor: pointer; }
.gift-color-choices input { accent-color: #c9a962; }
@media (max-width: 480px) { .gift-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 345px; } }
