/* ==========================================================================
   Boimela — bookstore theme
   ========================================================================== */

:root {
	--ink: #1c2430;
	--ink-soft: #5b6573;
	--ink-faint: #8a93a0;
	--line: #e4e7ec;
	--bg: #f4f5f7;
	--surface: #ffffff;
	--primary: #0d5c63;
	--primary-dark: #08454b;
	--primary-tint: #e3f0f1;
	--accent: #e8590c;
	--accent-dark: #c44a08;
	--accent-tint: #fdeee5;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
	--font: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
	--container: 1240px;
	--gutter: 16px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

:lang(bn) body,
html:lang(bn) body { font-family: "Hind Siliguri", "Inter", system-ui, sans-serif; font-size: 16px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

body.no-scroll { overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.icon { flex-shrink: 0; }

/* Buttons ----------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px; border-radius: var(--radius-sm); border: 0;
	font-weight: 600; line-height: 1.2; transition: background .15s, transform .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--lg { padding: 14px 24px; font-size: 16px; }

/* Top bar ----------------------------------------------------------------- */
.topbar { background: var(--primary-dark); color: #d6e7e9; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar .icon { width: 15px; height: 15px; }

/* Header ------------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--surface); border-bottom: 1px solid var(--line);
	transition: box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-stuck { box-shadow: var(--shadow-lg); }

.header-main {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	padding-top: 14px; padding-bottom: 14px;
}

.brand { display: flex; align-items: center; }
.brand .custom-logo { max-height: 52px; width: auto; }
.brand__name { font-size: 26px; font-weight: 700; color: var(--primary); letter-spacing: -.01em; }
.brand__name:hover { color: var(--primary-dark); }

.header-search {
	display: flex; align-items: stretch;
	border: 2px solid var(--primary); border-radius: var(--radius);
	background: var(--surface); overflow: hidden;
	max-width: 680px; width: 100%;
}
.header-search input[type="search"] {
	flex: 1; min-width: 0; border: 0; padding: 10px 14px; background: transparent; color: var(--ink);
	-webkit-appearance: none; appearance: none;
}
.header-search input[type="search"]:focus { outline: none; }
.header-search:focus-within { box-shadow: 0 0 0 3px var(--primary-tint); }
.header-search button {
	border: 0; background: var(--primary); color: #fff; padding: 0 18px;
	display: flex; align-items: center;
}
.header-search button:hover { background: var(--primary-dark); }
.header-search.inline { margin: 20px 0; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-action {
	display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm);
	color: var(--ink); font-weight: 500;
}
.header-action:hover { background: var(--bg); color: var(--ink); }

.header-cart__icon { position: relative; display: inline-flex; }
.cart-count {
	position: absolute; top: -7px; right: -9px;
	min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count.is-empty { display: none; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--bg); }
.menu-toggle { display: none; }

/* Navigation bar */
.header-nav { border-top: 1px solid var(--line); }
.header-nav__inner { display: flex; align-items: center; gap: 8px; min-height: 46px; }

.cat-dropdown { position: relative; }
.cat-dropdown > button {
	display: flex; align-items: center; gap: 8px; border: 0;
	background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600;
}
.cat-dropdown > button .icon { width: 18px; height: 18px; }
.cat-dropdown__menu {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
	min-width: 260px; max-height: 70vh; overflow-y: auto;
	margin: 0; padding: 6px; list-style: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .15s;
}
.cat-dropdown.is-open .cat-dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.cat-dropdown__menu a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.cat-dropdown__menu a:hover { background: var(--primary-tint); color: var(--primary-dark); }

.primary-menu { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-menu > li { position: relative; }
.primary-menu a { display: block; padding: 8px 12px; color: var(--ink); font-weight: 500; border-radius: var(--radius-sm); }
.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: var(--primary); background: var(--primary-tint); }
.primary-menu .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px;
	margin: 0; padding: 6px; list-style: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transition: opacity .15s;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }

/* Drawer (mobile menu) ----------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); opacity: 0; transition: opacity .25s; }
.drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px);
	background: var(--surface); overflow-y: auto; padding: 8px 16px 24px;
	transform: translateX(-100%); transition: transform .25s ease;
}
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.drawer__title { font-weight: 700; font-size: 17px; }
.drawer__label { margin: 18px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.drawer-menu { margin: 0; padding: 0; list-style: none; }
.drawer-menu a { display: block; padding: 11px 4px; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer-menu .sub-menu { list-style: none; padding-left: 14px; margin: 0; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: 24px 0 8px; }
.hero__inner {
	display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px;
	background: linear-gradient(120deg, var(--primary) 0%, #127a83 100%);
	border-radius: 16px; padding: 44px 48px; color: #fff; overflow: hidden;
	max-width: calc(var(--container) - 2 * var(--gutter));
}
.hero__title { font-size: clamp(26px, 3.4vw, 42px); color: #fff; margin-bottom: 12px; }
.hero__subtitle { font-size: 17px; color: #d3eaec; max-width: 520px; margin-bottom: 24px; }
.hero__media img { border-radius: 12px; max-height: 320px; width: 100%; object-fit: cover; }

.shelf { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 220px; padding-bottom: 10px; border-bottom: 8px solid rgba(255, 255, 255, .25); }
.shelf span { width: 34px; border-radius: 4px 4px 2px 2px; box-shadow: inset -4px 0 0 rgba(0, 0, 0, .12); }
.shelf span:nth-child(1) { height: 70%; background: #f4b740; }
.shelf span:nth-child(2) { height: 88%; background: #e8590c; width: 40px; }
.shelf span:nth-child(3) { height: 62%; background: #fef3e2; }
.shelf span:nth-child(4) { height: 95%; background: #f28c6b; width: 30px; }
.shelf span:nth-child(5) { height: 76%; background: #9fd6d2; }
.shelf span:nth-child(6) { height: 58%; background: #ffd27a; transform: rotate(-10deg); transform-origin: bottom left; margin-left: 10px; }
.shelf span:nth-child(7) { height: 82%; background: #ffffff; width: 28px; }

/* Home sections ------------------------------------------------------------ */
.home-section { padding: 18px 0; }
.home-section > .container {
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
	padding-top: 18px; padding-bottom: 20px;
	max-width: calc(var(--container) - 2 * var(--gutter));
}

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 20px; margin: 0; position: relative; padding-left: 12px; }
.section-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--accent); }
.section-head__tools { display: flex; align-items: center; gap: 6px; }
.see-all { font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: var(--radius-sm); }
.see-all:hover { background: var(--primary-tint); }
.scroll-btn {
	width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	display: inline-flex; align-items: center; justify-content: center;
}
.scroll-btn:hover { border-color: var(--primary); color: var(--primary); }
.scroll-btn .icon { width: 18px; height: 18px; }

