/* ==========================================================================
   eJuice Deals — WooCommerce
   Woo's own stylesheet still loads (plugins rely on it); these rules restyle on top.
   ========================================================================== */

/* ---------- Buttons: beat WooCommerce's .woocommerce a.button specificity ---------- */

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce-page a.button, .woocommerce-page button.button,
.widget_shopping_cart_content a.button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .7em 1.4em;
	border: var(--bw) solid var(--ink); border-radius: var(--r-pill);
	background: var(--cyan); color: var(--on-blue); text-shadow: var(--on-blue-shadow);
	font-family: var(--f-display); font-weight: 800; font-size: 1rem; line-height: 1.1; text-align: center;
	box-shadow: var(--shadow-sm);
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.widget_shopping_cart_content a.button:hover {
	background: var(--deal); color: var(--ink); text-shadow: none; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink);
}
.woocommerce a.button.disabled, .woocommerce button.button:disabled, .woocommerce button.button.disabled,
.woocommerce button.button:disabled[disabled], .woocommerce button.button.alt.disabled {
	background: var(--cyan); color: var(--on-blue); opacity: .5; padding: .7em 1.4em;
}

/* ---------- Product grid & cards ---------- */

.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { width: auto; margin: 0; float: none; padding: 0; }
/* woocommerce-smallscreen.css (≤768px) floats cards at 48% with this stronger selector; the grid sizes them. */
.woocommerce ul.products[class*=columns-] li.product.ejd-card,
.woocommerce-page ul.products[class*=columns-] li.product.ejd-card { width: auto; margin: 0; float: none; clear: none; }

ul.products li.ejd-card {
	position: relative;
	display: flex; flex-direction: column;
	border: var(--bw) solid var(--ink); border-radius: var(--r);
	background: var(--white);
	overflow: hidden;
	text-align: left;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
ul.products li.ejd-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }

.ejd-card__media {
	position: relative; display: block;
	aspect-ratio: 1; padding: 12px;
	background: var(--paper);
	border-bottom: var(--bw) solid var(--ink);
	overflow: hidden;
}
.ejd-card__img { position: absolute; inset: 12px; width: calc(100% - 24px) !important; height: calc(100% - 24px) !important; margin: 0 !important; object-fit: contain; transition: opacity .3s, transform .4s var(--ease); }
.ejd-card__img--hover { opacity: 0; }
/* Touch screens never reveal the hover image; hidden + lazy means it's never downloaded. */
@media (hover: none) { ul.products li.ejd-card .ejd-card__img--hover { display: none !important; } }
@media (hover: hover) {
	.ejd-card:hover .ejd-card__img--hover { opacity: 1; }
	.ejd-card:hover .ejd-card__img:not(.ejd-card__img--hover):only-of-type,
	.ejd-card:hover .ejd-card__img { transform: scale(1.04); }
	.ejd-card:has(.ejd-card__img--hover):hover .ejd-card__img:not(.ejd-card__img--hover) { opacity: 0; }
}

.ejd-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ejd-badge {
	display: inline-block; padding: 4px 9px;
	border: var(--bw) solid var(--ink); border-radius: var(--r-pill);
	font: 800 .74rem/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase;
	box-shadow: 2px 2px 0 var(--ink);
}
.ejd-badge--sale { background: var(--deal); color: var(--ink); }
.ejd-badge--hot { background: var(--hot); color: var(--white); }
.ejd-badge--out { background: var(--ink); color: var(--white); }

.ejd-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 6px; flex: 1; }
.ejd-card__brand {
	margin: 0; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--cyan-d);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.woocommerce ul.products li.product .ejd-card__title,
.ejd-card__title {
	margin: 0; padding: 0;
	font-family: var(--f-body); font-size: .98rem; font-weight: 700; line-height: 1.3; letter-spacing: 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.6em;
}
.ejd-card__title a { color: var(--ink); text-decoration: none; }
.ejd-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ejd-card__title a:hover { color: var(--cyan-d); }
.ejd-card__title a:focus-visible { outline: none; }
.ejd-card:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }

.woocommerce ul.products li.product .star-rating { margin: 0; font-size: .8rem; }
.woocommerce ul.products li.product .price,
.ejd-card .price {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
	margin: auto 0 0 !important; padding-top: 4px;
	font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--ink) !important;
}
.ejd-card .price del { order: 2; font-size: .85rem; font-weight: 600; color: var(--muted); opacity: 1; }
.ejd-card .price ins { text-decoration: none; color: var(--hot); }

