/* ==================================================================
   JD Prestige - price cards, cart drawer and order-request form.
   Everything is scoped to .jdp / .jdp-cart-root / .cfb-jd, so the
   theme and other forms are never affected.
   ================================================================== */
.jdp,
.jdp-cart-root {
	--jd-bg: #0F0F0D;
	--jd-card: #161614;
	--jd-line: #2B2B26;
	--jd-gold: #C9A84C;
	--jd-gold-d: #B8963F;
	--jd-text: #F4F1EA;
	--jd-muted: #9A9A90;
	--jd-ink: #111110;
	--jd-cream: #FDF6EE;
	--jd-cream-line: #E8DFD1;
	--jd-font: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
	--jd-cond: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
	font-family: var(--jd-font);
	-webkit-font-smoothing: antialiased;
}
.jdp *, .jdp *::before, .jdp *::after,
.jdp-cart-root *, .jdp-cart-root *::before, .jdp-cart-root *::after { box-sizing: border-box; }
.jdp button, .jdp-cart-root button {
	-webkit-appearance: none; appearance: none; font: inherit; margin: 0; text-transform: none;
}

/* ---------- Section ---------- */
.jdp {
	width: 100%;
	background: var(--jd-bg);
	color: var(--jd-text);
	padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px);
}
.jdp-inner { max-width: 1200px; margin: 0 auto; }
.jdp-head {
	display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 32px 48px; align-items: end; margin: 0 0 clamp(28px, 4vw, 44px);
}
.jdp .jdp-kicker {
	display: flex; align-items: center; gap: 14px; margin: 0;
	font: 600 12px/1 var(--jd-font); letter-spacing: .2em; text-transform: uppercase; color: var(--jd-gold);
}
.jdp .jdp-kicker::before { content: ""; width: 48px; height: 1px; background: var(--jd-gold); opacity: .7; }
.jdp .jdp-h2 {
	margin: 16px 0 0; padding: 0; color: #fff; text-transform: uppercase;
	font: 700 clamp(30px, 4.6vw, 54px)/1.04 var(--jd-cond); letter-spacing: .005em;
}
.jdp .jdp-intro { margin: 0; max-width: 420px; justify-self: end; font-size: 15px; line-height: 1.6; color: var(--jd-muted); }

