/* =========================================================================
   DuBois shop: product card, shop / category / search pages, filter and
   quick-add sheets, swatches, product page, bag page.
   V6 "Glass" boards: Shop, ProductCard, Product, Cart. Tokens only (no raw
   hex). Loaded after base.css.

   WooCommerce's own sheets style a few of the classes its scripts need
   (div.product, form.cart, .images, ul.products, img on Woo pages); those
   overrides sit in clearly marked blocks with just enough specificity.
   ====================================================================== */

/* ---------- product grids ---------- */
.db-products__item { min-width: 0; }

/* WooCommerce product loops (content-product.php) use the same grid. */
.woocommerce ul.products.db-products,
.woocommerce-page ul.products.db-products { display: grid; margin: 0; padding: 0; }
.woocommerce ul.products.db-products::before,
.woocommerce ul.products.db-products::after,
.woocommerce-page ul.products.db-products::before,
.woocommerce-page ul.products.db-products::after { content: none; display: none; }
.woocommerce ul.products.db-products li.product,
.woocommerce-page ul.products.db-products li.product { float: none; width: auto; margin: 0; padding: 0; }

/* =========================================================================
   Product card
   ====================================================================== */
.db-pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	color: var(--db-black);
}
.db-pcard__media {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--db-r-xl);
	overflow: hidden;
	background: var(--db-mist);
	isolation: isolate;
}
.db-pcard__link { position: absolute; inset: 0; display: block; }
.db-pcard .db-pcard__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: opacity 0.6s ease, transform 1.4s var(--db-ease-out);
}
.db-pcard .db-pcard__img--alt { opacity: 0; }
@media (hover: hover) {
	.db-pcard:hover .db-pcard__img { transform: scale(1.035); }
	.db-pcard.has-alt:hover .db-pcard__img { opacity: 0; }
	.db-pcard.has-alt:hover .db-pcard__img--alt { opacity: 1; }
}
@media (hover: none) {
	.db-pcard .db-pcard__img--alt { display: none; }
}

.db-pcard__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	height: 30px;
	padding: 0 12px;
	font-size: var(--db-fs-3xs);
	font-weight: 600;
	pointer-events: none;
}

