/* ==========================================================================
   Theme layer – clean, warm, "feel good" storefront.
   Colours and fonts come from Admin → Branding (CSS variables set in the layout).
   ========================================================================== */
:root {
	--radius: 20px;
	--shadow-sm: 0 2px 10px rgba(20, 40, 20, .06);
	--shadow: 0 14px 40px rgba(20, 50, 25, .10);
	--line: #ECE5D3;
	--muted: #5B6455;
	--ink: #1C251A;
}
body { font-family: var(--font-body), system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--cream); }
h1, h2, h3, h4, .pcard__name, .cat strong { font-family: var(--font-head), var(--font-body), sans-serif; }
h1 { letter-spacing: -.8px; }
h2 { letter-spacing: -.5px; }
.btn { font-family: var(--font-body), sans-serif; border-radius: 999px; padding-left: 24px; padding-right: 24px; box-shadow: 0 6px 16px rgba(0, 0, 0, .08); }
.btn--ghost, .btn--light { box-shadow: none; }
.btn--sm { padding-left: 16px; padding-right: 16px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.kicker { color: var(--green); letter-spacing: 1.6px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.kicker.center { display: flex; justify-content: center; }
.section { padding: 76px 0; }
.section--soft { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; max-width: 620px; }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.topbar { background: var(--deep); font-size: 13px; }
.header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 40, 20, .08); border-bottom-color: var(--line); }
.header .wrap { min-height: 72px; }
.logo img { height: 48px; }
.nav a { border-radius: 999px; padding: 9px 14px; font-size: 14.5px; }
.nav a.is-active { background: var(--light); color: var(--deep); }
.icon-btn { border-radius: 999px; }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 90% -10%, var(--light), transparent 60%), radial-gradient(700px 400px at -10% 110%, #FFF1CF, transparent 60%), var(--cream); padding: 70px 0 84px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.05; }
.hero h1 span { color: var(--green); position: relative; white-space: nowrap; }
.hero h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--sun); opacity: .45; border-radius: 4px; z-index: -1; }
.hero .lead { font-size: 18.5px; }
.ticks li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; box-shadow: var(--shadow-sm); }
.hero__media { position: relative; }
.hero__img { border-radius: 32px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero__img img { transform: rotate(-1.5deg) scale(1.06); }
.hero__badge { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.3; animation: float 6s ease-in-out infinite; }
.hero__badge strong { display: block; color: var(--deep); font-size: 15px; }
.hero__badge span.ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--light); font-size: 20px; flex: none; }
.hero__badge--a { left: -26px; bottom: 34px; }
.hero__badge--b { right: -14px; top: 26px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero__badge { animation: none; } .pcard, .cat-tile img { transition: none !important; } }

/* Trust strip */
.trust { margin-top: -38px; position: relative; z-index: 2; }
.trust__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.trust__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.trust__item strong { display: block; font-size: 15px; color: var(--deep); }
.trust__item span { font-size: 13px; color: var(--muted); }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cat-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--light); text-decoration: none; box-shadow: var(--shadow-sm); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile__label { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cat-tile__label strong { font-family: var(--font-head), sans-serif; color: var(--deep); font-size: 18px; line-height: 1.2; }
.cat-tile__label small { display: block; color: var(--muted); font-size: 12.5px; }
.cat-tile__label i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; transition: transform .2s; }
.cat-tile:hover .cat-tile__label i { transform: translateX(3px); }

