/* QuickCart — quick-commerce theme styles */

/* ---------- Base ---------- */
:root {
	--qc-primary: #0C831F;
	--qc-primary-dark: #08671A;
	--qc-primary-soft: #F0FAF1;
	--qc-accent: #F8C537;
	--qc-accent-ink: #1F1F1F;
	--qc-text: #1F1F1F;
	--qc-muted: #666C75;
	--qc-line: #EBECEF;
	--qc-soft: #F5F7FA;
	--qc-bg: #FFFFFF;
	--qc-badge: #2563EB;
	--qc-radius: 12px;
	--qc-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--qc-shadow: 0 2px 12px rgba(16, 24, 40, .06);
	--qc-shadow-lg: 0 12px 40px rgba(16, 24, 40, .18);
	--qc-max: 1280px;
	--qc-header-h: 86px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--qc-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--qc-text);
	background: var(--qc-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--qc-primary); }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--qc-primary); outline-offset: 2px; }
.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: #fff; padding: 8px 12px; border-radius: 8px; }
[hidden] { display: none !important; }

.qc-container { width: 100%; max-width: var(--qc-max); margin: 0 auto; padding: 0 20px; }
.qc-narrow { max-width: 860px; }
.qc-main { min-height: 50vh; padding-bottom: 32px; }
.qc-home { padding-bottom: 8px; }
.qc-scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.qc-scroller::-webkit-scrollbar { display: none; }
.qc-ico { flex: 0 0 auto; }

.qc-btn, .button, button.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.wpcf7-submit, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--qc-primary); color: #fff; border: 0; border-radius: 10px;
	padding: 12px 22px; font-weight: 600; font-size: 15px; line-height: 1.2; transition: background .15s, transform .1s;
}
.qc-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .wpcf7-submit:hover { background: var(--qc-primary-dark); color: #fff; }
.qc-btn:active { transform: scale(.98); }
.qc-btn-block { width: 100%; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #respond input#submit.alt { background: var(--qc-primary); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--qc-primary-dark); }
.qc-icon-btn { background: none; border: 0; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; }
.qc-icon-btn:hover { background: var(--qc-soft); }
.qc-empty { padding: 20px; background: var(--qc-soft); border-radius: var(--qc-radius); color: var(--qc-muted); }

input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], input[type=password], input[type=url], select, textarea {
	font: inherit; width: 100%; padding: 12px 14px; border: 1px solid #D9DCE1; border-radius: 10px; background: #fff; color: var(--qc-text);
	transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--qc-primary); box-shadow: 0 0 0 3px var(--qc-primary-soft); }

/* ---------- Announcement ---------- */
.qc-announce { background: var(--qc-primary); color: #fff; font-size: 13px; font-weight: 500; text-align: center; padding: 7px 0; }

/* ---------- Header ---------- */
.qc-header { position: sticky; top: 0; z-index: 90; background: #fff; border-bottom: 1px solid var(--qc-line); transition: box-shadow .2s; }
.admin-bar .qc-header { top: 32px; }
.qc-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.qc-header-row { display: flex; align-items: center; gap: 24px; min-height: var(--qc-header-h); }
.qc-brand { display: flex; align-items: center; align-self: stretch; padding-right: 24px; border-right: 1px solid var(--qc-line); }
.qc-logo { display: inline-flex; align-items: center; gap: 8px; }
.qc-logo-img, .qc-logo img { height: var(--qc-logo-h); width: auto; }
.qc-logo-text { font-weight: 800; font-size: 26px; letter-spacing: -.6px; color: var(--qc-text); }
.qc-logo-text:hover { color: var(--qc-text); }
.qc-logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--qc-accent); color: var(--qc-accent-ink); }
.qc-logo-mark .qc-ico { fill: currentColor; }

.qc-deliver { background: none; border: 0; text-align: left; padding: 0; display: flex; flex-direction: column; min-width: 0; max-width: 240px; }
.qc-deliver b { font-size: 18px; font-weight: 800; white-space: nowrap; }
.qc-deliver > span { display: flex; align-items: center; gap: 2px; font-size: 13px; color: var(--qc-muted); }
.qc-loc-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.qc-search { position: relative; flex: 1; display: flex; align-items: center; background: var(--qc-soft); border: 1px solid var(--qc-line); border-radius: 12px; height: 48px; padding: 0 14px; gap: 10px; }
.qc-search:focus-within { background: #fff; border-color: var(--qc-primary); }
.qc-search > .qc-ico { color: var(--qc-muted); }
.qc-search input { border: 0; background: transparent; padding: 0; height: 100%; box-shadow: none !important; font-size: 15px; }
.qc-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.qc-search-ph { position: absolute; left: 44px; top: 50%; transform: translateY(-50%); color: #8A8F98; pointer-events: none; font-size: 15px; white-space: nowrap; }
.qc-search-ph i { font-style: normal; display: inline-block; animation: qcSlideUp .35s ease; }
.qc-search.has-value .qc-search-ph, .qc-search input:focus ~ .qc-search-ph { display: none; }
@keyframes qcSlideUp { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
.qc-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 14px; box-shadow: var(--qc-shadow-lg); padding: 8px; z-index: 5; max-height: 70vh; overflow: auto; }
.qc-sr-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.qc-sr-item:hover, .qc-sr-item.is-active { background: var(--qc-soft); color: inherit; }
.qc-sr-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--qc-soft); }
.qc-sr-item span { flex: 1; min-width: 0; }
.qc-sr-item small { display: block; color: var(--qc-muted); }
.qc-sr-item b { font-size: 14px; }
.qc-sr-empty { padding: 14px; color: var(--qc-muted); text-align: center; }

