/* Durr e Jahan product page. Everything is scoped to .djp so the theme is untouched. */
.djp {
  --maroon: #670F0E; --maroon-deep: #3E0807; --night: #240403; --ink: #1B1414;
  --gold: #F2BA62; --gold-deep: #C98E35; --muted: #6E6262; --blush: #FAF5F4; --line: #F0E6E4;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif; color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
.djp *, .djp *::before, .djp *::after { box-sizing: border-box; }
.djp a { color: inherit; text-decoration: none; }
.djp ul { list-style: none; margin: 0; padding: 0; }
.djp h1, .djp h2, .djp h3, .djp p, .djp figure { margin: 0; }
.djp img { max-width: 100%; height: auto; display: block; }
.djp svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.djp [hidden] { display: none !important; }
.djp button { font-family: inherit; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; color: inherit; cursor: pointer; font-size: inherit; line-height: inherit; font-weight: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; white-space: normal; }
.djp button:hover, .djp button:focus { background: none; color: inherit; }
.djp button:disabled { cursor: default; }
.djp input, .djp select, .djp textarea { font-family: inherit; }
.djp :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.djp-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding: 12px 16px 40px; }
.djp-notices { max-width: 1280px; margin: 12px auto 0; padding: 0 16px; }

.djp-crumbs { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 12px; white-space: nowrap; overflow: hidden; }
.djp-crumbs a { flex: none; }
.djp-crumbs a:hover { color: var(--maroon); }
.djp-crumbs span { color: #CDBDBA; flex: none; }
.djp-crumbs b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- top: gallery + info ---------- */
.djp-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

.djp-gallery { min-width: 0; margin-inline: -16px; }
.djp-stage { position: relative; overflow: hidden; background: linear-gradient(135deg, #F7EFED, #FBF6F5); aspect-ratio: 1; }
.djp-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.djp-track::-webkit-scrollbar { display: none; }
.djp-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; position: relative; overflow: hidden; cursor: zoom-in; }
.djp-slide img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .25s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.djp-slide.is-zoom img { transform: scale(2); }
.djp-badges { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.djp-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--maroon); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.djp-badge-dark { background: var(--ink); }
.djp-badge-gold { background: var(--gold); color: var(--maroon-deep); }
.djp .djp-round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--maroon); box-shadow: 0 8px 20px -10px rgba(36,4,3,.45); transition: background .25s, color .25s, transform .2s, opacity .25s; }
.djp .djp-round:hover { background: var(--maroon); color: #fff; }
.djp .djp-round:active { transform: scale(.92); }
.djp .djp-round:disabled { opacity: .35; }
.djp .djp-round-dark { background: var(--maroon); color: #fff; }
.djp .djp-round-dark:hover { background: var(--maroon-deep); }
.djp-g-prev, .djp-g-next { position: absolute; top: 50%; margin-top: -21px; z-index: 3; display: none !important; }
.djp-g-prev { left: 12px; } .djp-g-next { right: 12px; }
.djp-zoom-btn { position: absolute; right: 12px; top: 12px; z-index: 3; }
.djp-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.djp-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(36,4,3,.08); transition: width .3s, background .3s; }
.djp-dots i.is-on { width: 22px; background: var(--maroon); }
.djp-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px 2px; }
.djp-thumbs::-webkit-scrollbar { display: none; }
.djp .djp-thumb { flex: 0 0 64px; height: 64px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; opacity: .65; transition: opacity .25s, border-color .25s, transform .2s; background: var(--blush); }
.djp .djp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.djp .djp-thumb.is-active { border-color: var(--maroon); opacity: 1; }
.djp .djp-thumb:hover { opacity: 1; }