.woocommerce ul.products li.product .button,
.ejd-card .button,
.ejd-card .added_to_cart {
	position: relative; z-index: 2;
	display: flex; width: calc(100% - 28px); margin: 10px 14px 14px !important;
	min-height: 44px; padding: .6em 1em;
	background: var(--cyan); color: var(--on-blue); text-shadow: var(--on-blue-shadow);
	font-size: .9rem; box-shadow: none;
}
.woocommerce ul.products li.product .button:hover,
.ejd-card .button:hover { background: var(--deal); color: var(--ink); text-shadow: none; transform: none; box-shadow: none; }
.ejd-card .button.loading { opacity: .7; }
.ejd-card .button.loading::after { position: static; margin-left: 6px; }
.ejd-card .button.added::after { margin-left: 6px; }
.ejd-card .added_to_cart { background: var(--cyan); color: var(--on-blue); text-shadow: var(--on-blue-shadow); margin-top: -6px !important; border: var(--bw) solid var(--ink); border-radius: var(--r-pill); justify-content: center; align-items: center; font-weight: 800; text-decoration: none; }
.ejd-card.outofstock .ejd-card__img { opacity: .55; }

/* ---------- Shop archive ---------- */

.ejd-shop { padding-block: 18px clamp(40px, 6vw, 72px); }
.ejd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.ejd-crumbs a { color: var(--ink); text-decoration: none; }
.ejd-crumbs a:hover { color: var(--cyan-d); text-decoration: underline; }
.ejd-crumbs__sep { color: var(--soft); font-weight: 800; }

.ejd-shop__head {
	position: relative;
	margin-bottom: 24px; padding: clamp(20px, 3vw, 34px);
	border: 1px solid var(--banner-line); border-radius: calc(var(--r) + 4px);
	background: var(--banner);
	box-shadow: var(--shadow); /* black drop shadow like the cards and buttons (2026-10-16) */
	overflow: hidden;
}
/* Logo droplet on the right of every collection / brand / shop banner (subtle branding). */
.ejd-shop__head { padding-right: clamp(120px, 15vw, 250px); }
.ejd-shop__head::after {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	right: clamp(28px, 4vw, 64px); top: 50%; transform: translateY(-50%) rotate(6deg);
	height: min(76%, 190px); min-height: 84px; aspect-ratio: 460 / 600;
	background: url("../img/droplet.svg") center / contain no-repeat;
}
.ejd-shop__title,
.ejd-shop__head .ejd-archive-title {
	position: relative; z-index: 1;
	margin: 0 0 16px !important;
	font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em;
	font-size: clamp(1.9rem, 4vw, 3rem) !important; line-height: 1.04 !important;
}
.ejd-shop__title,
.ejd-shop__head .ejd-archive-title { color: var(--ink) !important; text-shadow: none; }
.ejd-shop__desc { position: relative; z-index: 1; max-width: none; color: var(--ink); font-size: 1rem; }
.ejd-shop__desc .term-description p:last-child,
.ejd-shop__desc .page-description p:last-child { margin-bottom: 0; }
.ejd-shop__desc a, .ejd-shop__desc .term-description a { color: var(--ink); font-weight: 700; }
.ejd-shop__desc .term-description p { margin: 0 0 .8em; max-width: 78ch; text-wrap: pretty; }
.ejd-shop__desc .term-description p:empty { display: none; }
.ejd-shop__desc .term-description p:last-child { margin-bottom: 0; }
/* Longer descriptions (3+ paragraphs) flow into two columns on wide screens: shorter banner, comfortable lines. */
@media (min-width: 1100px) {
	.ejd-shop__desc .term-description:has(> p:not(:empty) ~ p:not(:empty) ~ p:not(:empty)) { columns: 2; column-gap: clamp(32px, 4vw, 64px); }
	.ejd-shop__desc .term-description:has(> p:not(:empty) ~ p:not(:empty) ~ p:not(:empty)) p { break-inside: avoid; max-width: none; }
}

.ejd-shop__layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.ejd-shop.has-sidebar .ejd-shop__layout { grid-template-columns: 270px minmax(0, 1fr); }
.ejd-shop__sidebar-head { display: none; }
.ejd-shop__scrim { display: none; }

