/**
 * Demfilz Product Table — front-end styles.
 */

.dpt-wrapper {
	--dpt-accent: #2563eb;
	--dpt-header-bg: #f8fafc;
	--dpt-row-hover: #f1f5f9;
	--dpt-border: #e2e8f0;
	--dpt-text: #1e293b;
	--dpt-muted: #64748b;
	--dpt-radius: 8px;
	color: var(--dpt-text);
	margin: 0 0 1.5em;
	font-size: 15px;
}

.dpt-wrapper *,
.dpt-wrapper *::before,
.dpt-wrapper *::after {
	box-sizing: border-box;
}

/* Controls ---------------------------------------------------------------- */

.dpt-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.dpt-controls-top {
	justify-content: space-between;
}

.dpt-controls-left,
.dpt-controls-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.dpt-controls-bottom {
	justify-content: space-between;
	margin-top: 14px;
	margin-bottom: 0;
}

.dpt-controls-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.dpt-search-input,
.dpt-filter-select,
.dpt-length-select,
.dpt-filter-price input {
	padding: 8px 10px;
	border: 1px solid var(--dpt-border);
	border-radius: var(--dpt-radius);
	background: #fff;
	color: var(--dpt-text);
	font-size: 14px;
	line-height: 1.3;
	max-width: 100%;
}

.dpt-search-input {
	min-width: 220px;
}

.dpt-search-input:focus,
.dpt-filter-select:focus,
.dpt-length-select:focus,
.dpt-filter-price input:focus {
	outline: 2px solid var(--dpt-accent);
	outline-offset: 1px;
	border-color: var(--dpt-accent);
}

.dpt-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dpt-filter-price {
	display: inline-flex;
	gap: 6px;
}

.dpt-filter-price input {
	width: 90px;
}

.dpt-length {
	color: var(--dpt-muted);
	font-size: 14px;
}

/* Searchable filter combobox --------------------------------------------- */

.dpt-combo {
	position: relative;
	display: inline-block;
	min-width: 160px;
}

.dpt-combo-native {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.dpt-combo-control {
	position: relative;
	display: flex;
	align-items: center;
}

.dpt-combo-input {
	width: 100%;
	padding: 8px 46px 8px 10px;
	border: 1px solid var(--dpt-border);
	border-radius: var(--dpt-radius);
	background: #fff;
	color: var(--dpt-text);
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
}

.dpt-combo-input:focus {
	outline: 2px solid var(--dpt-accent);
	outline-offset: 1px;
	border-color: var(--dpt-accent);
	cursor: text;
}

.dpt-combo-arrow {
	position: absolute;
	right: 10px;
	top: 50%;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--dpt-muted);
	transform: translateY(-50%);
	pointer-events: none;
	transition: transform 0.15s ease;
}

.dpt-combo.is-open .dpt-combo-arrow {
	transform: translateY(-50%) rotate(180deg);
}

.dpt-combo-clear {
	position: absolute;
	right: 26px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	/* Hide the &times; glyph; the crisp cross is drawn below with two lines. */
	font-size: 0;
	line-height: 0;
	color: transparent;
	border-radius: 50%;
	transition: background 0.12s ease;
}

.dpt-combo-clear::before,
.dpt-combo-clear::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 1.5px;
	background: var(--dpt-muted);
	border-radius: 2px;
}

.dpt-combo-clear::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.dpt-combo-clear::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.dpt-combo-clear:hover {
	background: var(--dpt-row-hover);
}

.dpt-combo-clear:hover::before,
.dpt-combo-clear:hover::after {
	background: var(--dpt-text);
}