.qc-header-actions { display: flex; align-items: center; gap: 18px; }
.qc-account { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; }
.qc-cart-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--qc-primary); color: #fff; border: 0; border-radius: 10px; height: 50px; padding: 0 16px; min-width: 112px; font-weight: 700; }
.qc-cart-btn:hover { background: var(--qc-primary-dark); }
.qc-cart-btn-label { display: flex; flex-direction: column; line-height: 1.15; text-align: left; font-size: 14px; }
.qc-cart-btn-label small { font-size: 12px; font-weight: 600; }
.qc-cart-btn-label b { font-size: 14px; }
.qc-cart-btn-label .woocommerce-Price-amount { color: inherit; }
.qc-cart-btn.bump { animation: qcBump .35s ease; }
@keyframes qcBump { 50% { transform: scale(1.06); } }

.qc-catstrip { border-top: 1px solid var(--qc-line); }
.qc-catstrip .qc-container { gap: 4px; }
.qc-catstrip a { flex: 0 0 auto; padding: 11px 14px; font-size: 14px; color: var(--qc-muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.qc-catstrip a:hover { color: var(--qc-text); }
.qc-catstrip a.is-active { color: var(--qc-primary); border-bottom-color: var(--qc-primary); font-weight: 600; }

/* Header styles */
.qc-header-accent .qc-header { background: var(--qc-accent); border-bottom-color: transparent; }
.qc-header-accent .qc-header, .qc-header-accent .qc-deliver > span, .qc-header-accent .qc-catstrip a { color: var(--qc-accent-ink); }
.qc-header-accent .qc-brand { border-right-color: rgba(0,0,0,.1); }
.qc-header-accent .qc-search { background: #fff; }
.qc-header-accent .qc-logo-mark { background: #fff; color: var(--qc-text); }
.qc-header-accent .qc-catstrip { border-top-color: rgba(0,0,0,.08); }
.qc-header-accent .qc-catstrip a.is-active { color: var(--qc-accent-ink); border-bottom-color: var(--qc-accent-ink); }
.qc-header-dark .qc-header { background: #111418; border-bottom-color: #23272E; color: #fff; }
.qc-header-dark .qc-logo-text, .qc-header-dark .qc-logo-text:hover { color: #fff; }
.qc-header-dark .qc-deliver, .qc-header-dark .qc-account { color: #fff; }
.qc-header-dark .qc-deliver > span, .qc-header-dark .qc-catstrip a { color: #A6ABB4; }
.qc-header-dark .qc-brand, .qc-header-dark .qc-catstrip { border-color: #23272E; }
.qc-header-dark .qc-search { background: #1C2026; border-color: #2B3038; }
.qc-header-dark .qc-search input { color: #fff; }

/* ---------- Sections ---------- */
.qc-home { padding-top: 16px; }
.qc-section { margin: 26px 0; }
.qc-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.qc-sec-title { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.3px; }
.qc-see-all { color: var(--qc-primary); font-weight: 600; font-size: 17px; }
.qc-see-all:hover { color: var(--qc-primary-dark); }

/* Hero */
.qc-hero { position: relative; margin: 10px 0 24px; }
.qc-hero-track { gap: 16px; }
.qc-banner {
	position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: var(--qc-hero-h, 220px);
	border-radius: calc(var(--qc-radius) + 6px); overflow: hidden; background: var(--qc-banner-bg); display: flex; align-items: center; color: #fff;
}
.qc-banner:hover { color: #fff; }
.qc-banner.is-dark-ink, .qc-banner.is-dark-ink:hover { color: var(--qc-text); }
.qc-banner { background-image: linear-gradient(110deg, rgba(255,255,255,0) 40%, rgba(0,0,0,.14)); }
.qc-banner::before { content: ''; position: absolute; right: -6%; top: 50%; width: min(48%, 560px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: rgba(255,255,255,.16); }
.qc-banner.is-dark-ink::before { background: rgba(255,255,255,.45); }
.qc-banner-art { position: absolute; top: 6%; right: 2%; bottom: 6%; height: 88%; width: auto; max-width: 50%; object-fit: contain; object-position: right center; }
.qc-banner-copy { position: relative; z-index: 1; padding: 28px 36px; max-width: 58%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.qc-banner-title { font-size: clamp(22px, 3.2vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.6px; }
.qc-banner-sub { font-size: clamp(13px, 1.4vw, 17px); opacity: .95; }
.qc-banner-btn { margin-top: 10px; background: #fff; color: #111; padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.qc-hero-grid .qc-hero-track { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
.qc-hero-grid .qc-banner:first-child { grid-column: 1 / -1; }
.qc-hero-grid .qc-banner:not(:first-child) { min-height: calc(var(--qc-hero-h) * .8); }
.qc-hero-grid .qc-banner:not(:first-child) .qc-banner-title { font-size: 22px; }
.qc-hero-grid .qc-banner:not(:first-child) .qc-banner-copy { max-width: 64%; padding: 20px 22px; }
.qc-hero-grid .qc-banner:not(:first-child) .qc-banner-sub { font-size: 13px; }
.qc-hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.qc-hero-dots span { width: 6px; height: 6px; border-radius: 6px; background: #D5D8DE; transition: width .25s, background .25s; }
.qc-hero-dots span.is-active { width: 20px; background: var(--qc-primary); }

/* Category grid */
.qc-catgrid { display: grid; grid-template-columns: repeat(var(--qc-cols, 10), minmax(0, 1fr)); gap: 18px 14px; }
.qc-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.qc-cat-img { width: 100%; aspect-ratio: 1; border-radius: var(--qc-radius); background: #EAF4FB; overflow: hidden; display: grid; place-items: center; transition: transform .2s; }
.qc-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.qc-cat:hover .qc-cat-img { transform: translateY(-3px); }
.qc-cat-name { font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--qc-text); }
.qc-cat-count { font-size: 12px; color: var(--qc-muted); margin-top: -4px; }
.qc-catgrid-circle .qc-cat-img { border-radius: 50%; }

/* Product rail */
.qc-rail { position: relative; }
.qc-rail-track { gap: 14px; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.qc-rail-track > .qc-card { flex: 0 0 180px; scroll-snap-align: start; }
.qc-rail-btn {
	position: absolute; top: 40%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff;
	box-shadow: 0 4px 16px rgba(0,0,0,.16); display: grid; place-items: center; transition: opacity .2s;
}
.qc-rail-btn.prev { left: -18px; }
.qc-rail-btn.next { right: -18px; }
.qc-rail-btn[disabled] { opacity: 0; pointer-events: none; }
.qc-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }

/* Subcategory chips */
.qc-chips { gap: 10px; margin: -2px 0 14px; padding-bottom: 2px; }
.qc-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border: 1px solid var(--qc-line); border-radius: 40px; font-size: 13px; font-weight: 500; background: #fff; scroll-snap-align: start; }
.qc-chip:hover { border-color: var(--qc-primary); color: var(--qc-primary); background: var(--qc-primary-soft); }
.qc-chip-img { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--qc-soft); }
.qc-chip-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Product card ---------- */
.qc-card {
	position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--qc-line);
	border-radius: var(--qc-radius); box-shadow: 0 0 10px rgba(0,0,0,.03); padding: 10px 12px 12px; height: 100%; transition: box-shadow .2s, transform .2s;
}
.qc-card:hover { box-shadow: var(--qc-shadow); }
.qc-card-img { display: block; aspect-ratio: 1; border-radius: calc(var(--qc-radius) - 4px); overflow: hidden; margin-bottom: 8px; }
.qc-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.qc-card:hover .qc-card-img img { transform: scale(1.04); }
.qc-badge-off {
	position: absolute; top: 0; left: 12px; z-index: 2; background: var(--qc-badge); color: #fff; font-size: 10px; font-weight: 800;
	text-align: center; line-height: 1.1; padding: 6px 5px 9px; width: 30px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 88%, 50% 100%, 25% 88%, 0 100%);
}
.qc-card-body { display: flex; flex-direction: column; flex: 1; }
.qc-eta { align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; background: var(--qc-soft); border-radius: 5px; padding: 2px 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .2px; margin-bottom: 6px; }
.qc-card-title { font-size: 13px; font-weight: 600; line-height: 1.35; margin: 0 0 4px; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qc-card-unit { font-size: 12px; color: var(--qc-muted); min-height: 18px; margin-bottom: 10px; }
.qc-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.qc-price { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.qc-now { font-size: 13px; font-weight: 700; }
.qc-now del { display: none; }
.qc-now ins { text-decoration: none; }
.qc-was { font-size: 12px; color: var(--qc-muted); }
.qc-card.is-oos .qc-card-img img { filter: grayscale(1); opacity: .6; }
.qc-oos { font-size: 11px; font-weight: 600; color: var(--qc-muted); text-align: right; }

/* ADD / stepper */
.qc-add { position: relative; flex: 0 0 auto; width: 70px; height: 34px; }
.qc-add-btn {
	width: 70px; height: 34px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
	border: 1px solid var(--qc-primary); background: var(--qc-primary-soft); color: var(--qc-primary); border-radius: 8px; font-weight: 700; font-size: 13px; text-transform: uppercase;
}
.qc-add-btn small { font-size: 8.5px; font-weight: 500; text-transform: lowercase; margin-top: 2px; color: var(--qc-muted); }
.qc-add-btn:hover { background: var(--qc-primary); color: #fff; }
.qc-stepper { position: absolute; inset: 0; display: none; align-items: center; justify-content: space-between; background: var(--qc-primary); color: #fff; border-radius: 8px; overflow: hidden; }
.qc-stepper button { background: none; border: 0; color: #fff; height: 100%; width: 24px; display: grid; place-items: center; }
.qc-stepper button:hover { background: rgba(0,0,0,.12); }
.qc-qty { font-weight: 700; font-size: 14px; min-width: 16px; text-align: center; }
.qc-add.has-qty .qc-add-btn { visibility: hidden; }
.qc-add.has-qty .qc-stepper { display: flex; }
.qc-add.is-busy .qc-stepper, .qc-add.is-busy .qc-add-btn { opacity: .7; pointer-events: none; }
.qc-add-sm, .qc-add-sm .qc-add-btn { width: 64px; height: 30px; }

/* ---------- Features / promos ---------- */
.qc-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; background: var(--qc-soft); border-radius: calc(var(--qc-radius) + 4px); padding: 20px; }
.qc-feature { display: flex; gap: 12px; align-items: center; }
.qc-feature-ico { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--qc-primary); box-shadow: var(--qc-shadow); }
.qc-feature strong { display: block; font-size: 14px; }
.qc-feature small { color: var(--qc-muted); font-size: 12.5px; }
.qc-promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qc-promo { position: relative; overflow: hidden; border-radius: calc(var(--qc-radius) + 4px); min-height: 170px; padding: 22px; display: flex; align-items: center; }
.qc-promo img { position: absolute; right: 0; bottom: 0; height: 100%; width: 50%; object-fit: cover; }
.qc-promo-copy { position: relative; display: flex; flex-direction: column; gap: 6px; max-width: 60%; align-items: flex-start; }
.qc-promo strong { font-size: 20px; line-height: 1.2; }
.qc-promo span { font-size: 13px; opacity: .85; }
.qc-promo em { font-style: normal; font-weight: 700; font-size: 13px; background: var(--qc-text); color: #fff; padding: 7px 14px; border-radius: 8px; margin-top: 6px; }
.qc-promo.is-light-ink { color: #fff; }
.qc-promo.is-light-ink em { background: #fff; color: var(--qc-text); }

/* ---------- Archive ---------- */
.qc-wc { padding-top: 18px; }
.qc-archive.has-rail { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--qc-line); border-radius: var(--qc-radius); background: #fff; }
.qc-rail-nav { border-right: 1px solid var(--qc-line); position: sticky; top: calc(var(--qc-header-h) + 50px); align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; }
.qc-rail-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 14px; border-left: 4px solid transparent; border-bottom: 1px solid var(--qc-line); color: var(--qc-text); }
.qc-rail-item:hover { background: var(--qc-soft); color: var(--qc-text); }
.qc-rail-item.is-active { background: var(--qc-primary-soft); border-left-color: var(--qc-primary); font-weight: 600; }
.qc-rail-img { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px; overflow: hidden; background: var(--qc-soft); }
.qc-rail-img img { width: 100%; height: 100%; object-fit: cover; }
.qc-archive-main { min-width: 0; }
.qc-archive.has-rail .qc-archive-main { background: var(--qc-soft); padding: 0 16px 20px; }
.qc-archive-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 0; }
.qc-archive.has-rail .qc-archive-head { margin: 0 -16px 16px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--qc-line); }
.qc-page-title { font-size: 22px; margin: 0; }
.qc-archive-tools { display: flex; align-items: center; gap: 14px; }
.qc-archive-tools .woocommerce-result-count { margin: 0; font-size: 13px; color: var(--qc-muted); }
.qc-archive-tools .woocommerce-ordering { margin: 0; }
.qc-archive-tools select { padding: 8px 32px 8px 12px; font-size: 13px; width: auto; }
.qc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12.5px; color: var(--qc-muted); margin-bottom: 4px; }
.qc-breadcrumb .sep { display: inline-flex; opacity: .6; }
.woocommerce .term-description, .woocommerce .page-description { color: var(--qc-muted); margin-bottom: 14px; }

ul.products, .woocommerce ul.products { list-style: none; margin: 0; padding: 0; display: grid !important; grid-template-columns: repeat(var(--qc-cols, 5), minmax(0, 1fr)); gap: 14px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, ul.products li.qc-li { width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important; }
.woocommerce ul.products li.product .qc-card-title { font-size: 13px; padding: 0; margin: 0 0 4px; }
.woocommerce ul.products li.product a img { margin: 0; box-shadow: none; }
.woocommerce ul.products li.product .qc-price .woocommerce-Price-amount { color: inherit; font-size: inherit; }
.woocommerce ul.products.columns-4 { --qc-cols: 4; }
.woocommerce ul.products.columns-5 { --qc-cols: 5; }
.woocommerce ul.products.columns-6 { --qc-cols: 6; }
.woocommerce nav.woocommerce-pagination { margin-top: 24px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 8px; min-width: 38px; padding: 9px; background: #fff; border: 1px solid var(--qc-line); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--qc-primary); color: #fff; border-color: var(--qc-primary); }
.qc-archive .qc-catgrid-wrap { margin-top: 0; }

/* ---------- Single product ---------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding-top: 10px; }
.single-product div.product .woocommerce-product-gallery, .single-product div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product .woocommerce-product-gallery { border: 1px solid var(--qc-line); border-radius: var(--qc-radius); padding: 18px; align-self: start; }
.single-product div.product .woocommerce-tabs, .single-product div.product .related, .single-product div.product .upsells { grid-column: 1 / -1; }
.single-product .product_title { font-size: 26px; margin-bottom: 8px; }
.qc-single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.qc-single-meta .qc-eta { margin: 0; font-size: 11px; }
.qc-single-unit { font-size: 14px; color: var(--qc-muted); }
.qc-off-pill { background: var(--qc-badge); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--qc-text); font-size: 22px; font-weight: 700; }
.woocommerce div.product p.price del { color: var(--qc-muted); font-size: 15px; font-weight: 400; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product form.cart { display: flex; gap: 10px; align-items: stretch; margin: 18px 0; }
.woocommerce div.product form.cart .quantity .qty { height: 48px; width: 70px; border-radius: 10px; }
.woocommerce div.product form.cart .button { height: 48px; padding: 0 30px; }
.qc-why { list-style: none; padding: 16px; margin: 20px 0; background: var(--qc-soft); border-radius: var(--qc-radius); display: grid; gap: 12px; }
.qc-why li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.qc-why .qc-ico { color: var(--qc-primary); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--qc-line); display: flex; gap: 8px; }
.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 6px; font-weight: 600; color: var(--qc-muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--qc-primary); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--qc-text); }
.related > h2, .upsells > h2 { font-size: 22px; margin: 20px 0 14px; }

/* WooCommerce notices & misc */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border-radius: var(--qc-radius); border-top-color: var(--qc-primary); }
.woocommerce-message::before { color: var(--qc-primary); }
.woocommerce span.onsale { display: none; }
.qc-wc-page .woocommerce { padding: 10px 0 30px; }
.qc-page-head { padding: 24px 0 8px; }
.qc-entry { font-size: 16px; line-height: 1.75; }
.qc-entry a { color: var(--qc-primary); text-decoration: underline; }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button { background: var(--qc-primary) !important; color: #fff !important; border-radius: 10px !important; }

/* ---------- Footer ---------- */
.qc-footer { background: var(--qc-soft); margin-top: 24px; padding-top: 48px; font-size: 14px; }
.qc-footer-grid { display: grid; grid-template-columns: 1.3fr 1.6fr 1fr 1.3fr; gap: 36px; }
.qc-fcol h4 { font-size: 17px; margin-bottom: 14px; }
.qc-fcol p { color: var(--qc-muted); margin-top: 14px; }
.qc-flinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.qc-flinks-2 { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.qc-flinks a { color: var(--qc-muted); }
.qc-flinks a:hover { color: var(--qc-primary); }
.qc-social { display: flex; gap: 10px; margin-top: 16px; }
.qc-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--qc-text); color: #fff; display: grid; place-items: center; }
.qc-social a:hover { background: var(--qc-primary); color: #fff; }
.qc-contact-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.qc-contact-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--qc-muted); }
.qc-contact-list .qc-ico { margin-top: 2px; color: var(--qc-primary); }
.qc-footer-bottom { margin-top: 40px; border-top: 1px solid var(--qc-line); padding: 18px 0; font-size: 13px; color: var(--qc-muted); }
.qc-wa { position: fixed; right: 18px; bottom: 22px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--qc-shadow-lg); }
.qc-wa:hover { color: #fff; transform: scale(1.05); }

/* ---------- Sticky cart, drawer, modal ---------- */
.qc-sticky-cart { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 85; width: min(420px, calc(100% - 24px)); display: none; animation: qcRise .3s ease; }
@keyframes qcRise { from { transform: translate(-50%, 30px); opacity: 0; } }
.qc-sticky-inner { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--qc-primary); color: #fff; border: 0; border-radius: 14px; padding: 10px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); text-align: left; }
.qc-sticky-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.qc-sticky-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; }
.qc-sticky-txt b { font-size: 12px; text-transform: uppercase; }
.qc-sticky-cta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.qc-sticky-txt .woocommerce-Price-amount { color: #fff; font-weight: 700; font-size: 15px; }

.qc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 120; animation: qcFade .2s ease; }
@keyframes qcFade { from { opacity: 0; } }
.qc-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--qc-soft); z-index: 130; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.qc-drawer.is-open { transform: none; }
.qc-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--qc-line); }
.qc-drawer-head h3 { margin: 0; font-size: 18px; }
.qc-drawer-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.qc-drawer-scroll { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 12px; align-content: start; }
.qc-drawer-eta { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--qc-radius); padding: 14px; }
.qc-drawer-eta-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--qc-soft); display: grid; place-items: center; color: var(--qc-primary); }
.qc-drawer-eta b { display: block; font-size: 15px; }
.qc-drawer-eta small { color: var(--qc-muted); }
.qc-free-gap { background: #fff; border-radius: var(--qc-radius); padding: 12px 14px; font-size: 13px; }
.qc-free-gap i { display: block; height: 5px; border-radius: 5px; background: var(--qc-line); margin-top: 8px; position: relative; overflow: hidden; }
.qc-free-gap i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--qc-primary); border-radius: 5px; }
.qc-free-gap.is-done { color: var(--qc-primary); font-weight: 600; background: var(--qc-primary-soft); }
.qc-drawer-items { list-style: none; margin: 0; padding: 4px 14px; background: #fff; border-radius: var(--qc-radius); }
.qc-ditem { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--qc-line); }
.qc-ditem:last-child { border-bottom: 0; }
.qc-ditem-img { width: 64px; height: 64px; flex: 0 0 64px; border: 1px solid var(--qc-line); border-radius: 10px; overflow: hidden; }
.qc-ditem-img img { width: 100%; height: 100%; object-fit: cover; }
.qc-ditem-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.qc-ditem-name { font-size: 13px; }
.qc-ditem-info small { color: var(--qc-muted); font-size: 12px; }
.qc-ditem-info b { font-size: 13px; margin-top: 3px; }
.qc-ditem-remove { font-size: 13px; color: var(--qc-muted); }
.qc-bill { background: #fff; border-radius: var(--qc-radius); padding: 14px; font-size: 13px; display: grid; gap: 8px; }
.qc-bill h4 { font-size: 15px; margin: 0 0 2px; }
.qc-bill > div { display: flex; justify-content: space-between; gap: 10px; }
.qc-bill-total { font-weight: 700; font-size: 15px; padding-top: 8px; border-top: 1px dashed var(--qc-line); }
.qc-free { color: var(--qc-primary); font-weight: 600; }
.qc-free del { color: var(--qc-muted); font-weight: 400; }
.qc-drawer-foot { background: #fff; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(0,0,0,.05); }
.qc-checkout-bar { display: flex; align-items: center; justify-content: space-between; background: var(--qc-primary); color: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: 16px; }
.qc-checkout-bar:hover { background: var(--qc-primary-dark); color: #fff; }
.qc-checkout-bar > span:first-child { display: flex; flex-direction: column; line-height: 1.15; }
.qc-checkout-bar small { font-size: 10px; opacity: .85; letter-spacing: .4px; }
.qc-checkout-bar .woocommerce-Price-amount { color: #fff; }
.qc-checkout-bar > span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.qc-drawer-cartlink { display: block; text-align: center; font-size: 13px; color: var(--qc-muted); margin-top: 8px; text-decoration: underline; }
.qc-drawer-empty { margin: auto; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qc-empty-ico { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--qc-muted); }
.qc-drawer-empty p { color: var(--qc-muted); font-size: 14px; }
body.qc-drawer-open { overflow: hidden; }

.qc-modal { position: fixed; inset: 0; z-index: 140; background: rgba(0,0,0,.55); display: grid; place-items: start center; padding: 90px 16px 16px; animation: qcFade .2s ease; }
.qc-modal-box { position: relative; background: #fff; border-radius: 16px; width: min(640px, 100%); padding: 24px; box-shadow: var(--qc-shadow-lg); }
.qc-modal-box h3 { font-size: 18px; }
.qc-modal-x { position: absolute; right: 12px; top: 12px; }
.qc-loc-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.qc-loc-row .qc-btn { flex: 0 0 auto; white-space: nowrap; }
.qc-or { font-size: 12px; color: var(--qc-muted); border: 1px solid var(--qc-line); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; }

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

/* ---------- Contact Form 7 ---------- */
.qc-form-card { background: #fff; border: 1px solid var(--qc-line); border-radius: calc(var(--qc-radius) + 4px); padding: 26px; box-shadow: var(--qc-shadow); }
.wpcf7 form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.wpcf7 form label .wpcf7-form-control-wrap { display: block; margin-top: 6px; font-weight: 400; }
.wpcf7 form p { margin: 0; }
.qc-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.wpcf7-radio, .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.wpcf7-list-item { margin: 0; }
.wpcf7-list-item label { display: inline-flex !important; align-items: center; gap: 8px; border: 1px solid var(--qc-line); border-radius: 30px; padding: 8px 14px; margin: 0 !important; font-weight: 500 !important; cursor: pointer; }
.wpcf7-list-item input:checked + .wpcf7-list-item-label { color: var(--qc-primary); font-weight: 600; }
.wpcf7-acceptance .wpcf7-list-item label { border: 0; padding: 0; }
.wpcf7-submit { margin-top: 6px; padding: 13px 28px; cursor: pointer; }
.wpcf7-spinner { vertical-align: middle; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--qc-primary); background: var(--qc-primary-soft); }
.wpcf7-not-valid-tip { font-size: 12px; margin-top: 4px; }
.qc-inline-form, .qc-inline-form > p { display: flex; gap: 8px; align-items: stretch; margin: 0; width: 100%; }
.qc-inline-form .wpcf7-spinner { position: absolute; }
.qc-inline-form br { display: none; }
.qc-inline-form .wpcf7-form-control-wrap { flex: 1; }
.qc-inline-form .wpcf7-submit { margin: 0; padding: 12px 16px; }
.qc-form-inline .wpcf7 form .wpcf7-response-output { font-size: 12px; }

/* Store info cards (contact page) */
.qc-info-cards { display: grid; grid-template-columns: repeat(var(--qc-cols, 3), 1fr); gap: 16px; }
.qc-info-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--qc-line); border-radius: var(--qc-radius); padding: 18px; }
.qc-info-card .qc-feature-ico { flex: 0 0 46px; width: 46px; height: 46px; }
.qc-info-card strong { display: block; margin-bottom: 2px; }
.qc-info-card span, .qc-info-card a { color: var(--qc-muted); font-size: 14px; word-break: break-word; }

/* Blog */
.qc-posts { display: grid; gap: 20px; }
.qc-post-card { display: grid; grid-template-columns: 240px 1fr; gap: 20px; border: 1px solid var(--qc-line); border-radius: var(--qc-radius); overflow: hidden; }
.qc-post-card:not(.has-post-thumbnail) { grid-template-columns: 1fr; }
.qc-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qc-post-body { padding: 18px 18px 18px 0; }
.qc-post-card:not(.has-post-thumbnail) .qc-post-body { padding: 18px; }
.qc-post-body h2 { font-size: 20px; margin-bottom: 4px; }
.qc-post-body small { color: var(--qc-muted); }
.qc-404 { text-align: center; padding: 80px 20px; }
.qc-404-num { font-size: 110px; font-weight: 800; color: var(--qc-primary); line-height: 1; display: block; }
.qc-searchform { display: flex; gap: 8px; margin-top: 16px; }

/* Elementor: theme wrappers stay full width; containers handle their own width */
.qc-home .elementor, .qc-main > .elementor { width: 100%; }
.elementor-widget-qc-category-grid .qc-section, .elementor-widget-qc-hero .qc-hero, .elementor-widget-qc-category-sections .qc-section:first-child { margin-top: 0; }
.elementor-widget-qc-category-sections .qc-section:last-child, .elementor-widget-qc-product-row .qc-section, .elementor-widget-qc-features .qc-section, .elementor-widget-qc-promos .qc-section, .elementor-widget-qc-category-grid .qc-section { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.qc-catgrid { --qc-cols: 8 !important; }
	ul.products, .woocommerce ul.products { --qc-cols: 4 !important; }
	.qc-footer-grid { grid-template-columns: 1fr 1fr; }
	.qc-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	:root { --qc-header-h: auto; }
	.qc-header-row { flex-wrap: wrap; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
	.qc-brand { border: 0; padding: 0; order: 1; }
	.qc-deliver { order: 2; flex: 1; max-width: none; }
	.qc-deliver b { font-size: 16px; }
	.qc-header-actions { order: 3; }
	.qc-search { order: 4; flex: 1 0 100%; height: 44px; }
	.qc-cart-btn { display: none; }
	.qc-account span { display: none; }
	.qc-account { width: 38px; height: 38px; border-radius: 50%; background: var(--qc-soft); justify-content: center; }
	.qc-header-accent .qc-account { background: rgba(255,255,255,.6); }
	.qc-logo-text { font-size: 22px; }
	.qc-brand .qc-logo-text > span:last-child { display: none; }
	.qc-archive.has-rail { grid-template-columns: 84px 1fr; border-radius: 0; margin: 0 -20px; border-left: 0; border-right: 0; }
	.qc-rail-item { flex-direction: column; text-align: center; gap: 6px; padding: 10px 6px; font-size: 11px; line-height: 1.2; border-left: 0; border-right: 4px solid transparent; }
	.qc-rail-item.is-active { border-right-color: var(--qc-primary); }
	.qc-rail-img { width: 50px; height: 50px; flex-basis: 50px; }
	.qc-archive.has-rail .qc-archive-main { padding: 0 8px 20px; }
	.qc-archive.has-rail .qc-archive-head { margin: 0 -8px 10px; padding: 12px; }
	.qc-archive-head .qc-breadcrumb, .qc-archive-tools .woocommerce-result-count { display: none; }
	.qc-archive-head { align-items: center; padding: 12px 0; }
	.qc-archive-head .qc-page-title { font-size: 17px; }
	.qc-archive-tools select { padding: 6px 28px 6px 10px; font-size: 12px; }
	ul.products, .woocommerce ul.products { --qc-cols: 3 !important; gap: 8px; }
	.qc-archive.has-rail ul.products { --qc-cols: 2 !important; }
	.single-product div.product { grid-template-columns: 1fr; gap: 20px; }
	.single-product div.product .woocommerce-product-gallery { position: static; }
	.qc-promos { grid-template-columns: 1fr; }
	.qc-rail-btn { display: none; }
	.qc-hero-grid .qc-hero-track { display: flex; overflow-x: auto; }
	.qc-hero-grid .qc-banner, .qc-hero-grid .qc-banner:not(:first-child) { flex: 0 0 88%; min-height: 160px; }
	.qc-banner { flex-basis: 92%; }
	.qc-banner-copy { padding: 18px 20px; max-width: 60%; }
	.qc-banner::before { width: 70%; right: -22%; }
	.qc-banner-art { max-width: 46%; height: 70%; top: 15%; }
	.qc-banner-btn { padding: 8px 14px; font-size: 13px; }
	.qc-catstrip { display: none; }
	.qc-info-cards { grid-template-columns: 1fr; }

	body.qc-has-bottom-nav { padding-bottom: 64px; }
	.qc-bottom-nav {
		display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
		background: #fff; border-top: 1px solid var(--qc-line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
	}
	.qc-bottom-nav a, .qc-bottom-nav button { position: relative; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--qc-muted); padding: 2px 0; }
	.qc-bottom-nav .is-active { color: var(--qc-primary); font-weight: 600; }
	.qc-bn-count { position: absolute; top: -2px; left: calc(50% + 6px); background: var(--qc-primary); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
	.qc-bn-count:empty { display: none; }
	.qc-has-bottom-nav .qc-sticky-cart { bottom: calc(74px + env(safe-area-inset-bottom)); }
	.qc-has-bottom-nav .qc-wa { bottom: 84px; }
	.qc-sticky-cart { display: block; }
}
@media (min-width: 901px) {
	.qc-sticky-cart { display: none !important; }
}
@media (max-width: 600px) {
	.qc-container { padding: 0 12px; }
	.qc-archive.has-rail { margin: 0 -12px; }
	.qc-sec-title { font-size: 18px; }
	.qc-see-all { font-size: 14px; }
	.qc-section { margin: 20px 0; }
	.qc-catgrid { --qc-cols: var(--qc-cols-m, 4) !important; gap: 14px 10px; }
	.qc-cat-name { font-size: 11.5px; }
	.qc-rail-track > .qc-card { flex-basis: 146px; }
	.qc-card { padding: 8px 8px 10px; }
	.qc-card-title { font-size: 12.5px; }
	.qc-add, .qc-add-btn { width: 62px; height: 32px; }
	ul.products, .woocommerce ul.products { --qc-cols: 2 !important; }
	.qc-features { grid-template-columns: 1fr; padding: 16px; }
	.qc-footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.qc-fgrid { grid-template-columns: 1fr; }
	.qc-loc-row { flex-direction: column; align-items: stretch; }
	.qc-or { align-self: center; }
	.qc-post-card { grid-template-columns: 1fr; }
	.qc-post-body { padding: 0 16px 16px; }
	.admin-bar .qc-header { top: 0; }
	.qc-banner-title { font-size: 22px; }
	.qc-banner-sub { display: none; }
	.qc-form-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