.ejd-shop__sidebar { position: relative; }
.ejd-shop__sidebar .widget {
	margin: 0 0 16px; padding: 16px 18px;
	border: var(--bw) solid var(--ink); border-radius: var(--r);
	background: var(--white);
}
.ejd-shop__sidebar .widget-title {
	margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1.5px solid var(--soft);
	font-size: .92rem; text-transform: uppercase; letter-spacing: .07em;
}
.ejd-shop__sidebar ul { list-style: none; margin: 0; padding: 0; }
.ejd-shop__sidebar li { margin: 0; padding: 0; }
.ejd-shop__sidebar .widget ul li a,
.ejd-shop__sidebar .menu a {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.woocommerce .ejd-shop__sidebar .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item { padding: 0; }
.ejd-shop__sidebar .woocommerce-widget-layered-nav-list a::before,
.ejd-shop__sidebar .ejd-filter a:not(:has(img))::before {
	content: ""; flex: none; width: 18px; height: 18px;
	border: var(--bw) solid var(--ink); border-radius: 5px; background: var(--white);
	transition: background-color .15s;
}
.ejd-shop__sidebar .woocommerce-widget-layered-nav-list .chosen a::before,
.ejd-shop__sidebar .chosen a::before {
	background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0f14' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.woocommerce .ejd-shop__sidebar .woocommerce-widget-layered-nav-list .chosen a::before { content: ""; font-family: inherit; margin: 0; }
.ejd-shop__sidebar .widget ul li a:hover { color: var(--cyan-d); }
.ejd-shop__sidebar .count { margin-left: auto; font-size: .78rem; font-weight: 800; color: var(--muted); }
.ejd-shop__sidebar .woocommerce-widget-layered-nav-list li,
.ejd-shop__sidebar .ejd-filter li { display: flex; align-items: center; justify-content: space-between; }
.ejd-filter__logo { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; border: 1.5px solid var(--soft); background: var(--white); flex: none; }
.ejd-shop__sidebar .ejd-filter .chosen .ejd-filter__logo { border-color: var(--ink); box-shadow: 0 0 0 2px var(--cyan); }
.ejd-shop__sidebar .ejd-filter .chosen .ejd-filter__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ejd-shop__sidebar .woocommerce-widget-layered-nav-list li .count { padding-left: 6px; }

/* Price slider */
.woocommerce .ejd-shop__sidebar .widget_price_filter .price_slider { margin: 6px 6px 18px; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range { background: var(--cyan); }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background: var(--soft); height: 6px; border-radius: 6px; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
	top: -6px; width: 18px; height: 18px; border: var(--bw) solid var(--ink); background: var(--white); border-radius: 50%;
}
.woocommerce .widget_price_filter .price_slider_amount { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 10px; font-size: .88rem; font-weight: 700; }
.woocommerce .widget_price_filter .price_slider_amount .button { float: none; min-height: 38px; padding: .45em 1em; font-size: .85rem; }

/* Toolbar */
.ejd-toolbar-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	margin-bottom: 18px; padding-bottom: 14px; border-bottom: var(--bw) solid var(--ink);
}
.woocommerce .ejd-toolbar-row .woocommerce-result-count { float: none; margin: 0; font-weight: 700; color: var(--ink-2); }
.ejd-toolbar-row__end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ejd-filters-toggle { display: none; }
.ejd-perpage { display: flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 700; }
.ejd-perpage__label { margin-right: 4px; color: var(--muted); }
.ejd-perpage a {
	display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px;
	border-radius: var(--r-pill); color: var(--ink); text-decoration: none;
}
.ejd-perpage a:hover { background: var(--cyan-l); }
.ejd-perpage a.is-active { background: var(--ink); color: var(--white); }
.woocommerce .ejd-toolbar-row .woocommerce-ordering { float: none; margin: 0; }
.woocommerce-ordering select,
.woocommerce .woocommerce-ordering select {
	appearance: none; -webkit-appearance: none;
	height: 42px; padding: 0 40px 0 16px;
	border: var(--bw) solid var(--ink); border-radius: var(--r-pill);
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0f14' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
	font-weight: 700; font-size: .9rem; cursor: pointer;
}

/* Active filters bar */
.ejd-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 18px; }
.ejd-active-filters .widget_layered_nav_filters ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ejd-active-filters__clear, .ejd-active-filters li a {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
	border: var(--bw) solid var(--ink); border-radius: var(--r-pill);
	color: var(--ink); text-decoration: none; font-weight: 800; font-size: .85rem; background: var(--white);
}
.ejd-active-filters li a { background: var(--cyan-l); }
.ejd-active-filters li a::after { content: "×"; font-size: 1.1em; line-height: 1; }
.ejd-active-filters__clear .ejd-ico { width: 14px; height: 14px; }
.ejd-active-filters__clear:hover, .ejd-active-filters li a:hover { background: var(--deal); }
.woocommerce .ejd-active-filters li a::before { display: none; }