.dpt-combo-list {
	position: absolute;
	z-index: 50;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 260px;
	overflow-y: auto;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--dpt-border);
	border-radius: var(--dpt-radius);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.dpt-combo-option {
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	color: var(--dpt-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dpt-combo-option:hover,
.dpt-combo-option.is-highlighted {
	background: var(--dpt-accent);
	color: #fff;
}

.dpt-style-dark .dpt-combo-input,
.dpt-style-dark .dpt-combo-list {
	background: #1e293b;
	color: #e2e8f0;
}

/* Search + filter controls keep consistent, softly rounded corners on every theme. */
.dpt-search-input,
.dpt-length-select,
.dpt-filter-select,
.dpt-filter-price input,
.dpt-combo-input,
.dpt-combo-list {
	border-radius: 10px;
}

/* Container + layout ------------------------------------------------------ */

.dpt-container-boxed {
	border: 1px solid var(--dpt-border);
	border-radius: var(--dpt-radius);
	padding: 20px;
	background: #fff;
}

.dpt-style-dark.dpt-container-boxed {
	background: #0f172a;
}

.dpt-layout {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.dpt-sidebar {
	flex: 0 0 220px;
	max-width: 240px;
}

.dpt-main {
	/* min-width:0 lets the inner table's horizontal scroll shrink instead of overflowing. */
	flex: 1 1 auto;
	min-width: 0;
}

.dpt-sidebar .dpt-filters {
	flex-direction: column;
	align-items: stretch;
}

.dpt-sidebar .dpt-filter,
.dpt-sidebar .dpt-filter-select,
.dpt-sidebar .dpt-search,
.dpt-sidebar .dpt-search-input {
	width: 100%;
}

.dpt-sidebar .dpt-combo {
	display: block;
	width: 100%;
}

.dpt-sidebar .dpt-filter-price {
	display: flex;
}

.dpt-sidebar .dpt-filter-price input {
	flex: 1 1 0;
	width: auto;
}

/* Below 1000px there is not enough room beside the table for a filter column,
   so the sidebar becomes a full-width block above it. */
@media (max-width: 999.98px) {
	.dpt-layout {
		flex-direction: column;
	}

	/* The layout aligns children to flex-start, which on the cross axis of a
	   column shrinks them to their content width, so both need an explicit
	   full width once stacked. */
	.dpt-sidebar,
	.dpt-main {
		flex-basis: auto;
		max-width: none;
		width: 100%;
	}
}

/* Once it is on top it has the full width to work with, so the filters flow in
   a wrapping row like the top filter position instead of staying a tall stack
   of full-width controls. Below 601px the stacked-mobile rules take over and
   put each filter back on its own full-width line, so this stops there. */
@media (min-width: 601px) and (max-width: 999.98px) {
	.dpt-sidebar .dpt-filters {
		flex-direction: row;
	}

	.dpt-sidebar .dpt-filter,
	.dpt-sidebar .dpt-filter-select,
	.dpt-sidebar .dpt-search,
	.dpt-sidebar .dpt-search-input {
		width: auto;
	}

	.dpt-sidebar .dpt-combo {
		display: inline-block;
		width: auto;
	}

	.dpt-sidebar .dpt-filter-price input {
		flex: 0 0 auto;
		width: 90px;
	}
}

/* Table ------------------------------------------------------------------- */

.dpt-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--dpt-border);
	border-radius: var(--dpt-radius);
}

table.dpt-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	background: #fff;
}

table.dpt-table th,
table.dpt-table td {
	padding: 8px 12px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid var(--dpt-border);
}

table.dpt-table thead th {
	background: var(--dpt-header-bg);
	font-weight: 600;
	white-space: nowrap;
	position: relative;
	user-select: none;
}

table.dpt-table tbody tr:hover {
	background: var(--dpt-row-hover);
}

table.dpt-table tbody tr:last-child td {
	border-bottom: none;
}

.dpt-col-check {
	width: 36px;
	text-align: center;
}

.dpt-col-price,
.dpt-col-id,
.dpt-col-weight {
	white-space: nowrap;
}

/* Quick-view column shrinks to fit its button rather than taking wide space. */
.dpt-col-quick-view {
	width: 1%;
	white-space: nowrap;
}

.dpt-img {
	display: block;
	border-radius: 6px;
	max-width: 100%;
	height: auto;
}

.dpt-qv-trigger {
	cursor: pointer;
}

.dpt-img-link {
	display: inline-block;
}

.dpt-name-link {
	color: var(--dpt-text);
	font-weight: 600;
	font-size: 1.08em;
	text-decoration: none;
}

.dpt-name-link:hover {
	color: var(--dpt-accent);
}

/* Sorting ----------------------------------------------------------------- */

th.dpt-sortable {
	cursor: pointer;
	padding-right: 26px;
}

th.dpt-sortable .dpt-sort-icon {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 12px;
	opacity: 0.35;
}

th.dpt-sortable .dpt-sort-icon::before,
th.dpt-sortable .dpt-sort-icon::after {
	content: "";
	position: absolute;
	left: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
}

th.dpt-sortable .dpt-sort-icon::before {
	top: 0;
	border-bottom: 5px solid currentColor;
}

th.dpt-sortable .dpt-sort-icon::after {
	bottom: 0;
	border-top: 5px solid currentColor;
}

th.dpt-sorted-asc .dpt-sort-icon,
th.dpt-sorted-desc .dpt-sort-icon {
	opacity: 1;
	color: var(--dpt-accent);
}

th.dpt-sorted-asc .dpt-sort-icon::after {
	display: none;
}

th.dpt-sorted-desc .dpt-sort-icon::before {
	display: none;
}

/* Quantity + cart --------------------------------------------------------- */

.dpt-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.dpt-variation-selects {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	width: 100%;
}

.dpt-variation-select {
	padding: 6px 8px;
	border: 1px solid var(--dpt-border);
	border-radius: 6px;
	font-size: 13px;
	background: #fff;
}

.dpt-variation-price {
	font-weight: 600;
	color: var(--dpt-accent);
}

.dpt-variation-price:empty {
	display: none;
}

.dpt-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--dpt-border);
	border-radius: 6px;
	overflow: hidden;
}

.dpt-qty-minus,
.dpt-qty-plus {
	border: none;
	background: var(--dpt-header-bg);
	color: var(--dpt-text);
	width: 30px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
}

