/*
Theme Name:   Grossary Child
Theme URI:    http://grossary.local/
Description:  Blocksy child theme for Grossary, the neighbourhood kirana online. Kirana-counter UI, Three.js jar counter, GSAP motion, offer banner and mobile-first WooCommerce styling. Colours live in assets/css/tokens.css.
Author:       Grossary
Template:     blocksy
Version:      2.0.0
Requires PHP: 7.4
Text Domain:  grossary
*/

/* All colours, fonts and radii come from assets/css/tokens.css. */

/* ==========================================================================
   Base
   ========================================================================== */
html { scrollbar-color: var(--g-ink-muted) var(--g-limewash); }
body { font-size: 17px; color: var(--g-ink-soft); caret-color: var(--g-wall); }
::selection { background: var(--g-tin); color: var(--g-ink); }
:focus-visible { outline: 3px solid var(--g-tin); outline-offset: 2px; }
a { text-underline-offset: 3px; }

h1, h2, h3, h4,
.page-title,
.product_title,
.wc-block-components-title,
.wc-block-cart__totals-title {
	--theme-font-family: var(--g-font-sign);
	--theme-font-weight: 400;
	color: var(--g-ink);
	letter-spacing: 0;
	text-wrap: balance;
}

.price,
.amount,
.grs-num,
.wc-block-components-formatted-money-amount,
.wc-block-formatted-money-amount {
	font-variant-numeric: tabular-nums;
}

.grs-container {
	/* same edges as Blocksy's header/footer containers */
	width: var(--theme-container-width, calc(100% - 48px));
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin: 0 auto;
}

.grs-placeholder {
	display: inline-block;
	padding: 0 6px;
	border: 1px dashed var(--g-danger);
	border-radius: 4px;
	background: color-mix(in srgb, var(--g-danger) 8%, transparent);
	color: var(--g-danger);
	font-size: .85em;
	font-weight: 600;
}

/* Buttons */
.grs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 30px;
	border-radius: var(--g-radius-sm);
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--g-ink) 55%, transparent);
	transition: background-color .2s var(--g-ease-out), transform .2s var(--g-ease-out);
}
.grs-btn:active { transform: translateY(2px); }
.grs-btn--tin { background: var(--g-cta); color: var(--g-on-wall); }
.grs-btn--tin:hover { background: var(--g-cta-deep); color: var(--g-on-wall); }
.grs-btn--wall { background: var(--g-wall); color: var(--g-on-wall); }
.grs-btn--wall:hover { background: var(--g-wall-deep); color: var(--g-on-wall); }

/* ==========================================================================
   Offer banner
   ========================================================================== */
.grs-banner {
	position: relative;
	background: var(--grs-banner-bg, var(--g-ink));
	color: var(--grs-banner-fg, var(--g-on-wall));
	font-size: 15px;
	line-height: 1.4;
}
.grs-banner-off .grs-banner { display: none; }
.grs-banner__inner {
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin: 0 auto;
	padding: 8px 48px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	text-align: center;
}
.grs-banner__text { margin: 0; }
.grs-banner__code {
	all: unset;
	display: inline-block;
	margin-left: 4px;
	padding: 0 9px;
	border: 1px dashed var(--g-tin);
	border-radius: 4px;
	color: var(--g-tin);
	font-family: var(--g-font-digit);
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: .06em;
	cursor: pointer;
}
.grs-banner__code:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.grs-banner__code.is-copied::after { content: " \2713"; }
.grs-banner__btn {
	display: inline-block;
	padding: 2px 14px;
	border-radius: 999px;
	background: var(--g-tin);
	color: var(--g-ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.grs-banner__btn:hover { background: var(--g-paper); color: var(--g-ink); }
.grs-banner__close {
	all: unset;
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
}
.grs-banner__close:hover { opacity: 1; }
.grs-banner__close:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }

/* ==========================================================================
   Header
   ========================================================================== */
#header [data-row="middle"] {
	--height: 80px;
	background: var(--g-limewash);
	border-bottom: 1px solid var(--g-line);
}
#header .site-title {
	--theme-font-family: var(--g-font-sign);
	--theme-font-weight: 400;
	--theme-font-size: 34px;
	--theme-line-height: 1;
}
#header .site-title a { color: var(--g-ink); }

#header [data-row="middle"] .menu > li > .ct-menu-link {
	--theme-font-weight: 600;
	--theme-font-size: 16px;
	--theme-text-transform: none;
	--theme-link-initial-color: var(--g-ink);
	--theme-link-hover-color: var(--g-wall);
	--theme-link-active-color: var(--g-wall);
}
#header [data-row="middle"] .ct-header-trigger { --theme-icon-color: var(--g-ink); }

/* Logo: the violet wordmark sits straight on the cream header; the white one on the deep-indigo footer */
#header .site-branding .site-logo-container img,
.grs-logo-badge img { display: block; width: auto; }
#header .site-branding .site-logo-container img { height: 46px; max-height: 46px; }
.grs-logo-badge { display: inline-block; line-height: 0; }
.grs-logo-badge--footer img { height: auto; width: min(220px, 100%); margin-bottom: 14px; }

/* Category bar: the painted strip above the shelves */
#header [data-row="bottom"] {
	--height: 48px;
	background: var(--g-paper);
	border-bottom: 1px solid var(--g-line);
}
#header [data-row="bottom"] .menu > li > .ct-menu-link {
	--theme-font-weight: 600;
	--theme-font-size: 15px;
	--theme-text-transform: none;
	--theme-link-initial-color: var(--g-ink);
	--theme-link-hover-color: var(--g-wall);
	--theme-link-active-color: var(--g-wall);
}
#header [data-row="bottom"] [data-id="menu-secondary"] { --menu-items-spacing: 22px; }

#header .ct-header-search { --theme-icon-color: var(--g-ink); --theme-icon-hover-color: var(--g-wall); }

/* Cart: a violet pill with the running total */
#header .ct-header-cart .ct-cart-item {
	gap: 10px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--g-wall);
	--theme-icon-color: var(--g-on-wall);
	--theme-icon-hover-color: var(--g-tin);
}
#header .ct-header-cart .ct-label {
	--theme-font-family: var(--g-font-digit);
	--theme-font-size: 16px;
	--theme-font-weight: 700;
	--theme-line-height: 1;
	color: var(--g-on-wall);
	font-variant-numeric: tabular-nums;
}
#header .ct-header-cart .ct-dynamic-count-cart {
	background: var(--g-tin);
	color: var(--g-ink);
	font-weight: 700;
}

/* ==========================================================================
   Cards: the one product-card system (shop, categories, homepage, related).
   A white card with a soft shadow: image on top, price, name, full-width button.
   ========================================================================== */
.grs-grid,
[data-products] {
	--grid-columns-gap: 20px;
	--grid-rows-gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.grs-grid { display: grid; gap: 20px; }

.grs-card,
[data-products] > li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 14px;
	border: 1px solid color-mix(in srgb, var(--g-ink) 6%, transparent);
	border-radius: 18px;
	background: var(--g-paper);
	box-shadow: 0 1px 2px rgba(31, 26, 71, .05), 0 14px 26px -16px rgba(31, 26, 71, .22);
	transition: transform .25s var(--g-ease-out), box-shadow .25s var(--g-ease-out);
}
.grs-card:hover,
[data-products] > li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(31, 26, 71, .06), 0 22px 34px -18px rgba(31, 26, 71, .3);
}

