/* ==========================================================================
   JOOLA: WooCommerce (cards, shop, product, quick view, drawer, cart,
   checkout, account). Uses the tokens from style.css.
   ========================================================================== */

.woocommerce .added_to_cart, .woocommerce a.added_to_cart, a.added_to_cart { display: none !important; }
.woo-main { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 8vw, 110px); }

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */
ul.products, .woocommerce ul.products {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
	margin: 0 !important; padding: 0; list-style: none;
}
ul.products::before, ul.products::after { display: none !important; content: none !important; }
.woocommerce ul.products li.product.card, ul.products li.card { width: auto !important; float: none !important; margin: 0 !important; padding: 0; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .25s, box-shadow .3s var(--ease); }
.card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-2); }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.card__img { display: block; width: 100%; height: 100%; }
.card__img img, .woocommerce ul.products li.product .card__img img { width: 100%; height: 100%; margin: 0 !important; padding: 7%; object-fit: contain; transition: transform .7s var(--ease-out); }
.card:hover .card__img img { transform: scale(1.05); }
.card .onsale, .woocommerce span.onsale, .woocommerce ul.products li.product .onsale {
	position: absolute; top: 10px; left: 10px; right: auto; z-index: 2; min-width: 0; min-height: 0; margin: 0; padding: 4px 8px;
	border-radius: var(--r-sm); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 750; letter-spacing: .02em; line-height: 1.3;
}
.card__oos { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; }
.card__qv {
	position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px;
	border: 0; border-radius: var(--r-sm); background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
	font-size: .82rem; font-weight: 650; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .35s var(--ease-out), background-color .2s, color .2s;
}
.card__qv .i { width: 18px; height: 18px; }
.card:hover .card__qv, .card__qv:focus-visible { opacity: 1; transform: none; }
.card__qv:hover { background: var(--ink); color: #fff; }
@media (hover: none) {
	.card__qv { opacity: 1; transform: none; left: auto; right: 8px; bottom: 8px; width: 38px; height: 38px; padding: 0; }
	.card__qv span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card__cat { margin: 0 0 4px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__t { margin: 0 0 8px; padding: 0 !important; font-size: .98rem !important; font-weight: 650; line-height: 1.3; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__t a { text-decoration: none; color: var(--ink); }
.card__t a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__t a:hover { color: var(--ink); }
.card__specs { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 3px; }
.card__specs li { font-size: .8rem; color: var(--ink-2); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__specs span { font-weight: 650; color: var(--ink); }
.card__foot { position: relative; z-index: 2; margin-top: auto; display: grid; gap: 10px; }
.card__price-wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.card__price, .woocommerce ul.products li.product .price { margin: 0 !important; color: var(--ink) !important; font-size: 1rem; font-weight: 750; line-height: 1.3; }
.card__opts { font-size: .75rem; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.price del, .woocommerce div.product p.price del, .woocommerce div.product span.price del { color: var(--ink-2); font-weight: 500; opacity: 1; font-size: .86em; margin-right: 6px; }
.price ins { text-decoration: none; color: var(--brand-text); }
.card .btn--add { width: 100%; min-height: 44px; font-size: .88rem; }
.card .btn--add .i { width: 18px; height: 18px; }
.card .btn--add.added .i { animation: jl-bump .5s var(--ease-roll); }

@media (max-width: 1199px) { ul.products, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
ul.products.rail__track, .woocommerce ul.products.rail__track { grid-template-columns: none !important; }
@media (max-width: 767px) { ul.products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 479px) {
	.card__body { padding: 10px 10px 12px; }
	.card__t { font-size: .88rem !important; }
	.card__specs { display: none; }
	.card__price, .woocommerce ul.products li.product .price { font-size: .9rem; }
	.card__price del { display: block; }
	.card .btn--add { min-height: 40px; padding: 0 .6em; font-size: .8rem; gap: .4em; }
	.card .btn--add .i { width: 16px; height: 16px; }
	.card .onsale { top: 6px; left: 6px; }
}

/* --------------------------------------------------------------------------
   Shop page
   -------------------------------------------------------------------------- */
.phead--shop { padding-block: clamp(28px, 4vw, 52px) 0; }
.phead--shop::after { right: -100px; bottom: -200px; }
.phead--shop h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.phead--shop .phead__lead { font-size: 1rem; max-width: 62ch; }
.phead--shop .phead__lead p { margin: 0; color: #fff; }
.crumbs, .woocommerce-breadcrumb { margin: 0 0 12px !important; font-size: .82rem; color: var(--ink-2) !important; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 .5em; opacity: .6; }
.phead .crumbs { color: #fff !important; }
.catrail { position: relative; z-index: 1; margin-top: clamp(20px, 3vw, 32px); border-top: 1px solid rgba(255, 255, 255, .28); }
.catrail ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.catrail ul::-webkit-scrollbar { display: none; }
.catrail a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 14px; white-space: nowrap; color: #fff; text-decoration: none; font-size: .88rem; font-weight: 650; }
.catrail li:first-child a { padding-left: 0; }
.catrail a .i { width: 16px; height: 16px; }
.catrail a em { font-style: normal; font-weight: 500; font-size: .78rem; padding: 1px 6px; border-radius: 10px; background: rgba(255, 255, 255, .18); }
.catrail a:hover { color: #fff; }
.catrail a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.catrail li:first-child a::after { left: 0; }
.catrail a:hover::after, .catrail a[aria-current]::after { transform: scaleX(1); }

.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.admin-bar .filters { top: calc(var(--header-h) + 52px); }
.filters__head { display: none; }
.facet { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.facet legend { margin-bottom: 12px; padding: 0; font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.facet .check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .92rem; color: var(--ink); }
.facet .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.facet .check span { flex: 1; display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.facet .check span::before { content: ""; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--line-2); border-radius: 2px; background: #fff center / 12px no-repeat; transition: background-color .15s, border-color .15s; }
.facet .check:hover span::before { border-color: var(--brand); }
.facet .check input:checked + span::before { background-color: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='m4.5 12.5 4.8 4.8L19.5 7'/%3E%3C/svg%3E"); }
.facet .check input:focus-visible + span::before { outline: 2px solid var(--brand); outline-offset: 2px; }
.facet .check em { font-style: normal; font-size: .78rem; color: var(--ink-2); }
.facet .check--sub { padding-left: 28px; font-size: .86rem; color: var(--ink-2); }

.range { position: relative; padding-top: 10px; margin-inline: 11px; }
.range__track { position: relative; height: 4px; border-radius: 2px; background: var(--brand-100); }
.range__track span { position: absolute; top: 0; bottom: 0; left: calc(var(--a, 0) * 100%); right: calc((1 - var(--b, 1)) * 100%); background: var(--brand); border-radius: 2px; }
.range input[type="range"] { position: absolute; left: -11px; right: -11px; top: 1px; width: calc(100% + 22px); height: 24px; margin: 0; background: none; pointer-events: none; }
.range input[type="range"]::-webkit-slider-runnable-track { background: none; height: 24px; }
.range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; margin-top: 0; cursor: grab; }
.range input[type="range"]::-moz-range-thumb { pointer-events: auto; cursor: grab; }
.range input[type="range"]::-moz-range-track, .range input[type="range"]::-moz-range-progress { background: none; }
.range__out { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 0; font-size: .88rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.range__out span[aria-hidden] { color: var(--ink-2); font-weight: 500; }

.filters__foot { display: grid; gap: 10px; }
.filters__show { display: none; }
.filters__clear { font-size: .88rem; font-weight: 600; color: var(--ink-2); }

.shop__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filters-open { display: none !important; }
.filters-open .count { position: static; margin-left: 4px; }
.woocommerce .woocommerce-result-count { margin: 0; font-size: .88rem; color: var(--ink-2); float: none; }
.woocommerce .woocommerce-ordering { margin: 0 0 0 auto; float: none; }
.woocommerce-ordering select { min-height: 42px; padding: 0 38px 0 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font-size: .88rem; font-weight: 600; background-size: 16px; }
.shop__results { transition: opacity .25s; }
.shop__results.is-loading { opacity: .4; pointer-events: none; }
.shop__empty { padding: 48px 24px; text-align: center; background: var(--paper-2); border-radius: var(--r); }
.shop__empty h2 { font-size: 1.5rem; }
.shop__empty-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }

.woocommerce nav.woocommerce-pagination { margin-top: 40px; text-align: left; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; float: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font-weight: 700; color: var(--ink); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--brand-50); border-color: var(--brand); color: var(--ink); }

@media (max-width: 1023px) {
	.shop { grid-template-columns: minmax(0, 1fr); }
	.filters-open { display: inline-flex !important; }
	.filters { position: fixed; inset: 0 auto 0 0; z-index: 90; width: min(360px, 90vw); max-height: none; height: 100dvh; padding: 0; background: #fff; box-shadow: 0 0 0 100vmax rgba(36, 26, 31, 0); transform: translateX(-102%); transition: transform .35s var(--ease-out), box-shadow .35s; }
	.filters.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(36, 26, 31, .55); }
	.filters__head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; padding: 10px 10px 10px 20px; background: #fff; border-bottom: 1px solid var(--line); }
	.filters__head h2 { margin: 0; font-size: 1.1rem; }
	.filters__form { padding: 20px 20px 0; }
	.filters__foot { position: sticky; bottom: 0; padding: 14px 0 max(14px, env(safe-area-inset-bottom)); background: #fff; }
	.filters__show { display: flex; }
}
@media (max-width: 479px) { .woocommerce .woocommerce-ordering { margin-left: 0; width: 100%; } .woocommerce-ordering select { width: 100%; } }

/* --------------------------------------------------------------------------
   Single product
   -------------------------------------------------------------------------- */
.single-product .woo-main { padding-top: 20px; }
.single-product .woo-main > .product, .woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px) clamp(28px, 5vw, 72px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images, .woocommerce div.product div.images.woocommerce-product-gallery { position: relative; top: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 6%; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; margin: 0; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images .flex-control-thumbs img { aspect-ratio: 1; object-fit: contain; opacity: .6; border: 1.5px solid var(--line); border-radius: 2px; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; border-color: var(--brand); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { top: 14px; right: 14px; background: var(--brand-50); border-radius: var(--r-sm); }
.woocommerce div.product .product_title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.08; margin: 0 0 12px; }
.summary .kicker { margin-bottom: 10px; }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 16px; font-size: .85rem; color: var(--ink-2); }
.pmeta b { color: var(--ink); font-weight: 700; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 1.6rem; font-weight: 800; letter-spacing: -.015em; margin: 0 0 20px; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--ink-2); margin-bottom: 22px; }
.specs { display: grid; margin: 0 0 18px; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(110px, .7fr) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs dt { font-weight: 650; color: var(--ink); }
.specs dd { margin: 0; color: var(--ink-2); }
.ticks { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8375F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Add-to-cart form (product page + quick view) */
.woocommerce div.product form.cart, .qv form.cart { margin: 0 0 22px; }
.woocommerce div.product form.cart .variations, .qv form.cart .variations { width: 100%; margin-bottom: 12px; border: 0; }
.variations tbody { display: grid; gap: 14px; }
.variations tr { display: block; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td, .qv .variations th, .qv .variations td { display: block; padding: 0; text-align: left; line-height: 1.4; border: 0; background: none; }
.variations th label { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.variations td.value { position: relative; }
.variations select { max-width: 100%; }
.varpills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.size { min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--ink); font-size: .88rem; font-weight: 650; transition: background-color .2s, color .2s, border-color .2s; }
.size:hover { border-color: var(--ink); }
.size[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.size:disabled { color: var(--ink-3); text-decoration: line-through; cursor: not-allowed; background: var(--paper-2); border-style: dashed; }
.has-varpills select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: .82rem; color: var(--ink-2); }
.woocommerce-variation-price .price, .single_variation .price { display: block; margin: 4px 0 6px !important; font-size: 1.35rem !important; font-weight: 800; }
.woocommerce-variation-availability p.stock, p.stock { margin: 0 0 10px; font-size: .88rem; font-weight: 650; }
.woocommerce div.product .stock, .qv .stock { color: var(--ink); }
.woocommerce div.product .out-of-stock, .qv .out-of-stock { color: var(--brand-700); }
.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.woocommerce div.product form.cart div.quantity, .qv form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty, .qv .quantity .qty { width: 72px; min-height: 52px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); text-align: center; font-weight: 700; font-size: 1rem; }
.woocommerce div.product form.cart .button, .woocommerce .single_add_to_cart_button, .qv .single_add_to_cart_button {
	flex: 1; min-height: 52px; padding: 0 1.6em !important; border: 0; border-radius: var(--r-sm) !important; background: var(--brand) !important; color: #fff !important;
	font-size: .98rem !important; font-weight: 700 !important; line-height: 1.2 !important; transition: background-color .2s;
}
.woocommerce div.product form.cart .button:hover, .qv .single_add_to_cart_button:hover { background: var(--brand-600) !important; }
.woocommerce div.product form.cart .button.disabled, .woocommerce div.product form.cart .button:disabled, .qv .single_add_to_cart_button.disabled { opacity: 1 !important; background: var(--paper-2) !important; color: var(--ink-2) !important; box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: not-allowed; }
.single_add_to_cart_button.is-busy { pointer-events: none; opacity: .75; }
.cart-msg { width: 100%; margin: 6px 0 0; font-size: .88rem; font-weight: 600; }
.cart-msg.err { color: var(--brand-700); }

/* Advanced Dynamic Pricing: bulk table + messages, in theme colours */
.wdp_bulk_table_content { margin: 0 0 22px; }
.wdp_bulk_table_content .wdp_pricing_table_caption, .wdp_bulk_table_content h3 { margin: 0 0 8px; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.wdp_bulk_table_content table, table.wdp_pricing_table { width: 100%; border: 1px solid var(--line) !important; border-radius: var(--r-sm); overflow: hidden; font-size: .9rem; }
.wdp_bulk_table_content table th, .wdp_bulk_table_content table td { padding: 9px 12px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; text-align: left; }
.wdp_bulk_table_content table thead th, .wdp_bulk_table_content table tr:first-child td { background: var(--brand-50) !important; color: var(--ink) !important; font-weight: 700; }
.wdp_pricing_table_footer { margin-top: 6px; font-size: .82rem; color: var(--ink-2); }
.wdp-amount-saved, .wdp_amount_saved { color: var(--brand-text); font-weight: 650; }

.assure { list-style: none; margin: 0 0 16px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.assure li { display: flex; gap: 12px; align-items: center; font-size: .92rem; color: var(--ink-2); }
.assure .i { width: 22px; height: 22px; color: var(--brand); }
.help-wa { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--brand-50); color: var(--brand-700); font-size: .92rem; font-weight: 650; text-decoration: none; transition: background-color .2s, color .2s; }
.help-wa:hover { background: var(--brand); color: #fff; }
.help-wa .i { width: 20px; height: 20px; }

.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--line-2); overflow: visible; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 18px; font-size: .95rem; font-weight: 700; color: var(--ink-2); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 82ch; margin: 0; color: var(--ink-2); }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--line); padding: 12px; background: none !important; font-style: normal; }
.woocommerce table.shop_attributes th { width: 220px; color: var(--ink); text-align: left; }
.tabcopy .link-arrow { margin-right: 20px; }
.woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; margin-top: clamp(32px, 5vw, 64px); }
.related > h2, .upsells > h2 { font-size: var(--fs-h2); margin-bottom: 24px; }
.single-product div.product > .onsale { display: none; }

@media (max-width: 899px) {
	.single-product .woo-main > .product, .woocommerce div.product { grid-template-columns: minmax(0, 1fr); }
	.woocommerce div.product div.images, .woocommerce div.product div.images.woocommerce-product-gallery { position: relative; top: 0; }
}

.stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) max(10px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(36, 26, 31, .4); transform: translateY(110%); transition: transform .35s var(--ease-out); }
.stickybuy.is-on { transform: none; }
.stickybuy__t { min-width: 0; line-height: 1.25; }
.stickybuy__t strong { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stickybuy__t .price { font-size: .9rem; font-weight: 750; }
.stickybuy .btn { flex: none; min-height: 46px; }
@media (min-width: 900px) { .stickybuy { display: none; } }

/* --------------------------------------------------------------------------
   Quick view
   -------------------------------------------------------------------------- */
.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 440px; }
.qv__media { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #fff; border-right: 1px solid var(--line); }
.qv__main { flex: 1; display: grid; place-items: center; }
.qv__main img { width: 100%; max-height: 440px; object-fit: contain; }
.qv__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.qv__thumb { width: 60px; height: 60px; padding: 0; border: 1.5px solid var(--line); border-radius: 2px; background: #fff; opacity: .65; }
.qv__thumb img { width: 100%; height: 100%; object-fit: contain; }
.qv__thumb.is-on, .qv__thumb:hover { opacity: 1; border-color: var(--brand); }
.qv__info { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.qv__t { font-size: 1.55rem; margin-bottom: 8px; padding-right: 40px; }
.qv__price { font-size: 1.3rem !important; font-weight: 800; margin-bottom: 16px !important; color: var(--ink); }
.qv .specs--qv > div { grid-template-columns: minmax(90px, .7fr) 1fr; font-size: .88rem; padding: 7px 0; }
.qv__buy { margin-top: 4px; }
.qv .link-arrow { align-self: flex-start; }
.qv--loading .qv__media { min-height: 360px; }
.qv--loading .qv__info span { display: block; height: 18px; margin-bottom: 12px; background: var(--paper-2); border-radius: 2px; animation: jl-shimmer 1.2s infinite alternate; }
.qv--loading .qv__info span:first-child { width: 40%; }
.qv--loading .qv__info span:nth-child(2) { width: 80%; height: 30px; }
@keyframes jl-shimmer { to { opacity: .45; } }
@media (max-width: 719px) {
	.qv { grid-template-columns: minmax(0, 1fr); }
	.qv__media { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
	.qv__main img { max-height: 240px; }
}

/* --------------------------------------------------------------------------
   Cart drawer (mini-cart)
   -------------------------------------------------------------------------- */
.drawer__body--cart { padding: 0; display: flex; flex-direction: column; }
.drawer__body--cart .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }
.mcart { list-style: none; margin: 0; padding: 4px 20px; flex: 1; }
.mcart__item { position: relative; display: grid !important; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 30px 16px 0 !important; border-bottom: 1px solid var(--line); transition: opacity .25s; }
.mcart__item.is-busy { opacity: .45; pointer-events: none; }
.mcart__img img { width: 72px !important; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 2px; background: #fff; margin: 0 !important; float: none !important; }
.mcart__name { display: block; font-weight: 650; line-height: 1.3; text-decoration: none; font-size: .95rem; }
.mcart__item dl.variation { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 4px 0 0; font-size: .8rem; color: var(--ink-2); }
.mcart__item dl.variation dt { font-weight: 600; margin: 0; }
.mcart__item dl.variation dd { margin: 0 8px 0 0; }
.mcart__item dl.variation p { margin: 0; }
.mcart__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.mcart__sub { font-weight: 750; text-align: right; }
.mcart__sub del { display: block; font-size: .8em; color: var(--ink-2); font-weight: 500; }
.mcart__sub ins { text-decoration: none; color: var(--brand-text); }
.woocommerce-mini-cart-item a.remove.mcart__rm, .mcart__rm { position: absolute !important; top: 14px; right: 0; left: auto !important; width: 28px !important; height: 28px !important; display: grid !important; place-items: center; border-radius: 2px !important; color: var(--ink-2) !important; background: none !important; font-size: 0 !important; }
.mcart__rm:hover { color: var(--brand-700) !important; background: var(--brand-50) !important; }
.mcart__rm .i { width: 16px; height: 16px; }
.mcart__foot { position: sticky; bottom: 0; padding: 18px 20px max(18px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.mcart__total { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 1.1rem; }
.mcart__total strong { font-weight: 600; }
.mcart__total .amount { font-weight: 800; }
.mcart__note { margin: 0 0 14px; font-size: .82rem; color: var(--ink-2); }
.mcart__buttons { display: grid; gap: 8px; margin: 0; }
.mcart__buttons .btn { margin: 0 !important; }
.mcart__help { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--brand-text); }
.mcart__help .i { width: 18px; height: 18px; }
.mcart__empty { padding: 48px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.mcart__castor { width: 56px; height: 66px; color: var(--brand-200); }
.mcart__empty-t { margin: 0; font-size: 1.25rem; font-weight: 800; }
.mcart__empty p { margin: 0 0 10px; color: var(--ink-2); }

/* Steppers */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.stepper button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: var(--ink); }
.stepper button:hover { color: var(--brand-700); background: var(--brand-50); }
.stepper button .i { width: 16px; height: 16px; }
.stepper input { width: 38px; height: 34px; border: 0; text-align: center; font-weight: 700; font-size: .92rem; -moz-appearance: textfield; appearance: textfield; background: none; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* --------------------------------------------------------------------------
   Notices & generic WooCommerce buttons
   -------------------------------------------------------------------------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
	margin: 0 0 24px !important; padding: 16px 20px 16px 52px !important; border: 0 !important; border-left: 4px solid var(--brand) !important; border-radius: 0 var(--r-sm) var(--r-sm) 0;
	background: var(--brand-50) !important; color: var(--ink) !important; font-size: .95rem; list-style: none;
}
.woocommerce-error { border-left-color: var(--brand-700) !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: var(--brand-text) !important; top: 1em !important; left: 1.2em !important; }
.woocommerce-message .button, .woocommerce-info .button { float: right; }
.woocommerce-store-notice, p.demo_store { background: var(--brand); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	min-height: 46px; padding: 0 1.4em; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: .92rem; font-weight: 650; line-height: 46px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--brand-700); color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--brand); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--brand-600); }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { padding: 0 1.4em; opacity: 1; background: var(--paper-2); color: var(--ink-2); border: 1.5px solid var(--line); cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Cart page
   -------------------------------------------------------------------------- */
.shop-page { max-width: none; }
.steps-bar { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .85rem; font-weight: 650; color: #fff; }
.steps-bar li { display: flex; align-items: center; gap: 8px; }
.steps-bar li.is-on, .steps-bar li.is-done { opacity: 1; }
.steps-bar span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #fff; font-size: .75rem; }
.steps-bar .is-on span, .steps-bar .is-done span { background: #fff; color: var(--brand-700); }
.woocommerce-cart .shop-page > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.woocommerce-cart .shop-page > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart .cart-collaterals { position: sticky; top: calc(var(--header-h) + 20px); width: auto; }
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: auto; padding: 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); }
.cart_totals h2 { font-size: 1.2rem; }
.woocommerce table.shop_table { border: 0; border-radius: 0; margin: 0 0 24px; }
.woocommerce table.shop_table th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 750; padding: 12px; }
.woocommerce table.shop_table td { border-top: 1px solid var(--line); padding: 16px 12px; }
.woocommerce-cart table.cart img { width: 72px; object-fit: contain; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 2px; }
.woocommerce-cart table.cart td.product-name a { font-weight: 650; text-decoration: none; }
.woocommerce a.remove { color: var(--ink-2) !important; font-weight: 400; }
.woocommerce a.remove:hover { background: var(--brand) !important; color: #fff !important; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 180px; min-height: 46px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0 12px; }
.wc-proceed-to-checkout { padding: 1em 0 0 !important; }
.wc-proceed-to-checkout .checkout-button { display: flex !important; align-items: center; justify-content: center; min-height: 56px; margin: 0 !important; padding: 0 1em !important; line-height: 1.2 !important; font-size: 1rem !important; background: var(--brand) !important; }
.wc-proceed-to-checkout .checkout-button:hover { background: var(--brand-600) !important; }
.empty-note { font-size: var(--fs-lg); color: var(--ink-2); }
@media (max-width: 1023px) { .woocommerce-cart .shop-page > .woocommerce { grid-template-columns: minmax(0, 1fr); } .woocommerce-cart .cart-collaterals { position: static; } }
@media (max-width: 768px) {
	.woocommerce table.shop_table_responsive tr { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.woocommerce table.shop_table_responsive tr td { border: 0; padding: 4px 0; background: none !important; text-align: left !important; }
	.woocommerce table.shop_table_responsive tr td::before { font-weight: 600; }
	.woocommerce-cart table.cart td.product-thumbnail { display: block !important; grid-row: 1 / span 4; }
	.woocommerce-cart table.cart td.product-remove, .woocommerce-cart table.cart td.product-name, .woocommerce-cart table.cart td.product-price, .woocommerce-cart table.cart td.product-quantity, .woocommerce-cart table.cart td.product-subtotal { grid-column: 2; }
	.woocommerce-cart table.cart td.actions { grid-column: 1 / -1; }
	.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 8px; }
	.woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1; width: auto; }
}

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */
.checkout-help { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 18px; margin-bottom: 24px; background: var(--brand-50); border-radius: var(--r-sm); font-size: .95rem; }
.checkout-help a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-text); }
.checkout-help .i { width: 18px; height: 18px; }
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; gap: 0 clamp(24px, 4vw, 56px); align-items: start; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 2; }
.woocommerce-checkout #order_review_heading { grid-row: 1; margin: 0; padding: 22px 24px 0; background: var(--paper-2); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; font-size: 1.2rem; }
.woocommerce-checkout #order_review { grid-row: 2; position: sticky; top: calc(var(--header-h) + 20px); padding: 12px 24px 24px; background: var(--paper-2); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); }
.woocommerce-checkout #order_review table.shop_table th, .woocommerce-checkout #order_review table.shop_table td { border-color: var(--line-2); }
.woocommerce-checkout #order_review .order-total .amount { font-size: 1.25rem; font-weight: 800; }
.woocommerce-checkout #payment { background: #fff !important; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r) !important; }
.woocommerce-checkout #payment div.payment_box { background: var(--brand-50) !important; color: var(--ink) !important; border-radius: var(--r-sm); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--brand-50) !important; }
.woocommerce-checkout #payment ul.payment_methods { border-color: var(--line) !important; }
.woocommerce-checkout #payment ul.payment_methods li { color: var(--ink); }
.woocommerce-checkout #payment ul.payment_methods li input { accent-color: var(--brand); }
#place_order { width: 100%; min-height: 58px; float: none !important; font-size: 1.02rem !important; background: var(--brand) !important; }
#place_order:hover { background: var(--brand-600) !important; }
.woocommerce form .form-row { padding: 0; margin: 0 0 16px; }
.woocommerce form .form-row label { font-size: .85rem; font-weight: 650; margin-bottom: 6px; line-height: 1.4; color: var(--ink); }
.woocommerce form .form-row .required { color: var(--brand-text); text-decoration: none; }
.woocommerce form .form-row .select2-container .select2-selection--single { min-height: 48px; padding: 0 6px; display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--brand) !important; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--brand-700); }
.woocommerce-checkout h3 { font-size: 1.2rem; margin: 8px 0 18px; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 48.5%; }
.woocommerce-shipping-methods li { margin-bottom: 6px !important; }
.woocommerce-shipping-methods input { accent-color: var(--brand); }
@media (max-width: 1023px) {
	.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
	.woocommerce-checkout #order_review { position: static; }
}
@media (max-width: 559px) { .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; } }

.woocommerce-order { max-width: 860px; }
.woocommerce ul.order_details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; padding: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.woocommerce ul.order_details li { margin: 0; padding: 16px; border: 0; background: #fff; float: none; }
.woocommerce ul.order_details::before, .woocommerce ul.order_details::after { display: none; }

/* --------------------------------------------------------------------------
   My account
   -------------------------------------------------------------------------- */
.woocommerce-account .shop-page > .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { width: auto; float: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 16px; margin-left: -1px; border-left: 3px solid transparent; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.woocommerce-MyAccount-navigation .is-active a { border-color: var(--brand); color: var(--ink); }
.woocommerce-account:not(.logged-in) .shop-page > .woocommerce { display: block; }
.woocommerce #customer_login .u-column1, .woocommerce #customer_login .u-column2 { padding: clamp(20px, 3vw, 32px); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); }
.woocommerce form.login, .woocommerce form.register { border: 0; padding: 0; margin: 0; }
@media (max-width: 799px) { .woocommerce-account .shop-page > .woocommerce { grid-template-columns: minmax(0, 1fr); } }

/* WooCommerce clearfix pseudo-elements would become grid items in these grids. */
.mcart__item::before, .mcart__item::after,
.woocommerce-checkout form.checkout::before, .woocommerce-checkout form.checkout::after,
.shop-page > .woocommerce::before, .shop-page > .woocommerce::after,
.woocommerce div.product::before, .woocommerce div.product::after,
.single-product .woo-main > .product::before, .single-product .woo-main > .product::after,
.woocommerce-variation-add-to-cart::before, .woocommerce-variation-add-to-cart::after,
form.cart::before, form.cart::after { content: none !important; display: none !important; }

.phead--flow + .section--page { padding-top: clamp(24px, 3vw, 40px); }
.woocommerce-mini-cart__amount-saved, .mcart .wdp-amount-saved, .widget_shopping_cart_content > p:not([class]) { text-align: left; padding: 10px 20px; margin: 0; font-size: .9rem; color: var(--brand-text); }
.shop__empty .sbox { max-width: 460px; margin: 18px auto 0; }