.dpt-qty-minus:hover,
.dpt-qty-plus:hover {
	background: var(--dpt-row-hover);
}

.dpt-qty-input {
	width: 46px;
	border: none;
	border-left: 1px solid var(--dpt-border);
	border-right: 1px solid var(--dpt-border);
	text-align: center;
	font-size: 14px;
	padding: 6px 2px;
	-moz-appearance: textfield;
}

.dpt-qty-input::-webkit-outer-spin-button,
.dpt-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.dpt-add-btn {
	display: inline-block;
	background: var(--dpt-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
	transition: filter 0.15s ease;
	white-space: nowrap;
}

.dpt-add-btn:hover {
	filter: brightness(0.92);
	color: #fff;
}

.dpt-add-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.dpt-add-btn.dpt-select-options,
.dpt-add-btn.dpt-ext {
	background: transparent;
	color: var(--dpt-accent);
	border: 1px solid var(--dpt-accent);
}

.dpt-add-selected {
	background: var(--dpt-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 9px 16px;
	font-weight: 600;
	cursor: pointer;
}

.dpt-add-selected:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.dpt-reset {
	background: #fff;
	border: 1px solid var(--dpt-border);
	border-radius: 6px;
	padding: 9px 14px;
	cursor: pointer;
	color: var(--dpt-text);
}

/* Pagination + info ------------------------------------------------------- */

.dpt-info {
	color: var(--dpt-muted);
	font-size: 14px;
}

.dpt-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
}

.dpt-page-btn {
	min-width: 36px;
	padding: 7px 10px;
	border: 1px solid var(--dpt-border);
	background: #fff;
	color: var(--dpt-text);
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
}

.dpt-page-btn:hover:not(:disabled) {
	border-color: var(--dpt-accent);
	color: var(--dpt-accent);
}

.dpt-page-btn.active {
	background: var(--dpt-accent);
	border-color: var(--dpt-accent);
	color: #fff;
}

.dpt-page-btn:disabled {
	opacity: 0.45;
	cursor: default;
}

.dpt-page-ellipsis {
	padding: 0 4px;
	color: var(--dpt-muted);
}

.dpt-loading-row td,
.dpt-empty-row td {
	text-align: center;
	color: var(--dpt-muted);
	padding: 26px 14px;
}

tbody.dpt-loading {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

/* Notices ----------------------------------------------------------------- */

.dpt-notice {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 12px;
	font-size: 14px;
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	transition: opacity 0.4s ease;
}

.dpt-notice-error {
	background: #fef2f2;
	color: #991b1b;
	border-color: #fecaca;
}

.dpt-notice-hide {
	opacity: 0;
}

.dpt-notice-link {
	font-weight: 600;
	color: inherit;
	text-decoration: underline;
}

/* Lightbox ---------------------------------------------------------------- */

.dpt-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.85);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* Above the quick-view panel (100001) so an image opened from the panel
	   appears on top of it. */
	z-index: 100002;
	padding: 30px;
	cursor: zoom-out;
}

.dpt-lightbox-overlay img {
	max-width: 92vw;
	max-height: 82vh;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dpt-lightbox-caption {
	color: #fff;
	margin-top: 14px;
	font-size: 15px;
}

.dpt-lightbox-nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	z-index: 1;
}

.dpt-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

.dpt-lightbox-prev {
	left: 22px;
}

.dpt-lightbox-next {
	right: 22px;
}

@media (max-width: 600px) {
	.dpt-lightbox-prev {
		left: 8px;
	}
	.dpt-lightbox-next {
		right: 8px;
	}
}

/* Quick view slide-in panel ---------------------------------------------- */

body.dpt-qv-lock {
	overflow: hidden;
}

.dpt-qv-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 100000;
}