.home-row--offer > .container { background: linear-gradient(180deg, var(--accent-tint), var(--surface) 70%); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cat-card {
	display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
	padding: 14px 8px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); height: 100%;
	transition: border-color .15s, transform .15s;
}
.cat-card:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.cat-card__media {
	width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--primary-tint);
	display: flex; align-items: center; justify-content: center;
}
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__initial { font-size: 22px; font-weight: 700; color: var(--primary); }
.cat-card__name { font-weight: 600; font-size: 14px; line-height: 1.35; }

/* Author / publisher row */
.term-row {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px;
	margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.term-row::-webkit-scrollbar { display: none; }
.term-row > li { scroll-snap-align: start; }
.term-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 4px; color: var(--ink); }
.term-card:hover { color: var(--primary); }
.term-card__media {
	width: 96px; height: 96px; overflow: hidden; background: var(--primary-tint);
	display: flex; align-items: center; justify-content: center; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.term-card__media.is-round { border-radius: 50%; }
.term-card__media.is-square { border-radius: var(--radius); }
.term-card__media img { width: 100%; height: 100%; object-fit: cover; }
.term-card__initial { font-size: 34px; font-weight: 700; color: var(--primary); }
.term-card__name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.term-card__count { font-size: 12px; color: var(--ink-faint); }

/* ==========================================================================
   WooCommerce
   ========================================================================== */

/* Product grid (shop) */
.woocommerce ul.products,
ul.products {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
	margin: 0 0 24px; padding: 0; list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after { display: none !important; }

.woocommerce ul.products li.product,
ul.products li.product {
	float: none !important; width: auto !important; margin: 0 !important;
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 12px; text-align: center; transition: box-shadow .2s, border-color .2s;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow-lg); border-color: transparent; }

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); }