/* info */
.djp-info { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.djp-cat { align-self: flex-start; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.djp-cat:hover { color: var(--maroon); }
.djp-title { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.djp-rating-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); align-self: flex-start; }
.djp-rating-link:hover span { color: var(--maroon); text-decoration: underline; }
.djp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 26px; line-height: 1.2; }
.djp-price small { font-size: 14px; color: var(--muted); }
.djp-price b { color: var(--maroon); font-weight: 600; }
.djp-price s { font-size: 16px; color: #9a8f8f; }
.djp-save { align-self: center; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #FDEFD6; color: #8A5A12; }
.djp-price .woocommerce-Price-amount { white-space: nowrap; }
.djp-short { font-size: 14px; color: var(--muted); }
.djp-short p + p { margin-top: 8px; }
.djp-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #1F7A4D; align-self: flex-start; }
.djp-stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(31,122,77,.15); animation: djp-pulse 2s infinite; }
.djp-stock-low { color: #B5541A; } .djp-stock-low i { box-shadow: 0 0 0 4px rgba(181,84,26,.15); }
.djp-stock-out { color: var(--muted); } .djp-stock-out i { animation: none; box-shadow: none; }
@keyframes djp-pulse { 50% { box-shadow: 0 0 0 7px rgba(31,122,77,0); } }

/* ---------- WooCommerce add-to-cart form, restyled ---------- */
.djp-form { margin-top: 4px; }
.djp-form form.cart { margin: 0 !important; padding: 0; border: 0; }
.djp-form form.cart:not(.variations_form), .djp-form .woocommerce-variation-add-to-cart { display: flex !important; flex-wrap: nowrap; align-items: stretch; gap: 10px; width: 100%; }
.djp-form form.cart::before, .djp-form form.cart::after, .djp-form .woocommerce-variation-add-to-cart::before, .djp-form .woocommerce-variation-add-to-cart::after { display: none !important; }
.djp-form .stock { display: none; }
.djp-form table.variations { width: 100%; border: 0 !important; margin: 0 0 12px !important; border-collapse: collapse; background: none !important; }
.djp-form table.variations tr, .djp-form table.variations th, .djp-form table.variations td { display: block; border: 0 !important; padding: 0 !important; background: none !important; text-align: left; }
.djp-form table.variations tr + tr { margin-top: 14px; }
.djp-form table.variations th.label { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.djp-form table.variations th.label label { margin: 0; font-weight: 600; }
.djp-form table.variations th.label [data-chosen] { font-weight: 400; color: var(--muted); margin-left: 6px; }
.djp-form table.variations select { width: 100%; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background-color: #fff; font-size: 14px; color: var(--ink); }
.djp-form table.variations select.djp-hidden-select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.djp-form td.value { position: relative; }
.djp-form .reset_variations { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--maroon); text-decoration: underline; }
.djp-form .reset_variations[style*="hidden"] { display: none; }
.djp-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.djp .djp-swatch { min-width: 48px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink); transition: border-color .2s, background .2s, color .2s, transform .15s; }
.djp .djp-swatch:hover { border-color: var(--maroon); background: #fff; color: var(--ink); }
.djp .djp-swatch.is-on { border-color: var(--maroon); background: var(--maroon); color: #fff; }
.djp .djp-swatch:active { transform: scale(.96); }
.djp .djp-swatch.is-off { opacity: .4; text-decoration: line-through; }
.djp-form .single_variation_wrap { display: block; }
.djp-form .woocommerce-variation { margin-bottom: 12px; font-size: 14px; }
.djp-form .woocommerce-variation-price .price { font-size: 20px; color: var(--maroon); font-weight: 600; }
.djp-form .woocommerce-variation-price del { color: #9a8f8f; font-size: 15px; font-weight: 400; margin-right: 6px; }
.djp-form .woocommerce-variation-price ins { text-decoration: none; }
.djp-form .woocommerce-variation-availability .stock { display: block; font-size: 13px; color: #1F7A4D; margin: 4px 0 0; }
.djp-form .woocommerce-variation-availability .out-of-stock { color: #B42318; }

.djp-form .quantity { flex: none; margin: 0 !important; float: none !important; }
.djp-qty { display: inline-flex; align-items: center; height: 54px; border-radius: 999px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.djp .djp-qty button { width: 42px; height: 100%; display: grid; place-items: center; font-size: 20px; color: var(--maroon); transition: background .2s; }
.djp .djp-qty button:hover { background: var(--blush); color: var(--maroon); }
.djp-form .quantity input.qty { width: 40px !important; height: 100%; border: 0 !important; padding: 0 !important; margin: 0 !important; text-align: center; font-size: 16px; font-weight: 600; color: var(--ink); background: transparent !important; box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; min-height: 0; }
.djp-form .quantity input.qty::-webkit-inner-spin-button, .djp-form .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.djp-form .quantity.hidden, .djp-form .quantity input[type=hidden] + .djp-qty { display: none !important; }
.djp .djp-form .single_add_to_cart_button, .djp .djp-form button.button.alt { flex: 1; min-width: 0; height: 54px; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; padding: 0 20px !important; margin: 0 !important; border: 0 !important; border-radius: 999px !important; background: var(--maroon) !important; color: #fff !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1 !important; float: none !important; position: relative; overflow: hidden; transition: background .25s, transform .2s, box-shadow .25s; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.djp .djp-form .single_add_to_cart_button:hover { background: var(--maroon-deep) !important; box-shadow: 0 14px 28px -14px rgba(103,15,14,.7); }
.djp .djp-form .single_add_to_cart_button:active { transform: scale(.98); }
.djp .djp-form .single_add_to_cart_button.disabled, .djp .djp-form .single_add_to_cart_button:disabled { opacity: .5 !important; cursor: not-allowed; }
.djp .djp-form .single_add_to_cart_button::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: 0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: translateX(-150%) skewX(-18deg); animation: djp-shine 3.8s ease-in-out infinite; }
@keyframes djp-shine { 0%, 60% { transform: translateX(-150%) skewX(-18deg); } 100% { transform: translateX(330%) skewX(-18deg); } }
.djp .djp-form .single_add_to_cart_button.is-loading { pointer-events: none; }
.djp .djp-form .single_add_to_cart_button.is-done { background: #1F7A4D !important; }
.djp-form .group_table { width: 100%; margin-bottom: 12px; }

/* actions */
.djp-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.djp .djp-buy { height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #F8D9A3, var(--gold)); background-size: 200% 100%; color: var(--maroon-deep); font-size: 15px; font-weight: 600; transition: background-position .5s, transform .2s, box-shadow .25s; }
.djp .djp-buy:hover { background: linear-gradient(90deg, var(--gold), #F8D9A3, var(--gold)); background-size: 200% 100%; background-position: 100% 0; color: var(--maroon-deep); box-shadow: 0 14px 28px -16px rgba(201,142,53,.9); }
.djp .djp-buy:active { transform: scale(.98); }
.djp .djp-buy.is-loading { opacity: .7; pointer-events: none; }
.djp-wa { height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 1.5px solid #CDEBD8; background: #F1FBF5; color: #157347; font-size: 15px; font-weight: 500; transition: background .25s, border-color .25s; }
.djp-wa:hover { background: #E3F6EA; border-color: #25D366; color: #157347; }

.djp-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.djp-perks li { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 16px; background: var(--blush); border: 1px solid var(--line); min-width: 0; }
.djp-perks svg { color: var(--maroon); width: 22px; height: 22px; margin-top: 1px; }
.djp-perks span { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); line-height: 1.35; min-width: 0; }
.djp-perks b { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.djp-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); padding-top: 4px; }
.djp-meta b { color: var(--ink); font-weight: 500; }
.djp .djp-share { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--maroon); font-weight: 500; margin-left: auto; }
.djp .djp-share svg { width: 16px; height: 16px; }

/* ---------- details: tabs on desktop, stacked sections on phones ---------- */
.djp-details { margin-top: 36px; }
.djp-tabs { display: none; }
.djp-panel { padding: 22px 0; border-top: 1px solid var(--line); }
.djp .djp-panel-title { font-size: 20px; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.djp-prose { font-size: 15px; color: #4A3F3F; max-width: 760px; overflow-wrap: anywhere; }
.djp-prose p + p, .djp-prose ul, .djp-prose ol { margin-top: 10px; }
.djp-prose ul { list-style: disc; padding-left: 20px; }
.djp-prose img { border-radius: 16px; margin: 12px 0; }
.djp-table { width: 100%; max-width: 640px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14px; margin: 0; }
.djp-table th, .djp-table td { padding: 12px 14px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; vertical-align: top; }
.djp-table tr:last-child th, .djp-table tr:last-child td { border-bottom: 0; }
.djp-table th { width: 38%; background: var(--blush); font-weight: 600; color: var(--ink); }
.djp-ship { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.djp-ship > div { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; }
.djp-ship svg { color: var(--maroon); grid-row: span 2; width: 26px; height: 26px; }
.djp-ship b { font-size: 14px; }
.djp-ship p { font-size: 13px; color: var(--muted); }

/* reviews */
.djp-rev-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.djp-rev-summary { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 22px; background: linear-gradient(160deg, var(--blush), #FFF7EA); border: 1px solid var(--line); }
.djp-rev-score { display: flex; align-items: center; gap: 14px; }
.djp-rev-score > b { font-size: 46px; line-height: 1; font-weight: 600; color: var(--maroon); }
.djp-rev-score div { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.djp-bars { display: flex; flex-direction: column; gap: 4px; }
.djp .djp-bars button { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) 26px; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 10px; font-size: 12.5px; color: var(--ink); transition: background .2s; }
.djp .djp-bars button:not(:disabled):hover, .djp .djp-bars button.is-on { background: rgba(255,255,255,.8); color: var(--ink); }
.djp .djp-bars button:disabled { opacity: .5; }
.djp-bars i { height: 8px; border-radius: 8px; background: #EADCD9; overflow: hidden; display: block; }
.djp-bars em { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.djp-bars span:last-child { text-align: right; color: var(--muted); }
.djp-rev-main { min-width: 0; }
.djp-rev-filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--blush); font-size: 13px; margin-bottom: 12px; }
.djp .djp-rev-filter button { color: var(--maroon); text-decoration: underline; font-size: 13px; }
.djp-rev-list { display: flex; flex-direction: column; gap: 12px; }
.djp-review { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; animation: djp-rise .5s cubic-bezier(.2,.7,.2,1) both; }
.djp-review-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.djp-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--maroon), #8A1C1A); color: var(--gold); font-weight: 600; font-size: 15px; }
.djp-review-who { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; font-size: 12px; color: var(--muted); }
.djp-review-who b { font-size: 14px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.djp-review-who time { flex-basis: 100%; }
.djp-verified { display: inline-flex; align-items: center; gap: 3px; color: #1F7A4D; font-weight: 500; font-size: 11.5px; }
.djp-verified svg { width: 13px; height: 13px; }
.djp-review-text { margin-top: 10px; font-size: 14px; color: #4A3F3F; overflow-wrap: anywhere; }
.djp-review-text p + p { margin-top: 6px; }
.djp-rev-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 32px 16px; border-radius: 22px; border: 1px dashed #E6D8D5; }
.djp-rev-empty span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--maroon); color: var(--gold); font-size: 22px; }
.djp-rev-empty b { font-size: 16px; }
.djp-rev-empty p { font-size: 13.5px; color: var(--muted); max-width: 340px; }
.djp .djp-btn-ghost.djp-rev-more { display: flex; margin: 14px auto 0; }

/* stars */
.djp-stars { position: relative; display: inline-block; flex: none; height: 14px; width: 80px; background: #E6D8D5; -webkit-mask: var(--djp-star) repeat-x left center / 16px 14px; mask: var(--djp-star) repeat-x left center / 16px 14px; --djp-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M7 0l2.1 4.3 4.7.6-3.4 3.3.8 4.7L7 10.7 2.8 12.9l.8-4.7L.2 4.9l4.7-.6z'/%3E%3C/svg%3E"); }
.djp-stars i { position: absolute; inset: 0 auto 0 0; background: var(--gold); }
.djp-stars-xs { height: 11px; width: 63px; -webkit-mask-size: 12.6px 11px; mask-size: 12.6px 11px; }
.djp-stars-sm { height: 12px; width: 70px; -webkit-mask-size: 14px 12px; mask-size: 14px 12px; }
.djp-stars-lg { height: 18px; width: 104px; -webkit-mask-size: 20.8px 18px; mask-size: 20.8px 18px; }

/* buttons */
.djp .djp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px; background: var(--maroon); color: #fff; font-size: 14.5px; font-weight: 500; transition: background .25s, transform .2s; white-space: nowrap; }
.djp .djp-btn:hover { background: var(--maroon-deep); color: #fff; }
.djp .djp-btn:active { transform: scale(.98); }
.djp .djp-btn svg { width: 18px; height: 18px; }
.djp .djp-btn-block { width: 100%; }
.djp .djp-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); }
.djp .djp-btn-ghost:hover { border-color: var(--maroon); color: var(--maroon); background: #fff; }
.djp-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: djp-spin .7s linear infinite; flex: none; }
.djp-spin-dark { border-color: rgba(103,15,14,.2); border-top-color: var(--maroon); }
.is-loading > .djp-spin { display: inline-block; }
@keyframes djp-spin { to { transform: rotate(360deg); } }
@keyframes djp-rise { from { opacity: 0; transform: translateY(12px); } }

/* review modal */
.djp-modal { position: fixed; inset: 0; z-index: 99996; display: flex; align-items: flex-end; justify-content: center; background: rgba(36,4,3,.5); animation: djp-fade .25s; }
@keyframes djp-fade { from { opacity: 0; } }
.djp-modal-card { position: relative; width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 26px 18px calc(18px + env(safe-area-inset-bottom, 0px)); animation: djp-up .4s cubic-bezier(.2,.8,.2,1); }
@keyframes djp-up { from { transform: translateY(40px); opacity: 0; } }
.djp-modal-x { position: absolute; right: 14px; top: 14px; background: var(--blush) !important; box-shadow: none !important; }
.djp-modal-card h3 { font-size: 19px; font-weight: 600; padding-right: 52px; margin-bottom: 16px; line-height: 1.3; }
.djp-modal-card h3 em { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 23px; color: var(--maroon); }
.djp-rev-form { display: flex; flex-direction: column; gap: 14px; }
.djp-rate { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.djp-rate legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; width: 100%; }
.djp-rate-stars { display: inline-flex; flex-direction: row-reverse; }
.djp-rate-stars input { position: absolute; opacity: 0; pointer-events: none; }
.djp-rate-stars label { font-size: 34px; line-height: 1; padding: 0 2px; color: #E6D8D5; cursor: pointer; transition: color .15s, transform .15s; margin: 0; }
.djp-rate-stars label:hover, .djp-rate-stars label:hover ~ label, .djp-rate-stars input:checked ~ label { color: var(--gold); }
.djp-rate-stars label:active { transform: scale(1.2); }
.djp-rate-stars input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 6px; }
.djp-rate-text { font-size: 13px; color: var(--muted); }
.djp-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.djp-field small { font-weight: 400; color: var(--muted); }
.djp-field input, .djp-field textarea { width: 100%; padding: 12px 14px !important; border-radius: 14px !important; border: 1px solid var(--line) !important; background: #fff !important; font-size: 15px !important; font-weight: 400; color: var(--ink); box-shadow: none !important; outline: 0; transition: border-color .2s, box-shadow .2s; margin: 0; }
.djp-field textarea { resize: vertical; min-height: 110px; }
.djp-field input:focus, .djp-field textarea:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 4px rgba(242,186,98,.2) !important; }
.djp-field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.djp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.djp-as { font-size: 13.5px; color: var(--muted); }
.djp-as a { color: var(--maroon); text-decoration: underline; }
.djp-form-msg { font-size: 13px; min-height: 0; }
.djp-form-msg:empty { display: none; }
.djp-form-msg.is-err { color: #B42318; }
.djp-form-msg.is-ok { color: #1F7A4D; font-weight: 500; }

/* related rail */
.djp-related { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.djp-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.djp-eyebrow { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--maroon); font-weight: 600; margin-bottom: 4px; }
.djp-h2 { font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.djp-h2 em { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--maroon); font-size: 1.2em; font-weight: 600; }
.djp-rail-nav { display: flex; gap: 8px; flex: none; }
.djp-rail-nav .djp-round { border: 1px solid var(--line); box-shadow: none; }
.djp-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 10px; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; }
.djp-rail::-webkit-scrollbar { display: none; }
.djp-mini { flex: 0 0 62%; scroll-snap-align: start; min-width: 0; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line); background: #fff; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.djp-mini-media { position: relative; display: block; aspect-ratio: 1; margin: 5px 5px 0; border-radius: 14px; overflow: hidden; background: var(--blush); }
.djp-mini-media img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.djp-mini:hover .djp-mini-media img { transform: scale(1.06); }
.djp-mini-media .djp-badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 4px 10px; }
.djp-mini-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.djp-mini-name { font-size: 13.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.djp-mini-name:hover { color: var(--maroon); }
.djp-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.djp-mini-price { display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; min-width: 0; }
.djp-mini-price b { color: var(--maroon); font-weight: 600; }
.djp-mini-price s { font-size: 11.5px; color: #9a8f8f; }
.djp .djp-mini-add { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--maroon); color: #fff; font-size: 12.5px; font-weight: 500; transition: background .25s; }
.djp .djp-mini-add:hover { background: var(--maroon-deep); color: #fff; }
.djp .djp-mini-add svg { width: 16px; height: 16px; }
.djp .djp-mini-add.is-loading svg { display: none; }
.djp .djp-mini-add.is-done { background: #1F7A4D; }

/* sticky bar (phones) */
.djp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9995; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(36,4,3,.35); transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.djp-sticky.is-on { transform: none; }
.djp-sticky-in { display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto; }
.djp-sticky img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.djp-sticky-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.djp-sticky-txt b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.djp-sticky-txt span { font-size: 13px; color: var(--maroon); font-weight: 600; }
.djp-sticky .djp-btn { height: 46px; padding: 0 18px; flex: none; }

/* lightbox */
.djp-lightbox { position: fixed; inset: 0; z-index: 99997; background: rgba(20,4,3,.94); display: flex; align-items: center; justify-content: center; animation: djp-fade .25s; touch-action: pan-y; }
.djp-lightbox img { max-width: 92vw; max-height: 84vh; max-height: 84dvh; width: auto; border-radius: 12px; object-fit: contain; animation: djp-rise .35s; }
.djp-lb-x { position: absolute; top: 16px; right: 16px; }
.djp-lb-prev, .djp-lb-next { position: absolute; top: 50%; margin-top: -21px; }
.djp-lb-prev { left: 12px; } .djp-lb-next { right: 12px; }
.djp-lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 13px; }

/* toast */
.djp-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 99990; pointer-events: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 999px; background: var(--night); color: #fff; font-size: 13px; box-shadow: 0 20px 40px -16px rgba(36,4,3,.6); transform: translate(-50%, 160%); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; max-width: calc(100vw - 24px); }
.djp-toast.is-open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.djp.has-sticky .djp-toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.djp-toast-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #1F7A4D; flex: none; }
.djp-toast-ico svg { width: 16px; height: 16px; }
.djp-toast.is-warn .djp-toast-ico { background: var(--gold); color: var(--maroon-deep); }
.djp-toast.is-warn .djp-toast-ico svg { display: none; }
.djp-toast.is-warn .djp-toast-ico::before { content: "!"; font-weight: 700; font-size: 15px; }
.djp-toast [data-toast-text] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.djp-toast a { color: var(--gold); font-weight: 600; white-space: nowrap; }

/* ---------- small phones ---------- */
@media (max-width: 359px) {
  .djp-perks { grid-template-columns: minmax(0, 1fr); }
  .djp .djp-qty button { width: 36px; }
  .djp-form .quantity input.qty { width: 32px !important; }
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .djp-wrap { padding: 16px 24px 56px; }
  .djp-gallery { margin-inline: 0; }
  .djp-stage { border-radius: 26px; }
  .djp-thumbs { padding: 12px 0 2px; }
  .djp-title { font-size: 30px; }
  .djp-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .djp-perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .djp-perks li { flex-direction: column; gap: 8px; }
  .djp-ship { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .djp-ship > div { grid-template-columns: minmax(0, 1fr); }
  .djp-ship svg { grid-row: auto; margin-bottom: 4px; }
  .djp-field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .djp-modal { align-items: center; padding: 20px; }
  .djp-modal-card { border-radius: 26px; padding: 30px 28px 28px; }
  .djp-mini { flex-basis: 38%; }
  .djp-rail { margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
  .djp-rev-grid { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .djp-rev-summary { position: sticky; top: 100px; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .djp-wrap { padding: 20px 24px 80px; }
  .djp-crumbs { margin-bottom: 20px; }
  .djp-top { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .djp-gallery { position: sticky; top: 96px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .djp-gallery .djp-stage { grid-column: 2; grid-row: 1; }
  .djp-gallery .djp-thumbs { grid-column: 1; grid-row: 1; flex-direction: column; padding: 0; max-height: 100%; overflow-y: auto; }
  .djp .djp-thumb { flex: 0 0 76px; height: 76px; width: 76px; }
  .djp-gallery:not(:has(.djp-thumbs)) { grid-template-columns: minmax(0, 1fr); }
  .djp-gallery:not(:has(.djp-thumbs)) .djp-stage { grid-column: 1; }
  .djp-g-prev, .djp-g-next { display: grid !important; opacity: 0; }
  .djp-stage:hover .djp-g-prev, .djp-stage:hover .djp-g-next { opacity: 1; }
  .djp-dots { display: none; }
  .djp-info { gap: 14px; padding-top: 6px; }
  .djp-title { font-size: 34px; line-height: 1.15; }
  .djp-price { font-size: 30px; }
  .djp-details { margin-top: 64px; }
  .djp-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--blush); border: 1px solid var(--line); width: max-content; max-width: 100%; margin-bottom: 8px; }
  .djp .djp-tab { padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .25s, color .25s; }
  .djp .djp-tab:hover { color: var(--maroon); background: none; }
  .djp .djp-tab.is-active { background: var(--maroon); color: #fff; }
  .djp .djp-tab span { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 11px; }
  .djp .djp-tab:not(.is-active) span { background: #fff; color: var(--muted); }
  .djp-panel { display: none; border-top: 0; padding: 28px 0 0; }
  .djp-panel.is-active { display: block; animation: djp-rise .4s cubic-bezier(.2,.7,.2,1); }
  .djp-panel-title { display: none; }
  .djp-related { margin-top: 64px; padding-top: 48px; }
  .djp-h2 { font-size: 36px; }
  .djp-rail { margin-inline: 0; padding: 4px 0 12px; scroll-padding-inline: 0; gap: 20px; }
  .djp-mini { flex-basis: calc((100% - 60px) / 4); }
  .djp-mini:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(103,15,14,.45); }
  .djp-sticky { display: none; }
  .djp.has-sticky .djp-toast { bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .djp *, .djp *::before, .djp *::after { animation: none !important; transition: none !important; }
}