.dpt-qv-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.dpt-qv-panel {
	/* The panel is appended to <body>, outside .dpt-wrapper, so it needs its own
	   theme variables (a clean white card that stays readable under any table
	   style). The table's accent colour is copied onto it in JS. */
	--dpt-accent: #2563eb;
	--dpt-header-bg: #f8fafc;
	--dpt-row-hover: #f1f5f9;
	--dpt-border: #e2e8f0;
	--dpt-text: #1e293b;
	--dpt-muted: #64748b;
	--dpt-radius: 8px;
	position: fixed;
	top: 3vh;
	bottom: 3vh;
	/* Width is set per-table from the settings as max(min-px, pct-of-viewport);
	   the fallback matches the previous fixed default. Capped at 94vw so it can
	   never exceed the screen. */
	width: var(--dpt-qv-w, 648px);
	max-width: 94vw;
	background: #fff;
	color: var(--dpt-text);
	z-index: 100001;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.dpt-qv-right {
	right: 24px;
	transform: translateX(110%);
}

.dpt-qv-left {
	left: 24px;
	transform: translateX(-110%);
}

.dpt-qv-panel.is-open {
	transform: translateX(0);
}

.dpt-qv-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: var(--dpt-header-bg);
	color: var(--dpt-text);
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.dpt-qv-close:hover {
	background: var(--dpt-row-hover);
}

.dpt-qv-content {
	overflow-y: auto;
	height: 100%;
	padding: 28px 28px 44px;
}

.dpt-qv-loading {
	padding: 64px 0;
	text-align: center;
	color: var(--dpt-muted);
}

/* Left-justify table headings inside product descriptions + quick view. */
.dpt-col-summary table th,
.dpt-col-description table th,
.dpt-col-name-summary table th,
.dpt-qv-desc table th,
.dpt-col-summary table td,
.dpt-col-description table td,
.dpt-col-name-summary table td,
.dpt-qv-desc table td {
	text-align: left;
}

/* Optionally hide <caption> headings inside description / quick-view tables. */
.dpt-hide-captions caption {
	display: none;
}

/* Combined "Product" column: larger title, smaller summary beneath it. */
.dpt-title-summary .dpt-ts-title {
	font-weight: 600;
	font-size: 1.08em;
	margin-bottom: 4px;
}

.dpt-title-summary .dpt-ts-title .dpt-name-link {
	font-size: inherit;
}

.dpt-title-summary .dpt-ts-summary {
	font-size: 0.82em;
	color: var(--dpt-muted);
}

.dpt-title-summary .dpt-ts-sku {
	font-size: 0.82em;
	color: var(--dpt-muted);
}

.dpt-title-summary .dpt-ts-cat {
	font-size: 0.82em;
	color: var(--dpt-muted);
}

.dpt-col-summary {
	font-size: 0.82em;
}

.dpt-title-summary .dpt-ts-summary p:last-child {
	margin-bottom: 0;
}

.dpt-qv-gallery {
	margin-top: 22px;
}

.dpt-var-unavailable {
	color: #b91c1c;
	font-size: 0.9em;
}

/* Single-product detail layout ------------------------------------------- */

/* The same content as the quick-view panel, rendered into the page with the
   gallery beside the details instead of below them. */
/* By default the detail area fills its container, so it lines up with the tabs
   and related products below it. A configured maximum width (--dpt-single-w)
   caps and centres it instead. */
.dpt-single-wrap {
	max-width: var(--dpt-single-w, none);
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2em;
}

.dpt-detail {
	background: #fff;
	border: 1px solid var(--dpt-border);
	border-radius: 16px;
	padding: 28px;
}

.dpt-qv-split {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

/* The gallery is always first in the markup; "right" just reverses the row so
   the reading order stays image-then-details for screen readers. */
.dpt-qv-gallery-right {
	flex-direction: row-reverse;
}

.dpt-qv-split .dpt-qv-gallery {
	flex: 0 0 46%;
	max-width: 46%;
	margin-top: 0;
}

.dpt-qv-split .dpt-qv-body {
	/* min-width:0 lets a wide description table scroll instead of stretching
	   the column and pushing the gallery out of the card. */
	flex: 1 1 auto;
	min-width: 0;
}

.dpt-detail .dpt-qv-title {
	font-size: 1.9em;
	margin-top: 0;
}

/* Below-card two-column info: Description (left) + Specifications (right). */
.dpt-detail-info {
	margin-top: 22px;
}

.dpt-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.dpt-info-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--dpt-text);
	margin: 0 0 16px;
}

.dpt-info-body {
	line-height: 1.7;
	overflow-x: auto;
}

.dpt-info-body p:last-child {
	margin-bottom: 0;
}

.dpt-spec {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 18px;
	padding: 13px 2px;
	position: relative;
}

/* A light-grey, rounded-end divider between each spec row. */
.dpt-spec + .dpt-spec::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	border-radius: 999px;
	background: var(--dpt-border);
}

.dpt-spec-k {
	font-weight: 600;
	color: var(--dpt-text);
}

.dpt-spec-v {
	color: var(--dpt-muted);
	text-align: right;
}

@media (max-width: 768px) {
	.dpt-info-grid {
		grid-template-columns: 1fr;
		gap: 26px;
	}
}

/* Spec tables in product descriptions are often wider than the column. */
.dpt-detail .dpt-qv-desc,
.dpt-detail .dpt-qv-fulldesc {
	overflow-x: auto;
}

@media (max-width: 860px) {
	.dpt-qv-split,
	.dpt-qv-gallery-right {
		flex-direction: column;
	}

	.dpt-qv-split .dpt-qv-gallery {
		flex-basis: auto;
		max-width: none;
		width: 100%;
	}

	.dpt-detail {
		padding: 20px;
	}
}

.dpt-qv-zoom {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	border-radius: 10px;
	overflow: hidden;
}

.dpt-qv-main-img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

.dpt-qv-zoom-hint {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 1;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	font-size: 12px;
	line-height: 1;
	padding: 6px 12px;
	border-radius: 999px;
	opacity: 0;
	transition: opacity 0.15s ease;
	pointer-events: none;
}