/* "20% OFF" pill on the image's top-right corner */
.onsale,
.onsale[data-shape] {
	position: absolute;
	top: 10px;
	right: 10px;
	left: auto;
	z-index: 2;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 4px 10px;
	border-radius: 999px !important;
	background: var(--g-tin);
	color: var(--g-ink);
	font: 800 12px/1.2 var(--g-font-body);
	letter-spacing: .02em;
	text-transform: uppercase;
	transform: none !important;
}

/* ==========================================================================
   Homepage hero: a rounded banner, the featured cards, and the live cart.
   ========================================================================== */
.grs-shop { padding: clamp(20px, 3vw, 36px) 0 0; }
.grs-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.grs-hero__banner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	align-items: center;
	gap: 12px;
	overflow: hidden;
	padding: clamp(26px, 4vw, 48px);
	border-radius: 24px;
	color: var(--g-on-wall);
	background:
		radial-gradient(60% 80% at 92% 8%, color-mix(in srgb, var(--g-tin) 38%, transparent) 0%, transparent 60%),
		linear-gradient(160deg, #5546B5 0%, var(--g-wall) 45%, var(--g-wall-deep) 100%);
}
.grs-hero__title {
	margin: 0 0 12px;
	color: var(--g-on-wall);
	font-size: clamp(2.1rem, 4.6vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.grs-hero__lead { max-width: 30em; margin: 0 0 20px; color: rgba(255, 255, 255, .88); font-size: 17px; }
.grs-hero__search {
	display: flex;
	gap: 8px;
	max-width: 470px;
	padding: 6px;
	border-radius: 999px;
	background: var(--g-paper);
}
.grs-hero__search:focus-within { outline: 3px solid var(--g-tin); outline-offset: 2px; }
.grs-hero__search input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 46px;
	padding: 0 16px;
	border: 0;
	background: transparent;
	color: var(--g-ink);
	font-size: 16px;
	box-shadow: none;
}
.grs-hero__search input[type="search"]:focus { outline: none; box-shadow: none; }
.grs-hero__search button {
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--g-cta);
	color: var(--g-on-wall);
	font-weight: 700;
	cursor: pointer;
}
.grs-hero__search button:hover { background: var(--g-cta-deep); }
.grs-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.grs-hero__chips a {
	display: block;
	padding: 5px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	color: var(--g-on-wall);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.grs-hero__chips a:hover { background: rgba(255, 255, 255, .26); }
.grs-hero__facts { margin: 16px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .86); font-size: 14px; }
.grs-hero__facts li { position: relative; margin: 0 0 5px; padding-left: 22px; }
.grs-hero__facts li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .35em;
	width: 6px;
	height: 11px;
	border: solid var(--g-tin);
	border-width: 0 2px 2px 0;
	transform: rotate(40deg);
}
.grs-hero__cta { margin-top: 20px; }
.grs-hero__jars { position: relative; height: 300px; min-width: 0; }
.grs-hero__jars canvas { display: block; width: 100%; height: 100%; }
.grs-hero__jars.is-fallback { display: none; }
.grs-btn--yellow { background: var(--g-tin); color: var(--g-ink); }
.grs-btn--yellow:hover { background: var(--g-tin-deep); color: var(--g-ink); }
.grs-shop .added_to_cart { display: none; }
.grs-hero__products { margin-top: 36px; }

/* ==========================================================================
   Homepage sections: cream throughout, separated by space, not by bands or edges.
   ========================================================================== */
.grs-section { padding: clamp(36px, 5vw, 64px) 0 0; }
.grs-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 24px;
	margin-bottom: 20px;
}
.grs-section__title { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -.01em; }
.grs-section__more { color: var(--g-cta); font-weight: 700; text-decoration: none; }
.grs-section__more:hover { text-decoration: underline; }
.grs-section__note { margin: 0; color: var(--g-ink-soft); }
.grs-section .woocommerce { margin: 0; }

/* Themed shelves: a large soft-coloured card holding one row of products */
.grs-shelfbox { margin-top: 28px; padding: clamp(18px, 2.4vw, 28px); border-radius: 28px; }
.grs-shelfbox--yellow { background: var(--g-peach); }
.grs-shelfbox--blue { background: var(--g-blue); }
.grs-shelfbox .grs-section__head { margin-bottom: 16px; }
.grs-shelfbox__title { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); }
.grs-shelfbox__title span { font-size: .72em; letter-spacing: .06em; text-transform: uppercase; }
.grs-shelfbox .woocommerce { margin: 0; }

