/* ============================================================
   DMJ Product Details Page
   Scoped to .dmj-pdp — nothing leaks into the theme.
   ============================================================ */

.dmj-pdp {
	--dmj-ink: #1a1a1a;
	--dmj-ink-soft: #444;
	--dmj-muted: #888;
	--dmj-line: #e5e5e5;
	--dmj-line-strong: #b8b8b8;
	--dmj-bg: #fff;
	--dmj-bg-soft: #f4f4f4;
	--dmj-sale: #e0442f;
	--dmj-ok: #1f7a45;
	--dmj-radius: 2px;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--dmj-ink);
	background: var(--dmj-bg);
	max-width: 100%;
	margin: 0 auto;
	padding: 28px 24px 60px;
	-webkit-font-smoothing: antialiased;
}

/* --- full-width breakout out of a narrow theme container --- */
.dmj-pdp.dmj-breakout {
	width: 100%;
}

/* kill the theme sidebar / narrow column on PDP pages */
body.dmj-pdp-page #secondary,
body.dmj-pdp-page .sidebar,
body.dmj-pdp-page .widget-area,
body.dmj-pdp-page aside.sidebar-primary { display: none !important; }

body.dmj-pdp-page #primary,
body.dmj-pdp-page .content-area,
body.dmj-pdp-page .site-main,
body.dmj-pdp-page main.site-main {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* --- reset against aggressive theme styles --- */
.dmj-pdp *,
.dmj-pdp *::before,
.dmj-pdp *::after { box-sizing: border-box; }

.dmj-pdp img {
	max-width: 100%;
	height: auto;
	display: block;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.dmj-pdp a { color: inherit; text-decoration: none; box-shadow: none; }
.dmj-pdp a:hover { color: inherit; }

.dmj-pdp h1,
.dmj-pdp h2,
.dmj-pdp h3 {
	font-family: inherit;
	color: var(--dmj-ink);
	margin: 0;
	padding: 0;
	line-height: 1.2;
	text-transform: none;
}

.dmj-pdp p { margin: 0 0 12px; color: inherit; }

.dmj-pdp button,
.dmj-pdp select,
.dmj-pdp input,
.dmj-pdp textarea {
	font-family: inherit;
	font-size: inherit;
	margin: 0;
	border-radius: var(--dmj-radius);
	background: #fff;
	color: var(--dmj-ink);
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	text-shadow: none;
	transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}

.dmj-pdp button { cursor: pointer; }

/* ------------------------------------------------------------
   HOVER SAFETY NET
   Many themes set `button:hover { color: X }` which made our
   button labels vanish. These rules lock the label colour for
   every state of every button inside the PDP.
   ------------------------------------------------------------ */
.dmj-pdp button,
.dmj-pdp button:hover,
.dmj-pdp button:focus,
.dmj-pdp button:active,
.dmj-pdp button:visited { text-decoration: none; opacity: 1; }

/* dark buttons — label always white */
.dmj-pdp .dmj-addcart,
.dmj-pdp .dmj-addcart:hover,
.dmj-pdp .dmj-addcart:focus,
.dmj-pdp .dmj-addcart:active,
.dmj-pdp .dmj-write-review,
.dmj-pdp .dmj-write-review:hover,
.dmj-pdp .dmj-write-review:focus,
.dmj-pdp .dmj-write-review:active,
.dmj-pdp .dmj-size.is-active,
.dmj-pdp .dmj-size.is-active:hover,
.dmj-pdp .dmj-size.is-active:focus,
.dmj-pdp .dmj-modal-submit,
.dmj-pdp .dmj-modal-submit:hover,
.dmj-pdp .dmj-modal-submit:focus { color: #fff !important; }

/* light buttons — label always ink */
.dmj-pdp .dmj-size,
.dmj-pdp .dmj-size:hover,
.dmj-pdp .dmj-size:focus,
.dmj-pdp .dmj-qty button,
.dmj-pdp .dmj-qty button:hover,
.dmj-pdp .dmj-related-tabs button.is-active,
.dmj-pdp .dmj-related-tabs button.is-active:hover,
.dmj-pdp .dmj-modal-cancel,
.dmj-pdp .dmj-modal-cancel:hover { color: var(--dmj-ink) !important; }

/* buttons that invert on hover */
.dmj-pdp .dmj-ctl-actions button:hover,
.dmj-pdp .dmj-ctl-actions button:focus,
.dmj-pdp .dmj-related-add:hover,
.dmj-pdp .dmj-related-add:focus { color: #fff !important; }

.dmj-pdp :focus-visible {
	outline: 2px solid var(--dmj-ink);
	outline-offset: 2px;
}

.dmj-pdp .screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* --- breadcrumb --- */
/* Breadcrumb sits with the title in the info column, not as page
   chrome at the very top. Two stages only — the product name is the
   <h1> immediately below, so repeating it would be noise. */
.dmj-crumb { font-size: 13px; color: var(--dmj-muted); margin-bottom: 10px; }
.dmj-crumb a:hover { color: var(--dmj-ink); text-decoration: underline; }
.dmj-crumb span[aria-current] { color: var(--dmj-ink); }
.dmj-crumb-sep { margin: 0 6px; color: var(--dmj-line-strong); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.dmj-main {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(330px, 1fr);
	gap: 40px;
	align-items: start;
}

/* --- gallery --- */
.dmj-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	min-width: 0;
}

.dmj-gallery-item {
	padding: 0;
	border: 0;
	background: var(--dmj-bg-soft);
	overflow: hidden;
	border-radius: var(--dmj-radius);
	aspect-ratio: 4 / 5;
	cursor: zoom-in;
}

.dmj-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.dmj-gallery-item:hover img { transform: scale(1.03); }

/* --- info column --- */
.dmj-info { min-width: 0; }
.dmj-info-inner { position: sticky; top: 24px; }

.dmj-title {
	font-size: clamp(22px, 2.1vw, 30px);
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.dmj-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 18px;
	margin-bottom: 18px;
}
.dmj-price .now { color: var(--dmj-sale); font-weight: 700; }
.dmj-price .was { text-decoration: line-through; color: var(--dmj-muted); font-size: 16px; }

.dmj-desc { font-size: 14px; line-height: 1.6; color: var(--dmj-ink-soft); margin-bottom: 20px; }

.dmj-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: block; line-height: 1.3; }
.dmj-label b { font-weight: 700; }

.dmj-row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dmj-sizeguide { font-size: 12px; text-decoration: underline; color: #666; }
.dmj-sizeguide:hover { color: var(--dmj-ink); }

/* --- swatches --- */
.dmj-swatches { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.dmj-swatch {
	width: 56px; height: 56px;
	padding: 2px;
	border: 1px solid var(--dmj-line);
	background: #fff;
	overflow: hidden;
	border-radius: 4px;
}
.dmj-swatch img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.dmj-swatch.is-active { border-color: var(--dmj-ink); box-shadow: inset 0 0 0 1px var(--dmj-ink); }

/* --- sizes --- */
.dmj-sizes { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.dmj-size {
	position: relative;
	min-width: 46px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--dmj-line-strong);
	background: #fff;
	font-size: 13px;
	line-height: 38px;
	white-space: nowrap;   /* stops "XXL" wrapping onto two lines */
	overflow: hidden;
}
.dmj-size:hover:not(:disabled) { border-color: var(--dmj-ink); background: #fff; }
.dmj-size.is-active { background: var(--dmj-ink); border-color: var(--dmj-ink); }
.dmj-size.is-active:hover { background: #000; border-color: #000; }

.dmj-size.is-oos {
	color: var(--dmj-line-strong) !important;
	border-color: var(--dmj-line);
	cursor: not-allowed;
	background: #fff;
}
.dmj-size.is-oos::after {
	content: "";
	position: absolute;
	left: -10%;
	top: 50%;
	width: 120%;
	height: 1px;
	background: var(--dmj-line-strong);
	transform: rotate(-24deg);
}

.dmj-error { font-size: 12.5px; color: var(--dmj-sale); margin: -6px 0 12px; }

/* --- buy row --- */
.dmj-buy { display: flex; gap: 10px; margin-bottom: 10px; }

.dmj-qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--dmj-line-strong);
	border-radius: var(--dmj-radius);
	flex: 0 0 108px;
}
.dmj-qty button { width: 34px; height: 46px; border: 0; background: transparent; font-size: 16px; line-height: 1; }
.dmj-qty button:hover { background: var(--dmj-bg-soft); }
.dmj-qty input {
	width: 40px; height: 46px;
	border: 0; text-align: center; font-size: 14px;
	-moz-appearance: textfield; background: transparent;
}
.dmj-qty input::-webkit-outer-spin-button,
.dmj-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.dmj-addcart {
	flex: 1;
	min-height: 48px;
	padding: 15px 18px;
	background: #000 !important;
	border: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
}
.dmj-addcart:hover { background: #000; }
.dmj-addcart.is-loading { opacity: .65; pointer-events: none; }
.dmj-addcart.is-done { background: var(--dmj-ok); }

.dmj-shipnote {
	padding: 12px;
	background: var(--dmj-bg-soft);
	text-align: center;
	font-size: 12.5px;
	color: #555;
	border-radius: var(--dmj-radius);
	margin-bottom: 26px;
}

/* --- complete the look ---
   Sits in the info column under the delivery badge. Two columns per
   row: a tall product shot, and a block holding the name/price row,
   the colour line, and the size + add controls. */
.dmj-ctl {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 2px solid var(--dmj-line-strong);
}

.dmj-ctl-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-align: center;
	margin: 0 0 18px;
}

.dmj-ctl-item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	margin-bottom: 18px;
}

.dmj-ctl-item:last-child { margin-bottom: 0; }

.dmj-ctl-media {
	display: block;
	width: 96px;
	aspect-ratio: 3 / 4;
	background: var(--dmj-bg-soft);
	border-radius: 2px;
	overflow: hidden;
}

.dmj-ctl-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dmj-ctl-body { min-width: 0; padding-top: 2px; }

/* Name on the left, price hard right — as in the design. */
.dmj-ctl-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.dmj-ctl-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--dmj-ink);
	line-height: 1.35;
	min-width: 0;
}

.dmj-ctl-name:hover { text-decoration: underline; }

.dmj-ctl-sub {
	font-size: 12px;
	color: var(--dmj-muted);
	margin-top: 3px;
}

.dmj-ctl-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 700;
}

.dmj-ctl-price .now.is-sale { color: var(--dmj-sale); }

.dmj-ctl-price .was {
	text-decoration: line-through;
	color: var(--dmj-muted);
	font-weight: 400;
	font-size: 12px;
}

.dmj-ctl-actions {
	display: flex;
	gap: 8px;
	align-items: stretch;
	margin-top: 10px;
}

.dmj-ctl-actions select {
	font-size: 12px;
	padding: 8px 6px;
	border: 1px solid var(--dmj-ink);
	background: #fff;
	min-width: 78px;
	max-width: 130px;
	flex-shrink: 0;
}

.dmj-ctl-actions button {
	flex: 1;
	font-size: 12px;
	font-weight: 600;
	padding: 8px 12px;
	border: 1px solid var(--dmj-ink);
	background: #fff;
	color: var(--dmj-ink);
	white-space: nowrap;
	cursor: pointer;
}

.dmj-ctl-actions button:hover { background: var(--dmj-ink); color: #fff !important; }

.dmj-ctl-actions button.is-done {
	background: var(--dmj-ok);
	border-color: var(--dmj-ok);
	color: #fff !important;
}

/* --- accordion ---
   Dividers are deliberately heavier than a hairline: in the reference
   design these lines are a visible structural element, not a faint
   separator. */
.dmj-accordion { border-top: 2px solid var(--dmj-line-strong); margin-top: 22px; }
.dmj-accordion details { border-bottom: 2px solid var(--dmj-line-strong); }
.dmj-accordion summary {
	padding: 15px 2px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	user-select: none;
}
.dmj-accordion summary::-webkit-details-marker { display: none; }

.dmj-accordion summary::after {
	content: "";
	width: 11px;
	height: 11px;
	flex-shrink: 0;
	border-right: 2px solid var(--dmj-ink);
	border-bottom: 2px solid var(--dmj-ink);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.dmj-accordion details[open] summary::after {
	transform: rotate(-135deg) translate(-3px, -3px);
}

/* Height is animated from JS (see dmj-pdp.js) because a <details>
   element removes its content from the box tree when closed, so a
   pure-CSS height transition has nothing to animate between. */
.dmj-accordion .dmj-acc-body {
	overflow: hidden;
	transition: height .32s cubic-bezier(.4, 0, .2, 1), opacity .24s ease;
}

.dmj-accordion .dmj-acc-body.is-animating { opacity: .6; }

.dmj-accordion .dmj-acc-body p {
	padding: 0 2px 18px;
	font-size: 13.5px;
	color: #555;
	line-height: 1.65;
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.dmj-accordion .dmj-acc-body,
	.dmj-accordion summary::after { transition: none; }
}

/* ============================================================
   YOU MAY ALSO LIKE
   ============================================================ */
.dmj-related-tabs {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin: 60px 0 24px;
}
.dmj-related-tabs button {
	border: 0;
	background: none;
	padding: 4px 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #b3b3b3;
}
.dmj-related-tabs button.is-active { border-bottom: 2px solid var(--dmj-ink); }
/* only one section available — it reads as a heading, not a tab */
.dmj-related-tabs:has(button:only-child) button { color: var(--dmj-ink); border-bottom: 0; }

.dmj-related {
	display: grid;
	/* ALWAYS five equal slots. With fewer products the cards keep their
	   size and the remaining slots stay empty — a single product must
	   not stretch across the whole row. */
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
	justify-content: start;
	align-items: start;
}
.dmj-related-card { min-width: 0; }
.dmj-related-media {
	display: block;
	aspect-ratio: 4 / 5;
	background: var(--dmj-bg-soft);
	border-radius: var(--dmj-radius);
	overflow: hidden;
	margin-bottom: 10px;
}
.dmj-related-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dmj-related-card:hover .dmj-related-media img { transform: scale(1.04); }
.dmj-related-name { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.dmj-related-name:hover { text-decoration: underline; }
.dmj-related-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.dmj-related-sub { font-size: 12px; color: var(--dmj-muted); }
.dmj-related-price { font-size: 13px; font-weight: 600; }
.dmj-related-price .was { text-decoration: line-through; color: var(--dmj-muted); font-weight: 400; margin-right: 4px; }
.dmj-related-add {
	width: 26px; height: 26px;
	border-radius: 50%;
	border: 1px solid var(--dmj-line-strong);
	background: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px; line-height: 1;
	flex-shrink: 0; padding: 0;
	color: var(--dmj-ink);
}
.dmj-related-add:hover { background: var(--dmj-ink); border-color: var(--dmj-ink); color: #fff !important; }

/* ============================================================
   REVIEWS
   ============================================================ */
.dmj-reviews { margin-top: 70px; }
.dmj-reviews-label {
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--dmj-muted);
	margin-bottom: 20px;
}

.dmj-reviews-summary {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 40px;
	padding-bottom: 22px;
}


/* Left — the headline number and what it rests on. */
.dmj-rev-score-row { display: flex; align-items: baseline; gap: 10px; }
.dmj-reviews-summary .score { font-size: 30px; font-weight: 700; line-height: 1; }
.dmj-reviews-summary .stars { font-size: 17px; letter-spacing: 2px; line-height: 1; }
.dmj-reviews-summary .count { font-size: 12.5px; color: var(--dmj-muted); margin-top: 8px; }

/* Middle — the quality scale, capped so it doesn't sprawl. */
.dmj-rev-quality { max-width: 260px; }

/* Right — the call to action, hard against the edge. */
.dmj-rev-cta { justify-self: end; }

.dmj-quality-label { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.dmj-quality-bar {
	position: relative;
	height: 3px;
	background: var(--dmj-ink);
	width: 100%;
	max-width: 220px;
	margin-bottom: 5px;
}
.dmj-quality-bar .dot {
	position: absolute; top: 50%;
	width: 9px; height: 9px;
	border-radius: 50%;
	background: var(--dmj-ink);
	transform: translate(-50%, -50%);
}
.dmj-quality-scale {
	display: flex; justify-content: space-between;
	font-size: 11px; color: var(--dmj-muted); max-width: 220px;
}

/* Write Review — theme kabhi kabhi button ka text colour transparent
   ya background jaisa kar deti hai, is liye har state par lock. */
.dmj-pdp .dmj-write-review,
.dmj-pdp .dmj-write-review:link,
.dmj-pdp .dmj-write-review:visited,
.dmj-pdp .dmj-write-review:hover,
.dmj-pdp .dmj-write-review:focus,
.dmj-pdp .dmj-write-review:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	background: var(--dmj-ink) !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--dmj-radius);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .2px;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	opacity: 1 !important;
	visibility: visible !important;
	justify-self: end;
	white-space: nowrap;
	cursor: pointer;
}
.dmj-pdp .dmj-write-review:hover,
.dmj-pdp .dmj-write-review:focus { background: #000 !important; }

/* text node bhi hide na ho jaye */
.dmj-pdp .dmj-write-review * { color: #fff !important; opacity: 1 !important; }

.dmj-reviews-toolbar {
	display: flex; justify-content: space-between; align-items: center;
	gap: 16px;
	border-top: 2px solid var(--dmj-line-strong);
	border-bottom: 2px solid var(--dmj-line-strong);
	padding: 14px 0; margin-bottom: 6px;
	font-size: 13px; flex-wrap: wrap;
}

/* No reviews yet — the tabs still need to be reachable, but the
   toolbar should not look like it lost something above it. */
.dmj-reviews-toolbar.is-bare { margin-top: 4px; }
.dmj-reviews-toolbar .left { display: flex; gap: 18px; align-items: center; }
.dmj-sort, .dmj-search { display: flex; align-items: center; gap: 6px; color: #555; }
.dmj-sort select { border: 0; font-size: 13px; padding: 4px; background: transparent; }
.dmj-search input {
	border: 0; border-bottom: 1px solid transparent;
	padding: 4px 2px; font-size: 13px; width: 150px; background: transparent;
}
.dmj-search input:focus { border-bottom-color: var(--dmj-line-strong); outline: none; }

.dmj-reviews-toolbar .right { display: flex; gap: 20px; }
.dmj-reviews-toolbar .right button {
	border: 0; background: none; padding: 2px 0;
	font-size: 13px; font-weight: 600; color: var(--dmj-muted);
}
.dmj-reviews-toolbar .right button.is-active {
	color: var(--dmj-ink) !important;
	text-decoration: none;
	border-bottom: 2px solid var(--dmj-ink);
	padding-bottom: 2px;
}

.dmj-review {
	border-bottom: 1px solid var(--dmj-line);
	padding: 26px 0;
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 24px;
}
.dmj-review[hidden] { display: none; }
.dmj-review.is-new { animation: dmj-slide .35s ease; }

.dmj-avatar {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: #e6e6e6;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 14px;
	margin-bottom: 10px;
}
.dmj-verified { font-size: 11px; color: #555; margin-bottom: 6px; }
.dmj-review-name { font-weight: 700; font-size: 13.5px; }
.dmj-review-loc { font-size: 12px; color: var(--dmj-muted); margin-bottom: 8px; }
.dmj-recommend { font-size: 11.5px; color: var(--dmj-ink-soft); }

.dmj-review-stars { font-size: 13px; letter-spacing: 1px; margin-bottom: 6px; }
.dmj-review-title { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.dmj-review-body { font-size: 13.5px; color: var(--dmj-ink-soft); line-height: 1.6; margin-bottom: 14px; }
.dmj-review-body.is-empty { font-style: italic; color: var(--dmj-muted); }
.dmj-review-fit { font-size: 13px; margin-bottom: 14px; }
.dmj-review-quality { margin-bottom: 18px; max-width: 260px; }

.dmj-review-footer {
	display: flex; justify-content: space-between; align-items: center;
	gap: 12px; font-size: 12px; color: var(--dmj-muted); flex-wrap: wrap;
}
.dmj-helpful button {
	border: 0; background: none; padding: 0 2px;
	font-size: 12px; color: #666 !important; text-decoration: underline;
	margin-left: 4px;
}
.dmj-helpful button:hover { color: var(--dmj-ink) !important; }
.dmj-helpful button[disabled] { text-decoration: none; color: var(--dmj-muted) !important; cursor: default; }
.dmj-helpful button.is-voted {
	color: var(--dmj-ok) !important;
	font-weight: 600;
	text-decoration: none;
}
.dmj-helpful button.is-voted::before { content: "✓ "; }

/* ============================================================
   VARIATION DROPDOWNS + PERSONALIZATION (Customily & similar)
   ============================================================ */

/* --- WooCommerce variations table ---
   Structure zaroori hai (uska script isi ko parhta hai), lekin
   colour/size rows user ko nahi dikhtin — hamare buttons unhe
   drive karte hain.

   `display:none` NAHI — WooCommerce ka script visibility check
   karta hai, is liye clip se chhupate hain. */
.dmj-pdp table.variations {
	width: 100%;
	max-width: 100%;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	background: none;
	table-layout: auto;
}
.dmj-pdp table.variations tbody { display: block; width: 100%; }

.dmj-pdp table.variations tr,
.dmj-pdp table.variations th,
.dmj-pdp table.variations td {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	vertical-align: top;
}

/* colour + size rows — chhupi hui, lekin script ke liye maujood */
.dmj-pdp tr.dmj-variation-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	margin: -1px;
}

/* visible attribute rows (Paper, Quantity waghera) */
.dmj-pdp tr.dmj-variation-row:not(.dmj-variation-hidden) { margin-bottom: 18px; }
.dmj-pdp tr.dmj-variation-row:not(.dmj-variation-hidden):last-child { margin-bottom: 0; }

.dmj-pdp tr.dmj-variation-row th.label { margin: 0 0 8px; padding: 0; }

.dmj-pdp tr.dmj-variation-row th.label label {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--dmj-ink);
	text-transform: none;
	letter-spacing: 0;
}

.dmj-pdp tr.dmj-variation-row td.value { margin: 0; padding: 0; }

/* Dropdowns — size buttons jitni chaudai, poori column nahi. */
.dmj-pdp .dmj-attr-select,
.dmj-pdp table.variations td.value select {
	display: block;
	width: 100%;
	max-width: 280px;
	height: 44px;
	margin: 0;
	padding: 0 34px 0 12px;
	border: 1px solid var(--dmj-line-strong);
	border-radius: var(--dmj-radius);
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2316161a' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 10px 7px;
	font-size: 13.5px;
	line-height: 42px;
	color: var(--dmj-ink);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	box-shadow: none;
}
.dmj-pdp .dmj-attr-select:hover,
.dmj-pdp table.variations td.value select:hover { border-color: var(--dmj-ink); }
.dmj-pdp .dmj-attr-select:focus,
.dmj-pdp table.variations td.value select:focus {
	outline: none;
	border-color: var(--dmj-ink);
	box-shadow: inset 0 0 0 1px var(--dmj-ink);
}

/* --- form chrome --- */
.dmj-buy-form { display: block; }
.dmj-buy-form .reset_variations { display: none !important; }
.dmj-buy-form .woocommerce-variation-price { display: none; }
.dmj-buy-form .woocommerce-variation-availability { margin-bottom: 10px; }
.dmj-buy-form .woocommerce-variation-availability .stock { font-size: 12.5px; color: var(--dmj-muted); }
.dmj-buy-form .woocommerce-variation-availability .stock.out-of-stock { color: var(--dmj-sale); }
.dmj-buy-form .single_variation_wrap > .woocommerce-variation { margin-bottom: 12px; }

/* --- HAR buy button black --- 
   Customily apna button khud inject karta hai (theme se pink aa
   jata hai). Form ke andar jo bhi primary button ho, usay hamara
   style mil jata hai. Quantity ke +/- ko chhod kar. */
.dmj-pdp .dmj-buy-form button[type="submit"],
.dmj-pdp .dmj-buy-form input[type="submit"],
.dmj-pdp .dmj-buy-form .single_add_to_cart_button,
.dmj-pdp .dmj-buy-form a.button,
.dmj-pdp .dmj-buy-form button.button,
.dmj-pdp .dmj-buy-form [class*="customily"] button,
.dmj-pdp .dmj-buy-form [class*="customily"] a.button,
.dmj-pdp .dmj-buy-form [class*="personaliz"] button,
.dmj-pdp .dmj-buy-form button[class*="personaliz"],
.dmj-pdp .dmj-buy-form a[class*="personaliz"] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 14px 20px;
	background: var(--dmj-ink) !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--dmj-radius);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
}

.dmj-pdp .dmj-buy-form button[type="submit"]:hover,
.dmj-pdp .dmj-buy-form input[type="submit"]:hover,
.dmj-pdp .dmj-buy-form .single_add_to_cart_button:hover,
.dmj-pdp .dmj-buy-form a.button:hover,
.dmj-pdp .dmj-buy-form button.button:hover,
.dmj-pdp .dmj-buy-form [class*="customily"] button:hover,
.dmj-pdp .dmj-buy-form [class*="personaliz"] button:hover,
.dmj-pdp .dmj-buy-form button[class*="personaliz"]:hover,
.dmj-pdp .dmj-buy-form a[class*="personaliz"]:hover {
	background: #000 !important;
	color: #fff !important;
}

/* quantity stepper ko is rule se bahar rakho */
.dmj-pdp .dmj-buy-form .dmj-qty button {
	display: inline-flex;
	width: 34px;
	min-height: 0;
	height: 46px;
	padding: 0;
	background: transparent !important;
	color: var(--dmj-ink) !important;
	font-size: 16px;
	text-transform: none;
	letter-spacing: 0;
	border-radius: 0;
}
.dmj-pdp .dmj-buy-form .dmj-qty button:hover {
	background: var(--dmj-bg-soft) !important;
	color: var(--dmj-ink) !important;
}

/* Customily apna button form se BAHAR bhi render kar sakta hai
   (woocommerce_before_add_to_cart_form par). Is liye poore PDP ke
   andar uske buttons ko black kar dete hain — theme ka pink hat jata
   hai. Hamare apne controls is rule me nahi aate. */
.dmj-pdp .customily-button,
.dmj-pdp .customily-personalize,
.dmj-pdp button[class*="customily"],
.dmj-pdp a[class*="customily"],
.dmj-pdp [class*="customily"] > button,
.dmj-pdp [class*="customily"] > a.button,
.dmj-pdp [id*="customily"] button,
.dmj-pdp .personalize-button,
.dmj-pdp a.personalize-button,
.dmj-pdp button.personalize-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 14px 20px;
	background: var(--dmj-ink) !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--dmj-radius) !important;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
}
.dmj-pdp .customily-button:hover,
.dmj-pdp button[class*="customily"]:hover,
.dmj-pdp a[class*="customily"]:hover,
.dmj-pdp [id*="customily"] button:hover,
.dmj-pdp .personalize-button:hover {
	background: #000 !important;
	color: #fff !important;
}

/* Customily ke apne form controls (text inputs, dropdowns) bhi
   hamare style me — warna woh theme ke default me dikhte hain. */
.dmj-pdp [class*="customily"] input[type="text"],
.dmj-pdp [class*="customily"] textarea,
.dmj-pdp [class*="customily"] select {
	width: 100%;
	max-width: 280px;
	padding: 11px 12px;
	border: 1px solid var(--dmj-line-strong);
	border-radius: var(--dmj-radius);
	font-size: 13.5px;
	background-color: #fff;
	box-shadow: none;
}
.dmj-pdp [class*="customily"] label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dmj-ink);
}