.dpt-qv-zoom:hover .dpt-qv-zoom-hint,
.dpt-qv-zoom:focus-visible .dpt-qv-zoom-hint {
	opacity: 1;
}

.dpt-qv-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.dpt-qv-thumb {
	width: 58px;
	height: 58px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	cursor: pointer;
	overflow: hidden;
}

.dpt-qv-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dpt-qv-thumb.is-active {
	border-color: var(--dpt-accent);
}

.dpt-qv-title {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 40px 6px 0;
}

.dpt-qv-rating {
	margin-bottom: 8px;
}

.dpt-qv-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--dpt-accent);
	margin-bottom: 8px;
}

.dpt-qv-price del {
	color: var(--dpt-muted);
	font-weight: 400;
	margin-right: 6px;
}

.dpt-qv-stock {
	font-weight: 600;
	margin-bottom: 14px;
}

.dpt-qv-stock-label {
	font-weight: 700;
	margin-right: 4px;
}

.dpt-qv-stock .out-of-stock {
	color: #b91c1c;
}

.dpt-qv-sku {
	color: var(--dpt-muted);
	font-size: 13px;
	margin: 0 0 14px;
}

.dpt-qv-sku span {
	font-weight: 600;
}

.dpt-qv-cat {
	color: var(--dpt-muted);
	font-size: 13px;
	margin: -8px 0 14px;
}

.dpt-qv-cat a {
	color: var(--dpt-accent);
	text-decoration: none;
}

.dpt-qv-desc {
	line-height: 1.6;
	margin-bottom: 20px;
}

.dpt-qv-cart {
	margin-bottom: 20px;
}

.dpt-qv-request {
	margin-bottom: 20px;
}

.dpt-qv-cart .dpt-cart {
	flex-wrap: wrap;
}

.dpt-qv-cart .dpt-add-btn {
	flex: 1 1 auto;
	text-align: center;
	padding: 11px 16px;
}

.dpt-qv-meta {
	color: var(--dpt-muted);
	font-size: 13px;
	margin-bottom: 8px;
}

.dpt-qv-meta span {
	font-weight: 600;
}

.dpt-qv-meta a {
	color: var(--dpt-accent);
	text-decoration: none;
}

.dpt-qv-link {
	display: inline-block;
	margin-top: 10px;
	color: var(--dpt-accent);
	font-weight: 600;
	text-decoration: none;
}

.dpt-qv-link:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.dpt-qv-panel {
		/* Separate mobile width (percentage of the screen); defaults to full width. */
		width: var(--dpt-qv-w-mobile, 100vw);
		max-width: 100vw;
		top: 0;
		bottom: 0;
		border-radius: 0;
	}

	.dpt-qv-right {
		right: 0;
	}

	.dpt-qv-left {
		left: 0;
	}
}

/* Totals ------------------------------------------------------------------ */

.dpt-totals-row td {
	font-weight: 700;
	background: var(--dpt-header-bg);
	border-top: 2px solid var(--dpt-border);
}

/* Style variants ---------------------------------------------------------- */

.dpt-style-minimal .dpt-table-scroll {
	border: none;
}

.dpt-style-minimal table.dpt-table thead th {
	background: transparent;
	border-bottom: 2px solid var(--dpt-border);
}

.dpt-style-bordered table.dpt-table th,
.dpt-style-bordered table.dpt-table td {
	border: 1px solid var(--dpt-border);
}

.dpt-style-striped table.dpt-table tbody tr:nth-child(even) {
	background: var(--dpt-header-bg);
}

/* The default hover (#f1f5f9) is barely darker than the striped even-row shade,
   so hovering a striped row is nearly invisible. Give it a clearly darker hover.
   Set directly (not via --dpt-row-hover) because the wrapper's inline variable
   would otherwise win. */
.dpt-style-striped table.dpt-table tbody tr:hover {
	background: #dbe2ea;
}

.dpt-style-dark {
	--dpt-header-bg: #1e293b;
	--dpt-row-hover: #334155;
	--dpt-border: #334155;
	--dpt-text: #e2e8f0;
	--dpt-muted: #94a3b8;
}

.dpt-style-dark table.dpt-table {
	background: #0f172a;
}

.dpt-style-dark .dpt-search-input,
.dpt-style-dark .dpt-filter-select,
.dpt-style-dark .dpt-length-select,
.dpt-style-dark .dpt-page-btn,
.dpt-style-dark .dpt-variation-select,
.dpt-style-dark .dpt-filter-price input {
	background: #1e293b;
	color: #e2e8f0;
}

/* Navy: striped dark-blue catalogue theme. */
.dpt-style-navy {
	--dpt-accent: #7d8db0;
	--dpt-header-bg: #26334a;
	--dpt-row-hover: #34425c;
	--dpt-border: #384660;
	--dpt-text: #e8ecf3;
	--dpt-muted: #8592a8;
	--dpt-radius: 3px;
}

.dpt-style-navy .dpt-table-scroll {
	border: none;
}

.dpt-style-navy table.dpt-table {
	background: #1a2334;
}