/* Below-grid category copy (Code Snippets) */
.ejd-cat-copy, .ejd-shop__main > h2, .ejd-shop__main > p {
	max-width: 900px;
}
.ejd-shop__main .ejd-cat-copy {
	margin-top: 48px !important; padding: clamp(20px, 3vw, 36px);
	border: var(--bw) solid var(--ink); border-radius: var(--r);
	background: var(--paper);
	max-width: none;
}
.ejd-shop__main .ejd-cat-copy h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 1.4em 0 .5em; }
.ejd-shop__main .ejd-cat-copy h2:first-child { margin-top: 0; }
.ejd-shop__main .ejd-cat-copy p { max-width: 900px; color: var(--ink-2); }

.woocommerce-info.woocommerce-no-products-found,
.woocommerce .woocommerce-no-products-found .woocommerce-info { margin-top: 10px; }

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

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
	margin: 0 0 20px !important; padding: 14px 18px 14px 50px !important;
	border: var(--bw) solid var(--ink) !important; border-radius: var(--r);
	background: var(--cyan-l); color: var(--ink);
	font-weight: 600; list-style: none;
	box-shadow: var(--shadow-sm);
}
.woocommerce-message { background: #e3f8ec; }
.woocommerce-error { background: #ffe8ee; flex-direction: column; align-items: flex-start; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { top: 50% !important; transform: translateY(-50%); left: 18px !important; color: var(--ink) !important; }
.woocommerce-error::before { top: 1.1em !important; transform: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; float: none !important; min-height: 38px; padding: .45em 1em; font-size: .85rem; }

/* ---------- Forms ---------- */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce input.input-text,
.woocommerce .quantity .qty,
.select2-container--default .select2-selection--single,
#review_form textarea, #review_form input[type="text"], #review_form input[type="email"],
.ejd-prose input[type="text"], .ejd-prose input[type="email"], .ejd-prose input[type="tel"], .ejd-prose textarea, .ejd-prose select,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	min-height: 48px; padding: 10px 14px;
	border: var(--bw) solid var(--ink); border-radius: var(--r-sm);
	background: var(--white); font-size: 1rem; line-height: 1.3;
	box-shadow: none; outline: none;
}
.woocommerce form .form-row textarea { min-height: 110px; }
.woocommerce form .form-row input.input-text:focus-visible,
.woocommerce form .form-row textarea:focus-visible,
.woocommerce form .form-row select:focus-visible,
.woocommerce input.input-text:focus-visible,
.woocommerce .quantity .qty:focus-visible,
#review_form textarea:focus-visible, :is(#review_form, .ejd-prose, .comment-form) input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="range"], [type="color"], [type="file"]):focus-visible,
.ejd-prose textarea:focus-visible, .ejd-prose select:focus-visible, .comment-form textarea:focus-visible,
.woocommerce-ordering select:focus-visible,
.woocommerce div.product form.cart .variations select:focus-visible,
.select2-container--default.select2-container--focus .select2-selection--single {
	outline: none; box-shadow: var(--shadow-sm); /* black shadow, no blue ring (2026-10-16) */
}
/* Plugin fields with their own coloured focus rings: same black shadow instead. */
.woo-wallet-my-wallet-container .woo-wallet-form-wrapper :is(input, select, textarea):focus,
.woo-wallet-my-wallet-container .ww-stmt-field input[type=date]:focus,
.rvx-ui__input:focus, .rvx-ui__textarea:focus,
#wc-easyauthnet_authorizenet-form .input-text:focus,
#wc-easyauthnet_authorizenet_echeck-echeck-form :is(input, select):focus {
	border-color: var(--ink) !important; box-shadow: var(--shadow-sm) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background-color: var(--ink); color: var(--white); }
.select2-container--default .select2-selection--single { height: 48px; display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.select2-dropdown { border: var(--bw) solid var(--ink) !important; border-radius: var(--r-sm) !important; }
.woocommerce form .form-row label { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.woocommerce form .form-row .required { color: var(--hot); text-decoration: none; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--hot); }

.woocommerce .quantity .qty { width: 76px; text-align: center; font-weight: 800; padding-inline: 6px; }

/* ---------- Single product ---------- */

.ejd-product-page { padding-block: 18px clamp(40px, 6vw, 72px); }
.woocommerce div.product { position: relative; }
.woocommerce div.product > .ejd-badges { top: 14px; left: 14px; }
.woocommerce div.product::after { content: ""; display: table; clear: both; }

/* Stacked below 900px: woocommerce-layout.css floats the gallery and summary at 48% each. */
.woocommerce #content div.product div.images, .woocommerce div.product div.images,
.woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images,
.woocommerce #content div.product div.summary, .woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary, .woocommerce-page div.product div.summary { float: none; width: 100%; }

@media (min-width: 900px) {
	.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 64px); align-items: start; }
	.woocommerce div.product > * { grid-column: 1 / -1; }
	.woocommerce div.product div.images.woocommerce-product-gallery { grid-column: 1; grid-row: 1 / span 2; }
	.woocommerce div.product div.summary { grid-column: 2; grid-row: 1; }
	.woocommerce div.product > .ejd-badges { grid-column: 1; grid-row: 1; }
	.woocommerce #content div.product div.images, .woocommerce div.product div.images,
	.woocommerce #content div.product div.summary, .woocommerce div.product div.summary { width: auto; float: none; margin: 0; }
}