/* Category tiles: a gradient card with a big line glyph, the name and the count */
.grs-grid--cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grs-cat { padding: 0; overflow: hidden; border: 0; color: var(--g-on-wall); background: linear-gradient(135deg, #4B2A8F, #F38817); }
.grs-cat:nth-child(4n + 2) { background: linear-gradient(135deg, #3C2A98, #7B3FA8); }
.grs-cat:nth-child(4n + 3) { background: linear-gradient(135deg, #5B2A86, #E2582B); }
.grs-cat:nth-child(4n) { background: linear-gradient(135deg, #2F2A8A, #8E44AD); }
.grs-cat a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; height: 100%; padding: 18px; color: inherit; text-decoration: none; }
.grs-cat a::before { content: ""; position: absolute; top: -34px; right: -34px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.grs-cat__glyph { position: absolute; top: 18px; left: 18px; width: 48px; height: 48px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.grs-cat__name { position: relative; font-size: 17px; font-weight: 800; line-height: 1.2; }
.grs-cat__count { position: relative; margin-top: 2px; color: rgba(255, 255, 255, .85); font-size: 13px; }

/* Pay at the door */

/* ==========================================================================
   Product card contents (shop, categories, homepage, related)
   ========================================================================== */
[data-products] > li.product figure { position: relative; margin: 0 0 12px; }
[data-products] .ct-media-container { border-radius: 14px; overflow: hidden; background: var(--g-wash); }
[data-products] .ct-media-container img { aspect-ratio: 1 / 1 !important; object-fit: cover; transition: transform .45s var(--g-ease-out); }
[data-products] > li.product:hover .ct-media-container img { transform: scale(1.04); }

[data-products] .price {
	--theme-font-family: var(--g-font-body);
	--theme-font-size: 20px;
	--theme-font-weight: 800;
	--theme-line-height: 1.1;
	order: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	align-items: baseline;
	color: var(--g-ink);
}
[data-products] .price del { order: 2; color: var(--g-ink-muted); font-size: 14px; font-weight: 500; }
[data-products] .price ins { color: var(--g-ink); text-decoration: none; }
[data-products] .woocommerce-loop-product__title {
	--theme-font-family: var(--g-font-body);
	--theme-font-size: 15px;
	--theme-font-weight: 600;
	--theme-line-height: 1.3;
	order: 2;
	display: -webkit-box;
	min-height: 2.6em;
	margin: 6px 0 0;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
[data-products] .woocommerce-loop-product__title a { color: var(--g-ink); }
[data-products] .woocommerce-loop-product__title a:hover { color: var(--g-cta); }
[data-products] .entry-meta { display: none; }

[data-products] .ct-woo-card-actions { order: 9; margin-top: auto; padding-top: 12px; }
[data-products] .ct-woo-card-actions .button {
	--theme-button-background-initial-color: var(--g-cta);
	--theme-button-text-initial-color: var(--g-on-wall);
	--theme-button-background-hover-color: var(--g-cta-deep);
	--theme-button-text-hover-color: var(--g-on-wall);
	width: 100%;
	min-height: 46px;
	border-radius: 12px;
	font-weight: 700;
}
[data-products] .added_to_cart {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* ==========================================================================
   Shop + category archives
   ========================================================================== */
body.post-type-archive-product .hero-section[data-type],
body.tax-product_cat .hero-section[data-type] {
	--container-padding: clamp(26px, 4vw, 44px) 0 6px;
	--alignment: start;
	--min-height: 0;
	margin-bottom: 0;
	background: transparent;
}
.post-type-archive-product .hero-section > .ct-container-narrow,
.tax-product_cat .hero-section > .ct-container-narrow { max-width: var(--theme-normal-container-max-width); }
.tax-product_cat .hero-section > figure { display: none; }
.post-type-archive-product .page-title,
.tax-product_cat .page-title {
	--theme-font-size: clamp(1.9rem, 4vw, 2.8rem);
	--theme-line-height: 1.1;
	color: var(--g-ink);
}
.tax-product_cat .hero-section .page-description { max-width: 40em; margin-top: 8px; color: var(--g-ink-soft); font-size: 17px; }

.grs-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 26px;
}
.grs-pills a {
	flex: none;
	padding: 7px 16px;
	border: 1px solid var(--g-line);
	border-radius: 999px;
	background: var(--g-paper);
	color: var(--g-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 3px 6px -4px color-mix(in srgb, var(--g-ink) 40%, transparent);
}
.grs-pills a:hover { border-color: var(--g-wall); color: var(--g-wall); }
.grs-pills a[aria-current="page"] { border-color: var(--g-cta); background: var(--g-cta); color: var(--g-on-wall); }

.woo-listing-top { margin-bottom: 26px; }
.woocommerce-result-count { --theme-font-size: 14px; }
.woocommerce-ordering select { min-height: 44px; border-radius: var(--g-radius-sm); }
.woocommerce-pagination { margin-top: 56px; }
.woocommerce-pagination .page-numbers { border-radius: 6px; font-family: var(--g-font-digit); font-size: 20px; }

/* ==========================================================================
   Shop filters: a "Filters" button that opens a panel, plus removable active-filter chips
   ========================================================================== */
.grs-filters { margin: 0 0 16px; }
.grs-filters > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border: 1px solid var(--g-line);
	border-radius: 999px;
	background: var(--g-paper);
	color: var(--g-ink);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	box-shadow: 0 3px 6px -4px color-mix(in srgb, var(--g-ink) 40%, transparent);
}
.grs-filters > summary::-webkit-details-marker { display: none; }
.grs-filters > summary::before {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	clip-path: polygon(0 0, 100% 0, 62% 48%, 62% 100%, 38% 86%, 38% 48%);
}
.grs-filters[open] > summary { border-color: var(--g-cta); color: var(--g-cta); }
.grs-filters__count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--g-cta);
	color: var(--g-on-wall);
	font-size: 12px;
}
.grs-filters__form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px 28px;
	margin-top: 12px;
	padding: 20px;
	border-radius: 18px;
	background: var(--g-paper);
	box-shadow: 0 1px 2px rgba(31, 26, 71, .05), 0 14px 26px -16px rgba(31, 26, 71, .22);
}
.grs-filters__form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.grs-filters__form legend { margin: 0 0 8px; padding: 0; color: var(--g-ink); font-size: 14px; font-weight: 800; }
.grs-filters__range { display: flex; align-items: center; gap: 8px; }
.grs-filters__range input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--g-input-line); border-radius: 10px; background: var(--g-paper); }
.grs-filters__check { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--g-ink-soft); font-size: 15px; cursor: pointer; }
.grs-filters__check input { accent-color: var(--g-cta); }
.grs-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; grid-column: 1 / -1; }
.grs-filters__actions a { color: var(--g-ink-muted); text-decoration: underline; }
.grs-filters__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.grs-filters__chips a {
	display: inline-flex;
	gap: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--g-wash);
	color: var(--g-wall-deep);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.grs-filters__chips a:hover { background: var(--g-tin); color: var(--g-ink); }
.grs-invoice-link { margin: 18px 0 0; }

/* ==========================================================================
   Single product
   ========================================================================== */
.single-product .woocommerce-product-gallery { position: relative; padding-bottom: 6px; }
.single-product .woocommerce-product-gallery .onsale { top: 12px; left: 12px; }
.single-product .woocommerce-product-gallery .ct-media-container,
.single-product .flexy-items { border-radius: 20px; overflow: hidden; background: var(--g-wash); }
.single-product .woocommerce-product-gallery .ct-media-container img { aspect-ratio: 1 / 1; object-fit: cover; }
.single-product .product_title { color: var(--g-ink); }
.single-product .entry-summary,
.woocommerce-tabs .panel { color: var(--g-ink-soft); }
.single-product .product_title {
	--theme-font-size: clamp(2.1rem, 4vw, 3.2rem);
	--theme-line-height: 1.05;
}
.single-product .entry-summary .price {
	--theme-font-family: var(--g-font-body);
	--theme-font-size: 34px;
	--theme-font-weight: 800;
	--theme-line-height: 1.1;
	display: inline-flex;
	align-items: baseline;
	gap: 12px;
	color: var(--g-ink);
}
.single-product .entry-summary .price del { color: var(--g-ink-muted); font-size: 20px; font-weight: 500; }
.single-product .entry-summary .price ins { color: var(--g-ink); text-decoration: none; }
.entry-summary .woocommerce-product-details__short-description { font-size: 17px; color: var(--g-ink-soft); }

.single-product .single_add_to_cart_button {
	--theme-button-background-initial-color: var(--g-cta);
	--theme-button-text-initial-color: var(--g-on-wall);
	--theme-button-background-hover-color: var(--g-cta-deep);
	--theme-button-text-hover-color: var(--g-on-wall);
	min-height: 54px;
	font-size: 18px;
	font-weight: 700;
}
.single-product .quantity[data-type] { --quantity-height: 54px; }

.grs-assurance {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 6px;
	padding: 0;
	list-style: none;
}
.grs-assurance li {
	position: relative;
	padding: 6px 12px 6px 32px;
	border-radius: 6px;
	background: var(--theme-palette-color-6);
	color: var(--g-wall);
	font-size: 15px;
	font-weight: 700;
}
.grs-assurance li::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.6 8l1.1-1.1 2.5 2.5 6.1-6.1L13.4 4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.6 8l1.1-1.1 2.5 2.5 6.1-6.1L13.4 4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.single-product .product_meta { font-size: 14px; }
.woocommerce-tabs .tabs { --theme-font-weight: 700; --theme-text-transform: none; --theme-font-size: 16px; }
.single-product .related > h2 { --theme-font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 28px; }

/* ==========================================================================
   Cart + checkout: white cards on cream, violet totals
   ========================================================================== */
.woocommerce-cart .hero-section,
.woocommerce-checkout .hero-section,
.woocommerce-account .hero-section {
	margin-bottom: clamp(14px, 3vw, 26px);
	padding-block: clamp(20px, 3vw, 32px) 0;
	background: transparent;
	box-shadow: none;
	clip-path: none;
}
.woocommerce-cart .ct-container-full[data-vertical-spacing*="top"],
.woocommerce-checkout .ct-container-full[data-vertical-spacing*="top"],
.woocommerce-account .ct-container-full[data-vertical-spacing*="top"] { padding-top: 0; }
.woocommerce-cart .hero-section .page-title,
.woocommerce-checkout .hero-section .page-title,
.woocommerce-account .hero-section .page-title { color: var(--g-ink); }
.woocommerce-cart .entry-header .page-title,
.woocommerce-checkout .entry-header .page-title,
.woocommerce-account .entry-header .page-title {
	--theme-font-size: clamp(1.9rem, 4vw, 2.8rem);
	--theme-line-height: 1.1;
}

/* the items list, the order summary and the checkout steps are white cards */
.wc-block-cart .wc-block-cart__main .wc-block-cart-items,
.wc-block-cart .wc-block-cart__sidebar,
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-checkout__form .wc-block-components-checkout-step {
	position: relative;
	padding: 18px 22px;
	border: 0;
	border-radius: 20px;
	background: var(--g-paper);
	box-shadow: 0 1px 2px rgba(31, 26, 71, .05), 0 14px 26px -16px rgba(31, 26, 71, .22);
}
.wc-block-cart .wc-block-cart__sidebar { align-self: flex-start; }
.wc-block-checkout__form .wc-block-components-checkout-step { margin-bottom: 16px; }
.wc-block-cart-items th,
.wc-block-cart-items td { border-color: var(--g-line) !important; }
.wc-block-components-totals-item { border-color: var(--g-line); }
.wc-block-components-totals-wrapper { border-top: 1px solid var(--g-line) !important; }

.wc-block-cart-items .wc-block-components-product-name {
	color: var(--g-ink);
	font-size: 16px;
	font-weight: 700;
}
.wc-block-cart-item__image img { border-radius: 12px; }
.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description { color: var(--g-ink-soft); font-size: 14px; }
.wc-block-components-product-badge { border-color: var(--g-sindoor); color: var(--g-sindoor); border-radius: 999px; }

.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--g-cta);
	color: var(--g-on-wall);
}
.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover { background: var(--g-cta-deep); color: var(--g-on-wall); }
.wc-block-components-button:not(.is-link) {
	min-height: 54px;
	border-radius: 14px;
	font-size: 17px;
	font-weight: 700;
}
/* the total: ink label, big violet figure, no dark box */
.wc-block-components-totals-footer-item {
	margin: 10px 0 4px;
	padding: 14px 0 0 !important;
	border-top: 1px solid var(--g-line);
	background: none;
	box-shadow: none;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: var(--g-ink);
	font-size: 17px;
	font-weight: 800;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value .wc-block-components-formatted-money-amount {
	color: var(--g-wall) !important;
	font-family: var(--g-font-body) !important;
	font-size: 28px !important;
	font-weight: 800;
	line-height: 1.1;
}
.wc-block-components-product-price,
.wc-block-cart-item__total .wc-block-components-product-price__value {
	font-family: var(--g-font-body);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
}
.wc-block-components-totals-item__value { font-family: var(--g-font-body); font-size: 16px; font-weight: 700; }
.wc-block-components-chip { border-radius: 999px; background: var(--g-tin); color: var(--g-ink); }

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-color: var(--g-input-line) !important;
	border-radius: 12px !important;
	background: var(--g-paper) !important;
	font-size: 16px;
}
.wc-block-components-text-input label,
.wc-block-components-combobox-control label { color: var(--g-ink-muted); font-size: 14px; }
.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus { border-color: var(--g-wall) !important; box-shadow: 0 0 0 1px var(--g-wall) !important; }
.wc-block-checkout__form .wc-block-components-checkout-step__title {
	font-family: var(--g-font-sign);
	font-size: 22px;
	color: var(--g-ink);
}
/* payment options: every choice is a bordered card, the chosen one is violet-outlined */
.wc-block-components-radio-control .wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option {
	margin-bottom: 10px;
	border: 1px solid var(--g-line);
	border-radius: 14px;
	background: var(--g-paper);
}
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--g-wall);
	border-radius: 14px;
	background: var(--g-wash);
}
.wc-block-components-radio-control__label,
.wc-block-components-radio-control__description { color: var(--g-ink); font-size: 15px; }
.wc-block-cart__empty-cart__title { font-family: var(--g-font-sign); color: var(--g-ink); }
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice-banner {
	border: 0;
	border-radius: 14px;
	background: var(--g-paper);
	color: var(--g-ink);
	box-shadow: 0 1px 2px rgba(31, 26, 71, .05), 0 10px 20px -14px rgba(31, 26, 71, .2);
}

