/*
 * hqt-gift.css — gift-box configurator styling (Unit 6 · giftbox.html contract).
 * Purpose : gold-accent gifting look — hero + live preview, size cards, slots,
 *           pool grid, extras, corporate band, fixed summary bar.
 * Refs    : page-build-your-ritural.php · assets/js/hqt-gift.js.
 */
.hqt-gift { padding-bottom: 86px; }
.hqt-gift__hero { background: linear-gradient(120deg, #1f3a0e, #2d5016 55%, #3c6a1e); color: #fff; padding: 44px 0 30px; position: relative; overflow: hidden; }
/* Hero banner slider (2 slides: gift-box creative · live-preview builder). */
.hqt-gift__slide { display: none; }
.hqt-gift__slide.is-on { display: block; animation: hqt-gslide 0.5s ease; }
@keyframes hqt-gslide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hqt-gift__slide.is-on { animation: none; } }
/* Compound selector: a plain .hqt-gift__buildh lost to a later h2 color rule and
   rendered forest-on-dark-green (founder screenshot, measured rgb(45,80,22)). */
.hqt-gift__hero--builder .hqt-gift__buildh { font-family: var(--hqt-ff-display); font-size: 30px; color: #fff; margin: 6px 0 10px; }
.hqt-gift__hero--builder { padding: 36px 0; }
.hqt-gift__slide--scene { background-size: cover; background-position: center right; position: relative; }
.hqt-gift__slide--scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,26,8,0.82) 0%, rgba(16,26,8,0.55) 38%, rgba(16,26,8,0.1) 68%, transparent 82%); }
.hqt-gift__slide--scene .hqt-gift__herogrid { position: relative; }
.hqt-gift__heroart { line-height: 0; }
.hqt-gift__heroart img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.hqt-gift__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.hqt-gift__dots span { width: 22px; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.35); cursor: pointer; transition: background 0.25s; }
.hqt-gift__dots span.is-on { background: #fff; }
.hqt-gift__hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 75, 0.30), transparent 65%); }
.hqt-gift__herogrid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; position: relative; }
.hqt-gift__hero small { color: var(--hqt-gold); letter-spacing: 2.5px; text-transform: uppercase; font-size: 11.5px; font-weight: 700; }
.hqt-gift__hero h1 { color: #fff; font-family: var(--hqt-ff-display); font-size: 36px; margin: 8px 0; }
.hqt-gift__hero p { color: #d4e3c2; font-size: 14.5px; max-width: 520px; }
.hqt-gift__arrive { margin-top: 16px; font-size: 12.5px; color: #e6d9b8; font-weight: 700; }
.hqt-gift__arrive b { color: #fff; border-bottom: 1.5px dashed var(--hqt-gold); }
.hqt-gift__presets { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hqt-gift__presets button { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 99px; padding: 7px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: #fff; font-family: var(--hqt-ff-body); }
.hqt-gift__presets button:hover { background: rgba(255, 255, 255, 0.22); }
.hqt-gift__preview { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px; padding: 18px; }
.hqt-gift__prevtag { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--hqt-gold); font-weight: 800; margin-bottom: 10px; }
.hqt-gift__prevgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.hqt-gift__prevcell { height: 92px; border-radius: 8px; background: rgba(255, 255, 255, 0.35); border: 1.5px dashed rgba(255, 255, 255, 0.6); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; color: #fff; font-weight: 700; text-align: center; padding: 4px; }
.hqt-gift__prevcell.is-filled { background: rgba(255, 255, 255, 0.92); border: none; color: var(--hqt-forest); }
.hqt-gift__prevcell img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; margin-bottom: 5px; }
.hqt-gift__prevcell span { font-size: 9.5px; line-height: 1.2; }
.hqt-gift__prevsub { font-size: 11px; color: #e6d9b8; margin-top: 10px; text-align: center; }

.hqt-gift__steps { display: flex; margin: 26px 0 8px; font-size: 12.5px; font-weight: 700; }
.hqt-gift__steps div { flex: 1; text-align: center; padding: 10px; border-bottom: 3px solid var(--hqt-line); color: var(--hqt-soft); }
.hqt-gift__steps div.is-on { border-color: var(--hqt-gold); color: var(--hqt-forest); }
.hqt-gift__sec { padding: 26px 0 8px; }
.hqt-gift__sec h2 { font-family: var(--hqt-ff-display); color: var(--hqt-forest); font-size: 22px; margin-bottom: 14px; }
.hqt-gift__sec h2 span { font-size: 12.5px; color: var(--hqt-soft); font-weight: 400; font-family: var(--hqt-ff-body); }

/* [hidden] must beat our own display rules (display:flex/grid outranks the UA
   [hidden] rule) — the summary bar stayed visible in Custom mode without this. */
.hqt-gift [hidden] { display: none !important; }
.hqt-gift__sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.hqt-gift__sz { background: var(--hqt-white); border: 2px solid var(--hqt-line); border-radius: 12px; padding: 20px; cursor: pointer; text-align: center; transition: all 0.2s ease; font-family: var(--hqt-ff-body); color: var(--hqt-ink); }
.hqt-gift__sz:hover { border-color: var(--hqt-gold); }
.hqt-gift__sz.is-sel { border-color: var(--hqt-gold); background: #f3ead3; box-shadow: 0 0 0 1px var(--hqt-gold); }
.hqt-gift__szph { display: flex; align-items: center; justify-content: center; height: 150px; border-radius: 8px; background: linear-gradient(140deg, #efe6d0, #e2d2ac); margin-bottom: 12px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #7a6330; overflow: hidden; }
.hqt-gift__szph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hqt-gift__szph em { font-style: normal; }
.hqt-gift__unboxshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.hqt-gift__unboxshots figure { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: var(--hqt-shadow); line-height: 0; }
.hqt-gift__unboxshots img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; }
.hqt-gift__sz b { font-family: var(--hqt-ff-display); font-size: 17px; color: var(--hqt-forest); display: block; }
.hqt-gift__szpr { font-weight: 700; margin-top: 4px; display: block; }
.hqt-gift__szper { font-size: 11.5px; color: var(--hqt-soft); display: block; }
.hqt-gift__szflag { display: inline-block; font-size: 10px; color: var(--hqt-gold-tx); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.hqt-gift__sz--custom .hqt-gift__szph { background: linear-gradient(140deg, #e8eee0, #d5e3c4); color: #4c6034; }
.hqt-gift__custcard { background: var(--hqt-white); border: 1px solid #e5d9b8; border-radius: 12px; padding: 24px; box-shadow: var(--hqt-shadow); }
.hqt-gift__custcard h2 { margin-bottom: 6px; }
.hqt-gift__custcard p { color: var(--hqt-soft); font-size: 13.5px; margin-bottom: 14px; max-width: 620px; }
.hqt-gift__custlbl { display: block; font-size: 12px; font-weight: 700; color: var(--hqt-forest); margin-bottom: 6px; }
.hqt-gift__custcard textarea { width: 100%; border: 1.5px solid var(--hqt-line); border-radius: 8px; padding: 11px 14px; font-size: 13px; font-family: var(--hqt-ff-body); resize: vertical; }
.hqt-gift__custrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hqt-gift__custbtn { background: var(--hqt-forest); color: #fff; border-radius: 6px; padding: 12px 22px; font-weight: 700; font-size: 13px; }
.hqt-gift__custbtn:hover { background: #3a6420; color: #fff; }
.hqt-gift__custbtn--wa { background: #25d366; color: #0b3d1e; }
.hqt-gift__custbtn--wa:hover { background: #1fb356; color: #0b3d1e; }
.hqt-gift__custbtn--ghost { background: transparent; color: var(--hqt-forest); border: 1.5px solid var(--hqt-line); }
.hqt-gift__custbtn--ghost:hover { background: var(--hqt-cream); color: var(--hqt-forest); }
.hqt-gift__custnote { font-size: 12px; color: var(--hqt-soft); margin-top: 10px; }
.hqt-gift__unbox { display: flex; gap: 22px; margin-top: 16px; background: var(--hqt-white); border-radius: 10px; padding: 14px 18px; font-size: 12.5px; color: var(--hqt-soft); align-items: center; box-shadow: var(--hqt-shadow); }
.hqt-gift__unbox b { color: var(--hqt-forest); }

.hqt-gift__slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 8px; }
.hqt-gift__slot { background: var(--hqt-white); border: 2px dashed var(--hqt-line); border-radius: 12px; padding: 12px; min-height: 132px; text-align: center; font-size: 12.5px; color: var(--hqt-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.hqt-gift__slot.is-filled { border-style: solid; border-color: var(--hqt-mid); }
/* contain, never cover: these are full pack shots — cropping cuts the pouch in half */
.hqt-gift__slot img { width: 62px; height: 62px; border-radius: 6px; object-fit: contain; background: #fff; }
.hqt-gift__slot b { color: var(--hqt-ink); font-size: 13px; }
.hqt-gift__slotsub { font-size: 11px; }
.hqt-gift__rm { color: var(--hqt-pink); font-size: 11px; font-weight: 700; cursor: pointer; background: none; border: none; }
.hqt-gift__slotempty { font-weight: 600; }

.hqt-gift__filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 12px; }
.hqt-gift__filters button { border: 1.5px solid var(--hqt-line); background: var(--hqt-white); border-radius: 99px; padding: 7px 15px; font-size: 12px; font-weight: 600; color: var(--hqt-soft); cursor: pointer; font-family: var(--hqt-ff-body); }
.hqt-gift__filters button.is-on { border-color: var(--hqt-forest); color: var(--hqt-forest); background: #eaf3dd; }
.hqt-gift__pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.hqt-gift__pp { background: var(--hqt-white); border-radius: 10px; padding: 11px; font-size: 12px; box-shadow: var(--hqt-shadow); display: flex; flex-direction: column; }
.hqt-gift__pp img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; background: #fff; border: 1px solid var(--hqt-line); border-radius: 6px; margin-bottom: 8px; }
.hqt-gift__pp b { font-size: 12.5px; }
.hqt-gift__pptg { color: var(--hqt-forest); font-size: 10.5px; font-weight: 600; margin: 1px 0 8px; }
.hqt-gift__pp button { margin-top: auto; background: var(--hqt-forest); color: #fff; border: none; border-radius: 5px; padding: 8px; font-weight: 700; font-size: 11px; cursor: pointer; font-family: var(--hqt-ff-body); }
.hqt-gift__pp button:hover:not(:disabled) { background: #3a6420; }
.hqt-gift__pp button:disabled { opacity: 0.45; cursor: default; }

.hqt-gift__extras { background: var(--hqt-white); border-radius: 12px; padding: 20px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; box-shadow: var(--hqt-shadow); font-size: 13px; }
.hqt-gift__extras label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hqt-gift__extras input[type="text"] { border: 1.5px solid var(--hqt-line); border-radius: 6px; padding: 9px 14px; font-size: 13px; font-family: var(--hqt-ff-body); min-width: 250px; flex: 1; }

.hqt-gift__corp { background: linear-gradient(120deg, #f3ead3, #fff); border: 1px solid #e5d9b8; border-radius: 12px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.hqt-gift__corp b { font-family: var(--hqt-ff-display); font-size: 17px; color: var(--hqt-forest); display: block; }
.hqt-gift__corp span { color: var(--hqt-soft); }
.hqt-gift__corp a { background: var(--hqt-forest); color: #fff; border-radius: 6px; padding: 11px 22px; font-weight: 700; font-size: 13px; }

.hqt-gift__summary { position: fixed; bottom: 0; left: 0; right: 0; background: var(--hqt-white); border-top: 1px solid var(--hqt-line); box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.08); padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 50; }
.hqt-gift__fill { font-size: 13px; color: var(--hqt-soft); }
.hqt-gift__fill b { color: var(--hqt-forest); }
.hqt-gift__pr { font-size: 17px; font-weight: 800; }
.hqt-gift__pr small { font-size: 11.5px; color: var(--hqt-soft); font-weight: 400; }
.hqt-gift__cta { background: var(--hqt-gold); color: #241c07; border: none; border-radius: 6px; padding: 13px 30px; font-weight: 800; font-size: 14px; cursor: pointer; font-family: var(--hqt-ff-body); }
.hqt-gift__cta:disabled { opacity: 0.45; cursor: default; }

@media (max-width: 880px) {
	.hqt-gift__herogrid, .hqt-gift__sizes { grid-template-columns: 1fr; }
	.hqt-gift__pool { grid-template-columns: 1fr 1fr; }
	.hqt-gift__summary { flex-wrap: wrap; }
	.hqt-gift__cta { flex: 1 1 100%; }
}

/* Festive duo hero: pure-CSS crossfade between the two founder banners. */
.hqt-gift__bannerhero--duo a { position: relative; display: block; line-height: 0; }
.hqt-gift__bannerhero--duo .hqt-gift__bslide--b { position: absolute; inset: 0; opacity: 0; animation: hqt-gift-fade 12s ease-in-out infinite; }
@keyframes hqt-gift-fade { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hqt-gift__bannerhero--duo .hqt-gift__bslide--b { animation: none; } }