/* ---------- Cards ---------- */
.jdp-grid {
	display: grid; gap: 20px; align-items: stretch;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.jdp .jdp-card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--jd-card); border: 1px solid var(--jd-line); color: var(--jd-text);
}
.jdp .jdp-featured { border-color: #D8D4C8; }
.jdp .jdp-badge {
	position: absolute; top: -1px; right: -1px; padding: 8px 12px;
	background: var(--jd-gold); color: var(--jd-ink);
	font: 700 10px/1 var(--jd-cond); letter-spacing: .16em; text-transform: uppercase;
}
.jdp .jdp-card-head { padding: 34px 24px 24px; }
.jdp .jdp-eyebrow { margin: 0 0 12px; font: 600 11px/1.3 var(--jd-font); letter-spacing: .16em; text-transform: uppercase; color: var(--jd-gold); }
.jdp .jdp-title { margin: 0 0 12px; padding: 0; color: #fff; text-transform: uppercase; font: 700 27px/1.1 var(--jd-cond); letter-spacing: .01em; }
.jdp .jdp-desc { margin: 0 0 22px; font-size: 14px; line-height: 1.55; color: var(--jd-muted); }
.jdp .jdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.jdp .jdp-amount { font: 700 46px/1 var(--jd-cond); color: #fff; letter-spacing: .01em; }
.jdp .jdp-note { font-size: 12px; color: var(--jd-muted); }

.jdp .jdp-sec { padding: 20px 24px; border-top: 1px solid var(--jd-line); }
.jdp .jdp-label { margin: 0 0 14px; font: 700 11px/1 var(--jd-font); letter-spacing: .16em; text-transform: uppercase; color: var(--jd-gold); }
.jdp .jdp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.jdp .jdp-list li {
	position: relative; margin: 0; padding: 0 0 0 26px; font-size: 13.5px; line-height: 1.45; color: #E8E5DC;
}
.jdp .jdp-in li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.jdp .jdp-out li { color: var(--jd-muted); }
.jdp .jdp-out li::before {
	content: ""; position: absolute; left: 3px; top: 10px; width: 10px; height: 1.5px; background: #6b6a60;
}
.jdp .jdp-out { margin-top: 16px; }
.jdp .jdp-out[hidden] { display: none; }
.jdp .jdp-toggle {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
	padding: 0; background: none; border: 0; border-radius: 0; cursor: pointer; text-align: left;
	font: 600 12px/1.2 var(--jd-font); letter-spacing: .16em; text-transform: uppercase; color: #CFCABD;
}
.jdp .jdp-toggle:hover { color: #fff; }
.jdp .jdp-plus { position: relative; width: 12px; height: 12px; flex: none; }
.jdp .jdp-plus::before, .jdp .jdp-plus::after {
	content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 1.5px; background: var(--jd-gold); transition: transform .2s ease;
}
.jdp .jdp-plus::after { transform: rotate(90deg); }
.jdp .jdp-toggle[aria-expanded="true"] .jdp-plus::after { transform: rotate(0deg); }

.jdp .jdp-buy { margin-top: auto; display: grid; gap: 14px; padding: 20px 24px 24px; border-top: 1px solid var(--jd-line); }
.jdp .jdp-addon { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jdp .jdp-addon-label { display: block; font-size: 13px; font-weight: 500; color: #fff; }
.jdp .jdp-addon-price { display: block; margin-top: 2px; font-size: 11px; color: var(--jd-muted); }
.jdp .jdp-stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid #4A4426; background: #11110F; }
.jdp .jdp-stepper button {
	width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
	padding: 0; background: none; border: 0; border-radius: 0; cursor: pointer; color: var(--jd-gold); font-size: 17px; line-height: 1;
}
.jdp .jdp-stepper button:hover { background: rgba(201, 168, 76, .12); }
.jdp .jdp-stepper output { min-width: 34px; text-align: center; font: 600 15px/1 var(--jd-cond); color: #fff; }
.jdp .jdp-add {
	display: block; width: 100%; margin: 6px 0 0; padding: 16px 14px; border: 0; border-radius: 0; cursor: pointer;
	background: var(--jd-gold); color: var(--jd-ink);
	font: 700 14px/1 var(--jd-cond); letter-spacing: .14em; text-transform: uppercase; text-align: center;
	transition: background .2s ease, transform .12s ease;
}
.jdp .jdp-add:hover { background: #D6B75E; }
.jdp .jdp-add:active { transform: translateY(1px); }
.jdp .jdp-add.is-added { background: #E6D08A; }

.jdp button:focus-visible, .jdp-cart-root button:focus-visible, .jdp-cart-root a:focus-visible {
	outline: 2px solid var(--jd-gold); outline-offset: 2px;
}

/* ---------- Floating cart button (bottom left) ---------- */
.jdp-cart-root .jdp-fab {
	position: fixed; z-index: 99990;
	left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
	width: 58px; height: 58px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; cursor: pointer; background: var(--jd-gold); color: var(--jd-ink);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .15s ease, background .2s ease;
}
.jdp-cart-root .jdp-fab[hidden] { display: none; }
.jdp-cart-root .jdp-fab:hover { background: #D6B75E; transform: translateY(-2px); }
.jdp-cart-root .jdp-fab-count {
	position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
	display: inline-flex; align-items: center; justify-content: center; border-radius: 11px;
	background: var(--jd-ink); color: #fff; border: 2px solid var(--jd-gold);
	font: 700 12px/1 var(--jd-font);
}
.jdp-cart-root .jdp-bump { animation: jdp-bump .45s ease; }
@keyframes jdp-bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ---------- Drawer ---------- */
.jdp-cart-root .jdp-overlay {
	position: fixed; inset: 0; z-index: 99991; background: rgba(0, 0, 0, .55);
	opacity: 0; transition: opacity .3s ease;
}
.jdp-cart-root .jdp-overlay.is-open { opacity: 1; }
.jdp-cart-root .jdp-overlay[hidden], .jdp-cart-root .jdp-drawer[hidden] { display: none; }
.jdp-cart-root .jdp-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 99992;
	width: min(420px, 100vw); height: 100%; height: 100dvh;
	display: flex; flex-direction: column; background: var(--jd-cream); color: var(--jd-ink);
	transform: translateX(100%); transition: transform .3s ease; box-shadow: -12px 0 40px rgba(0, 0, 0, .3);
}
.jdp-cart-root .jdp-drawer.is-open { transform: translateX(0); }
.jdp-cart-root .jdp-dh {
	flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 20px 24px; padding-top: max(20px, env(safe-area-inset-top)); background: #0B0B0A; color: #fff;
}
.jdp-cart-root .jdp-dh h2 { margin: 0; padding: 0; color: #fff; text-transform: uppercase; font: 700 20px/1.1 var(--jd-cond); letter-spacing: .04em; }
.jdp-cart-root .jdp-x {
	width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 0; border-radius: 0; cursor: pointer; color: #fff; font-size: 28px; line-height: 1;
}
.jdp-cart-root .jdp-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.jdp-cart-root .jdp-view[hidden] { display: none; }
.jdp-cart-root .jdp-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 24px 24px; -webkit-overflow-scrolling: touch; }

.jdp-cart-root .jdp-lines { list-style: none; margin: 0; padding: 0; }
.jdp-cart-root .jdp-line { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--jd-cream-line); }
.jdp-cart-root .jdp-line-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.jdp-cart-root .jdp-line-title { font: 600 15px/1.3 var(--jd-font); color: var(--jd-ink); }
.jdp-cart-root .jdp-line-price { flex: none; font: 700 17px/1.2 var(--jd-cond); color: var(--jd-ink); white-space: nowrap; }
.jdp-cart-root .jdp-line-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 6px; }
.jdp-cart-root .jdp-line-label { font-size: 13px; line-height: 1.4; color: #6B6A60; }
.jdp-cart-root .jdp-remove {
	flex: none; padding: 0; background: none; border: 0; border-radius: 0; cursor: pointer;
	font-size: 13px; color: #55544B; text-decoration: underline; text-underline-offset: 2px;
}
.jdp-cart-root .jdp-remove:hover { color: var(--jd-ink); }
.jdp-cart-root .jdp-empty { margin: 32px 0; text-align: center; color: #6B6A60; font-size: 15px; }
.jdp-cart-root .jdp-empty[hidden] { display: none; }

.jdp-cart-root .jdp-totals {
	flex: none; padding: 20px 24px; padding-bottom: max(20px, env(safe-area-inset-bottom));
	background: var(--jd-cream); border-top: 1px solid var(--jd-cream-line);
}
.jdp-cart-root .jdp-rows { margin: 0 0 18px; padding: 0; }
.jdp-cart-root .jdp-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 14px; color: #3B3A33; }
.jdp-cart-root .jdp-rows dt, .jdp-cart-root .jdp-rows dd { margin: 0; padding: 0; font-weight: 400; }
.jdp-cart-root .jdp-rows dd { white-space: nowrap; }
.jdp-cart-root .jdp-rows .jdp-grand { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--jd-cream-line); font: 700 24px/1.1 var(--jd-cond); color: var(--jd-ink); }
.jdp-cart-root .jdp-rows .jdp-grand dt, .jdp-cart-root .jdp-rows .jdp-grand dd { font-weight: 700; }
.jdp-cart-root .jdp-go,
.cfb-jd .cfb-submit-btn {
	display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 17px 16px;
	background: var(--jd-gold); color: var(--jd-ink); border: 0; border-radius: 0; cursor: pointer;
	font: 700 14px/1 var(--jd-cond); letter-spacing: .14em; text-transform: uppercase; text-align: center;
	transition: background .2s ease, transform .12s ease;
}
.jdp-cart-root .jdp-go:hover, .cfb-jd .cfb-submit-btn:hover { background: #D6B75E; }
.jdp-cart-root .jdp-go:active, .cfb-jd .cfb-submit-btn:active { transform: translateY(1px); }
.jdp-cart-root .jdp-go:disabled, .cfb-jd .cfb-submit-btn:disabled, .cfb-jd .cfb-submit-btn.cfb-loading { opacity: .55; cursor: not-allowed; transform: none; }
.jdp-cart-root .jdp-fine { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #6B6A60; }

/* ---------- Order-request form inside the drawer ---------- */
.jdp-cart-root .jdp-back {
	margin: 16px 0 4px; padding: 0; background: none; border: 0; border-radius: 0; cursor: pointer;
	font: 600 13px/1 var(--jd-font); color: #55544B; text-decoration: underline; text-underline-offset: 2px;
}
.jdp-cart-root .jdp-recap {
	margin: 16px 0 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--jd-cream-line);
	font-size: 14px; color: #3B3A33;
}
.jdp-cart-root .jdp-recap strong { font: 700 18px/1 var(--jd-cond); color: var(--jd-ink); }
.jdp-cart-root .jdp-recap-tax { font-size: 12px; color: #6B6A60; }
.jdp-cart-root .jdp-lead { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: #55544B; }
.jdp-cart-root .jdp-lead a { color: var(--jd-ink); }

.cfb-jd { font-family: var(--jd-font, 'Barlow', Arial, sans-serif); text-align: left; direction: ltr; }
.cfb-jd form { margin: 0; padding: 0; }
.cfb-jd .cfb-jd-field { margin: 0 0 16px; }
.cfb-jd .cfb-jd-field label { display: block; margin: 0 0 6px; padding: 0; font: 600 13px/1.3 var(--jd-font, 'Barlow', Arial, sans-serif); color: #3B3A33; }
.cfb-jd .cfb-jd-req { color: #C0362C; margin-left: 2px; }
.cfb-jd .cfb-jd-field input {
	display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px;
	font: 400 16px/1.2 var(--jd-font, 'Barlow', Arial, sans-serif); color: var(--jd-ink, #111110);
	background: #fff; border: 1px solid #D9CFBD; border-radius: 0; box-shadow: none; outline: 0;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.cfb-jd .cfb-jd-field input::placeholder { color: #A7A296; opacity: 1; }
.cfb-jd .cfb-jd-field input:focus { border-color: var(--jd-gold, #C9A84C); box-shadow: 0 0 0 3px rgba(201, 168, 76, .25); }
.cfb-jd .cfb-field-invalid { border-color: #C0362C !important; box-shadow: 0 0 0 3px rgba(192, 54, 44, .15) !important; }
.cfb-jd .cfb-submit-btn { margin-top: 6px; }
.cfb-jd .cfb-jd-arrow { font-size: 16px; line-height: 1; }
.cfb-jd .cfb-message { margin-top: 14px; font-size: 14px; line-height: 1.45; text-align: left; }
.cfb-jd .cfb-message-success { color: #15803D; font-weight: 600; }
.cfb-jd .cfb-message-error { color: #B42318; }

/* ---------- Thank-you view ---------- */
.jdp-cart-root .jdp-done .jdp-body { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 40px; }
.jdp-cart-root .jdp-ok { color: var(--jd-gold-d); margin-bottom: 14px; }
.jdp-cart-root .jdp-done-title { margin: 0 0 8px; font: 700 30px/1.1 var(--jd-cond); text-transform: uppercase; color: var(--jd-ink); }
.jdp-cart-root .jdp-done-text { margin: 0 0 24px; max-width: 320px; font-size: 15px; line-height: 1.55; color: #3B3A33; }
.jdp-cart-root .jdp-done .jdp-go { width: auto; min-width: 180px; padding-left: 28px; padding-right: 28px; }

/* ---------- Utilities ---------- */
.jdp-cart-root .jdp-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.jdp-lock, html.jdp-lock body { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.jdp .jdp-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.jdp .jdp-intro { justify-self: start; max-width: none; }
}
@media (max-width: 480px) {
	.jdp { padding-left: 14px; padding-right: 14px; }
	.jdp .jdp-card-head { padding: 30px 18px 20px; }
	.jdp .jdp-sec, .jdp .jdp-buy { padding-left: 18px; padding-right: 18px; }
	.jdp .jdp-amount { font-size: 42px; }
	.jdp-cart-root .jdp-fab { width: 54px; height: 54px; }
	.jdp-cart-root .jdp-drawer { width: 100vw; }
	.jdp-cart-root .jdp-body, .jdp-cart-root .jdp-totals { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.jdp *, .jdp-cart-root * { transition: none !important; animation: none !important; }
}