.woocommerce div.product div.images { margin-bottom: 28px; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .flex-viewport {
	border: var(--bw) solid var(--ink); border-radius: calc(var(--r) + 4px);
	background: var(--paper); overflow: hidden;
}
.woocommerce div.product div.images .flex-viewport .woocommerce-product-gallery__wrapper { border: 0; border-radius: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { object-fit: contain; background: var(--paper); }
/* WooCommerce keeps the gallery at opacity 0 (inline) until its slider script runs. A single-photo gallery has
   no slider and no thumbnails to wait for, so show the photo at once (most products have one photo). */
.woocommerce div.product div.images.woocommerce-product-gallery:not(:has(.woocommerce-product-gallery__image + .woocommerce-product-gallery__image)) { opacity: 1 !important; }
.woocommerce div.product div.images .flex-control-thumbs {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px;
}
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; }
.woocommerce div.product div.images .flex-control-thumbs li img {
	aspect-ratio: 1; object-fit: contain; background: var(--paper);
	border: var(--bw) solid var(--soft); border-radius: var(--r-sm); opacity: 1;
	transition: border-color .15s;
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover { border-color: var(--ink); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	top: 14px; right: 14px; width: 42px; height: 42px; border: var(--bw) solid var(--ink); background: var(--white); box-shadow: var(--shadow-sm);
}

.ejd-pbrand {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
	padding: 4px 14px 4px 4px; border: var(--bw) solid var(--ink); border-radius: var(--r-pill);
	color: var(--ink); text-decoration: none; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em;
	background: var(--white);
}
.ejd-pbrand:not(:has(img)) { padding-left: 14px; }
.ejd-pbrand__logo { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: var(--white); }
.ejd-pbrand:hover { background: var(--cyan-l); color: var(--ink); }

.woocommerce div.product .product_title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.05; margin-bottom: 12px; }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
	margin-bottom: 18px; color: var(--ink);
	font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.woocommerce div.product p.price del, .woocommerce div.product span.price del { order: 2; font-size: .6em; color: var(--muted); opacity: 1; }
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { text-decoration: none; color: var(--hot); }
.woocommerce-product-details__short-description { color: var(--ink-2); margin-bottom: 18px; }

.woocommerce div.product form.cart { margin-bottom: 20px; }
.woocommerce div.product form.cart .variations { margin-bottom: 12px; border: 0; }
.woocommerce div.product form.cart .variations tr { display: block; margin-bottom: 14px; }
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; line-height: 1.3; }
.woocommerce div.product form.cart .variations th label { display: block; margin-bottom: 8px; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.woocommerce div.product form.cart .variations select {
	appearance: none; -webkit-appearance: none;
	width: 100%; max-width: 360px; min-height: 48px; padding: 0 44px 0 14px; margin: 0;
	border: var(--bw) solid var(--ink); border-radius: var(--r-sm);
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0f14' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
	font-weight: 700; font-size: 1rem; cursor: pointer;
}
.woocommerce div.product form.cart .reset_variations { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.woocommerce div.product .woocommerce-variation-price { margin-bottom: 12px; }
.woocommerce div.product .woocommerce-variation-availability p,
.woocommerce div.product p.stock { font-weight: 800; }
.woocommerce div.product .stock.in-stock { color: var(--ok); }
.woocommerce div.product .stock.out-of-stock { color: var(--hot); }

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product form.cart div.quantity .qty { height: 56px; }
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .single_add_to_cart_button {
	float: none; flex: 1; min-width: 200px; min-height: 56px;
	background: var(--cyan); font-size: 1.1rem;
}
.woocommerce div.product form.cart .button:hover { background: var(--deal); color: var(--ink); text-shadow: none; }
.woocommerce div.product form.cart .button.disabled, .woocommerce div.product form.cart .button:disabled { opacity: .55; cursor: not-allowed; }
.woocommerce div.product form.cart .single_add_to_cart_button.is-loading { opacity: .75; pointer-events: none; }

.ejd-atc-msg { width: 100%; margin: 6px 0 0; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; font-size: .92rem; }
.ejd-atc-msg.is-ok { background: #e3f8ec; border: var(--bw) solid var(--ink); }
.ejd-atc-msg.is-err { background: #ffe8ee; border: var(--bw) solid var(--ink); }

.ejd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 16px; border-top: 1.5px solid var(--soft); font-size: .88rem; }
.ejd-share__label { font-weight: 800; }
.ejd-share a { color: var(--ink-2); font-weight: 600; }
.ejd-share a:hover { color: var(--cyan-d); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { margin-top: clamp(28px, 4vw, 48px); }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin: 0 0 -2px; padding: 0; 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: var(--bw) solid var(--ink); border-radius: var(--r-sm) var(--r-sm) 0 0;
	background: var(--paper);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 18px; font-family: var(--f-display); font-weight: 800; color: var(--ink-2); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--white); border-bottom-color: var(--white); position: relative; z-index: 1; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); }
.woocommerce div.product .woocommerce-tabs .panel {
	margin: 0 0 32px; padding: clamp(20px, 3vw, 36px);
	border: var(--bw) solid var(--ink); border-radius: 0 var(--r) var(--r) var(--r);
	background: var(--white);
}
.woocommerce div.product .woocommerce-tabs .panel > *:last-child { margin-bottom: 0; }
.woocommerce table.shop_attributes { border: 0; margin: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 12px; border: 0; border-bottom: 1.5px solid var(--soft); font-style: normal; }
.woocommerce table.shop_attributes th { width: 200px; text-align: left; font-weight: 800; }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: var(--paper); }