.dpt-style-navy table.dpt-table thead th {
	background: #26334a;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 13px;
	border-bottom: none;
}

.dpt-style-navy table.dpt-table tbody tr:nth-child(odd) {
	background: #1a2334;
}

.dpt-style-navy table.dpt-table tbody tr:nth-child(even) {
	background: #29374f;
}

.dpt-style-navy table.dpt-table tbody tr:hover {
	background: #34425c;
}

.dpt-style-navy table.dpt-table td,
.dpt-style-navy table.dpt-table th {
	border-color: #384660;
}

.dpt-style-navy .dpt-name-link {
	color: #fff;
}

.dpt-style-navy .dpt-name-link:hover {
	color: #cdd6e6;
}

.dpt-style-navy .dpt-add-btn,
.dpt-style-navy .dpt-quickview-btn {
	background: #3d4658;
	color: #fff;
	border: none;
}

.dpt-style-navy .dpt-add-btn:hover,
.dpt-style-navy .dpt-quickview-btn:hover {
	background: #4a566d;
	color: #fff;
	filter: none;
}

.dpt-style-navy .dpt-add-btn.dpt-select-options,
.dpt-style-navy .dpt-add-btn.dpt-ext {
	background: transparent;
	border: 1px solid #4a566d;
	color: #cdd6e6;
}

.dpt-style-navy .dpt-search-input,
.dpt-style-navy .dpt-filter-select,
.dpt-style-navy .dpt-length-select,
.dpt-style-navy .dpt-page-btn,
.dpt-style-navy .dpt-combo-input,
.dpt-style-navy .dpt-combo-list,
.dpt-style-navy .dpt-variation-select,
.dpt-style-navy .dpt-filter-price input {
	background: #26334a;
	color: #e8ecf3;
	border-color: #384660;
}

.dpt-style-navy .dpt-page-btn.active {
	background: #3d4658;
	border-color: #3d4658;
	color: #fff;
}

.dpt-style-navy .dpt-info,
.dpt-style-navy .dpt-length {
	color: #8592a8;
}

/* Midnight: dark-blue table with a very subtle hover; leaves the filters,
   search and length controls with their default (light) appearance. */
.dpt-style-midnight {
	--dpt-accent: #60a5fa;
	--dpt-header-bg: #1e2a44;
	--dpt-row-hover: #232f4c;
	--dpt-border: #2c3a58;
	--dpt-text: #e6ebf5;
	--dpt-muted: #9aa7c0;
	--dpt-radius: 4px;
}

.dpt-style-midnight .dpt-table-scroll {
	border: none;
}

.dpt-style-midnight table.dpt-table {
	background: #1c2740;
}

.dpt-style-midnight table.dpt-table thead th {
	background: #1e2a44;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 13px;
	border-bottom: none;
}

.dpt-style-midnight table.dpt-table td,
.dpt-style-midnight table.dpt-table th {
	border-color: #2c3a58;
}

/* Only a slight lightening on hover. */
.dpt-style-midnight table.dpt-table tbody tr:hover {
	background: #232f4c;
}

.dpt-style-midnight .dpt-name-link {
	color: #fff;
}

.dpt-style-midnight .dpt-name-link:hover {
	color: #cbd7ec;
}

.dpt-style-midnight .dpt-add-btn,
.dpt-style-midnight .dpt-quickview-btn {
	background: #37568a;
	color: #fff;
	border: none;
}

.dpt-style-midnight .dpt-add-btn:hover,
.dpt-style-midnight .dpt-quickview-btn:hover {
	background: #436aa8;
	color: #fff;
	filter: none;
}

.dpt-style-midnight .dpt-add-btn.dpt-select-options,
.dpt-style-midnight .dpt-add-btn.dpt-ext {
	background: transparent;
	border: 1px solid #436aa8;
	color: #cbd7ec;
}

.dpt-style-midnight .dpt-page-btn.active {
	background: #37568a;
	border-color: #37568a;
	color: #fff;
}

/* The filters/search/length keep their light backgrounds, so their text and
   dropdown options must use a dark colour (not the theme's light --dpt-text). */
.dpt-style-midnight .dpt-search-input,
.dpt-style-midnight .dpt-filter-select,
.dpt-style-midnight .dpt-length-select,
.dpt-style-midnight .dpt-filter-price input,
.dpt-style-midnight .dpt-combo-input,
.dpt-style-midnight .dpt-combo-list,
.dpt-style-midnight .dpt-combo-option {
	color: #1e293b;
}

.dpt-style-midnight .dpt-search-input::placeholder,
.dpt-style-midnight .dpt-combo-input::placeholder {
	color: #64748b;
}

/* Aqua: light teal/mint catalogue with a dark row on hover, teal order buttons
   and dark SKU badges (tile-store look). */
.dpt-style-aqua {
	--dpt-accent: #0fb5ab;
	--dpt-header-bg: #d6efe9;
	--dpt-row-hover: #33475b;
	--dpt-border: #ffffff;
	--dpt-text: #26333b;
	--dpt-muted: #5f7d86;
	--dpt-radius: 4px;
}