/* ==========================================================================
   My account
   ========================================================================== */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 6px;
	border-radius: var(--g-radius);
	background: var(--g-paper);
	box-shadow: 0 14px 26px -18px color-mix(in srgb, var(--g-ink) 50%, transparent);
	list-style: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--g-radius-sm);
	color: var(--g-ink);
	font-weight: 600;
	text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--theme-palette-color-6); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--g-wall); color: var(--g-on-wall); }
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account form.login,
.woocommerce-account form.register {
	padding: clamp(20px, 3vw, 32px);
	border-radius: var(--g-radius);
	background: var(--g-paper);
	box-shadow: 0 14px 26px -18px color-mix(in srgb, var(--g-ink) 50%, transparent);
}
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { font-size: 18px; }
.woocommerce form .input-text,
.woocommerce form select { min-height: 46px; border-radius: var(--g-radius-sm); font-size: 16px; }

/* ==========================================================================
   Footer: dark forest green
   ========================================================================== */
.grs-footer {
	padding: clamp(48px, 7vw, 80px) 0 40px;
	background: var(--g-wall-deep);
	color: var(--g-on-wall);
	font-size: 16px;
}
.grs-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 36px;
}
.grs-footer__name {
	margin: 0 0 10px;
	color: var(--g-tin);
	font-family: var(--g-font-sign);
	font-size: clamp(2.6rem, 5vw, 3.6rem);
	line-height: 1;
}
.grs-footer__brand > p:not(.grs-footer__name) { max-width: 30em; margin: 0; }
.grs-footer__title { margin: 0 0 12px; font-size: 22px; color: var(--g-on-wall); }
.grs-footer nav ul { margin: 0; padding: 0; list-style: none; }
.grs-footer nav li { margin: 0 0 8px; }
.grs-footer a { color: var(--g-on-wall); font-weight: 500; text-decoration: none; }
.grs-footer a:hover { color: var(--g-tin); text-decoration: underline; }
.grs-paychips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.grs-paychips li {
	padding: 4px 12px;
	border-radius: 6px;
	background: var(--g-paper);
	color: var(--g-ink);
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 3px 6px -3px color-mix(in srgb, var(--g-ink) 40%, transparent);
}
.grs-footer__note { margin: 12px 0 0; font-size: 15px; }