.woocommerce ul.products li.product a img {
	width: 100%; aspect-ratio: 2 / 3; object-fit: contain; margin: 0 0 10px;
	background: #f3f4f6; border-radius: var(--radius-sm); padding: 6px;
	transition: transform .25s;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.03); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px !important; font-weight: 600; line-height: 1.4; padding: 0 !important; margin: 0 0 2px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em;
}
.loop-author {
	display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.woocommerce ul.products li.product .star-rating { margin: 0 auto 6px; font-size: 12px; }
.woocommerce ul.products li.product .price {
	color: var(--accent) !important; font-weight: 700; font-size: 16px; margin: auto 0 10px !important;
}
.woocommerce ul.products li.product .price del { color: var(--ink-faint); font-weight: 400; font-size: 13px; opacity: 1; margin-right: 4px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

.woocommerce ul.products li.product .button {
	margin: 0 !important; width: 100%; text-align: center;
}
.woocommerce ul.products li.product .added_to_cart { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; }

/* Sale badge */
.woocommerce span.onsale {
	position: absolute; top: 18px; left: 18px; right: auto; z-index: 2;
	min-width: 0; min-height: 0; margin: 0; padding: 3px 9px; line-height: 1.5;
	background: var(--accent); color: #fff; border-radius: 20px; font-size: 12px; font-weight: 700;
}

/* Home rows: horizontal scroll */
.home-row ul.products {
	grid-template-columns: none !important;
	grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; margin: 0;
}
.home-row ul.products::-webkit-scrollbar { display: none; }
.home-row ul.products li.product { scroll-snap-align: start; padding: 10px; }

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .wc-block-components-button {
	background: var(--primary-tint); color: var(--primary-dark); border-radius: var(--radius-sm);
	font-weight: 600; padding: 9px 16px; line-height: 1.3; border: 0;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--primary); color: #fff; }

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order,
.woocommerce .checkout-button {
	background: var(--accent); color: #fff;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover { background: var(--accent-dark); color: #fff; }

.woocommerce ul.products li.product .button.loading { opacity: .7; }

/* Shop layout */
.page-wrap { padding-top: 20px; padding-bottom: 40px; }
.page-wrap--narrow { max-width: 820px; }

.woocommerce .woocommerce-breadcrumb { font-size: 13px; color: var(--ink-faint); margin: 0 0 16px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ink-soft); }

.layout-sidebar { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.layout-full .content-area,
.layout-sidebar .content-area { min-width: 0; }

.woocommerce-products-header,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 16px; }
.woocommerce-products-header__title.page-title { font-size: 24px; }
.woocommerce .woocommerce-ordering select {
	padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.term-description { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; color: var(--ink-soft); }

.shop-sidebar {
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px 12px;
	position: sticky; top: 140px;
}
.shop-sidebar__toggle { list-style: none; display: none; }
.shop-sidebar__toggle::-webkit-details-marker { display: none; }
.shop-sidebar .widget { padding: 12px 0; border-bottom: 1px solid var(--line); }
.shop-sidebar .widget:last-child { border-bottom: 0; }
.widget-title { font-size: 15px; margin-bottom: 8px; }
.shop-sidebar ul { margin: 0; padding: 0; list-style: none; max-height: 300px; overflow-y: auto; }
.filter-list a {
	display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm);
	color: var(--ink); font-size: 14px;
}
.filter-list a:hover { background: var(--bg); }
.filter-list .is-active a { background: var(--primary-tint); color: var(--primary-dark); font-weight: 600; }
.filter-count { color: var(--ink-faint); font-size: 12px; }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; justify-content: center; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 38px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Single book */
.woocommerce div.product {
	display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 32px; align-items: start;
	position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.woocommerce div.product > .onsale { top: 36px; left: 36px; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce div.product div.images img { background: #f3f4f6; border-radius: var(--radius-sm); }
.woocommerce div.product > .woocommerce-tabs,
.woocommerce div.product > .related,
.woocommerce div.product > .upsells,
.woocommerce div.product > .woocommerce-notices-wrapper { grid-column: 1 / -1; }

.woocommerce div.product .product_title { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.book-meta { margin-bottom: 14px; display: grid; gap: 4px; font-size: 15px; }
.book-meta__label { color: var(--ink-faint); min-width: 80px; display: inline-block; }
.book-meta a { font-weight: 600; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--accent); font-size: 26px; font-weight: 700; }
.woocommerce div.product p.price del { color: var(--ink-faint); font-size: 18px; font-weight: 400; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 18px 0; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty {
	width: 72px; height: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center;
}
.woocommerce div.product form.cart .button { float: none; padding: 13px 28px; font-size: 16px; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product .product_meta { font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 2px; }

.trust-list { list-style: none; margin: 0 0 18px; padding: 12px 14px; background: var(--primary-tint); border-radius: var(--radius-sm); display: grid; gap: 6px; font-size: 14px; }
.trust-list li { display: flex; align-items: center; gap: 8px; color: var(--primary-dark); }

.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
.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 a { padding: 10px 16px; color: var(--ink-soft); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 3px solid var(--accent); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { font-size: 18px; }

.related > h2,
.upsells > h2 { font-size: 20px; margin: 10px 0 14px; }
.related ul.products,
.upsells ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Notices, forms, cart, checkout */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error { border-radius: var(--radius-sm); border-top-color: var(--primary); background: var(--surface); box-shadow: var(--shadow); }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--primary); }

.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 {
	border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface);
}
.woocommerce form .form-row input.input-text:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-tint); }

.woocommerce-cart .page-content,
.woocommerce-checkout .page-content,
.woocommerce-account .page-content { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.woocommerce table.shop_table { border-radius: var(--radius-sm); border-color: var(--line); }

/* ==========================================================================
   Pages & blog
   ========================================================================== */
.page-title { font-size: 26px; }
.page-content .entry-content { font-size: 16px; }
.entry-content a { text-decoration: underline; }
.entry-thumb { margin: 16px 0; }
.entry-thumb img { border-radius: var(--radius); }
.page-header { margin-bottom: 18px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 16px; }
.post-card__title { font-size: 18px; }
.post-card__title a { color: var(--ink); }
.post-card__date { color: var(--ink-faint); font-size: 13px; }

.nav-links { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0; }
.pagination .nav-links { justify-content: center; }
.page-numbers { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface); }
.page-numbers.current { background: var(--primary); color: #fff; }

.empty-state { text-align: center; max-width: 560px; }
.empty-state__code { font-size: 72px; font-weight: 700; color: var(--primary); margin: 20px 0 0; line-height: 1; }
.notice-box { background: var(--accent-tint); color: var(--accent-dark); padding: 14px 16px; border-radius: var(--radius-sm); }

.comments-area { margin-top: 32px; }
.comment-list { padding-left: 0; list-style: none; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: #13212b; color: #b6c1cc; margin-top: 32px; font-size: 14px; }
.site-footer a { color: #e6edf3; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
.brand__name--footer { color: #fff; display: inline-block; margin-bottom: 10px; }
.footer-title { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-menu { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer .widget ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: 13px; text-align: center; }

/* Bottom nav (mobile) */
.bottom-nav { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
	.home-row ul.products,
	.term-row { grid-auto-columns: calc((100% - 4 * 14px) / 5); }
	.related ul.products,
	.upsells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	body { padding-bottom: 64px; }

	.topbar { display: none; }
	.header-main {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "toggle brand actions" "search search search";
		gap: 8px 10px; padding-top: 8px; padding-bottom: 10px;
	}
	.menu-toggle { display: inline-flex; grid-area: toggle; }
	.brand { grid-area: brand; }
	.brand__name { font-size: 22px; }
	.brand .custom-logo { max-height: 40px; }
	.header-search { grid-area: search; max-width: none; border-width: 1.5px; }
	.header-search input[type="search"] { padding: 9px 12px; }
	.header-actions { grid-area: actions; }
	.header-action__label { display: none; }
	.header-nav { display: none; }
	.admin-bar .site-header { top: 46px; }

	.hero { padding-top: 12px; }
	.hero__inner { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; }
	.hero__media { display: none; }
	.hero__media:has(img) { display: block; }

	.cat-grid { grid-template-columns: repeat(4, 1fr); }

	.home-row ul.products,
	.term-row { grid-auto-columns: calc((100% - 3 * 12px) / 4); gap: 12px; }

	.layout-sidebar { grid-template-columns: 1fr; gap: 14px; }
	.shop-sidebar { position: static; padding: 0; }
	.shop-sidebar__toggle {
		display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 600; cursor: pointer;
	}
	.shop-sidebar__toggle::after { content: "+"; font-size: 20px; line-height: 1; color: var(--primary); }
	.shop-sidebar[open] .shop-sidebar__toggle::after { content: "–"; }
	.shop-sidebar__body { padding: 0 16px 12px; }

	.woocommerce ul.products,
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.woocommerce div.product { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
	.woocommerce div.product > .onsale { top: 28px; left: 28px; }
	.woocommerce div.product div.images { max-width: 380px; margin: 0 auto !important; width: 100% !important; }
	.related ul.products,
	.upsells ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }

	.bottom-nav {
		display: grid; grid-template-columns: repeat(5, 1fr);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: var(--surface); border-top: 1px solid var(--line);
		padding-bottom: env(safe-area-inset-bottom);
		box-shadow: 0 -4px 16px rgba(16, 24, 40, .06);
	}
	.bottom-nav a {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		height: 60px; font-size: 11px; font-weight: 500; color: var(--ink-soft);
	}
	.bottom-nav a.is-active,
	.bottom-nav a:hover { color: var(--primary); }
	.bottom-nav .cart-count { top: -5px; right: -10px; }
}

@media (max-width: 640px) {
	:root { --gutter: 12px; }
	body { font-size: 14px; }

	.home-section { padding: 8px 0; }
	.home-section > .container { border-radius: 0; box-shadow: none; max-width: none; padding-top: 14px; padding-bottom: 14px; }
	.hero__inner { border-radius: 12px; margin: 0 var(--gutter); max-width: none; width: auto; }
	.hero__title { font-size: 24px; }
	.hero__subtitle { font-size: 15px; }
	.section-title { font-size: 17px; }
	.scroll-btn { display: none; }

	.cat-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 92px; overflow-x: auto; scrollbar-width: none; }
	.cat-grid::-webkit-scrollbar { display: none; }
	.cat-card { padding: 10px 4px; }
	.cat-card__media { width: 48px; height: 48px; }
	.cat-card__name { font-size: 12px; }

	.home-row ul.products { grid-auto-columns: 42%; gap: 10px; }
	.term-row { grid-auto-columns: 30%; gap: 10px; }
	.term-card__media { width: 76px; height: 76px; }
	.term-card__initial { font-size: 26px; }

	.woocommerce ul.products,
	ul.products,
	.related ul.products,
	.upsells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.woocommerce ul.products li.product,
	ul.products li.product { padding: 8px; }
	.woocommerce span.onsale { top: 12px; left: 12px; font-size: 11px; padding: 2px 7px; }
	.woocommerce ul.products li.product .price { font-size: 15px; }
	.woocommerce ul.products li.product .button { padding: 8px 6px; font-size: 13px; }

	.woocommerce .woocommerce-result-count,
	.woocommerce .woocommerce-ordering { float: none; }
	.woocommerce .woocommerce-ordering select { width: 100%; }

	.woocommerce div.product { border-radius: 0; box-shadow: none; margin: 0 calc(-1 * var(--gutter)); }
	.woocommerce div.product form.cart .button { flex: 1; }

	.post-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
	.woocommerce-cart .page-content,
	.woocommerce-checkout .page-content,
	.woocommerce-account .page-content { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   v1.1 — Quick order popup, option chooser, floating cart, chat
   ========================================================================== */
[hidden] { display: none !important; }

/* Card buttons: cart icon + Buy now */
.card-actions { display: flex; gap: 6px; align-items: stretch; margin-top: auto; }
.woocommerce ul.products li.product .card-actions .button { margin: 0 !important; }
.woocommerce ul.products li.product .card-cart-btn,
.card-cart-btn {
	flex: 0 0 auto; width: 40px !important; padding: 0 !important;
	display: inline-flex !important; align-items: center; justify-content: center;
	background: var(--primary-tint); color: var(--primary-dark);
}
.card-cart-btn .icon { width: 19px; height: 19px; }
.woocommerce ul.products li.product .card-buy-btn,
.card-buy-btn {
	flex: 1; width: auto !important; background: var(--accent) !important; color: #fff !important; font-weight: 700;
}
.woocommerce ul.products li.product .card-buy-btn:hover { background: var(--accent-dark) !important; }
.card-actions .added_to_cart { display: none !important; }
.woocommerce ul.products li.product .card-cart-btn.loading,
.card-buy-btn.loading { opacity: .6; pointer-events: none; }
.woocommerce ul.products li.product .card-cart-btn.added::after,
.woocommerce ul.products li.product .card-cart-btn.loading::after { display: none; }
.woocommerce ul.products li.product .card-cart-btn.added { background: var(--primary); color: #fff; }

/* Single product Buy now */
.woocommerce div.product form.cart .single-buy-btn {
	background: var(--accent); color: #fff; padding: 13px 28px; font-size: 16px; font-weight: 700;
}
.woocommerce div.product form.cart .single-buy-btn:hover { background: var(--accent-dark); color: #fff; }
.woocommerce div.product form.cart .single_add_to_cart_button.button.alt {
	background: var(--primary-tint); color: var(--primary-dark);
}
.woocommerce div.product form.cart .single_add_to_cart_button.button.alt:hover { background: var(--primary); color: #fff; }

/* Header track link */
.header-action--track .icon { width: 22px; height: 22px; }

/* Shared modal */
.qc-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.qc-modal__overlay { position: absolute; inset: 0; background: rgba(16, 24, 40, .5); opacity: 0; transition: opacity .2s; }
.qc-modal__box {
	position: relative; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg);
	width: 100%; max-height: calc(100vh - 40px); overflow: auto;
	transform: translateY(16px) scale(.98); opacity: 0; transition: transform .2s, opacity .2s;
}
.qc-modal.is-open .qc-modal__overlay { opacity: 1; }
.qc-modal.is-open .qc-modal__box { transform: none; opacity: 1; }

.qc-close {
	margin-left: auto; flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: var(--bg); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.qc-close:hover { background: var(--line); }
.qc-close .icon { width: 18px; height: 18px; }

.qc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border-radius: var(--radius-sm); padding: 12px 18px; font-weight: 700; border: 2px solid transparent; line-height: 1.2;
}
.qc-btn--primary { background: var(--accent); color: #fff; }
.qc-btn--primary:hover { background: var(--accent-dark); }
.qc-btn--outline { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.qc-btn--outline:hover { background: var(--accent-tint); }
.qc-btn.loading { opacity: .6; pointer-events: none; }

.qc-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.qc-label em { color: var(--accent); font-style: normal; }
.qc-muted { color: var(--ink-faint); font-style: normal; font-size: 14px; }

/* Option chooser */
.qc-modal--chooser .qc-modal__box { max-width: 440px; padding: 18px; }
.qc-chooser__head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.qc-chooser__img { width: 52px; height: 64px; object-fit: contain; background: #f3f4f6; border-radius: var(--radius-sm); }
.qc-chooser__title { font-weight: 700; margin: 0; line-height: 1.35; }
.qc-chooser__sub { margin: 2px 0 0; font-size: 13px; color: var(--ink-faint); }
.qc-chooser__options { display: grid; gap: 10px; margin-bottom: 16px; }
.qc-option {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius);
	cursor: pointer; transition: border-color .15s, background .15s;
}
.qc-option input { position: absolute; opacity: 0; pointer-events: none; }
.qc-option img { width: 34px; height: 42px; object-fit: contain; }
.qc-option__label { flex: 1; font-weight: 600; font-size: 14px; }
.qc-option__price { font-weight: 700; color: var(--accent); text-align: right; font-size: 14px; }
.qc-option__price del { display: block; color: var(--ink-faint); font-weight: 400; font-size: 12px; }
.qc-option__price ins { text-decoration: none; }
.qc-option.is-checked { border-color: var(--accent); background: var(--accent-tint); }
.qc-option.is-disabled { opacity: .5; cursor: not-allowed; }
.qc-chooser__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Checkout popup */
.qc-modal--checkout .qc-modal__box { max-width: 920px; display: flex; flex-direction: column; overflow: hidden; }
.qc-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.qc-title { margin: 0; font-size: 19px; }
.qc-body { overflow-y: auto; padding: 18px 20px 20px; background: var(--bg); }

.qc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.qc-col { display: grid; gap: 16px; }
.qc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.qc-card h3 { font-size: 15px; margin: 0 0 12px; }
.qc-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.qc-card__head h3 { margin: 0; }
.qc-pill { background: var(--primary-tint); color: var(--primary-dark); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; }

.qc-items { list-style: none; margin: 0 0 6px; padding: 0; }
.qc-item { display: grid; grid-template-columns: 44px 1fr auto 24px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qc-item img { width: 44px; height: 56px; object-fit: contain; background: #f3f4f6; border-radius: 4px; }
.qc-item__info { min-width: 0; }
.qc-item__name { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qc-item__unit { font-size: 13px; color: var(--ink-faint); }
.qc-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qc-qty button { width: 30px; height: 30px; border: 0; background: var(--bg); font-size: 16px; color: var(--ink); }
.qc-qty button:hover:not(:disabled) { background: var(--primary-tint); color: var(--primary-dark); }
.qc-qty button:disabled { opacity: .4; cursor: not-allowed; }
.qc-qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }
.qc-item__remove { width: 24px; height: 24px; border: 0; background: none; color: var(--ink-faint); font-size: 20px; line-height: 1; padding: 0; }
.qc-item__remove:hover { color: #d92d20; }

.qc-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.qc-row--muted { color: var(--ink-soft); padding-top: 8px; }
.qc-row--good { color: #067647; }
.qc-row--total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-size: 17px; font-weight: 700; }
.qc-row--total span:last-child { color: var(--accent); }

.qc-district { display: block; margin-bottom: 12px; }
.qc-district select,
.qc-field input,
.qc-field textarea {
	width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
	background: var(--surface); color: var(--ink); font-size: 15px;
}
.qc-district select:focus,
.qc-field input:focus,
.qc-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.qc-field { display: block; margin-bottom: 12px; }
.qc-field:last-child { margin-bottom: 0; }
.qc-hint { display: block; font-size: 13px; margin-top: 4px; line-height: 1.4; }
.qc-hint:empty { display: none; }
.qc-hint.is-ok { color: #067647; }
.qc-hint.is-ok::before { content: "✓ "; }
.qc-hint.is-bad { color: #c4320a; }
.qc-field textarea { resize: vertical; min-height: 64px; }

.qc-rates { display: grid; gap: 8px; }
.qc-rate {
	display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	cursor: pointer; font-size: 14px; transition: border-color .15s, background .15s;
}
.qc-rate input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
.qc-rate__label { flex: 1; font-weight: 500; }
.qc-rate__cost { font-weight: 700; }
.qc-rate.is-checked { border-color: var(--accent); background: var(--accent-tint); }

.is-invalid input,
.is-invalid textarea,
.is-invalid select { border-color: #d92d20 !important; background: #fff6f5; }
.qc-ship.is-invalid { border-color: #d92d20; }
.qc-terms.is-invalid { color: #d92d20; }

.qc-foot-info { grid-column: 1 / -1; display: grid; gap: 12px; }
.qc-foot-info:not(:has(.qc-terms)):has(.qc-errors[hidden]) { display: none; }
.qc-foot {
	grid-column: 1 / -1; display: grid; gap: 8px;
	position: sticky; bottom: -20px; z-index: 1;
	margin: 0 -20px -20px; padding: 12px 20px 14px;
	background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(16, 24, 40, .06);
}
.qc-cartlink { display: inline-block; font-size: 13px; font-weight: 600; margin-top: 4px; }
.qc-terms { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.qc-terms input { accent-color: var(--accent); width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0; }
.qc-errors { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.qc-errors p { margin: 0 0 4px; font-weight: 700; }
.qc-errors ul { margin: 0; padding-left: 18px; }
.qc-submit { width: 100%; padding: 15px 18px; font-size: 17px; }
.qc-submit:disabled { opacity: .7; cursor: wait; }
.qc-submit__total .woocommerce-Price-amount { color: inherit; }
.qc-note { text-align: center; font-size: 13px; color: var(--ink-faint); margin: 0; }

.qc-empty { text-align: center; padding: 40px 10px; color: var(--ink-soft); }
.qc-empty .icon { width: 48px; height: 48px; color: var(--ink-faint); margin-bottom: 8px; }

.qc-busy { position: absolute; inset: 0; background: rgba(255, 255, 255, .55); display: flex; align-items: center; justify-content: center; z-index: 2; }
.qc-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--primary-tint); border-top-color: var(--accent); animation: qc-spin .7s linear infinite; }
@keyframes qc-spin { to { transform: rotate(360deg); } }

/* Floating cart (desktop) */
.qc-float {
	position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 80;
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	width: 74px; padding: 10px 6px; border: 0; border-radius: 10px 0 0 10px;
	background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); font-size: 12px; line-height: 1.3;
}
.qc-float:hover { background: var(--primary-dark); }
.qc-float__icon .icon { width: 24px; height: 24px; }
.qc-float__meta { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.qc-float__total { background: #fff; color: var(--primary-dark); border-radius: 6px; padding: 2px 4px; width: 100%; text-align: center; font-weight: 700; }
.qc-float__total .woocommerce-Price-amount { color: inherit; }

/* Toast */
.qc-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 310; transform: translate(-50%, 20px); opacity: 0;
	display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 40px;
	background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 500; transition: all .25s; white-space: nowrap;
}
.qc-toast.is-open { transform: translate(-50%, 0); opacity: 1; }
.qc-toast__btn { border: 0; background: var(--accent); color: #fff; font-weight: 700; padding: 8px 16px; border-radius: 30px; }

/* Chat buttons */
.chat-float { position: fixed; right: 18px; bottom: 22px; z-index: 85; display: grid; gap: 10px; }
.chat-float__btn {
	width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	color: #fff; box-shadow: var(--shadow-lg); transition: transform .15s;
}
.chat-float__btn:hover { transform: scale(1.06); color: #fff; }
.chat-float__btn--whatsapp { background: #25d366; }
.chat-float__btn--messenger { background: #0866ff; }

@media (max-width: 960px) {
	.qc-float { display: none; }
	.chat-float { bottom: 78px; right: 12px; }
	.chat-float__btn { width: 46px; height: 46px; }
	.qc-toast { bottom: 76px; }
	.card-cart-btn { width: 36px !important; }
}

@media (max-width: 700px) {
	.qc-modal { padding: 0; align-items: flex-end; }
	.qc-modal__box { border-radius: 16px 16px 0 0; max-height: 94vh; transform: translateY(40px); }
	.qc-modal--checkout .qc-modal__box { height: 94vh; }
	.qc-grid { grid-template-columns: 1fr; gap: 12px; }
	.qc-col { gap: 12px; }
	.qc-body { padding: 12px; }
	.qc-head { padding: 12px 14px; }
	.qc-title { font-size: 16px; }
	.qc-foot { bottom: -12px; margin: 0 -12px -12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
	.qc-submit { padding: 13px 16px; font-size: 16px; }
	.qc-field input, .qc-field textarea, .qc-district select { font-size: 16px; } /* stops iOS zoom */
	.card-actions { gap: 4px; }
	.woocommerce ul.products li.product .card-buy-btn { padding: 8px 4px !important; font-size: 13px; }
}