.dpt-style-aqua .dpt-table-scroll {
	border: none;
}

.dpt-style-aqua table.dpt-table {
	background: #eaf7f4;
}

/* Header: the image + product columns are tinted mint; the other columns are
   a soft grey (matching the reference). */
.dpt-style-aqua table.dpt-table thead th {
	background: #e7edee;
	color: #26333b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 13px;
	border-bottom: 3px solid #fff;
}

.dpt-style-aqua table.dpt-table thead th.dpt-col-image,
.dpt-style-aqua table.dpt-table thead th[class*="name"] {
	background: #d6efe9;
}

/* Alternating row shades. Image + product columns keep the mint tint; every
   other column ("box") gets a soft grey. */
.dpt-style-aqua table.dpt-table tbody tr:nth-child(odd) td {
	background: #e9edee;
}

.dpt-style-aqua table.dpt-table tbody tr:nth-child(even) td {
	background: #f3f6f6;
}

.dpt-style-aqua table.dpt-table tbody tr:nth-child(odd) td.dpt-col-image,
.dpt-style-aqua table.dpt-table tbody tr:nth-child(odd) td[class*="name"] {
	background: #e3f4f0;
}

.dpt-style-aqua table.dpt-table tbody tr:nth-child(even) td.dpt-col-image,
.dpt-style-aqua table.dpt-table tbody tr:nth-child(even) td[class*="name"] {
	background: #eefaf6;
}

/* White separators give the blocky, tile-catalogue look. */
.dpt-style-aqua table.dpt-table td,
.dpt-style-aqua table.dpt-table th {
	border-color: #fff;
	border-bottom-width: 3px;
}

/* The dark row on hover (white text throughout the row); !important so it wins
   over the per-cell mint/grey backgrounds. */
.dpt-style-aqua table.dpt-table tbody tr:hover td {
	background: #33475b !important;
}

.dpt-style-aqua table.dpt-table tbody tr:hover,
.dpt-style-aqua table.dpt-table tbody tr:hover a,
.dpt-style-aqua table.dpt-table tbody tr:hover .dpt-name-link,
.dpt-style-aqua table.dpt-table tbody tr:hover .dpt-ts-title,
.dpt-style-aqua table.dpt-table tbody tr:hover .dpt-ts-summary,
.dpt-style-aqua table.dpt-table tbody tr:hover .dpt-ts-sku {
	color: #fff;
}

.dpt-style-aqua .dpt-name-link {
	color: #26333b;
}

.dpt-style-aqua .dpt-name-link:hover {
	color: #0fb5ab;
}

/* Teal order / quick-view buttons. */
.dpt-style-aqua .dpt-add-btn,
.dpt-style-aqua .dpt-quickview-btn {
	background: #0fb5ab;
	color: #fff;
	border: none;
}

.dpt-style-aqua .dpt-add-btn:hover,
.dpt-style-aqua .dpt-quickview-btn:hover {
	background: #0c9a91;
	color: #fff;
	filter: none;
}

.dpt-style-aqua .dpt-add-btn.dpt-select-options,
.dpt-style-aqua .dpt-add-btn.dpt-ext {
	background: transparent;
	border: 1px solid #0fb5ab;
	color: #0c8f87;
}

.dpt-style-aqua .dpt-page-btn.active {
	background: #0fb5ab;
	border-color: #0fb5ab;
	color: #fff;
}

/* Dark SKU badge on the name-sku column (matches the store's SKU chips). */
.dpt-style-aqua .dpt-ts-sku {
	display: inline-block;
	background: #3d4d5c;
	color: #fff;
	font-weight: 600;
	font-size: 0.72em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 3px;
	margin-bottom: 4px;
}

.dpt-style-aqua table.dpt-table tbody tr:hover .dpt-ts-sku {
	background: #55697c;
	color: #fff;
}

/* Price show / hide toggle ------------------------------------------------ */
.dpt-price-toggle {
	padding: 8px 14px;
	border: 1px solid var(--dpt-border);
	border-radius: var(--dpt-radius);
	background: #fff;
	color: var(--dpt-text);
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
}

.dpt-price-toggle:hover {
	background: var(--dpt-row-hover);
}

.dpt-price-toggle[aria-pressed="true"] {
	background: var(--dpt-accent);
	color: #fff;
	border-color: var(--dpt-accent);
}

.dpt-hide-prices .woocommerce-Price-amount,
.dpt-hide-prices .dpt-qv-price,
.dpt-hide-prices .dpt-variation-price,
.dpt-hide-prices table.dpt-table td[class*="price"],
.dpt-hide-prices table.dpt-table th[class*="price"] {
	display: none;
}

/* Search suggestions dropdown --------------------------------------------- */
.dpt-search-has-suggest {
	position: relative;
}