/* Quick add: a glass pill on hover (desktop), a small round button on touch. */
.db-pcard__add {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 14px;
	border: 1px solid var(--db-glass-edge);
	border-radius: var(--db-r-pill);
	background: var(--db-glass);
	-webkit-backdrop-filter: var(--db-glass-blur);
	backdrop-filter: var(--db-glass-blur);
	box-shadow: var(--db-sh-glass);
	color: var(--db-black);
	font-family: var(--db-font);
	font-size: var(--db-fs-xs);
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.35s ease, transform 0.45s var(--db-ease), background-color var(--db-t-fast), color var(--db-t-fast);
}
.db-pcard:hover .db-pcard__add,
.db-pcard:focus-within .db-pcard__add { opacity: 1; transform: none; }
.db-pcard__add:hover { background: var(--db-glass-strong); }
.db-pcard__add:active { transform: scale(0.97); }
.db-pcard__addicon { position: relative; display: inline-flex; width: 16px; height: 16px; flex: none; }
.db-pcard__addicon .db-icon { position: absolute; inset: 0; }
.db-pcard__addicon .db-icon--check { opacity: 0; }
.db-pcard__add.is-added { background: var(--db-green); border-color: transparent; color: var(--db-black); }
.db-pcard__add.is-added .db-icon--plus { opacity: 0; }
.db-pcard__add.is-added .db-icon--check { opacity: 1; }
.db-pcard__add.is-busy { pointer-events: none; }
.db-pcard__add.is-busy .db-pcard__addicon .db-icon { opacity: 0; }
.db-pcard__add.is-busy .db-pcard__addicon::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: db-spin 0.7s linear infinite;
}
@media (hover: none) {
	.db-pcard__add {
		left: auto;
		right: 8px;
		bottom: 8px;
		width: 40px;
		height: 40px;
		padding: 0;
		opacity: 1;
		transform: none;
	}
	.db-pcard__addt {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

.db-pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.db-pcard__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.db-pcard__name {
	margin: 0;
	min-width: 0;
	font-family: var(--db-font);
	font-stretch: 100%;
	font-size: var(--db-fs-xs);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	text-wrap: pretty;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.db-pcard__name a { color: inherit; }
.db-pcard__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.db-pcard__price { flex: none; font-size: var(--db-fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-pcard__price del { margin-right: 4px; color: var(--db-muted); font-weight: 500; }
.db-pcard__from { margin-right: 3px; color: var(--db-muted); font-weight: 500; }
.db-pcard__dots { display: flex; align-items: center; gap: 5px; }
.db-pcard__dot { width: 12px; height: 12px; border-radius: 4px; background: var(--sw, var(--db-mist-3)); box-shadow: inset 0 0 0 1px var(--db-ring-2); }
.db-pcard__ncol { margin-left: 4px; font-size: var(--db-fs-2xs); color: var(--db-muted); }

.db-pcard.is-soldout .db-pcard__img { opacity: 0.6; filter: grayscale(0.3); }
.db-pcard.is-soldout.has-alt:hover .db-pcard__img--alt { opacity: 0.6; }
.db-pcard.is-soldout .db-pcard__price { color: var(--db-muted); }

@media (max-width: 640px) {
	.db-pcard { gap: 10px; }
	.db-pcard__media { border-radius: 20px; }
	.db-pcard__name, .db-pcard__price { font-size: var(--db-fs-2xs); }
	.db-pcard__row { flex-direction: column; gap: 2px; }
	.db-pcard__ncol { display: none; }
	.db-pcard__badge { top: 8px; left: 8px; height: 26px; padding: 0 10px; font-size: 11px; }
}

/* =========================================================================
   Shop, category and search pages
   ====================================================================== */
.db-shop { padding-bottom: clamp(72px, 8vw, 112px); }
.db-shop > .woocommerce-notices-wrapper { width: min(100% - 2 * var(--db-gutter), var(--db-maxw)); margin: 16px auto 0; }
.db-shop > .woocommerce-notices-wrapper:empty { display: none; } /* nothing above the edge-to-edge banner */
/* The banner (template-parts/section-banner.php, styled in pages.css) heads
   the shop and every category; search gets a plain centred head. */
.db-shop__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding-top: clamp(28px, 3.4vw, 48px);
	text-align: center;
}
.db-shop__title { line-height: 1.05; text-wrap: balance; }
.db-shop__lead { max-width: 560px; }
.db-shop__lead[hidden] { display: none; }
.db-shop__banner .db-banner__panel { min-height: clamp(260px, 18vw + 110px, 380px); }

/* ---------- category tabs ----------
   Top row: All + the top-level categories, text tabs with a sliding
   underline. Second row (on a category with subcategories): smaller tabs.
   Both rows centre while they fit and scroll sideways on phones, running
   under the page gutter so nothing is cut off at the edge. */
.db-shop__nav { margin-top: clamp(20px, 2.4vw, 32px); }
.db-tabs,
.db-subtabs {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	margin-inline: calc(-1 * var(--db-gutter));
	padding-inline: var(--db-gutter);
	scroll-padding-inline: var(--db-gutter);
}
.db-tabs::-webkit-scrollbar,
.db-subtabs::-webkit-scrollbar { display: none; }
.db-tabs__list,
.db-subtabs__list {
	display: flex;
	justify-content: center;
	width: max-content;
	min-width: 100%;
}
.db-tabs__list { gap: clamp(22px, 2.6vw, 40px); box-shadow: inset 0 -1px 0 var(--db-line-2); }
.db-tab {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 52px;
	padding: 0 2px;
	color: var(--db-muted);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.005em;
	white-space: nowrap;
	transition: color var(--db-t-fast);
}
.db-tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--db-black);
	transform: scaleX(0);
	transition: transform 0.35s var(--db-ease);
}
.db-tab:hover { color: var(--db-black); }
.db-tab:hover::after { transform: scaleX(0.35); background: var(--db-ring-3); }
.db-tab[aria-current] { color: var(--db-black); font-weight: 600; }
.db-tab[aria-current]::after { transform: scaleX(1); background: var(--db-black); }
.db-tab:focus-visible { outline-offset: -2px; border-radius: 6px; }

.db-shop__subs { transition: opacity var(--db-t-fast); }
.db-shop__subs:empty { display: none; }
.db-shop__subs.is-loading { opacity: 0.4; }
.db-subtabs { margin-top: 14px; padding-block: 2px; }
.db-subtabs__list { gap: 6px; }
.db-subtab {
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border-radius: var(--db-r-pill);
	color: var(--db-muted);
	font-size: var(--db-fs-xs);
	font-weight: 500;
	white-space: nowrap;
	transition: color var(--db-t-fast), background-color var(--db-t-fast);
}
.db-subtab:hover { color: var(--db-black); background: var(--db-mist); }
.db-subtab[aria-current] { color: var(--db-black); font-weight: 600; background: var(--db-mist); }
.db-subtabs.is-in .db-subtab { animation: db-rise 0.4s var(--db-ease-out) both; animation-delay: calc(var(--db-i, 0) * 30ms); }
@media (max-width: 640px) {
	.db-tab { height: 48px; font-size: var(--db-fs-sm); }
	.db-subtabs { margin-top: 10px; }
	.db-subtab { height: 34px; padding: 0 12px; font-size: var(--db-fs-2xs); }
}

/* Sticky glass toolbar under the header. */
.db-shop__bar {
	position: sticky;
	top: calc(var(--db-head-space) + var(--db-adminbar, 0px) + 8px);
	z-index: 20;
	margin-top: 22px;
	pointer-events: none;
}
.db-shop__barin {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 60px;
	padding: 0 8px;
	border-radius: var(--db-r-pill);
	background: var(--db-glass);
	-webkit-backdrop-filter: var(--db-glass-blur);
	backdrop-filter: var(--db-glass-blur);
	border: 1px solid var(--db-glass-edge);
	box-shadow: var(--db-sh-glass), 0 0 0 0.5px var(--db-line);
	pointer-events: auto;
}
.db-shop__barstart { display: flex; align-items: center; gap: 12px; min-width: 0; }
.db-shop__filterbtn { height: 44px; padding: 0 18px; }
.db-shop__fcount {
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: var(--db-r-pill);
	background: var(--db-green);
	color: var(--db-black);
	font-size: var(--db-fs-3xs);
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.db-shop__count { font-size: var(--db-fs-sm); color: var(--db-muted); white-space: nowrap; }
.db-shop__sort { display: flex; align-items: center; gap: 8px; padding-right: 4px; }
.db-shop__sortl { font-size: var(--db-fs-sm); color: var(--db-muted); white-space: nowrap; }
.db-shop__select {
	height: 44px;
	max-width: 100%;
	padding: 0 40px 0 16px;
	border: 0;
	border-radius: var(--db-r-pill);
	background-color: var(--db-mist);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px;
	color: var(--db-black);
	font-family: var(--db-font);
	font-size: var(--db-fs-sm);
	font-weight: 500;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color var(--db-t-fast);
}
.db-shop__select:hover { background-color: var(--db-mist-2); }
@media (max-width: 640px) {
	.db-shop__barin { height: 56px; padding: 0 6px; }
	.db-shop__filterbtn { height: 42px; padding: 0 16px; }
	.db-shop__select { height: 42px; font-size: var(--db-fs-xs); }
	.db-shop__count, .db-shop__sortl {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

.db-shop__body { padding-top: 28px; }
.db-shop__results { transition: opacity var(--db-t-fast); }
.db-shop.is-loading .db-shop__results { opacity: 0.45; }
.db-shop__results.is-swapped .db-products__item { animation: db-rise 0.5s var(--db-ease-out) both; animation-delay: calc(var(--db-i, 0) * 30ms); }

.db-shop__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.db-shop__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 14px;
	border-radius: var(--db-r-pill);
	background: var(--db-mist);
	color: var(--db-black);
	font-size: var(--db-fs-xs);
	font-weight: 500;
	transition: background-color var(--db-t-fast);
}
.db-shop__chip:hover { background: var(--db-mist-2); }
.db-shop__clear { padding: 6px; font-size: var(--db-fs-xs); }

.db-shop__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 72px 24px;
	border-radius: var(--db-r-xl);
	background: var(--db-mist);
	text-align: center;
}
.db-shop__empty .db-btn { margin-top: 8px; }
.db-shop__emptyt { margin: 0; font-stretch: var(--db-stretch-head); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.db-shop__pages .nav-links { justify-content: center; margin-top: 56px; }
.db-shop__pages .page-numbers.dots { box-shadow: none; min-width: 24px; padding: 0; }
.db-shop__pages a.page-numbers:hover { box-shadow: inset 0 0 0 1.5px var(--db-black); }
.db-shop__back { margin: 40px 0 0; text-align: center; }

/* No JavaScript: the filters open inline under a summary. */
.db-shop__nojs { margin-bottom: 24px; }
.db-shop__nojs > summary { list-style: none; width: max-content; }
.db-shop__nojs > summary::-webkit-details-marker { display: none; }
.db-shop__nojs[open] > summary { margin-bottom: 16px; }
.db-shop__nojs .db-filters__form { padding: 24px; border-radius: var(--db-r-lg); background: var(--db-mist); }
html.db-js .db-shop__nojs { display: none; }
html:not(.db-js) .db-shop__filterbtn { display: none; }

/* =========================================================================
   Filter sheet (#db-filters) and its form
   ====================================================================== */
.db-filters__body { padding: 8px 24px 24px; }
.db-filters__form { display: flex; flex-direction: column; gap: 28px; }
.db-filters__foot { flex-direction: row; gap: 8px; padding: 14px 16px 16px; }
.db-filters__clear { flex: 1; }
.db-filters__show { flex: 1.5; }
.db-filters__nojs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
html.db-js .db-filters__nojs { display: none; }

.db-fgroup { min-width: 0; margin: 0; padding: 0; border: 0; }
.db-fgroup__legend { padding: 0 0 12px; font-size: var(--db-fs-sm); font-weight: 600; }
.db-fgroup__opts { display: flex; flex-wrap: wrap; gap: 8px; }

.db-fchip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 52px;
	height: 44px;
	padding: 0 14px;
	border-radius: var(--db-r-pill);
	background: var(--db-white);
	box-shadow: inset 0 0 0 1px var(--db-ring-2);
	color: var(--db-black);
	font-size: var(--db-fs-xs);
	font-weight: 500;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: box-shadow var(--db-t-fast), background-color var(--db-t-fast), color var(--db-t-fast), opacity var(--db-t-fast);
}
.db-fchip input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.db-fchip:hover { box-shadow: inset 0 0 0 1.5px var(--db-black); }
.db-fchip.is-on, .db-fchip:has(input:checked) { background: var(--db-black); color: var(--db-white); box-shadow: none; }
.db-fchip:has(input:focus-visible) { outline: 2px solid var(--db-black); outline-offset: 3px; }
.db-fchip.is-empty { opacity: 0.4; }
.db-fchip--size { font-weight: 600; }
.db-fchip--colour { padding: 0 16px 0 12px; }
.db-fchip__sw { flex: none; width: 16px; height: 16px; border-radius: var(--db-r-xs); background: var(--sw); box-shadow: inset 0 0 0 1px var(--db-ring-2); }
.db-fchip.is-on .db-fchip__sw, .db-fchip:has(input:checked) .db-fchip__sw { box-shadow: inset 0 0 0 1px var(--db-on-dark-2); }

/* In stock only: a switch. */
.db-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-size: var(--db-fs-sm); font-weight: 600; cursor: pointer; }
.db-switch__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.db-switch__track {
	position: relative;
	flex: none;
	width: 48px;
	height: 28px;
	border-radius: var(--db-r-pill);
	background: var(--db-mist-2);
	transition: background-color 0.25s;
}
.db-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--db-white);
	box-shadow: var(--db-sh-soft);
	transition: transform 0.35s var(--db-ease-spring);
}
.db-switch__input:checked + .db-switch__track { background: var(--db-black); }
.db-switch__input:checked + .db-switch__track::after { transform: translateX(20px); }
.db-switch__input:focus-visible + .db-switch__track { outline: 2px solid var(--db-black); outline-offset: 3px; }