/* Related / upsells */
.woocommerce div.product section.related,
.woocommerce div.product section.upsells { margin-top: 16px; }
.woocommerce div.product section.related > h2,
.woocommerce div.product section.upsells > h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 20px; }

/* ---------- Mini cart (drawer) ---------- */

.ejd-minicart ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ejd-minicart .woocommerce-mini-cart__total, .ejd-minicart .woocommerce-mini-cart__buttons { flex: none; }
.ejd-minicart .woocommerce-mini-cart-item {
	position: relative; display: block;
	padding: 14px 36px 14px 0 !important; border-bottom: 1.5px solid var(--soft);
}
.ejd-minicart .woocommerce-mini-cart-item a:not(.remove) {
	display: flex; align-items: center; gap: 12px;
	color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3;
}
.ejd-minicart .woocommerce-mini-cart-item img {
	flex: none; width: 70px !important; height: 70px; float: none !important; margin: 0 !important;
	object-fit: contain; border-radius: var(--r-sm); border: 1.5px solid var(--soft); background: var(--paper);
}
.ejd-minicart .woocommerce-mini-cart-item dl.variation,
.ejd-minicart .woocommerce-mini-cart-item .quantity { display: block; margin: 4px 0 0 82px; padding: 0; border: 0; }
.ejd-minicart .woocommerce-mini-cart-item .quantity { font-weight: 800; font-size: .9rem; color: var(--ink-2); }
.ejd-minicart .woocommerce-mini-cart-item dl.variation { font-size: .82rem; color: var(--muted); }
.ejd-minicart .woocommerce-mini-cart-item dl.variation dt, .ejd-minicart .woocommerce-mini-cart-item dl.variation dd { display: inline; margin: 0; padding: 0; float: none; }
.ejd-minicart .woocommerce-mini-cart-item dl.variation dd p { display: inline; margin: 0; }
.ejd-minicart a.remove {
	position: absolute !important; top: 14px; right: 0; left: auto !important;
	display: grid !important; place-items: center; width: 26px !important; height: 26px !important;
	border: var(--bw) solid var(--ink); border-radius: 50%; color: var(--ink) !important; font-size: 16px !important; line-height: 1 !important;
}
.ejd-minicart a.remove:hover { background: var(--hot) !important; color: var(--white) !important; }
.ejd-minicart .woocommerce-mini-cart__total {
	display: flex; justify-content: space-between; align-items: baseline;
	margin: 16px 0 12px; padding: 14px 0 0; border-top: var(--bw) solid var(--ink);
	font-size: 1.05rem;
}
.ejd-minicart .woocommerce-mini-cart__total .amount { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; }
.ejd-minicart .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.ejd-minicart .woocommerce-mini-cart__buttons .button { width: 100%; margin: 0 !important; }
.ejd-minicart .woocommerce-mini-cart__buttons .button.checkout { background: var(--cyan); }
.ejd-minicart .woocommerce-mini-cart__empty-message { margin: 40px 0; text-align: center; font-weight: 700; color: var(--muted); }

