/* DM Gift Shop — WooCommerce pages: shop tweaks, product gift builder, cart/checkout, gift finder, story sheet */

/* ---------- shared tweaks ---------- */
a.icon-btn { text-decoration: none; }
.card { position: relative; }
.card h3 a { color: inherit; text-decoration: none; }
.card .like { z-index: 2; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.badge.out { right: auto; left: 14px; top: auto; bottom: 14px; background: #2B1E2F; color: #FFF6EE; animation: none; }
.crumbs a { color: var(--muted2); text-decoration: none; }
.crumbs a:hover { color: var(--coral-text); }
.filters-clear { font-size: 14px; font-weight: 700; color: var(--coral-text); }
.empty.show a { color: var(--coral-text); font-weight: 700; }
.pager .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; background: #fff;
	display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; color: var(--ink);
}
.pager .page-numbers.current { background: var(--ink); color: var(--cream); }
.pager .page-numbers.dots { background: none; }
.dm-btn, .dmr-btn { text-decoration: none; }
.bump { animation: bumpA .55s ease; display: inline-block; }

/* notices */
.dm-notices:empty { display: none; }
.dm-notices { margin-top: 16px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 16px; padding: 14px 18px; border-radius: 16px; background: #fff;
	border: 0; border-inline-start: 6px solid var(--mint); font-size: 15px; line-height: 1.7; color: var(--ink);
}
.woocommerce-error { border-inline-start-color: var(--coral-text); }
.woocommerce-message .button, .woocommerce-info .button { float: none; margin-inline-start: 10px; }

/* ---------- generic pages (cart, checkout, account) ---------- */
.page-wrap { padding: 16px 0 48px; }
.page-card { background: #fff; border-radius: 26px; padding: 28px 24px; }
.page-title { margin: 0 0 18px; font-size: 32px; font-weight: 800; }
.page-content { font-size: 16px; line-height: 1.8; }
.not-found { text-align: center; }
.dm-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 14px;
	background: var(--ink); color: var(--cream); font-weight: 800;
}

/* WooCommerce controls in our colours (classic + blocks) */
.wc-page, .wc-page input, .wc-page select, .wc-page textarea, .wc-page button,
.wc-block-components-text-input input, .wc-block-components-button { font-family: 'Tajawal', sans-serif; }
.wc-page .button, .wc-page button.button, .wc-page input.button, .wc-page a.checkout-button,
.wc-page #place_order, .wc-block-components-button:not(.is-link), .wc-block-cart__submit-button {
	background: var(--ink) !important; color: var(--cream) !important; border-radius: 14px !important; border: 0 !important;
	font-weight: 800 !important; min-height: 48px; padding: 12px 22px !important; text-shadow: none !important;
}
.wc-page a.checkout-button, .wc-page #place_order { background: var(--coral) !important; color: var(--ink) !important; font-size: 18px !important; }
.wc-page input.input-text, .wc-page select, .wc-page textarea, .wc-page .select2-selection {
	border: 1.5px solid var(--line) !important; border-radius: 12px !important; min-height: 46px; padding: 8px 12px !important; background: #fff;
}
.wc-page table.shop_table { border-radius: 18px; border-color: #F1E6DC; border-collapse: separate; overflow: hidden; }
.wc-page table.shop_table th, .wc-page table.shop_table td { border-color: #F1E6DC; padding: 14px 12px; }
.wc-page .product-thumbnail img { width: 72px; border-radius: 12px; }
.wc-page .dm-qty { font-weight: 800; }
.wc-page tr.dm-role-box td, .wc-page tr.dm-role-inbox td, .wc-page tr.dm-role-addon td { background: #FFFAF5; }
.wc-page tr.dm-role-box .product-name, .wc-page tr.dm-role-inbox .product-name, .wc-page tr.dm-role-addon .product-name { padding-inline-start: 28px; }
.dm-role-tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--cream); color: var(--coral-text); margin-inline-end: 4px; }
.wc-page dl.variation { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.wc-page dl.variation dt { font-weight: 700; }
.dm-thanks-msg { margin: 0 0 24px; padding: 22px; border-radius: 22px; background: var(--ink); color: var(--cream); }
.dm-thanks-msg h2 { margin: 0 0 8px; font-size: 24px; }
.dm-thanks-msg p { margin: 0 0 12px; color: #E9DCE6; }
.dm-thanks-msg ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dm-thanks-msg .button { background: var(--coral) !important; color: var(--ink) !important; }

/* ---------- product page ---------- */
.product-wrap { padding-top: 8px; padding-bottom: 120px; }
.pd-crumbs { margin: 4px 0 14px; }
.pd-crumbs span { color: var(--ink); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 900px) {
	.pd-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; }
	.pd-gallery { position: sticky; top: 100px; }
	.product-wrap { padding-bottom: 48px; }
}
.pd-stage { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: #F4EFEA; --box: #F2604E; --ribbon: #2B1E2F; }
.pd-main { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s; }
.pd-main.swap { animation: pdSwap .45s ease; }
@keyframes pdSwap { from { opacity: .2; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.pd-boxed { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .4s; background: color-mix(in srgb, var(--box) 18%, #fff); }
.pd-stage[data-view="boxed"] .pd-boxed { opacity: 1; }
.pd-stage[data-view="boxed"] .pd-main { opacity: 0; }
.pd-boxed-img { position: absolute; left: 24%; top: 5%; width: 52%; border-radius: 18px; mix-blend-mode: multiply; }
.pd-boxfront { position: absolute; left: 8%; bottom: 6%; width: 84%; }
.pd-stage[data-view="boxed"] .pd-boxfront { animation: boxIn .7s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes boxIn { 0% { opacity: 0; transform: translateY(60px); } 70% { transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
.bx-body { fill: var(--box); }
.bx-rib { fill: var(--ribbon); }
.pd-stage .badge { top: 14px; right: 14px; }
.pd-stage .like { top: 10px; left: 10px; }
.pd-view-toggle {
	position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3;
	font-family: inherit; font-size: 14px; font-weight: 800; padding: 10px 18px; min-height: 42px; border-radius: 999px; border: 0;
	background: rgba(255,255,255,.94); color: var(--ink); cursor: pointer; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(43,30,47,.5);
}
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumb { flex: 0 0 64px; height: 64px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #fff; }
.pd-thumb.active { border-color: var(--coral-text); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tag { font-size: 13px; font-weight: 700; color: var(--muted2); background: #fff; padding: 5px 12px; border-radius: 999px; text-decoration: none; }
.pd-title { margin: 10px 0 0; font-size: 30px; font-weight: 800; line-height: 1.35; }
.pd-price { margin-top: 6px; font-size: 28px; font-weight: 800; }
.pd-price small { font-size: 15px; font-weight: 500; }
.pd-from { color: var(--muted2); }
.pd-short { font-size: 16px; line-height: 1.8; color: var(--muted); }
.pd-short p { margin: 8px 0 0; }
.pd-oos { padding: 14px 16px; border-radius: 16px; background: #fff; font-weight: 700; }

.dm-gift { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.pd-card { background: #fff; border-radius: 22px; padding: 16px 18px; }
.pd-card-title { font-size: 17px; font-weight: 800; }
.pd-card-title.small { font-size: 15px; }
.pd-sub { font-size: 13px; line-height: 1.7; color: var(--muted2); margin-top: 2px; }
.pd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-row.small { font-size: 13px; font-weight: 700; }
.pd-h2 { margin: 14px 4px 0; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }

.pd-attr + .pd-attr { margin-top: 18px; }
.pd-attr-head { font-size: 15px; }
.pd-label { font-weight: 800; }
.pd-chosen { color: var(--muted); }
.pd-options { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.pd-swatch {
	width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(43,30,47,.15); background: var(--sw); cursor: pointer; padding: 0;
	transition: box-shadow .2s, transform .2s;
}
.pd-swatch.active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.pd-swatch:hover { transform: scale(1.08); }
.pd-pill {
	font-family: inherit; font-size: 15px; font-weight: 700; padding: 10px 16px; min-height: 44px; border-radius: 14px;
	border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s;
}
.pd-pill.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.pd-pill.oos, .pd-swatch.oos { opacity: .4; }
.pd-pill.oos { text-decoration: line-through; }
.pd-swatch.oos { position: relative; }
.pd-swatch.oos::after { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: var(--ink); transform: rotate(45deg); }
.pd-note { margin: 10px 0 0; font-size: 13px; color: var(--coral-text); font-weight: 700; }

.dm-switch { position: relative; flex: 0 0 auto; width: 56px; height: 32px; border-radius: 999px; border: 0; background: #D9CEC6; cursor: pointer; transition: background .3s; padding: 0; }
.dm-switch span { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: right .3s cubic-bezier(.3,1.4,.5,1); }
.dm-switch.on { background: var(--ink); }
.dm-switch.on span { right: 28px; }

.pd-boxes { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; animation: fadeUp .45s ease both; }
.pd-box {
	font-family: inherit; padding: 8px 6px 10px; border-radius: 16px; border: 2px solid transparent; background: var(--cream); cursor: pointer;
	display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); transition: border-color .2s, transform .2s;
}
.pd-box:hover { transform: translateY(-2px); }
.pd-box.active { border-color: var(--coral-text); }
.pd-box img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.pd-box-name { font-size: 13px; font-weight: 800; line-height: 1.35; text-align: center; }
.pd-box-meta { font-size: 12px; font-weight: 700; color: var(--muted); }

.pd-tabs { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: var(--cream); padding: 5px; border-radius: 16px; }
.pd-tabs button { font-family: inherit; font-size: 14px; font-weight: 800; min-height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background .25s, color .25s; }
.pd-tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.pd-panel { margin-top: 14px; }
.pd-panel[hidden] { display: none; }
.pd-upload { margin-top: 12px; }
.pd-upload[hidden] { display: none; }
.pd-upbar { height: 10px; border-radius: 999px; background: #F1E6DC; overflow: hidden; }
.pd-upbar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--mint); transition: width .2s; }
.pd-upmsg { margin: 8px 2px 0; font-size: 14px; font-weight: 700; }
.pd-upload.ok .pd-upmsg { color: var(--green); }
.pd-upload.bad .pd-upmsg { color: var(--coral-text); }
.pd-upload.bad .pd-upbar span { background: var(--coral-text); }

.dm-voice { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0; }
.dm-voice-btn { width: 88px; height: 88px; border-radius: 999px; border: 0; background: var(--coral-text); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(229,83,63,.12); transition: transform .2s; }
.dm-voice-btn:active { transform: scale(.95); }
.dm-voice-btn.rec { background: #C2382A; animation: recRing 1.4s ease-out infinite; }
@keyframes recRing { 0% { box-shadow: 0 0 0 0 rgba(229,83,63,.55); } 100% { box-shadow: 0 0 0 26px rgba(229,83,63,0); } }
.dm-voice-label { margin: 0; font-size: 15px; font-weight: 800; text-align: center; }
.dm-voice audio { width: 100%; }
.dm-voice-actions { display: flex; gap: 10px; width: 100%; }
.dm-voice-actions .dmr-btn { flex: 1; }
.dm-voice-actions[hidden], .dm-voice audio[hidden] { display: none; }

.pd-field-label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 700; }
.dm-gift input[type="text"], .dm-gift input[type="tel"], .dm-gift input[type="date"], .dm-gift textarea {
	width: 100%; font-family: inherit; font-size: 16px; padding: 0 14px; min-height: 48px; border-radius: 14px;
	border: 1.5px solid var(--line); background: var(--cream); color: var(--ink);
}
.dm-gift textarea { padding: 12px 14px; line-height: 1.7; resize: vertical; }
.dm-gift input:focus, .dm-gift textarea:focus { outline: 3px solid rgba(232,163,61,.5); outline-offset: 1px; }
.dm-gift input[type="tel"] { text-align: right; }
.pd-msg-extra[hidden] { display: none; }
.pd-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-theme {
	font-family: inherit; font-size: 14px; font-weight: 800; padding: 8px 16px; min-height: 44px; border-radius: 999px;
	border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.pd-theme.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.pd-theme .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.pd-theme .eq i { display: block; width: 3px; height: 6px; border-radius: 2px; background: currentColor; }
.pd-theme.playing .eq i { animation: eqb .5s ease-in-out infinite alternate; }
.pd-theme.playing .eq i:nth-child(2) { animation-delay: .15s; }
.pd-theme.playing .eq i:nth-child(3) { animation-delay: .3s; }
@keyframes eqb { from { height: 4px; } to { height: 14px; } }
.pd-preview-link { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; background: var(--cream); text-decoration: none; font-size: 15px; font-weight: 800; color: var(--coral-text); }
.pd-surprise { margin-top: 14px; background: var(--cream); border-radius: 16px; padding: 12px 14px; }

.pd-section[hidden] { display: none; }
.pd-section { animation: fadeUp .45s ease both; }
.pd-capacity { margin-top: 10px; }
.pd-capbar { margin-top: 8px; height: 10px; border-radius: 999px; background: #F1E6DC; overflow: hidden; }
.pd-capbar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--mint); transition: width .5s cubic-bezier(.3,1.3,.5,1), background .3s; }
.pd-fits, .pd-addons { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .pd-fits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pd-fit { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; border: 2px solid transparent; transition: border-color .3s; }
.pd-fit[hidden] { display: none; }
.pd-fit.active { border-color: var(--green); }
.pd-fit-img { position: relative; aspect-ratio: 4 / 3; background: #F4EFEA; }
.pd-fit-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-in { position: absolute; top: 8px; right: 8px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pd-in[hidden] { display: none; }
.pd-fit-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pd-fit-name { font-size: 14px; font-weight: 800; line-height: 1.4; }
.pd-fit-price { font-size: 14px; font-weight: 800; }
.pd-fit-btn {
	position: relative; margin-top: auto; font-family: inherit; font-size: 13px; font-weight: 800; min-height: 42px; border-radius: 12px;
	border: 0; background: var(--ink); color: #fff; cursor: pointer;
}
.pd-fit.active .pd-fit-btn { background: #fff; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.pd-fit-btn:disabled { background: #F1E6DC; color: var(--muted2); cursor: not-allowed; }
.pd-addon { background: #fff; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 6px; border: 2px solid transparent; }
.pd-addon.active { border-color: var(--gold); }
.pd-addon img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.pd-stepper { display: flex; align-items: center; gap: 4px; background: var(--cream); border-radius: 999px; padding: 2px; }
.pd-stepper button { width: 34px; height: 34px; border-radius: 999px; border: 0; background: #fff; font-size: 18px; font-weight: 800; color: var(--ink); cursor: pointer; }
.pd-stepper button[data-step="1"] { background: var(--ink); color: var(--cream); }
.pd-stepper span { min-width: 16px; text-align: center; font-weight: 800; }

.pd-error { margin: 0; padding: 12px 16px; border-radius: 14px; background: #FDE3DC; color: #8F2A1B; font-weight: 700; font-size: 15px; }
.pd-error[hidden] { display: none; }
.pd-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.97);
	border-top: 1px solid #F1E6DC; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pd-total small { display: block; font-size: 13px; color: var(--muted2); }
.pd-total b { font-size: 24px; font-weight: 800; }
.pd-total b small { display: inline; font-size: 14px; font-weight: 500; color: var(--ink); }
.pd-add-wrap { position: relative; flex: 1; max-width: 240px; }
.pd-add {
	width: 100%; font-family: inherit; font-size: 17px; font-weight: 800; min-height: 54px; border-radius: 16px; border: 0;
	background: var(--ink); color: #fff; cursor: pointer; transition: transform .2s, background .3s;
}
.pd-add:active { transform: scale(.96); }
.pd-add.added { background: var(--green); }
.pd-add:disabled { cursor: default; }
@media (min-width: 900px) {
	.pd-bar { position: static; border-radius: 22px; border: 0; padding: 16px 18px; }
	.pd-add-wrap { max-width: 280px; }
}
.pd-done { padding: 18px; border-radius: 22px; background: var(--ink); color: var(--cream); animation: fadeUp .5s ease both; }
.pd-done[hidden] { display: none; }
.pd-done p { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.pd-done .dmr-btn { flex: 1; }
.pd-done .dmr-btn.ghost { background: rgba(255,246,238,.12); color: var(--cream); }

.pd-details { margin-top: 18px; background: #fff; border-radius: 22px; overflow: hidden; }
.pd-details details { border-bottom: 1px solid #F1E6DC; }
.pd-details details:last-child { border-bottom: 0; }
.pd-details summary { list-style: none; cursor: pointer; min-height: 54px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 800; }
.pd-details summary::-webkit-details-marker { display: none; }
.pd-details summary::after { content: '⌄'; font-size: 20px; transition: transform .3s; }
.pd-details details[open] summary::after { transform: rotate(180deg); }
.pd-detail-body { padding: 0 18px 16px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.pd-detail-body table { width: 100%; border-collapse: collapse; }
.pd-detail-body th, .pd-detail-body td { text-align: start; padding: 6px 0; border-bottom: 1px solid #F1E6DC; }
.pd-detail-body td p { margin: 0; }

.pd-related { margin-top: 36px; }
.pd-related-row { margin-top: 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.pd-related-row::-webkit-scrollbar { display: none; }
.pd-related-row .card p { display: none; }

@media (max-width: 700px) {
	.pd-title { font-size: 25px; }
	.pd-stage { border-radius: 22px; }
	.pd-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pd-related-row { grid-auto-columns: 170px; }
	.pd-related-row .card-foot { flex-direction: column; align-items: stretch; }
	.page-card { padding: 22px 16px; border-radius: 22px; }
	.page-title { font-size: 26px; }
}

/* ---------- message page additions ---------- */
.msg-preview-banner { position: sticky; top: 0; z-index: 35; background: var(--gold); color: var(--ink); text-align: center; font-weight: 800; padding: 10px 14px; font-size: 14px; }
.react .story-btn {
	display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font-family: inherit;
	background: var(--cream); color: var(--ink); font-size: 15px; font-weight: 800; padding: 12px 18px; min-height: 48px; border-radius: 14px;
	box-shadow: inset 0 0 0 1.5px #E6D9D0;
}
.msg-gone .intro { flex: 1; }
.msg-gone .cta { margin-top: 22px; }
.msg-gone .hint { max-width: 340px; line-height: 1.8; }
.story-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(26,18,25,.78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.story-sheet[hidden] { display: none; }
.story-panel { background: #FFF6EE; color: #2B1E2F; border-radius: 24px; padding: 18px; width: min(380px, 100%); max-height: 92vh; overflow-y: auto; text-align: center; }
.story-panel h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.story-preview { width: 70%; aspect-ratio: 9 / 16; border-radius: 16px; background: #2B1E2F; display: block; margin: 0 auto; object-fit: cover; }
.story-actions { display: flex; gap: 10px; margin-top: 14px; }
.story-actions .dmr-btn { flex: 1; }
.story-actions [hidden] { display: none; }
.story-close { margin-top: 10px; background: none; border: 0; font-family: inherit; font-size: 15px; font-weight: 700; color: #5A4A5E; min-height: 44px; cursor: pointer; text-decoration: underline; }

/* ---------- gift finder ---------- */
.finder { position: relative; overflow: hidden; margin: 16px 0 48px; background: #fff; border-radius: 28px; padding: 34px 22px 30px; text-align: center; min-height: 60vh; }
.finder-eyebrow { margin: 0; font-size: 15px; font-weight: 800; color: var(--coral-text); }
.finder-dots { display: flex; justify-content: center; gap: 8px; margin: 12px 0 6px; }
.finder-dots span { width: 36px; height: 6px; border-radius: 999px; background: #F1E6DC; transition: background .3s; }
.finder-dots span.on { background: var(--coral); }
.finder-step { animation: fadeUp .45s ease both; }
.finder-step[hidden] { display: none; }
.finder-step h1 { margin: 14px 0 22px; font-size: 34px; font-weight: 800; outline: none; }
.finder-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-width: 720px; margin: 0 auto; }
.finder-opt {
	font-family: inherit; font-size: 17px; font-weight: 800; min-height: 74px; padding: 12px; border-radius: 20px;
	border: 2px solid var(--line); background: var(--cream); color: var(--ink); cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform .2s, border-color .2s, background .2s;
}
.finder-opt:hover { transform: translateY(-3px); border-color: var(--coral); }
.finder-opt.picked { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: scale(.97); }
.fo-ic { font-size: 28px; line-height: 1; }
.finder-back { margin-top: 18px; background: none; border: 0; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--muted); min-height: 44px; cursor: pointer; text-decoration: underline; }
.finder-loading { padding: 40px 0; }
.finder-loading[hidden], [data-results][hidden] { display: none; }
.finder-loading p { font-size: 18px; font-weight: 800; }
.finder-note { color: var(--muted); font-size: 15px; }
.finder-grid { text-align: start; margin-top: 18px; }
.finder-again { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 700px) {
	.finder { padding: 26px 16px 24px; border-radius: 22px; }
	.finder-step h1 { font-size: 27px; }
	.finder-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* buttons shared with the recorder (also used where the recorder CSS isn't loaded) */
.dmr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px;
	border-radius: 16px; border: 0; cursor: pointer; background: #2B1E2F; color: #FFFFFF;
	font-family: 'Tajawal', sans-serif; font-size: 16px; font-weight: 800; text-decoration: none;
}
.dmr-btn.ghost { background: #FFF6EE; color: #2B1E2F; }
.dmr-btn:hover { color: inherit; }
.dmr-btn:not(.ghost):hover { color: #FFFFFF; }

/* finder: closest matches + card buttons without link underline */
.finder-extra { margin-top: 28px; }
.finder-extra h2 { font-size: 1.15rem; margin: 0 0 14px; text-align: center; color: var(--ink); }
a.add, a.add:hover, .card .add { text-decoration: none; }