#footer [data-row="bottom"] {
	background: var(--g-wall-deep);
	border-top: 1px solid color-mix(in srgb, var(--g-on-wall) 14%, transparent);
	--theme-text-color: color-mix(in srgb, var(--g-on-wall) 78%, transparent);
	color: color-mix(in srgb, var(--g-on-wall) 78%, transparent);
}
#footer .ct-footer-copyright { --theme-font-size: 14px; }

/* ==========================================================================
   Site-wide WooCommerce safety
   ========================================================================== */

/* Prevent iOS auto-zoom on focus: inputs must be >= 16px. */
.woocommerce-checkout input,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.wc-block-checkout input,
.wc-block-checkout select,
.wc-block-checkout textarea,
.wc-block-cart input,
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-blocks-components-select__select {
	font-size: 16px !important;
}

.woocommerce-loop-product__title,
.product_title,
.wc-block-components-product-name { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   Breakpoints: 1100 / 992 / 768 / 600 / 420 / 360
   ========================================================================== */
@media (max-width: 1100px) {
	.grs-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.grs-grid--cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
	.grs-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	body { font-size: 16px; }

	.grs-hero__banner { grid-template-columns: minmax(0, 1fr); }
	.grs-hero__jars { height: 220px; }
	.grs-grid--cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	/* Product grids: 2 columns on phones, never a single wide column. */
	[data-products] {
		--shop-columns: repeat(2, minmax(0, 1fr)) !important;
		--grid-columns-gap: 12px;
		--grid-rows-gap: 12px;
	}

	.grs-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.grs-pills::-webkit-scrollbar { display: none; }
}

@media (max-width: 600px) {
	.grs-banner { font-size: 14px; }
	.grs-banner__inner { padding: 8px 42px 8px 12px; }

	#header [data-row="middle"] { --height: 64px; }
	#header .site-title { --theme-font-size: 28px; }
	#header .ct-header-cart .ct-label { --theme-font-size: 19px; }

	.grs-hero__banner { padding: 24px 18px; }
	.grs-hero__search button { padding: 0 16px; }

	.grs-card,
	[data-products] > li.product { padding: 10px; border-radius: 16px; }
	.grs-grid--cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.grs-cat__name { font-size: 15px; }


	/* Full-width buttons on small screens. */
	.grs-btn { width: 100%; }
	.single-product form.cart .single_add_to_cart_button { flex: 1 1 100%; }
	.single-product .ct-cart-actions { flex-wrap: wrap; }
	.single-product .ct-cart-actions .quantity { width: 100%; }
	.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
	.wc-block-cart__submit-button,
	.wc-block-components-checkout-place-order-button,
	#place_order { width: 100%; }

	/* Compact product cards so 2 columns fit comfortably. */
	[data-products] .woocommerce-loop-product__title { --theme-font-size: 14px; }
	[data-products] .price { --theme-font-size: 18px; }
	[data-products] .price del { font-size: 13px; }
	[data-products] .ct-woo-card-actions .button { min-height: 42px; padding: 0 6px; font-size: 14px; }
	.onsale, .onsale[data-shape] { top: 8px; right: 8px; font-size: 11px; }

	.single-product .entry-summary .price { --theme-font-size: 38px; }

	/* Checkout fields stack vertically (block + classic checkout). */
	.wc-block-components-address-form > * {
		flex: 1 0 100% !important;
		width: 100% !important;
		margin-left: 0 !important;
	}
	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last {
		float: none;
		width: 100%;
	}

	.grs-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 420px) {
	.grs-banner__btn { font-size: 13px; }
}

@media (max-width: 360px) {
	.grs-banner { font-size: 13px; }
	.grs-cat__name { font-size: 14px; }
	[data-products] .woocommerce-loop-product__title { --theme-font-size: 13px; }
	[data-products] .price { --theme-font-size: 17px; }
}

/* ==========================================================================
   Audit fixes: readable placeholders and 44px tap targets on touch screens
   ========================================================================== */
input::placeholder,
textarea::placeholder { color: var(--g-ink-muted); opacity: 1; }

@media (max-width: 768px), (pointer: coarse) {
	#header .ct-header-search,
	#header .ct-header-trigger { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
	#header .ct-header-cart .ct-cart-item { min-height: 44px; }
	.grs-hero__chips a { padding: 12px 18px; }
	.grs-section__more { display: inline-block; padding: 12px 0; }
	.grs-cartcard__qty a { display: inline-block; padding: 14px 10px; margin-left: 0; }
	.grs-pills a { padding: 12px 18px; }
	.grs-filters__check { min-height: 44px; margin: 0; }
	.grs-filters__check input { width: 22px; height: 22px; }
	.grs-filters__chips a { padding: 12px 16px; }
	.grs-footer a { display: inline-block; padding: 12px 0; }
	.woocommerce-breadcrumb a { display: inline-block; padding: 12px 2px; }
	[data-products] .ct-woo-card-actions .button { min-height: 44px; }
}

/* ==========================================================================
   UI-test fixes
   ========================================================================== */

/* Form fields use the brand's border and focus colours everywhere (Blocksy variables). */
:root:root {
	--theme-form-field-border-initial-color: var(--g-input-line);
	--theme-form-field-border-focus-color: var(--g-wall);
	--theme-form-field-background-initial-color: var(--g-paper);
}

/* Focus rings on dark surfaces use the orange accent so they stay visible. */
.grs-hero__banner :focus-visible,
.grs-footer :focus-visible,
.grs-banner :focus-visible,
#offcanvas :focus-visible,
#search-modal :focus-visible { outline-color: var(--g-tin); }

/* Admin-only hints that mark an unfilled store detail: readable on any background. */
.grs-placeholder {
	display: inline-block;
	padding: 1px 8px;
	border: 1px dashed var(--g-sindoor);
	border-radius: 6px;
	background: rgba(255, 255, 255, .94);
	color: var(--g-sindoor);
	font-size: 12px;
	line-height: 1.5;
}

/* Mobile menu: the brand cream panel with ink links; the search overlay in deep indigo. */
[data-header*="type-1"] #offcanvas .ct-panel-inner { background-color: var(--g-limewash) !important; }
#offcanvas {
	--theme-text-color: var(--g-ink);
	--theme-link-initial-color: var(--g-ink);
	--theme-link-hover-color: var(--g-wall);
	--theme-link-active-color: var(--g-wall);
	--theme-headings-color: var(--g-ink);
	--theme-icon-color: var(--g-ink);
	--theme-icon-hover-color: var(--g-wall);
	--theme-border-color: var(--g-line);
}
#offcanvas .ct-menu-link,
#offcanvas .ct-toggle-close { color: var(--g-ink); }
#offcanvas .current-menu-item > .ct-menu-link,
#offcanvas .ct-menu-link:hover { color: var(--g-wall); }
#search-modal, [data-header*="type-1"] #search-modal .ct-panel-inner { background-color: rgba(37, 24, 95, .97) !important; }
#search-modal input[type="search"] { color: #fff; }
#search-modal input[type="search"]::placeholder { color: rgba(255, 255, 255, .72); }