/* ---------- Cart & checkout ---------- */

.woocommerce table.shop_table {
	border: var(--bw) solid var(--ink); border-radius: var(--r); border-collapse: separate; overflow: hidden;
	background: var(--white);
}
.woocommerce table.shop_table th { font-family: var(--f-display); font-weight: 800; background: var(--paper); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px 16px; border-top: 1.5px solid var(--soft); }
.woocommerce table.shop_table thead th { border-top: 0; }
.woocommerce table.cart img { width: 72px; border-radius: var(--r-sm); background: var(--paper); }
.woocommerce table.cart td.actions .coupon .input-text { min-height: 48px; width: 180px; margin-right: 8px; }
.woocommerce table.cart td.actions .button { min-height: 48px; }
.woocommerce a.remove { color: var(--hot) !important; border: var(--bw) solid currentColor; }
.woocommerce a.remove:hover { background: var(--hot); color: var(--white) !important; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
	padding: 24px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow);
}
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 1.5rem; }
.woocommerce .cart-collaterals .cart_totals table.shop_table { background: var(--white); }
.woocommerce .wc-proceed-to-checkout a.checkout-button { background: var(--cyan); font-size: 1.15rem; min-height: 58px; margin-bottom: 0; }
.cart-empty.woocommerce-info { font-size: 1.1rem; }
.ejd-empty-cart__text { max-width: 640px; color: var(--ink-2); }
.woocommerce .return-to-shop .button { background: var(--cyan); }

.woocommerce-checkout h3, .woocommerce-checkout #order_review_heading { font-size: 1.4rem; }
.woocommerce-checkout #order_review {
	padding: 20px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper);
}
.woocommerce-checkout #payment { background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--r); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1.5px solid var(--soft); }
.woocommerce-checkout #payment div.payment_box { background: var(--cyan-l); border-radius: var(--r-sm); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--cyan-l); }
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order { width: 100%; min-height: 58px; background: var(--cyan); font-size: 1.15rem; float: none; }
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
	border: var(--bw) solid var(--ink) !important; border-radius: var(--r) !important; padding: 24px !important; background: var(--white);
}

/* ---------- My account ---------- */

.woocommerce-account .woocommerce { display: grid; grid-template-columns: 1fr; gap: 24px; }
/* woocommerce.css clearfix pseudo-elements would otherwise take the first grid cells. */
.woocommerce-account .woocommerce::before, .woocommerce-account .woocommerce::after { display: none; }
.woocommerce-account.logged-in .woocommerce { grid-template-columns: 240px minmax(0, 1fr); 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: 8px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--white); }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: var(--r-sm); color: var(--ink); font-weight: 700; text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--white); }
.woocommerce-MyAccount-navigation a:hover { background: var(--cyan-l); }
.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce-account .u-columns.col2-set .u-column1, .woocommerce-account .u-columns.col2-set .u-column2 { width: auto; float: none; }
.woocommerce-account .u-columns.col2-set::before, .woocommerce-account .u-columns.col2-set::after { display: none; }

/* Star ratings in brand colours */
.woocommerce .star-rating span, .woocommerce p.stars a { color: #f5a400; }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ejd-rail__track.products { grid-template-columns: none; }
}

@media (max-width: 1024px) {
	.ejd-shop.has-sidebar .ejd-shop__layout { grid-template-columns: 1fr; }
	.ejd-filters-toggle { display: inline-flex; }
	.ejd-shop__sidebar {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 101;
		width: min(360px, 90vw); max-height: none;
		background: var(--white); border-right: var(--bw) solid var(--ink);
		transform: translateX(-102%); visibility: hidden;
		transition: transform .25s var(--ease), visibility 0s linear .25s;
		display: flex; flex-direction: column;
	}
	.ejd-shop__sidebar.is-open { transform: none; visibility: visible; transition: transform .25s var(--ease), visibility 0s; }
	.ejd-shop__sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: var(--bw) solid var(--ink); }
	.ejd-shop__sidebar-body { flex: 1; overflow: auto; padding: 16px; }
	.ejd-shop__scrim { position: fixed; inset: 0; z-index: 100; }
	.ejd-shop__sidebar.is-open + .ejd-shop__scrim { display: block; }
	.woocommerce-account.logged-in .woocommerce { grid-template-columns: 1fr; }
	.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 4px; }
}