.dmj-addcart.is-unavailable,
.dmj-addcart:disabled,
.dmj-addcart.disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
}

/* Personalize trigger — a star before designing, a tick once a
   design exists. */
.dmj-personalize-standalone::before {
	content: "\2726";
	margin-right: 8px;
	font-size: 13px;
}

.dmj-personalize-standalone.is-complete::before {
	content: "\2713";
	margin-right: 8px;
	font-size: 13px;
}

.dmj-customizer-open { display: block !important; }

/* Customily ka apna button maujood ho to hamara chhup jata hai */
.dmj-pdp .dmj-hidden-duplicate { display: none !important; }

.dmj-personalize-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	text-decoration: none;
	margin-top: 10px;
}
.dmj-personalize-btn:hover { background: #000; color: #fff !important; }


/* ============================================================
   REVIEW FORM MODAL
   ============================================================ */

/* --- Overlay --- */
.dmj-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(16, 16, 18, .60);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px 40px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.dmj-modal[hidden] { display: none !important; }

/* Lock scroll on body when modal is open */
body.dmj-modal-open { overflow: hidden; }

/* --- Box --- */
.dmj-modal-box {
	position: relative;
	width: 100%;
	max-width: 540px;
	margin: auto;
	background: #fff;
	border-radius: 8px;
	padding: 36px 32px 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
	animation: dmj-modal-in .22s ease;
}

@keyframes dmj-modal-in {
	from { opacity: 0; transform: translateY(20px) scale(.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Close button --- */
.dmj-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #888 !important;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
}
.dmj-modal-close:hover { background: #f4f4f4; color: #1a1a1a !important; }

/* --- Headings --- */
.dmj-modal-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px;
	padding-right: 36px;
	color: #1a1a1a;
}
.dmj-modal-sub {
	font-size: 13px;
	color: #888;
	margin: 0 0 22px;
}

/* --- Fields --- */
.dmj-field { margin-bottom: 16px; }
.dmj-field > label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	margin-bottom: 6px;
	color: #1a1a1a;
}
.dmj-field .req { color: #d63b26; margin-left: 2px; }

.dmj-field input[type="text"],
.dmj-field input[type="email"],
.dmj-field select,
.dmj-field textarea {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13.5px;
	font-family: inherit;
	background: #fff;
	color: #1a1a1a;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.dmj-field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.dmj-field input[type="text"]:focus,
.dmj-field input[type="email"]:focus,
.dmj-field select:focus,
.dmj-field textarea:focus { outline: none; border-color: #1a1a1a; }

.dmj-field-error input[type="text"],
.dmj-field-error input[type="email"],
.dmj-field-error textarea { border-color: #d63b26; }
.dmj-field-msg { font-size: 12px; color: #d63b26; margin-top: 5px; display: none; }
.dmj-field-error .dmj-field-msg { display: block; }

/* --- Two-column row --- */
.dmj-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* --- Star rating input --- */
.dmj-stars-input { display: flex; gap: 4px; }
.dmj-stars-input button {
	border: 0;
	background: none;
	padding: 0 2px;
	font-size: 28px;
	line-height: 1;
	color: #ddd !important;
	cursor: pointer;
}
.dmj-stars-input button.is-on,
.dmj-stars-input button.is-preview { color: #f5a623 !important; }

/* --- Quality range --- */
.dmj-range { width: 100%; accent-color: #1a1a1a; cursor: pointer; }
.dmj-range-scale {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #888;
	margin-top: 4px;
}

/* --- Recommend checkbox --- */
.dmj-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
}
.dmj-check input { width: 16px; height: 16px; accent-color: #1a1a1a; cursor: pointer; }

/* --- Action buttons --- */
.dmj-modal-actions { display: flex; gap: 10px; margin-top: 22px; }

.dmj-modal-submit,
.dmj-modal-submit:link,
.dmj-modal-submit:visited,
.dmj-modal-submit:hover,
.dmj-modal-submit:focus,
.dmj-modal-submit:active {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 20px;
	background: #1a1a1a !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 3px;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
	text-shadow: none;
}
.dmj-modal-submit:hover,
.dmj-modal-submit:focus { background: #000 !important; }
.dmj-modal-submit.is-loading { opacity: .6; pointer-events: none; }

.dmj-modal-cancel,
.dmj-modal-cancel:link,
.dmj-modal-cancel:visited,
.dmj-modal-cancel:hover,
.dmj-modal-cancel:focus {
	padding: 14px 20px;
	background: #fff !important;
	color: #1a1a1a !important;
	border: 1px solid #ccc !important;
	border-radius: 3px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
}
.dmj-modal-cancel:hover,
.dmj-modal-cancel:focus { border-color: #1a1a1a !important; background: #f4f4f4 !important; }

.dmj-modal-note {
	font-size: 11.5px;
	color: #888;
	margin-top: 14px;
	text-align: center;
}

/* --- Success state --- */
.dmj-modal-success { text-align: center; padding: 16px 0 8px; }
.dmj-modal-success .tick {
	width: 58px;
	height: 58px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #1f7a45;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}
.dmj-modal-success h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.dmj-modal-success p { font-size: 13.5px; color: #555; }

/* ============================================================
   IMAGE LIGHTBOX
   ============================================================ */

.dmj-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(10, 10, 12, .93);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 80px;
}
.dmj-lightbox[hidden] { display: none !important; }

body.dmj-lightbox-open { overflow: hidden; }

.dmj-lightbox img {
	display: block;
	max-width: 100%;
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

/* close button */
.dmj-lb-close {
	position: fixed;
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff !important;
	font-size: 26px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.dmj-lb-close:hover { background: rgba(255, 255, 255, .25); color: #fff !important; }

/* prev / next arrows */
.dmj-lb-nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff !important;
	font-size: 28px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.dmj-lb-nav:hover { background: rgba(255, 255, 255, .28); color: #fff !important; }
.dmj-lb-nav.prev { left: 18px; }
.dmj-lb-nav.next { right: 18px; }

/* counter e.g. "2 / 6" */
.dmj-lb-count {
	position: fixed;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .7);
	font-size: 13px;
	letter-spacing: 1px;
	pointer-events: none;
}

/* ============================================================
   TOAST
   ============================================================ */

.dmj-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translate(-50%, 16px);
	z-index: 1000001;
	background: #1a1a1a;
	color: #fff;
	padding: 13px 20px;
	border-radius: 6px;
	font-size: 13.5px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
	opacity: 0;
	transition: opacity .25s ease, transform .25s ease;
	pointer-events: none;
	white-space: nowrap;
}
.dmj-toast[hidden] { display: none !important; }
.dmj-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dmj-toast a { color: #fff; text-decoration: underline; font-weight: 600; }
.dmj-toast.is-error { background: #d63b26; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
	.dmj-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.dmj-pdp { padding: 20px 16px 48px; }
	.dmj-pdp.dmj-breakout { padding-left: 16px; padding-right: 16px; }
	.dmj-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.dmj-info-inner { position: static; }
	.dmj-reviews-summary { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.dmj-rev-cta { justify-self: start; }
	.dmj-rev-quality { max-width: none; }
	.dmj-pdp .dmj-write-review { justify-self: start; }
	.dmj-review { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.dmj-review-user { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
	.dmj-avatar, .dmj-verified, .dmj-review-loc, .dmj-recommend { margin-bottom: 0; }
	.dmj-reviews-toolbar { align-items: flex-start; }
}

@media (max-width: 600px) {
	.dmj-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dmj-related-tabs { gap: 18px; }
	.dmj-gallery { grid-template-columns: minmax(0, 1fr); }
	.dmj-buy { flex-wrap: wrap; }
	.dmj-addcart { flex: 1 1 100%; }
	.dmj-qty { flex: 0 0 120px; }
	.dmj-ctl-item { grid-template-columns: 54px minmax(0, 1fr); }
	.dmj-ctl-actions { grid-column: 1 / -1; }
	.dmj-ctl-actions select { flex: 1; max-width: none; }
	.dmj-pdp .dmj-attr-select,
	.dmj-pdp table.variations td.value select { max-width: 100%; }
	.dmj-modal-box { padding: 24px 18px; }
	.dmj-row-2 { grid-template-columns: 1fr; }
	.dmj-lightbox { padding: 16px; }
	.dmj-lb-nav.prev { left: 8px; }
	.dmj-lb-nav.next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.dmj-pdp *, .dmj-pdp *::before, .dmj-pdp *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}


/* ============================================================
   PERSONALIZE — standalone trigger
   Sits above the variation wrapper so it is always reachable.
   WooCommerce hides everything inside .woocommerce-variation-add-
   to-cart until a variation is matched, which used to make the
   Personalize option unreachable on variable products.
   ============================================================ */

.dmj-personalize-standalone {
	display: block;
	width: 100%;
	min-height: 52px;
	margin-bottom: 8px;
	padding: 15px 20px;
	background: #fff !important;
	color: var(--dmj-ink) !important;
	border: 2px solid var(--dmj-ink) !important;
	border-radius: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .16s ease, color .16s ease;
}

.dmj-personalize-standalone:hover,
.dmj-personalize-standalone:focus {
	background: var(--dmj-ink) !important;
	color: #fff !important;
}

/* Once a design exists, the button becomes a quieter "edit" action. */
.dmj-personalize-standalone.is-complete {
	background: var(--dmj-ok, #1f7a45) !important;
	border-color: var(--dmj-ok, #1f7a45) !important;
	color: #fff !important;
}

.dmj-personalize-hint {
	margin: 0 0 14px;
	font-size: 12px;
	color: var(--dmj-muted);
	line-height: 1.45;
	text-align: center;
}


/* ============================================================
   SIDE CART DRAWER

   Self-contained on purpose: it renders in the footer, OUTSIDE the
   .dmj-pdp container, so it cannot inherit that container's custom
   properties. Everything it needs is declared on .dmj-cart itself.
   Override the palette from your theme by redefining these three:

       .dmj-cart { --cart-bg: #b8496b; --cart-fg: #fff; --cart-accent: #f3d5a0; }
   ============================================================ */

.dmj-cart-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(20, 10, 14, .45);
	opacity: 0;
	transition: opacity .3s ease;
}

.dmj-cart-backdrop[hidden] { display: none; }
.dmj-cart-backdrop.is-open { opacity: 1; }

.dmj-cart {
	--cart-bg: #c9587a;          /* panel background */
	--cart-bg-deep: #a8395c;     /* gradient foot */
	--cart-fg: #fff;             /* text */
	--cart-rule: rgba(255, 255, 255, .42);
	--cart-accent: #f6e0c8;      /* checkout button */
	--cart-accent-ink: #7d2542;  /* checkout label */

	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	width: 460px;
	max-width: 100vw;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, var(--cart-bg) 0%, var(--cart-bg) 55%, var(--cart-bg-deep) 100%);
	color: var(--cart-fg);
	transform: translateX(100%);
	transition: transform .34s cubic-bezier(.4, 0, .2, 1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	box-shadow: -18px 0 50px rgba(0, 0, 0, .22);
}

.dmj-cart *,
.dmj-cart *::before,
.dmj-cart *::after { box-sizing: border-box; }

.dmj-cart[hidden] { display: none; }
.dmj-cart.is-open { transform: translateX(0); }

body.dmj-cart-open { overflow: hidden; }

/* --- header --- */

.dmj-cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 30px 30px 20px;
	flex-shrink: 0;
}

.dmj-cart-title {
	margin: 0;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -.5px;
	line-height: 1;
	color: var(--cart-fg);
}

.dmj-cart-head-actions { display: flex; align-items: center; gap: 14px; }

/* Secure-checkout padlock, drawn in CSS so there is no icon font
   or SVG file to load. */
.dmj-cart-lock {
	position: relative;
	width: 21px;
	height: 17px;
	border-radius: 3px;
	background: var(--cart-fg);
	flex-shrink: 0;
	margin-top: 5px;
}

.dmj-cart-lock::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -8px;
	width: 12px;
	height: 11px;
	transform: translateX(-50%);
	border: 2.5px solid var(--cart-fg);
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
}

.dmj-cart-lock::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 5px;
	width: 3px;
	height: 6px;
	transform: translateX(-50%);
	border-radius: 2px;
	background: var(--cart-bg);
}

.dmj-cart-close {
	position: relative;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	opacity: .9;
}

.dmj-cart-close:hover { opacity: 1; }

.dmj-cart-close::before,
.dmj-cart-close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 22px;
	height: 2.5px;
	background: var(--cart-fg);
	border-radius: 2px;
}

.dmj-cart-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.dmj-cart-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* --- column labels --- */

.dmj-cart-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 104px 80px;
	gap: 12px;
	padding: 0 30px 14px;
	margin-bottom: 0;
	border-bottom: 1.5px solid var(--cart-rule);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	flex-shrink: 0;
}

.dmj-cart-cols span:nth-child(2) { text-align: center; }
.dmj-cart-cols span:nth-child(3) { text-align: right; }

/* --- body --- */

.dmj-cart-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 0 30px;
	-webkit-overflow-scrolling: touch;
}

.dmj-cart-loading,
.dmj-cart-empty {
	padding: 54px 0;
	text-align: center;
	font-size: 14.5px;
	opacity: .8;
}

.dmj-cart-line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 104px 80px;
	gap: 12px;
	align-items: start;
	padding: 20px 0;
	border-bottom: 1.5px solid var(--cart-rule);
}

.dmj-cart-item { display: flex; gap: 14px; min-width: 0; }

.dmj-cart-thumb {
	width: 62px;
	height: 76px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 3px;
	background: rgba(255, 255, 255, .16);
}

.dmj-cart-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--cart-fg) !important;
	line-height: 1.3;
	display: block;
	text-decoration: none;
}

.dmj-cart-name:hover { text-decoration: underline; color: var(--cart-fg) !important; }

.dmj-cart-meta {
	margin-top: 5px;
	font-size: 12.5px;
	line-height: 1.5;
	opacity: .82;
}

/* --- quantity --- */

.dmj-cart-qty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-size: 16px;
	line-height: 1;
}

.dmj-cart-qty button {
	width: 24px;
	height: 24px;
	border: 0;
	background: transparent;
	color: var(--cart-fg);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	opacity: .85;
}

.dmj-cart-qty button:hover:not(:disabled) { opacity: 1; }
.dmj-cart-qty button:disabled { opacity: .35; cursor: default; }

.dmj-cart-qty .num { min-width: 20px; text-align: center; font-weight: 600; }

.dmj-cart-remove {
	display: block;
	margin: 8px auto 0;
	border: 0;
	background: transparent;
	color: var(--cart-fg);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	cursor: pointer;
	opacity: .82;
	padding: 0;
	font-family: inherit;
}

.dmj-cart-remove:hover { opacity: 1; text-decoration: underline; }

.dmj-cart-total {
	text-align: right;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

/* --- footer --- */

.dmj-cart-foot {
	flex-shrink: 0;
	padding: 20px 30px 28px;
	border-top: 1.5px solid var(--cart-rule);
}

.dmj-cart-foot[hidden] { display: none; }

.dmj-cart-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.dmj-cart-terms {
	margin: 0 0 16px;
	font-size: 12.5px;
	line-height: 1.55;
	text-align: center;
	opacity: .88;
}

.dmj-cart-terms a { color: var(--cart-fg); text-decoration: underline; }

.dmj-cart-checkout {
	display: block;
	width: 100%;
	padding: 19px 20px;
	background: var(--cart-accent);
	color: var(--cart-accent-ink) !important;
	text-align: center;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	border-radius: 999px;
	text-decoration: none;
	transition: filter .16s ease;
}

.dmj-cart-checkout:hover {
	filter: brightness(1.06);
	color: var(--cart-accent-ink) !important;
	text-decoration: none;
}

.dmj-cart.is-busy { pointer-events: none; }
.dmj-cart.is-busy .dmj-cart-body { opacity: .55; }

@media (max-width: 520px) {
	.dmj-cart { width: 100%; }
	.dmj-cart-head { padding: 22px 20px 16px; }
	.dmj-cart-title { font-size: 27px; }

	.dmj-cart-cols,
	.dmj-cart-body { padding-left: 20px; padding-right: 20px; }

	.dmj-cart-foot { padding: 16px 20px 22px; }

	.dmj-cart-cols,
	.dmj-cart-line { grid-template-columns: minmax(0, 1fr) 84px 68px; }

	.dmj-cart-thumb { width: 50px; height: 62px; }
	.dmj-cart-cols { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.dmj-cart, .dmj-cart-backdrop { transition: none; }
}