/* A search or filter with no results: a white card with a way out, not a flat grey bar. */
.woocommerce-no-products-found .woocommerce-info { margin: 0 0 14px; padding: 20px 22px; }
.grs-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }

/* Filter panel: matching field heights, bigger controls, finger-sized chips and links. */
.grs-filters__range label { flex: 1; min-width: 0; }
.grs-filters__range input { height: 44px; min-height: 44px; font-size: 16px; }
.grs-filters__check { min-height: 40px; }
.grs-filters__check input { width: 22px; height: 22px; }
.grs-filters__chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; }
.grs-filters__actions a { display: inline-block; padding: 12px 8px; }

/* Offer banner: a finger-sized close button and a slimmer bar on phones. */
.grs-banner__close { min-width: 44px; min-height: 44px; }
@media (max-width: 600px) {
	.grs-banner { font-size: 13px; }
	.grs-banner__inner { padding-block: 4px; }
}

/* Small print never goes below 12px. */
.woocommerce-result-count { font-size: 13px; }
.woocommerce-mini-cart__buttons .button,
.widget_shopping_cart .button { font-size: 14px; }
#header .ct-header-cart .ct-dynamic-count-cart { font-size: 11px; }
@media (max-width: 600px) {
	.onsale, .onsale[data-shape] { font-size: 12px; }
}

/* Category tiles: a dark scrim under the label keeps white text readable across the whole gradient. */
.grs-cat a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(25, 15, 70, 0) 40%, rgba(25, 15, 70, .62) 100%);
	pointer-events: none;
}
.grs-cat__glyph,
.grs-cat__name,
.grs-cat__count { z-index: 1; }

/* Notice icon sits beside the text, not on top of it. */
.woocommerce-no-products-found .woocommerce-info { display: flex; align-items: center; gap: 12px; }
.woocommerce-no-products-found .woocommerce-info::before { position: static; flex: none; margin: 0; }
.grs-filters__range input { box-sizing: border-box; width: 100%; padding-block: 0; }
#offcanvas .ct-toggle-close { color: var(--g-ink) !important; }
#offcanvas .ct-toggle-close svg { fill: currentColor; }

/* Phones: the offer bar is one slim line (code only); the button is redundant next to it. */
@media (max-width: 600px) {
	.grs-banner__btn { display: none; }
	.grs-banner__inner { padding: 6px 52px 6px 16px; }
	.grs-banner__code { font-size: 16px; }
}

/* My account login / register: two white cards. */
.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2,
.woocommerce-form-login,
.woocommerce-form-register {
	padding: 22px;
	border: 0 !important;
	border-radius: 20px;
	background: var(--g-paper);
	box-shadow: 0 1px 2px rgba(31, 26, 71, .05), 0 14px 26px -16px rgba(31, 26, 71, .22);
}
.woocommerce-account .u-columns .u-column1 .woocommerce-form-login,
.woocommerce-account .u-columns .u-column2 .woocommerce-form-register { padding: 0; box-shadow: none; }
.woocommerce-account form .input-text,
.woocommerce-account form input[type="email"],
.woocommerce-account form input[type="password"] { min-height: 48px; border-color: var(--g-input-line); border-radius: 12px; }

/* Adding to the cart keeps the button in place (Blocksy auto-hides it); the header cart pill shows the result. */
.ct-woo-card-actions[data-add-to-cart="auto-hide"] .add_to_cart_button.added { display: inline-flex !important; }
.ct-woo-card-actions .added_to_cart { display: none !important; }
.add_to_cart_button.added { background: var(--g-wall-deep); }
.add_to_cart_button.added::before { content: "\2713\00a0"; }

/* ==========================================================================
   Cart + checkout alignment: one inner gutter, one divider colour, readable headings
   ========================================================================== */