.dpt-search-suggest {
	position: absolute;
	z-index: 60;
	left: 0;
	right: 0;
	top: 100%;
	margin: 4px 0 0;
	padding: 4px;
	list-style: none;
	background: #fff;
	color: #1e293b;
	border: 1px solid var(--dpt-border);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
	max-height: 320px;
	overflow-y: auto;
	min-width: 220px;
}

.dpt-search-suggest-item {
	padding: 8px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

/* SKU shown on a suggestion when the match was on the SKU, not the name. */
.dpt-search-suggest-sku {
	color: var(--dpt-muted);
	font-size: 12px;
	white-space: nowrap;
}

.dpt-search-suggest-item:hover,
.dpt-search-suggest-item.is-highlighted {
	background: #f1f5f9;
}

.dpt-search-suggest-none {
	padding: 8px 10px;
	color: #64748b;
	font-size: 14px;
}

/* Quick-view hover zoom + full description -------------------------------- */
.dpt-qv-zoomable .dpt-qv-main-img {
	transition: transform 0.08s ease-out;
	will-change: transform;
}

.dpt-qv-fulldesc {
	margin-top: 12px;
	font-size: 0.92em;
}

.dpt-qv-fulldesc p:last-child {
	margin-bottom: 0;
}

/* Wishlist ---------------------------------------------------------------- */
.dpt-wishlist-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid var(--dpt-border, #e2e8f0);
	border-radius: var(--dpt-radius, 8px);
	background: #fff;
	color: #64748b;
	cursor: pointer;
	line-height: 1;
	font-size: 14px;
}

.dpt-wishlist-btn:hover {
	color: #e11d48;
	border-color: #e11d48;
}

.dpt-wishlist-icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
	flex: none;
	transition: transform 0.15s ease;
}

/* Saved: a filled red heart. */
.dpt-wishlist-btn.is-in-wishlist {
	color: #e11d48;
	border-color: #f4b8c4;
	background: #fff1f4;
}

.dpt-wishlist-btn.is-in-wishlist .dpt-wishlist-icon {
	fill: currentColor;
}

.dpt-wishlist-btn.dpt-wishlist-pulse .dpt-wishlist-icon {
	transform: scale(1.28);
}

/* In a table cell the button is icon-only and compact. */
.dpt-col-wishlist {
	width: 1%;
	white-space: nowrap;
	text-align: center;
}

.dpt-col-wishlist .dpt-wishlist-btn {
	padding: 6px;
}

.dpt-qv-wishlist {
	margin-bottom: 14px;
}

/* Count badge (e.g. in a menu). */
.dpt-wishlist-count.dpt-wishlist-empty {
	opacity: 0.55;
}

/* Saved-items view ([dpt_wishlist]). */
.dpt-wishlist-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.dpt-wishlist-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
}

.dpt-wishlist-item-thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.dpt-wishlist-item-body {
	flex: 1 1 auto;
	min-width: 0;
}

.dpt-wishlist-item-name {
	display: block;
	font-weight: 600;
	text-decoration: none;
	color: #1e293b;
}

.dpt-wishlist-item-price {
	color: #64748b;
	font-size: 0.9em;
	margin-top: 2px;
}

.dpt-wishlist-empty-msg,
.dpt-wishlist-loading {
	padding: 24px 0;
	color: #64748b;
}

/* Responsive stacked mode ------------------------------------------------- */

@media (max-width: 600px) {
	.dpt-wrapper.dpt-responsive table.dpt-table thead {
		display: none;
	}

	.dpt-wrapper table.dpt-table,
	.dpt-wrapper table.dpt-table tbody,
	.dpt-wrapper table.dpt-table tr,
	.dpt-wrapper table.dpt-table td {
		display: block;
		width: 100%;
	}

	.dpt-wrapper table.dpt-table tr {
		border-bottom: 2px solid var(--dpt-border);
		padding: 6px 0;
	}

	.dpt-wrapper table.dpt-table td {
		border-bottom: 1px solid var(--dpt-border);
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		text-align: right;
	}

	.dpt-wrapper table.dpt-table td::before {
		content: attr(data-colname);
		font-weight: 600;
		text-align: left;
		color: var(--dpt-muted);
		flex: 0 0 40%;
	}

	/* Optionally hide the per-cell column labels on mobile (values only). */
	.dpt-wrapper.dpt-hide-mobile-labels table.dpt-table td::before {
		display: none;
	}

	.dpt-wrapper.dpt-hide-mobile-labels table.dpt-table td {
		justify-content: flex-start;
		text-align: left;
	}

	.dpt-wrapper table.dpt-table td.dpt-col-check {
		justify-content: flex-start;
	}

	.dpt-controls-top,
	.dpt-controls-bottom {
		flex-direction: column;
		align-items: stretch;
	}

	.dpt-search-input {
		width: 100%;
	}

	.dpt-combo {
		display: block;
		width: 100%;
	}

	/* 16px prevents iOS Safari from auto-zooming on focus. */
	.dpt-combo-input {
		font-size: 16px;
	}
}