@media (max-width: 767px) {
	.ejd-shop__head { padding-right: clamp(20px, 3vw, 34px); }
	.ejd-shop__head::after { top: 16px; right: 16px; transform: rotate(6deg); height: 64px; min-height: 0; }
	.ejd-shop__title, .ejd-shop__head .ejd-archive-title { padding-right: 64px; }
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ejd-card__body { padding: 10px 10px 4px; }
	.woocommerce ul.products li.product .button, .ejd-card .button, .ejd-card .added_to_cart { width: calc(100% - 20px); margin: 8px 10px 10px !important; font-size: .82rem; min-height: 40px; padding-inline: .5em; }
	.ejd-card .price { font-size: 1rem; }
	.ejd-toolbar-row { gap: 10px; }
	.ejd-toolbar-row__end { width: 100%; justify-content: space-between; }
	.woocommerce .ejd-toolbar-row .woocommerce-result-count { font-size: .85rem; }
	.ejd-perpage { display: none; }
	.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 12px; font-size: .9rem; }
	.woocommerce-account .u-columns.col2-set { grid-template-columns: 1fr; }
	.woocommerce table.shop_table_responsive tr td::before { font-weight: 800; }
	.woocommerce table.cart td.actions .coupon .input-text { width: 100%; margin: 0 0 8px; }
}

/* ---------- WooCommerce block cart / checkout ---------- */

.wc-block-cart, .wc-block-checkout { font-family: var(--f-body); }
.wc-block-components-title, .wc-block-components-checkout-step__title,
.wc-block-cart__totals-title, .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title-text {
	font-family: var(--f-display) !important; font-weight: 800 !important; letter-spacing: -.01em;
}
.wc-block-components-button:not(.is-link) {
	min-height: 52px;
	border: var(--bw) solid var(--ink) !important; border-radius: var(--r-pill) !important;
	background: var(--cyan) !important; color: var(--on-blue) !important; text-shadow: var(--on-blue-shadow);
	font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
	box-shadow: var(--shadow-sm);
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.wc-block-components-button:not(.is-link):hover { background: var(--deal) !important; color: var(--ink) !important; text-shadow: none; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--cyan) !important; min-height: 58px; font-size: 1.15rem; }
.wc-block-components-text-input input[type], .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-textarea {
	border: var(--bw) solid var(--ink) !important; border-radius: var(--r-sm) !important; background: var(--white) !important;
}
.wc-block-components-text-input.is-active input[type]:focus, .wc-blocks-components-select__select:focus, .wc-block-components-textarea:focus { box-shadow: var(--shadow-sm) !important; }
/* Hosted card fields (NMI Collect.js iframes): the focused iframe makes its wrapper :focus-within. */
.wc-block-gateway-input:focus-within { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border: var(--bw) solid var(--ink); border-radius: 5px; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--cyan); }
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-cart .wc-block-cart__sidebar .wc-block-components-sidebar-layout__sidebar,
.wc-block-components-sidebar .wc-block-components-panel,
.wp-block-woocommerce-cart-totals-block {
	border-radius: var(--r) !important;
}
.wp-block-woocommerce-checkout-order-summary-block { border: var(--bw) solid var(--ink) !important; box-shadow: var(--shadow); background: var(--white); }
/* The second summary above Place Order already draws WooCommerce's own box inside it. */
.wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper { border: 0 !important; box-shadow: none; background: transparent; }
/* WooCommerce's narrow layout (its own container query on the checkout block, ≤919px) gives the
   summary title/content no side padding (it expects no box); its block CSS loads after the theme's,
   hence the extra .wc-block-checkout. */
@container (max-width: 919px) {
	.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title { padding-left: 16px; padding-right: 16px; border-top: 0; }
	.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__content { padding-left: 16px; padding-right: 16px; }
}
.wp-block-woocommerce-cart-totals-block { padding: 20px !important; border: var(--bw) solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; }
.wc-block-components-product-name { color: var(--ink) !important; font-weight: 700; text-decoration: none; }
.wc-block-components-product-badge { border-radius: var(--r-pill); border-color: var(--ink); background: var(--deal); color: var(--ink); font-weight: 800; }
.wc-block-cart-items__header { font-family: var(--f-display); }
.wc-block-components-quantity-selector { border: var(--bw) solid var(--ink); border-radius: var(--r-pill); }
.wc-block-components-quantity-selector::after { display: none; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-radius: var(--r-sm); }
.wc-block-components-notice-banner { border: var(--bw) solid var(--ink) !important; border-radius: var(--r) !important; }