:root { --g-divider: #E9E5F7; }

/* The whole cart list (header row included) is the card, not just the rows. */
.wc-block-cart .wc-block-cart__main { padding: 18px 22px; border-radius: 20px; background: var(--g-paper); box-shadow: 0 1px 2px rgba(31, 26, 71, .05), 0 14px 26px -16px rgba(31, 26, 71, .22); }
.wc-block-cart .wc-block-cart__main .wc-block-cart-items { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.wc-block-cart-items th { padding: 0 0 10px; color: var(--g-ink-muted); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.wc-block-cart-items td { padding-inline: 0; }

/* Summary and totals cards: every block shares the card's gutter. */
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper,
.wc-block-components-totals-item,
.wc-block-components-totals-footer-item,
.wc-block-components-panel { padding-inline: 0 !important; }
.wc-block-components-order-summary-item { padding-inline: 0; }
.wc-block-components-checkout-order-summary__title,
.wc-block-components-totals-item--title,
.wc-block-cart__totals-title {
	padding: 0 0 12px !important;
	color: var(--g-ink);
	font-size: 18px !important;
	font-weight: 800 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.wc-block-components-checkout-order-summary__title-text { font-weight: 800; color: var(--g-ink); }

/* One quiet divider colour instead of yellow, dashed and double rules. */
.wc-block-cart-items th,
.wc-block-cart-items td,
.wc-block-cart-items .wc-block-cart-items__row,
.wc-block-components-totals-item,
.wc-block-components-order-summary-item,
.wc-block-components-order-summary,
.wc-block-components-panel,
.wc-block-components-totals-coupon,
.wc-block-components-checkout-order-summary__title,
.wc-block-components-checkout-order-summary__title-text { border-color: var(--g-divider) !important; }
.wc-block-components-totals-wrapper,
.wc-block-components-totals-footer-item { border-top: 1px solid var(--g-divider) !important; border-bottom: 0 !important; }
.wc-block-components-totals-wrapper:first-child { border-top: 0 !important; }
.wc-block-components-totals-wrapper .wc-block-components-totals-wrapper { border-top: 0 !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 18px; }

/* Payment options: matching corners, the open card clips its contents. */
.wc-block-components-radio-control-accordion-option { overflow: hidden; }
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option { border: 0; margin: 0; border-radius: 0; }
.wc-block-components-radio-control__option-layout { align-items: center; }

/* Terms line lines up with the cards above. */
.wc-block-checkout__terms { margin: 14px 4px; font-size: 13px; color: var(--g-ink-soft); }

/* Cart: a gutter between the items card and the totals card. */
@media (min-width: 783px) {
	.wc-block-cart .wc-block-cart__main { box-sizing: border-box; width: calc(65% - 24px); margin-right: 24px; }
}

/* Order summary: title lines up with its rows; one rule between rows, no doubles. */
.wc-block-components-checkout-order-summary__title,
.wc-block-components-checkout-order-summary__title-text { margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.wc-block-components-totals-item { border: 0 !important; }
.wc-block-components-order-summary,
.wc-block-components-order-summary-item { border-top: 0 !important; border-bottom: 0 !important; }
.wc-block-components-totals-wrapper { margin: 0; }

/* Payment option rows: radio, then a left-aligned label. */
.wc-block-components-radio-control__option-layout,
.wc-block-components-radio-control__label-group { justify-content: flex-start; text-align: left; }
.wc-block-components-radio-control__label { flex: 1; text-align: left; }
.wc-block-components-radio-control__label-group { flex: 1; margin: 0 !important; }
.wp-block-woocommerce-checkout-order-summary-discount-block,
.wp-block-woocommerce-checkout-order-summary-fee-block { border-top: 0 !important; }
.wc-block-components-radio-control__option-layout { align-items: stretch; }
.wc-block-components-radio-control__label-group { width: 100%; flex: 0 1 auto; }

/* ==========================================================================
   Interaction states: every control answers hover, press and focus
   ========================================================================== */
.button, .grs-btn, .add_to_cart_button, .single_add_to_cart_button, .wc-block-components-button,
.grs-cat, .grs-filters__toggle, .grs-filters__chips a, .woocommerce-form-login__submit,
.wc-block-components-quantity-selector__button, .grs-banner__btn, .page-numbers {
	transition: transform .12s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:active, .grs-btn:active, .add_to_cart_button:active, .single_add_to_cart_button:active,
.wc-block-components-button:active, .grs-cat:active, .grs-filters__toggle:active, .grs-filters__chips a:active,
.woocommerce-form-login__submit:active, .wc-block-components-quantity-selector__button:active,
.grs-banner__btn:active, .page-numbers:active { transform: scale(.97); }

.wc-block-components-panel__button:hover { color: var(--g-wall); }
.wc-block-components-panel__button:hover .wc-block-components-panel__button-icon { fill: var(--g-wall); }
.wc-block-cart-item__remove-link:hover { color: var(--g-sindoor); }

/* Focused fields get the brand outline, not just a tint. */
.woocommerce-account form .input-text:focus,
.woocommerce-account form input:focus,
.wc-block-components-quantity-selector:focus-within,
.woocommerce-ordering select:focus,
.search-form input:focus {
	border-color: var(--g-wall) !important;
	box-shadow: 0 0 0 3px rgba(60, 42, 152, .16) !important;
	outline: none;
}
@media (prefers-reduced-motion: reduce) {
	.button:active, .grs-btn:active, .add_to_cart_button:active, .grs-cat:active { transform: none; }
}
.grs-filters > summary { cursor: pointer; transition: transform .12s ease, background-color .2s ease, border-color .2s ease; }
.grs-filters > summary:hover { background: var(--g-wash); border-color: var(--g-cta); }
.grs-filters > summary:active { transform: scale(.97); }

/* Phone cart: smaller thumbnail so the price column fits inside the card; gap before the totals card. */
@media (max-width: 782px) {
	.wc-block-cart .wc-block-cart__main { margin-bottom: 16px; padding: 16px; }
	.wc-block-cart-items .wc-block-cart-item__image { width: 64px; padding-right: 12px; }
	.wc-block-cart-items .wc-block-cart-item__image img { width: 64px; height: 64px; object-fit: cover; }
	.wc-block-cart-items .wc-block-cart-item__total { padding-left: 8px; }
	.wc-block-cart-items .wc-block-cart-item__total .wc-block-components-product-price { white-space: nowrap; }
	.wc-block-cart-items .wc-block-cart-item__total .wc-block-components-product-badge { white-space: nowrap; }
	.wc-block-cart-items .wc-block-cart-item__total,
	.wc-block-cart-items th:last-child { padding-right: 0; }
}
@media (max-width: 782px) {
	.wc-block-cart.is-mobile .wc-block-cart-items .wc-block-cart-items__row,
	.wc-block-cart.is-small .wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 64px minmax(0, 1fr);
		grid-template-areas: "image product" "image total";
		column-gap: 12px;
	}
	.wc-block-cart-items .wc-block-cart-item__image { grid-area: image; padding: 0; }
	.wc-block-cart-items .wc-block-cart-item__product { grid-area: product; padding: 0; }
	.wc-block-cart-items .wc-block-cart-item__total { grid-area: total; padding: 4px 0 0; text-align: left; }
	.wc-block-cart-items .wc-block-cart-item__total .wc-block-components-product-price,
	.wc-block-cart-items .wc-block-cart-item__total .wc-block-components-product-badge { justify-content: flex-start; }
}
@media (max-width: 782px) {
	.wc-block-cart-items .wc-block-cart-item__total { position: static !important; transform: none; width: auto; }
}
@media (max-width: 782px) {
	.wc-block-cart-items .wc-block-cart-item__total,
	.wc-block-cart-items th.wc-block-cart-items__header-total { display: none !important; }
}

/* ==========================================================================
   Cart drawer: slides in from the right, opened by the header cart or by adding an item
   ========================================================================== */
.grs-drawer[hidden] { display: none; }
.grs-drawer { position: fixed; inset: 0; z-index: 100000; }
.grs-drawer__backdrop { position: absolute; inset: 0; background: rgba(25, 15, 70, .5); opacity: 0; transition: opacity .25s ease; }
.grs-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column;
	width: min(420px, 100%);
	background: var(--g-paper);
	box-shadow: -18px 0 40px -20px rgba(31, 26, 71, .4);
	transform: translateX(100%);
	transition: transform .25s ease;
	outline: none;
}
.grs-drawer.is-open .grs-drawer__backdrop { opacity: 1; }
.grs-drawer.is-open .grs-drawer__panel { transform: none; }
.grs-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--g-divider, #E9E5F7); }
.grs-drawer__head h2 { margin: 0; font-size: 22px; color: var(--g-ink); }
.grs-drawer__close { all: unset; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--g-ink); cursor: pointer; }
.grs-drawer__close:hover { background: var(--g-wash); }
.grs-drawer__close:focus-visible { outline: 2px solid var(--g-wall); outline-offset: 2px; }
.grs-drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px 24px; }
.grs-drawer__body .grs-btn { display: block; width: 100%; margin-top: 14px; text-align: center; }
.grs-cartcard__viewcart { display: block; margin-top: 12px; text-align: center; color: var(--g-wall); font-weight: 600; }
html.grs-drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
	.grs-drawer__backdrop, .grs-drawer__panel { transition: none; }
}

/* Cart panel contents */
.grs-cartcard__items { margin: 0; padding: 0; list-style: none; }
.grs-cartcard__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--g-divider, #E9E5F7); }
.grs-cartcard__item:first-child { border-top: 0; }
.grs-cartcard__item img { display: block; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--g-wash); }
.grs-cartcard__name { display: block; color: var(--g-ink); font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.grs-cartcard__qty { display: block; margin-top: 4px; color: var(--g-ink-muted); font-size: 13px; }
.grs-cartcard__qty a { margin-left: 10px; padding: 12px 6px; color: var(--g-ink-muted); text-decoration: underline; }
.grs-cartcard__price { color: var(--g-ink); font-size: 15px; font-weight: 700; }
.grs-cartcard__row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.grs-cartcard__row--total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--g-divider, #E9E5F7); font-size: 18px; font-weight: 800; color: var(--g-ink); }
.grs-cartcard__free { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--g-wash); color: var(--g-wall); font-size: 13px; font-weight: 600; text-align: center; }
.grs-cartcard__empty { margin: 18px 0 4px; color: var(--g-ink-soft); }
.grs-drawer__body .grs-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; }