/* Product cards */
.pcard { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pcard:hover { box-shadow: var(--shadow); }
.pcard__img { margin: 10px 10px 0; border-radius: 16px; overflow: hidden; }
.pcard__img img { transition: transform .5s; }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__cat { color: var(--green); font-size: 11.5px; }
.pcard__name { font-size: 18.5px; }
.pcard__price { color: var(--ink); font-size: 18px; }
.pcard__btns .btn { box-shadow: none; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--cream); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature .ico { width: 54px; height: 54px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Steps */
.steps2 { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 22px; counter-reset: s; position: relative; }
.steps2::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; border-top: 2px dashed var(--line); }
.step2 { text-align: center; position: relative; }
.step2 b { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 0 0 8px var(--cream); position: relative; }
.step2 h3 { margin-bottom: 4px; }
.step2 p { color: var(--muted); margin: 0 auto; max-width: 260px; }

/* Testimonials */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.review .stars { color: #F2A922; letter-spacing: 2px; font-size: 17px; }
.review p { margin: 0; font-size: 15.5px; }
.review footer { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.review .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--light); color: var(--deep); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.review footer strong { display: block; font-size: 15px; }
.review footer span { font-size: 13px; color: var(--muted); }

/* CTA band */
.band { background: linear-gradient(120deg, var(--deep), var(--green)); border-radius: 28px; margin: 0 22px 72px; max-width: 1156px; margin-left: auto; margin-right: auto; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -90px; top: -120px; background: rgba(255, 255, 255, .07); }
.band .wrap { position: relative; z-index: 1; }

/* Footer */
.footer { background: #13210F; margin-top: 0; }
.footer-logo { height: 50px; width: auto; margin-bottom: 14px; }
.footer h4 { color: #fff; letter-spacing: .3px; }

/* Forms */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea { border-radius: 12px; }

/* Mobile bottom navigation (app-like) */
.mnav { display: none; }
@media (max-width: 900px) {
	.mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
	.mnav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
	.mnav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
	.mnav a.is-active { color: var(--green); }
	.mnav b { position: absolute; top: 0; left: 55%; min-width: 17px; height: 17px; border-radius: 9px; background: var(--sun); color: var(--ink); font-size: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
	body { padding-bottom: 70px; }
	.wa-float { bottom: 84px !important; }
	.topbar span:first-child { display: none; }
	.topbar .wrap { justify-content: center; }
	.hero { padding: 36px 0 70px; }
	.hero .wrap { grid-template-columns: 1fr; }
	.hero__media { max-width: 460px; margin: 0 auto; width: 100%; }
	.hero__badge--a { left: 4px; bottom: 16px; }
	.hero__badge--b { right: 4px; top: 12px; }
	.trust__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trust__item:nth-child(3) { border-left: 0; }
	.trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
	.cat-tiles, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section { padding: 56px 0; }
	.band { border-radius: 0; margin-bottom: 0; }
}
@media (max-width: 560px) {
	.hero h1 { font-size: 36px; }
	.trust__item { padding: 12px 10px; gap: 10px; }
	.trust__item .ico { width: 38px; height: 38px; font-size: 18px; }
	.cat-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
	.cat-tile { aspect-ratio: 1 / 1.05; }
	.cat-tile__label { left: 8px; right: 8px; bottom: 8px; padding: 9px 10px; }
	.cat-tile__label strong { font-size: 15px; }
	.cat-tile__label small, .cat-tile__label i { display: none; }
	.reviews { grid-template-columns: 1fr; }
	.features { grid-template-columns: 1fr; }
	.steps2 { grid-template-columns: 1fr; }
	.steps2::before { display: none; }
	.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pcard__body { padding: 10px 12px 14px; }
	.pcard__name { font-size: 16px; }
	.pcard__btns { grid-template-columns: 1fr; }
	.hero__badge { font-size: 12px; padding: 9px 12px; }
	.hero__badge span.ico { width: 32px; height: 32px; font-size: 16px; }
}

/* Order status pills (customer account & tracking) – same colours as the admin */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid transparent; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--pending, .status--new { background: #FEF6E0; color: #92400E; border-color: #FCE3A6; }
.status--paid, .status--quoted { background: #EAF1FF; color: #1D4ED8; border-color: #C9DAFF; }
.status--processing { background: #EEF0FF; color: #4338CA; border-color: #D4D8FE; }
.status--shipped, .status--accepted { background: #E6F6FD; color: #0369A1; border-color: #BAE6FD; }
.status--delivered { background: #E7F8EE; color: #047857; border-color: #B7EBCB; }
.status--cancelled, .status--declined { background: #FDECEF; color: #BE123C; border-color: #FBCFD8; }
.status--refunded, .status--closed { background: #F2F2EF; color: #57534E; border-color: #E2E1DC; }