/* =========================================================================
   Swatches (product page and quick add)
   ====================================================================== */
.db-var { display: flex; flex-direction: column; gap: 22px; }
.db-var__group { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.db-var__group.db-nudge { animation: db-nudge 0.4s ease; }
.db-var__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.db-var__label { font-size: var(--db-fs-sm); }
.db-var__name { color: var(--db-muted); font-weight: 400; }
.db-var__now { margin-left: 6px; font-weight: 600; }
.db-var__guide { padding: 4px 0; font-size: var(--db-fs-xs); }
.db-var__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.db-var__opts--size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.db-var__opts--size.is-many { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.db-sw {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 0;
	height: 50px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--db-r-pill);
	background: var(--db-white);
	box-shadow: inset 0 0 0 1px var(--db-ring-2);
	color: var(--db-black);
	font-family: var(--db-font);
	font-size: var(--db-fs-sm);
	font-weight: 600;
	line-height: 1.1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: box-shadow var(--db-t-fast), background-color var(--db-t-fast), color var(--db-t-fast), opacity var(--db-t-fast);
}
.db-sw:hover { box-shadow: inset 0 0 0 1.5px var(--db-black); }
.db-sw:focus-visible { outline: 2px solid var(--db-black); outline-offset: 3px; }
.db-sw[aria-checked="true"] { background: var(--db-black); color: var(--db-white); box-shadow: none; }
.db-sw__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-sw--size { padding: 0 8px; }
.db-sw--colour, .db-sw--other { height: 46px; padding: 0 16px; font-size: var(--db-fs-xs); font-weight: 500; }
.db-sw--colour:has(.db-sw__fill) { padding-left: 8px; }
.db-sw--colour[aria-checked="true"] { background: var(--db-white); color: var(--db-black); box-shadow: inset 0 0 0 2px var(--db-black); }
.db-sw__fill { flex: none; width: 30px; height: 30px; border-radius: var(--db-r-pill); background: var(--sw); box-shadow: inset 0 0 0 1px var(--db-ring-2); }
/* Not with your other choices: still pickable (it changes them). */
.db-sw.is-na { opacity: 0.5; }
.db-sw.is-na:hover { opacity: 1; }
/* Sold out: struck through, not pickable. */
.db-sw.is-soldout { background: var(--db-mist); box-shadow: none; color: var(--db-muted); cursor: not-allowed; }
.db-sw.is-soldout .db-sw__t { text-decoration: line-through; text-decoration-thickness: 1px; }
.db-sw.is-soldout .db-sw__fill { opacity: 0.4; }
.db-sw.is-soldout:hover { box-shadow: none; }

/* Without JavaScript the WooCommerce selects show instead. */
html.db-js .db-var__select { display: none; }
html:not(.db-js) .db-var__opts { display: none; }
.db-var__select select {
	width: 100%;
	height: 54px;
	padding: 0 44px 0 18px;
	border: 0;
	border-radius: var(--db-r-field);
	background-color: var(--db-white);
	box-shadow: inset 0 0 0 1px var(--db-ring);
	font-family: var(--db-font);
	font-size: 16px;
}

.db-var__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Takes no room until there is a message or WooCommerce shows "Clear choices". */
.db-var__foot:not(:has(.db-var__msg:not(:empty))):not(:has(.reset_variations[style*="visible"])) { display: none; }
.db-var__msg { margin: 0; font-size: var(--db-fs-xs); font-weight: 500; color: var(--db-red); }
.db-var__msg:empty { display: none; }
.db-buy .reset_variations { margin-left: auto; font-size: var(--db-fs-2xs); color: var(--db-muted); text-decoration: underline; text-underline-offset: 3px; }
.db-buy .reset_variations:hover { color: var(--db-black); }

/* =========================================================================
   Quick add sheet (#db-quick)
   ====================================================================== */
.db-quick .db-sheet__body { padding: 4px 20px 16px; }
.db-quick__top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.db-quick__img { flex: none; display: block; width: 88px; height: 110px; border-radius: var(--db-r-ibtn); overflow: hidden; background: var(--db-mist); }
.db-quick .db-quick__img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.db-quick__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.db-quick__name { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--db-black); }
.db-quick__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.db-quick__price { font-size: var(--db-fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.db-quick__groups { gap: 20px; }
.db-quick .db-var__opts--size { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.db-quick .db-var__opts--size.is-many { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.db-quick .db-sw { height: 44px; font-size: var(--db-fs-xs); }
.db-quick .db-sw__fill { width: 26px; height: 26px; }
.db-quick .db-var__msg { margin-top: 16px; }
.db-quick__foot { align-items: stretch; }
.db-quick__more { align-self: center; padding: 4px; font-size: var(--db-fs-xs); }

/* =========================================================================
   Product page
   ====================================================================== */
.db-pdp-page { display: block; }
.db-pdp__notices .woocommerce-notices-wrapper { margin-top: 16px; }
.db-pdp__wrap { padding-top: 24px; padding-bottom: clamp(64px, 8vw, 96px); }
.db-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-crumbs a { color: var(--db-muted); }
.db-crumbs a:hover { color: var(--db-black); text-decoration: underline; text-underline-offset: 3px; }

.woocommerce div.product.db-pdp,
.db-pdp {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	margin: 0;
}
.woocommerce div.product.db-pdp::before,
.woocommerce div.product.db-pdp::after { content: none; display: none; }

.db-pdp__info {
	position: sticky;
	top: calc(var(--db-head-space) + var(--db-adminbar, 0px) + 20px);
	display: flex;
	flex-direction: column;
	gap: 26px;
	min-width: 0;
}
.db-pdp__intro { display: flex; flex-direction: column; gap: 10px; }
.db-pdp__title {
	margin: 0;
	font-stretch: var(--db-stretch-head);
	font-size: 36px;
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.035em;
}
.db-pdp__pricerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.db-pdp__price { font-stretch: var(--db-stretch-head); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.db-pdp__price del { margin-right: 6px; font-size: 18px; font-weight: 500; color: var(--db-muted); }
.db-pdp__from { margin-right: 4px; font-size: 16px; font-weight: 500; color: var(--db-muted); letter-spacing: 0; }
.db-pdp__tax { font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-pdp__lead { font-size: 16px; line-height: 1.6; color: var(--db-muted); }
.db-pdp__lead p { margin: 0 0 0.6em; }
.db-pdp__lead p:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
	.woocommerce div.product.db-pdp,
	.db-pdp { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.db-pdp__info { position: static; }
}
@media (max-width: 640px) {
	.db-pdp__wrap { padding-top: 16px; }
	.db-pdp__title { font-size: 26px; }
	.db-pdp__price { font-size: 22px; }
}

/* ---------- gallery (WooCommerce's, restyled) ---------- */
.db-pdp__gallery {
	position: relative;
	min-width: 0;
	border-radius: var(--db-r-xl);
	overflow: hidden;
	background: var(--db-mist);
}
.woocommerce div.product.db-pdp div.images,
.db-pdp .woocommerce-product-gallery {
	position: relative;
	float: none;
	width: auto;
	margin: 0;
}
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__wrapper { margin: 0; padding: 0; }
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__image {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--db-mist);
}
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__image > a { display: block; width: 100%; height: 100%; }
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__image > a > img,
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__image--placeholder img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
/* Before the slider starts (or without JavaScript): photos stack as a grid. */
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__image:nth-child(n+2) { aspect-ratio: 4 / 5; }

/* Thumbnails: a glass rail on the photo (desktop). */
.woocommerce div.product.db-pdp div.images .flex-control-thumbs {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 3;
	display: flex;
	gap: 6px;
	max-width: calc(100% - 32px);
	margin: 0;
	padding: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	list-style: none;
	border-radius: 22px;
	background: var(--db-glass);
	-webkit-backdrop-filter: var(--db-glass-blur);
	backdrop-filter: var(--db-glass-blur);
	border: 1px solid var(--db-glass-edge);
	box-shadow: var(--db-sh-glass);
	transform: translateX(-50%);
}
.woocommerce div.product.db-pdp div.images .flex-control-thumbs::-webkit-scrollbar { display: none; }
.woocommerce div.product.db-pdp div.images .flex-control-thumbs li {
	flex: none;
	float: none;
	width: 52px;
	height: 64px;
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	background: var(--db-mist);
	transition: box-shadow var(--db-t-fast);
}
.woocommerce div.product.db-pdp div.images .flex-control-thumbs li:has(img.flex-active) { box-shadow: 0 0 0 2px var(--db-black); }
.woocommerce div.product.db-pdp div.images .flex-control-thumbs li img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.25s;
}
.woocommerce div.product.db-pdp div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product.db-pdp div.images .flex-control-thumbs li img:hover { opacity: 1; }

/* Full-screen button (PhotoSwipe), top right. */
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 4;
	width: 44px;
	height: 44px;
	box-sizing: border-box;
	border-radius: var(--db-r-pill);
	background: var(--db-glass);
	-webkit-backdrop-filter: var(--db-glass-blur);
	backdrop-filter: var(--db-glass-blur);
	border: 1px solid var(--db-glass-edge);
	box-shadow: var(--db-sh-soft);
	font-size: 0;
	text-indent: 0;
	overflow: hidden;
	transition: background-color var(--db-t-fast), transform 0.3s var(--db-ease-spring);
}
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__trigger:hover { background: var(--db-glass-strong); }
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__trigger:active { transform: scale(0.94); }
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__trigger > * { display: none; }
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__trigger::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 18px;
	height: 18px;
	margin: auto;
	border: 0;
	border-radius: 0;
	background-color: var(--db-black);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: none;
}
.woocommerce div.product.db-pdp div.images .woocommerce-product-gallery__trigger::after { content: none; display: none; }

.db-pdp__badge { position: absolute; top: 14px; left: 14px; z-index: 4; height: 32px; padding: 0 12px; font-size: var(--db-fs-2xs); font-weight: 600; pointer-events: none; }
.db-pdp__count {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 4;
	height: 32px;
	padding: 0 12px;
	font-size: var(--db-fs-2xs);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	transform: translateX(-50%);
	pointer-events: none;
}
@media (min-width: 761px) {
	.db-pdp__count { display: none; }
}
@media (max-width: 760px) {
	.woocommerce div.product.db-pdp div.images .flex-control-thumbs { display: none; }
}
@media (max-width: 640px) {
	.db-pdp__gallery { border-radius: 20px; }
}

/* ---------- purchase form ---------- */
.woocommerce div.product.db-pdp form.cart,
.db-buy { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.woocommerce div.product.db-pdp form.cart::before,
.woocommerce div.product.db-pdp form.cart::after { content: none; display: none; }
.woocommerce div.product.db-pdp form.cart .variations { margin: 0; border: 0; width: auto; }
.woocommerce div.product.db-pdp form.cart .variations label { font-weight: 400; }
.woocommerce div.product.db-pdp form.cart .variations select { min-width: 0; margin: 0; }
.woocommerce div.product.db-pdp form.cart .reset_variations { font-size: var(--db-fs-2xs); }

.db-buy .single_variation_wrap { display: flex; flex-direction: column; gap: 14px; }
.db-buy .woocommerce-variation { font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-buy .woocommerce-variation:empty { display: none; }
.db-buy .woocommerce-variation-price { display: none; } /* the price at the top follows the choice */
.db-buy .woocommerce-variation-description p { margin: 0; }
.db-buy .woocommerce-variation-availability .stock,
.db-pdp .db-pdp__info > .stock { margin: 0; font-size: var(--db-fs-xs); font-weight: 500; }
.woocommerce div.product.db-pdp .stock.in-stock, .db-pdp .stock.in-stock { color: var(--db-green-ink); }
.woocommerce div.product.db-pdp .stock.out-of-stock, .db-pdp .stock.out-of-stock { color: var(--db-red); }
.db-buy .wc-no-matching-variations { margin: 0; }

.db-buy__row { display: flex; align-items: center; gap: 10px; }
.db-buy__add { flex: 1; min-width: 0; height: 54px; }
.db-buy__row--out .db-btn { flex: 1; }
.db-buy__note { margin: 0; font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-buy__out { margin: 0; font-size: var(--db-fs-sm); font-weight: 500; color: var(--db-red); }
/* WooCommerce marks the button .disabled until a choice is made; it stays
   clickable (it says what's missing). Sold-out choices dim it. */
.db-buy .single_add_to_cart_button.disabled { opacity: 1; cursor: pointer; }
.db-buy .single_add_to_cart_button.wc-variation-is-unavailable { opacity: 0.45; }

/* The Sweet Du pill, with WooCommerce's field hidden inside it. */
.db-buy__qty { position: relative; }
.db-buy__qty.is-single { display: none; }
html.db-js .db-buy__qty .quantity {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
html:not(.db-js) .db-buy__qty { padding: 0; background: transparent; }
html:not(.db-js) .db-buy__qty .db-qbtn,
html:not(.db-js) .db-buy__qty .db-qtypill__n { display: none; }
html:not(.db-js) .db-buy__qty .qty { width: 72px; height: 54px; border: 0; border-radius: var(--db-r-pill); background: var(--db-mist); text-align: center; font-size: 16px; }

/* ---------- perks, accordion ---------- */
.db-pdp__perks { margin: 0; padding: 6px 20px; list-style: none; border-radius: 22px; background: var(--db-mist); }
.db-pdp__perks li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--db-line); font-size: var(--db-fs-sm); line-height: 1.4; }
.db-pdp__perks li:last-child { border-bottom: 0; }
.db-pdp__perks a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.db-pdp__acc .db-acc__btn { padding: 18px 0; font-size: 16px; }
.db-pdp__acc .db-acc__icon { width: 32px; height: 32px; }
.db-pdp__prose { font-size: var(--db-fs-sm); line-height: 1.7; color: var(--db-muted); overflow-wrap: break-word; }
.db-pdp__prose > * { margin: 0; }
.db-pdp__prose > * + * { margin-top: 0.8em; }
.db-pdp__prose strong, .db-pdp__prose b { color: var(--db-black); font-weight: 600; }
.db-pdp__prose ul, .db-pdp__prose ol { padding-left: 1.2em; }
.db-pdp__prose li + li { margin-top: 0.3em; }
.db-pdp__prose a { color: var(--db-black); text-decoration: underline; text-underline-offset: 3px; }
.db-pdp__prose table { width: 100%; font-size: var(--db-fs-xs); }
.db-pdp__prose th, .db-pdp__prose td { padding: 8px 6px; border-bottom: 1px solid var(--db-line-2); text-align: left; }
.db-pdp__prose th { color: var(--db-black); font-weight: 600; }
.db-pdp__prose img { border-radius: var(--db-r-sm); }

/* ---------- bag page: phone checkout bar ---------- */
.db-cbar { display: none; }
@media (max-width: 760px) {
	.db-cbar {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(var(--db-dock-space) - 6px);
		z-index: 55;
		display: flex;
		align-items: center;
		gap: 10px;
		height: 64px;
		padding: 0 8px 0 10px;
		border-radius: var(--db-r-pill);
		background: var(--db-glass-header);
		-webkit-backdrop-filter: var(--db-glass-blur);
		backdrop-filter: var(--db-glass-blur);
		border: 1px solid var(--db-glass-edge);
		box-shadow: var(--db-sh-dock);
		opacity: 0;
		visibility: hidden;
		transform: translateY(24px);
		transition: transform 0.45s var(--db-ease), opacity 0.3s ease, visibility 0s linear 0.45s;
	}
	.db-cbar.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	html.db-sheet-open .db-cbar, html.db-typing .db-cbar { opacity: 0; visibility: hidden; pointer-events: none; }
}
.db-cbar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.db-cbar__btn { flex: none; height: 48px; padding: 0 20px; font-size: var(--db-fs-xs); }
.db-cbar { padding-left: 22px; }
.db-cbar__label { font-size: var(--db-fs-3xs); color: var(--db-muted); }
.db-cbar__total { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- product page: sticky buy bar ----------
   Sweet Du's bar, in glass: hidden while the real Add to bag is on screen,
   in once it has scrolled past. A floating pill on desktop; on phones a
   bar above the dock. shop.js toggles .is-on. */
.db-pbar {
	position: fixed;
	left: 50%;
	bottom: calc(20px + var(--db-safe-b));
	z-index: 55;
	width: min(720px, calc(100% - 48px));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 24px);
	transition: transform 0.45s var(--db-ease), opacity 0.3s ease, visibility 0s linear 0.45s;
}
.db-pbar.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
html.db-sheet-open .db-pbar,
html.db-typing .db-pbar { opacity: 0; visibility: hidden; pointer-events: none; }
.db-pbar__in {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 72px;
	padding: 0 10px 0 12px;
	border-radius: var(--db-r-pill);
	background: var(--db-glass-header);
	-webkit-backdrop-filter: var(--db-glass-blur);
	backdrop-filter: var(--db-glass-blur);
	border: 1px solid var(--db-glass-edge);
	box-shadow: var(--db-sh-dock);
}
.db-pbar .db-pbar__img { flex: none; display: block; width: 48px; height: 48px; max-width: none; border-radius: var(--db-r-ibtn); object-fit: cover; background: var(--db-mist); }
.db-pbar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.db-pbar__name { overflow: hidden; font-size: var(--db-fs-sm); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.db-pbar__meta { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: var(--db-fs-2xs); white-space: nowrap; }
.db-pbar__price { flex: none; font-weight: 500; font-variant-numeric: tabular-nums; }
.db-pbar__sum { overflow: hidden; color: var(--db-muted); text-overflow: ellipsis; }
.db-pbar__sum[hidden] { display: none; }
.db-pbar__btn { flex: none; height: 52px; padding: 0 26px; font-size: var(--db-fs-sm); }
.db-pbar__btn.is-choose { background: var(--db-black); color: var(--db-white); }
.db-pbar__btn.is-choose:hover { background: var(--db-ink-2); }
.db-pbar__btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 760px) {
	.db-pbar {
		left: 12px;
		right: 12px;
		bottom: calc(var(--db-dock-space) - 6px);
		width: auto;
		transform: translateY(24px);
	}
	.db-pbar.is-on { transform: none; }
	.db-pbar__in { height: 64px; gap: 10px; padding: 0 8px 0 10px; }
	.db-pbar .db-pbar__img { width: 44px; height: 44px; }
	.db-pbar__name { font-size: var(--db-fs-2xs); }
	.db-pbar__meta { font-size: var(--db-fs-3xs); gap: 6px; }
	.db-pbar__btn { height: 48px; padding: 0 18px; font-size: var(--db-fs-xs); }
	.db-pdp-page { padding-bottom: 72px; }
}

/* =========================================================================
   Bag page
   ====================================================================== */
.db-woo--cart > .woocommerce > .woocommerce-notices-wrapper,
.db-cart__notices > .woocommerce-notices-wrapper { width: min(100% - 2 * var(--db-gutter), var(--db-maxw)); margin: 24px auto 0; }
.db-cart__notices { padding: 0; }
.db-cart { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(64px, 8vw, 104px); }
.db-cart__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; line-height: 1; }
.db-cart__n { font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em; color: var(--db-muted); }
.db-cart__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 32px; margin-top: 32px; }
.db-cart__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.db-cart__lines { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.db-cart .db-cart__line { gap: 16px; padding: 12px; border-radius: var(--db-r-xl); background: var(--db-mist); }
.db-cart .db-cart__img { width: 120px; height: 150px; border-radius: var(--db-r-md); background: var(--db-white); }
.db-cart .db-cart__img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.db-cart .db-cart__info { gap: 6px; padding: 6px 6px 4px 0; }
.db-cart .db-line__top { align-items: flex-start; gap: 12px; }
.db-cart .db-cart__name, .db-cart .db-cart__total { font-size: 16px; font-weight: 600; line-height: 1.35; }
.db-cart .db-cart__total { font-variant-numeric: tabular-nums; }
.db-cart .db-line__meta { font-size: var(--db-fs-xs); }
.db-cart .db-line__actions { margin-top: auto; gap: 10px; }
.db-cart .db-line__remove { font-size: var(--db-fs-xs); font-weight: 500; }
.db-cart__pill { padding: 4px; background: var(--db-white); }
.db-cart__pill .db-qbtn { width: 36px; height: 36px; background: var(--db-mist); box-shadow: none; }
.db-cart__pill .db-qbtn:hover { background: var(--db-black); color: var(--db-white); }
.db-cart__pill .db-qtypill__n { min-width: 30px; font-size: var(--db-fs-sm); }
html.db-js .db-cart__qtyfield { display: none; }
html:not(.db-js) .db-cart__pill { display: none; }
.db-cart__qtyfield .qty { width: 72px; height: 44px; border: 0; border-radius: var(--db-r-pill); background: var(--db-white); text-align: center; font-size: 16px; }
.db-cart__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.db-cart__back { font-size: var(--db-fs-sm); }
html.db-js .db-cart__update { display: none; }
@media (max-width: 760px) {
	.db-cart .db-cart__img { width: 88px; height: 110px; border-radius: var(--db-r-ibtn); }
	.db-cart .db-cart__line { gap: 12px; padding: 10px; border-radius: 22px; }
	.db-cart .db-cart__name, .db-cart .db-cart__total { font-size: var(--db-fs-sm); }
	.db-cart .db-line__meta { font-size: var(--db-fs-2xs); }
}

/* Summary */
.db-cart .db-cart__sum,
.woocommerce .db-cart .cart_totals {
	position: sticky;
	top: calc(var(--db-head-space) + var(--db-adminbar, 0px) + 20px);
	flex: 1 1 340px;
	max-width: 440px;
	float: none;
	width: auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border-radius: var(--db-r-xl);
	background: var(--db-mist);
}
.db-cart__sumtitle { margin: 0; font-stretch: var(--db-stretch-head); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.db-cart__rows { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.db-cart__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--db-fs-sm); }
.db-cart__row dt { color: var(--db-muted); }
.db-cart__row dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.db-cart__row.cart-discount dd { color: var(--db-green-ink); }
.db-cart .woocommerce-remove-coupon { margin-left: 6px; font-size: var(--db-fs-2xs); font-weight: 500; color: var(--db-muted); text-decoration: underline; text-underline-offset: 3px; }
.db-cart .woocommerce-remove-coupon:hover { color: var(--db-black); }
.db-cart__note { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 18px; background: var(--db-white); font-size: var(--db-fs-xs); line-height: 1.45; }
.db-cart__promobtn {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: var(--db-font);
	font-size: var(--db-fs-sm);
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.db-cart__promo .db-acc__icon { width: 30px; height: 30px; background: var(--db-white); }
.db-cart__promobtn[aria-expanded="true"] .db-acc__icon { transform: rotate(45deg); }
.db-cart__promobtn[aria-expanded="true"] + .db-acc__panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
html:not(.db-js) .db-cart__promo .db-acc__panel { grid-template-rows: 1fr; visibility: visible; }
.db-cart__promo .db-acc__inner > :last-child { padding-bottom: 2px; }
.db-cart__coupon { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.db-cart .db-cart__code { flex: 1; min-width: 0; height: 48px; font-size: var(--db-fs-sm); }
.db-cart__apply { height: 48px; padding: 0 18px; font-size: var(--db-fs-xs); }
.db-cart .coupon-error-notice { flex-basis: 100%; margin: 4px 0 0; font-size: var(--db-fs-2xs); color: var(--db-red); }
.db-cart__grand { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--db-line-2); }
.db-cart__grand > span { font-size: 16px; font-weight: 600; }
.db-cart__grand strong { font-stretch: var(--db-stretch-head); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: right; }
.db-cart__grand small { display: block; font-stretch: 100%; font-size: var(--db-fs-3xs); font-weight: 400; letter-spacing: 0; color: var(--db-muted); }
.db-cart__go { display: flex; flex-direction: column; gap: 10px; padding: 0; }
.db-cart__pay { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0; font-size: var(--db-fs-2xs); color: var(--db-muted); }
@media (max-width: 960px) {
	.db-cart .db-cart__sum,
	.woocommerce .db-cart .cart_totals { position: static; max-width: none; }
}
@media (max-width: 640px) {
	.db-cart .db-cart__sum,
	.woocommerce .db-cart .cart_totals { padding: 22px 18px; border-radius: 22px; }
}

/* Empty bag */
.db-cart--empty { padding-bottom: clamp(48px, 6vw, 80px); }
.db-cart__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	padding: 64px 24px;
	border-radius: var(--db-r-xl);
	background: var(--db-mist);
	text-align: center;
}
.db-cart__empty .db-btn { margin-top: 6px; }
.db-cart__emptyt { margin: 0; font-stretch: var(--db-stretch-head); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.db-cart__collaterals { margin-bottom: 40px; }

/* Product cards on phones: a visible "Add +" / "Choose +" pill under the card
   (Sweet Du's pattern) instead of the hover button, colour dots above the name. */
.db-pcard__mbtn { display: none; }
@media (max-width: 760px) {
	.db-pcard__add { display: none; }
	.db-pcard__mbtn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 38px; margin-top: 4px; border: 0; border-radius: var(--db-r-pill); background: var(--db-black); color: var(--db-white); font: 600 13px/1 var(--db-font); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.25s var(--db-ease-spring), background-color 0.2s; }
	.db-pcard__mbtn:active { transform: scale(0.97); }
	.db-pcard__mbtn.is-added { background: var(--db-green); color: var(--db-black); }
	.db-pcard__dots { order: -1; }
	.db-pcard__ncol { display: none; }
}

/* Phones: equal card heights. The "Add +" / "Choose +" pill sits on the photo
   (bottom-left), titles hold two lines, and every card body reserves the same
   space whether or not it has colour dots. */
@media (max-width: 760px) {
	.db-pcard { container-type: inline-size; }
	.db-pcard__mbtn {
		position: absolute;
		left: 8px;
		top: calc(125cqw - 42px);
		z-index: 3;
		width: auto;
		height: 34px;
		margin: 0;
		padding: 0 14px;
		background: rgba(255, 255, 255, 0.94);
		color: var(--db-black);
		font-size: 12.5px;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45);
	}
	.db-pcard__mbtn.is-added { background: var(--db-green); color: var(--db-black); }
	.db-pcard__body { min-height: 84px; gap: 6px; }
	.db-pcard__row { flex-direction: column; align-items: flex-start; gap: 4px; }
	.db-pcard__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.3; }
	.db-pcard__dots { min-height: 12px; }
}
@media (max-width: 760px) {
	/* Colour dots on the photo (top-right), so every card body is name + price. */
	.db-pcard__dots { position: absolute; top: 10px; right: 10px; z-index: 3; min-height: 0; padding: 5px 7px; gap: 4px; border-radius: var(--db-r-pill); background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
	.db-pcard__body { min-height: 62px; }
}
@media (max-width: 760px) {
	/* Under the photo: price then title on the left (60%), the button on the right (40%). */
	.db-pcard__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); grid-template-areas: "price btn" "name btn"; align-content: start; column-gap: 8px; row-gap: 2px; min-height: 0; padding: 0 2px; }
	.db-pcard__row { display: contents; }
	.db-pcard__price { grid-area: price; font-size: 14px; font-weight: 700; }
	.db-pcard__name { grid-area: name; min-height: 0; font-size: 13px; line-height: 1.25; }
	.db-pcard__mbtn { grid-area: btn; position: static; align-self: center; justify-self: end; width: 100%; max-width: 104px; height: 36px; padding: 0 10px; background: var(--db-black); color: var(--db-white); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 12.5px; }
	.db-pcard__mbtn.is-added { background: var(--db-green); color: var(--db-black); }
}