/* ==========================================================================
   Header: search bar, account area, short category bar with an All categories dropdown
   ========================================================================== */
#header [data-row*="middle"] > .ct-container { gap: 20px; }
#header [data-column="middle"] { flex: 1 1 auto; min-width: 0; max-width: 620px; margin-inline: 12px; }
#header [data-column="middle"] [data-id^="text"] { width: 100%; }

.grs-hsearch { position: relative; display: flex; width: 100%; }
.grs-hsearch input[type="search"] {
	width: 100%; height: 46px; padding: 0 52px 0 20px;
	border: 1.5px solid var(--g-input-line); border-radius: 999px;
	background: var(--g-paper); color: var(--g-ink); font-size: 15px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.grs-hsearch input[type="search"]::placeholder { color: var(--g-ink-muted); opacity: 1; }
.grs-hsearch input[type="search"]:focus { border-color: var(--g-wall); box-shadow: 0 0 0 3px rgba(60, 42, 152, .16); outline: none; }
.grs-hsearch button {
	all: unset; position: absolute; top: 4px; right: 4px; display: grid; place-items: center;
	width: 38px; height: 38px; border-radius: 50%; background: var(--g-wall); color: var(--g-on-wall); cursor: pointer;
	transition: background-color .2s ease, transform .12s ease;
}
.grs-hsearch button:hover { background: var(--g-wall-deep); }
.grs-hsearch button:active { transform: scale(.94); }
.grs-hsearch button:focus-visible { outline: 2px solid var(--g-tin); outline-offset: 2px; }

.grs-acct, .grs-acct__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
	border: 1.5px solid transparent; border-radius: 999px; color: var(--g-ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.grs-acct:hover, .grs-acct__btn:hover, .grs-acct--in:focus-within .grs-acct__btn { border-color: var(--g-wall); color: var(--g-wall); }
.grs-acct--in { position: relative; padding: 0; border: 0; }
.grs-acct__menu {
	position: absolute; top: 100%; right: 0; z-index: 30; min-width: 190px; margin: 6px 0 0; padding: 8px; list-style: none;
	border-radius: 14px; background: var(--g-paper); box-shadow: 0 18px 32px -14px rgba(31, 26, 71, .35);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.grs-acct--in:hover .grs-acct__menu, .grs-acct--in:focus-within .grs-acct__menu { opacity: 1; visibility: visible; transform: none; }
.grs-acct__menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--g-ink); font-size: 15px; text-decoration: none; }
.grs-acct__menu a:hover, .grs-acct__menu a:focus-visible { background: var(--g-wash); color: var(--g-wall); }

/* Category bar: a visible border on hover, focus and the current category. */
#header [data-id="menu-secondary"] .ct-menu-link {
	border-radius: 8px; box-shadow: inset 0 0 0 1.5px transparent;
	transition: box-shadow .15s ease, color .15s ease;
}
#header [data-id="menu-secondary"] .ct-menu-link:hover,
#header [data-id="menu-secondary"] .ct-menu-link:focus-visible,
#header [data-id="menu-secondary"] .current-menu-item > .ct-menu-link { box-shadow: inset 0 0 0 1.5px var(--g-wall); color: var(--g-wall); }
#header [data-id="menu-secondary"] .grs-allcats > .ct-menu-link { font-weight: 800; color: var(--g-wall); }
#header [data-id="menu-secondary"] .sub-menu { max-height: 70vh; overflow-y: auto; }

/* Today's deals sits right under the banner */
.grs-shelfbox--deals { background: var(--g-wash); }

@media (max-width: 999px) {
	.grs-acct__label { display: none; }
	.grs-acct, .grs-acct__btn { padding: 0 10px; }
	#header [data-row*="bottom"] [data-column] { width: 100%; }
}
#header [data-row*="middle"] > .ct-container { grid-template-columns: auto minmax(0, 640px) auto; justify-content: space-between; }
#header [data-id="menu-secondary"] .sub-menu .ct-menu-link { font-size: 15px; }

/* Dropdown items sit on the dark indigo panel: light text, a lighter row on hover, an orange mark when current. */
#header [data-id="menu-secondary"] .sub-menu .ct-menu-link,
#header [data-id="menu-secondary"] .sub-menu .ct-menu-link:hover,
#header [data-id="menu-secondary"] .sub-menu .ct-menu-link:focus-visible,
#header [data-id="menu-secondary"] .sub-menu .current-menu-item > .ct-menu-link {
	border-radius: 0; box-shadow: none; color: #fff;
}
#header [data-id="menu-secondary"] .sub-menu .ct-menu-link:hover,
#header [data-id="menu-secondary"] .sub-menu .ct-menu-link:focus-visible { background: rgba(255, 255, 255, .12); }
#header [data-id="menu-secondary"] .sub-menu .current-menu-item > .ct-menu-link { box-shadow: inset 3px 0 0 var(--g-tin); color: var(--g-tin); }

/* The slide-in cart replaces Blocksy's hover mini-cart, so the pill has one cart experience. */
#header .ct-header-cart .ct-cart-content { display: none !important; }

/* Popular is now the last home section; give it room above the footer. */
.home #popular { padding-bottom: clamp(40px, 6vw, 80px); }

/* ==========================================================================
   Footer: app badge, contact block, social row, centred copyright
   ========================================================================== */
.grs-appbadge {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 18px 8px 14px;
	border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 12px; background: rgba(255, 255, 255, .06);
	transition: background-color .2s ease, border-color .2s ease, transform .12s ease;
}
.grs-appbadge:hover { background: rgba(255, 255, 255, .14); border-color: var(--g-tin); text-decoration: none; }
.grs-appbadge:active { transform: scale(.97); }
.grs-appbadge small { display: block; font-size: 12px; font-weight: 500; line-height: 1.2; opacity: .85; }
.grs-appbadge strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.grs-footer__title--contact { margin-top: 26px; }
.grs-contact { margin: 0; padding: 0; list-style: none; }
.grs-contact li { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; }
.grs-contact svg { flex: none; margin-top: 3px; color: var(--g-tin); }
.grs-footer__social { display: flex; justify-content: center; gap: 12px; margin: 40px auto 0; padding: 0; list-style: none; }
.grs-footer__social a {
	display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 50%;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s ease;
}
.grs-footer__social a:hover { background: var(--g-tin); border-color: var(--g-tin); color: var(--g-ink); text-decoration: none; }
.grs-footer__social a:active { transform: scale(.94); }
footer.ct-footer [data-row="bottom"] > .ct-container { justify-content: center; text-align: center; }
footer.ct-footer [data-row="bottom"] [data-column] { width: 100%; display: flex; justify-content: center; text-align: center; }
/* The touch-target padding for footer links must not break the badge or the contact rows. */
.grs-footer .grs-appbadge { display: inline-flex; padding: 8px 18px 8px 14px; }
.grs-footer .grs-contact a { display: inline; padding: 0; }
.grs-footer .grs-footer__social a { display: grid; padding: 0; }
