/* Functional styles only; the visual design comes from the Blocksy starter site (Kiddy). */

.dz-from { font-weight: 600; font-size: 0.8em; opacity: 0.75; }

/* Quantity box next to "Add to cart" on archive cards */
.dz-loop-buy { display: flex; gap: 0.4rem; align-items: stretch; width: 100%; }
.dz-loop-qty {
	flex: 0 0 3.4rem;
	width: 3.4rem !important;
	padding: 0 0.25rem;
	min-height: 2.75rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	text-align: center;
	font-weight: 600;
}
.dz-loop-buy .button { flex: 1 1 auto; justify-content: center; white-space: nowrap; }

.dz-resale { margin: 0 0 1.25rem; font-size: 0.9rem; opacity: 0.8; }
.dz-terms-note { margin: 0 0 0.75rem; font-size: 0.85rem; opacity: 0.8; }

@media (max-width: 689px) {
	.dz-loop-buy { flex-direction: column; }
	.dz-loop-qty { flex-basis: auto; width: 100% !important; }
}

/* Header "All categories" button: dark by default, berry on hover */
.wd-header-sticky-nav .wd-tools-inner { background-color: #252525 !important; color: #fff !important; transition: background-color .2s; }
.wd-header-sticky-nav > a:hover .wd-tools-inner,
.wd-header-sticky-nav.wd-opened .wd-tools-inner { background-color: #C2185B !important; }
.wd-header-sticky-nav > a:hover,
.wd-header-sticky-nav .wd-tools-inner :is(.wd-tools-icon, .wd-tools-text) { color: #fff !important; }

/* Sticky side navigation toggle: light grey circle, dark when the panel is open/hovered */
.wd-sticky-nav-title { background-color: #F2F2F2 !important; color: #252525 !important; transition: background-color .2s, color .2s; }
.wd-sticky-nav:hover .wd-sticky-nav-title,
.wd-sticky-nav-title:hover { background-color: #252525 !important; color: #fff !important; }

/* Product "Details" table: compact two-column spec table */
.woocommerce-product-attributes.shop_attributes { max-width: 760px; margin: 0 !important; border: 1px solid #ECE4EA; border-collapse: collapse; }
.woocommerce-product-attributes.shop_attributes th,
.woocommerce-product-attributes.shop_attributes td { padding: 10px 16px !important; border-bottom: 1px solid #ECE4EA; text-align: left !important; vertical-align: top; }
.woocommerce-product-attributes.shop_attributes th { width: 38%; background: #F7F3F6; font-weight: 600; color: #2B1630; }
.woocommerce-product-attributes.shop_attributes td { color: #4a3d4e; }
.woocommerce-product-attributes.shop_attributes td p { margin: 0; }
.woocommerce-product-attributes.shop_attributes { display: table !important; width: 100%; }
.woocommerce-product-attributes.shop_attributes tbody { display: table-row-group !important; }
.woocommerce-product-attributes.shop_attributes tr { display: table-row !important; border: 0 !important; }
.woocommerce-product-attributes.shop_attributes th,
.woocommerce-product-attributes.shop_attributes td { display: table-cell !important; justify-content: flex-start !important; }
.woocommerce-product-attributes.shop_attributes :is(th, td) > span { display: inline !important; }

/* "Why choose Dazzlot" graphic on product pages */
.dz-why { max-width: 900px; margin: 0 auto; }
.dz-why img { display: block; width: 100%; height: auto; border-radius: 16px; }

.dz-duty-note { margin: 0 0 12px; padding: 10px 12px; background: #FFF6E5; border-radius: 8px; font-size: 13px; color: #6b4e16; }
.dz-ship-hint { margin: 10px 0 0; font-size: 13px; color: #6b5a70; }
.dz-ship-hint a { color: #C2185B; text-decoration: underline; }
.dz-trust { list-style: none; margin: 14px 0 0; padding: 12px 14px; background: #F8F3F7; border-radius: 8px; font-size: 13px; color: #2B1630; }
.dz-trust li { margin: 0; padding: 3px 0 3px 20px; position: relative; }
.dz-trust li::before { content: "✓"; position: absolute; left: 0; color: #C2185B; font-weight: 700; }
.dz-trust a { color: #C2185B; }

/* Image buttons for the "Option" variation attribute (dazzlot.js); theme button styles need !important */
.dz-opt-swatches{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 6px}
.variations_form .dz-opt{width:84px!important;min-height:0!important;height:auto!important;padding:4px 4px 6px!important;margin:0!important;border:1px solid #ECE4EA!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;cursor:pointer;display:flex!important;flex-direction:column;align-items:center;gap:4px;font-size:12px!important;font-weight:400!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important;color:#2B1630!important}
.variations_form .dz-opt img{width:74px!important;height:74px!important;max-width:none!important;object-fit:cover;border-radius:6px;display:block}
.variations_form .dz-opt span{text-align:center;word-break:normal;overflow-wrap:anywhere}
.variations_form .dz-opt:hover{border-color:#C2185B!important}
.variations_form .dz-opt.active{border-color:#C2185B!important;box-shadow:0 0 0 1px #C2185B!important}
@media (max-width:480px){.variations_form .dz-opt{width:calc(25% - 6px)!important}.variations_form .dz-opt img{width:100%!important;height:auto!important;aspect-ratio:1}}

/* Order discount tiers and progress (dazzlot-core.php) */
.dz-discount-tiers { margin: 6px 0 0; font-size: 13px; color: #6b5a70; }
.dz-discount-progress { margin: 10px 0; padding: 8px 12px; background: #FFF6D6; border-radius: 6px; font-size: 13px; color: #2B1630; }
.dz-discount-progress a { color: #C2185B; text-decoration: underline; }

/* Homepage price cards ([dz_price_tiers]): same cards as Shop by Category, in a grid. */
.dz-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
/* Values copied from the Shop by Category widget's computed styles. */
/* Doubled class selectors: WoodMart's own .wd-cat rules otherwise win. */
.wd-cats.dz-cards .wd-cat.cat-design-side { margin: 0; width: auto; max-width: none; }
.wd-cats.dz-cards .wd-cat.cat-design-side .wd-cat-wrap { background-color: #fff; }
.wd-cats.dz-cards .wd-cat.cat-design-side .wd-cat-thumb { flex: 0 0 136px; width: 136px; max-width: 42%; }
.wd-cats.dz-cards .wd-cat.cat-design-side .wd-cat-image img { width: 100%; }
.wd-cats.dz-cards .wd-cat.cat-design-side .wd-entities-title { font-size: 14px; line-height: 1.4; text-transform: capitalize; }
@media (max-width: 1024px) { .dz-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .dz-cards { grid-template-columns: minmax(0, 1fr); } }
.dz-cat-banner img { display: block; width: 100%; height: auto; border-radius: 10px; }
.elementor-widget-wd_shop_archive_archive_description p { margin-bottom: 12px; }
.dz-cat-summary { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: #6b5a70; max-width: 860px; }
/* Banner titles were h4; kept as div for heading order, so restore the heading weight. */
.promo-banner .banner-title { font-weight: var(--wd-title-font-weight, 700); }
.dz-faq-item { border-bottom: 1px solid #e4dbe6; }
.dz-faq-item > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; }
.dz-faq-item > summary::-webkit-details-marker { display: none; }
.dz-faq-item > summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: #C2185B; }
.dz-faq-item[open] > summary::after { content: "\2212"; }
.dz-faq-item .dz-faq-title { margin: 0; font-size: 19px; line-height: 1.35; }
.dz-faq-a { padding: 0 0 14px; }
