/*
Theme Name: Home Depo
Theme URI: https://homedepo.co.za/
Description: Retail-chain style theme for Home Depo Hardware, Eastern Cape. Store picker, search, department menu, team photo hero, WhatsApp catalogue, specials, service tiles, all 18 departments, branch WhatsApp ordering and quotes. Edit everything under Appearance › Customize › Home Depo.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homedepo
*/

:root {
	--hd-primary: #D23435;
	--hd-secondary: #293E7D;
	--hd-dark: #1F2F61;
	--hd-ink: #1C1C1C;
	--hd-muted: #55554F;
	--hd-line: #E2E2DE;
	--hd-soft: #F6F5F1;
	--hd-yellow: #FFD84D;
	--hd-wa: #25D366;
	--hd-wa-ink: #0B2E17;
	--hd-head: "Poppins", system-ui, sans-serif;
	--hd-body: "Inter", system-ui, sans-serif;
	--hd-radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--hd-body); color: var(--hd-ink); background: #fff; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hd-ink); }
button { font: inherit; }
h1, h2, h3 { font-family: var(--hd-head); line-height: 1.15; margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--hd-yellow); padding: 12px 16px; font-weight: 700; }
:focus-visible { outline: 3px solid var(--hd-secondary); outline-offset: 2px; }

.hd-wrap { max-width: 1440px; margin: 0 auto; padding: 0 4%; }
.hd-section { padding: 56px 0; }
.hd-section--soft { background: var(--hd-soft); }
.hd-h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; margin-bottom: 22px; }
.hd-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 2px solid var(--hd-line); margin-bottom: 24px; }
.hd-section-head .hd-h2 { margin: 0; padding-bottom: 12px; }
.hd-section-head__note { padding-bottom: 12px; font-weight: 600; font-size: 14px; color: var(--hd-primary); }
.hd-section-head__side { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: flex-end; }
.hd-section-head__link { padding-bottom: 12px; font-weight: 600; font-size: 14px; color: #075E54; }

/* Buttons */
.hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 24px; border-radius: 26px; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.hd-btn--primary { background: var(--hd-primary); color: #fff; }
.hd-btn--secondary { background: var(--hd-secondary); color: #fff; }
.hd-btn--wa { background: var(--hd-wa); color: var(--hd-wa-ink); }
.hd-btn--yellow { background: var(--hd-yellow); color: var(--hd-ink); }
.hd-btn--ghost { border-color: #fff; color: #fff; }
.hd-btn--outline { border-color: var(--hd-ink); color: var(--hd-ink); }
.hd-btn--block { width: 100%; }
.hd-btn:hover { filter: brightness(1.07); }

/* Photo slots */
.hd-photo { position: relative; background: #5A5A55; overflow: hidden; }
.hd-photo img { width: 100%; height: 100%; object-fit: cover; }
.hd-photo__empty { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; color: #F1EFEA; font-size: 13px; font-weight: 500; }
.hd-photo__empty b { font-size: 11px; letter-spacing: .12em; color: var(--hd-yellow); }
.hd-photo--light { background: #F0EFEA; }
.hd-photo__empty--public { align-items: center; justify-content: center; color: var(--hd-primary); }
.hd-tile .hd-photo--none, .hd-product .hd-photo--none, .hd-store .hd-photo--none { display: none; }
.hd-pop .hd-photo--none { background: #fff; }
.hd-about .hd-photo--none, .hd-hero__media .hd-photo--none { background: var(--hd-primary); }
.hd-about .hd-photo--none .hd-photo__empty--public, .hd-hero__media .hd-photo--none .hd-photo__empty--public { color: #fff; }
.hd-photo--light .hd-photo__empty, .hd-photo--light .hd-photo__empty b { color: var(--hd-ink); }

/* WhatsApp top bar */
.hd-topbar { background: #075E54; color: #fff; font-size: 14px; position: relative; z-index: 30; }
.hd-topbar .hd-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; min-height: 44px; }
.hd-topbar a { color: #fff; text-decoration: none; }
.hd-topbar__wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding: 6px 0; }
.hd-topbar__wa strong { font-weight: 700; }
.hd-topbar__link { font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }
.hd-topbar__info { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.hd-topbar__info:last-child { margin-left: auto; font-weight: 600; opacity: 1; }

/* Header */
.hd-header .hd-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 16px; padding-bottom: 16px; }
.hd-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hd-brand .custom-logo { max-height: 64px; width: auto; }
.hd-brand__mark { width: 50px; height: 50px; border-radius: 6px; background: var(--hd-primary); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 28px var(--hd-head); }
.hd-brand__name { display: flex; flex-direction: column; line-height: 1; font-family: var(--hd-head); font-weight: 800; }
.hd-brand__name span:first-child { font-size: 15px; color: var(--hd-primary); }
.hd-brand__name span:last-child { font-size: 24px; color: var(--hd-ink); }

.hd-store-pick { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--hd-line); padding-left: 22px; }
.hd-store-pick svg { color: var(--hd-primary); flex-shrink: 0; }
.hd-store-pick label { display: block; font-size: 12px; color: var(--hd-muted); }
.hd-store-pick select { border: 0; background: transparent; font: 600 15px var(--hd-body); color: var(--hd-ink); padding: 2px 4px 2px 0; cursor: pointer; min-height: 32px; }

.hd-search { flex: 1 1 320px; display: flex; min-width: 0; }
.hd-search input { flex: 1; min-width: 0; height: 48px; border: 1px solid #C9C9C3; border-right: 0; border-radius: 24px 0 0 24px; padding: 0 20px; font: 400 15px var(--hd-body); }
.hd-search button { width: 58px; height: 48px; border: 0; border-radius: 0 24px 24px 0; background: var(--hd-primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Main nav */
.hd-nav { background: var(--hd-dark); position: relative; z-index: 20; }
.hd-nav .hd-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.hd-dept-toggle { background: var(--hd-primary); color: #fff; border: 0; padding: 0 22px; min-height: 52px; display: flex; align-items: center; gap: 10px; font: 600 15px var(--hd-head); cursor: pointer; }
.hd-nav__menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.hd-nav__menu a { color: #fff; text-decoration: none; display: block; padding: 15px 14px; font: 600 15px var(--hd-head); }
.hd-nav__menu a:hover, .hd-nav__menu .current-menu-item > a { color: var(--hd-yellow); }
.hd-nav__cta { margin-left: auto; padding: 6px 0; }
.hd-nav__burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; width: 48px; height: 48px; cursor: pointer; }

.hd-mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--hd-primary); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.hd-mega.is-open { display: block; }
.hd-mega ul { list-style: none; margin: 0; padding: 24px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 24px; }
.hd-mega a { display: block; padding: 10px 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--hd-line); }
.hd-mega a:hover { color: var(--hd-primary); }

/* Hero: team photo */
.hd-hero { background: var(--hd-soft); border-bottom: 1px solid var(--hd-line); }
.hd-hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding-top: 48px; padding-bottom: 48px; }
.hd-hero__copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 18px; }
.hd-hero__tag { font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--hd-primary); }
.hd-hero h1 { font-weight: 800; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; }
.hd-hero p { margin: 0; font-size: 18px; color: var(--hd-muted); max-width: 48ch; }
.hd-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hd-hero__facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 14px; }
.hd-hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hd-hero__facts svg { color: var(--hd-primary); }
.hd-hero__media { flex: 1 1 520px; margin: 0; }
.hd-hero__media .hd-photo { aspect-ratio: 16 / 10; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.hd-hero__media figcaption { margin-top: 10px; font-size: 13px; color: var(--hd-muted); }

/* Service tiles */
.hd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.hd-tile { border-radius: var(--hd-radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hd-line); text-decoration: none; }
.hd-tile .hd-photo { height: 170px; }
.hd-tile__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.hd-tile__body h3 { font-size: 21px; font-weight: 700; }
.hd-tile__body p { margin: 0; color: var(--hd-muted); font-size: 15px; }
.hd-tile__link { margin-top: auto; padding-top: 4px; font-weight: 600; color: var(--hd-primary); }

/* Product cards */
.hd-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.hd-products:not(.show-all):not(.is-filtered) .is-extra { display: none; }
.hd-product { border: 1px solid var(--hd-line); border-radius: var(--hd-radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.hd-product[hidden] { display: none; }
.hd-product__media { position: relative; background: #fff; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--hd-line); }
.hd-product__media img { width: 84%; height: 84%; object-fit: contain; }
.hd-product__badge { position: absolute; top: 10px; left: 10px; background: var(--hd-primary); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .03em; }
.hd-product__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.hd-product__name { font: 700 15px/1.3 var(--hd-body); margin: 0; }
.hd-product__unit { font-size: 13px; color: var(--hd-muted); }
.hd-product__prices { margin-top: auto; padding: 8px 0 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.hd-product__price { font: 800 24px var(--hd-head); color: var(--hd-primary); }
.hd-product__was { color: var(--hd-muted); font-size: 14px; }
.hd-product__per { font-size: 12px; color: var(--hd-muted); }
.hd-product .hd-btn { font-size: 14px; padding: 10px; }
.hd-product__quote { text-align: center; font-size: 13px; font-weight: 500; color: var(--hd-secondary); padding-top: 6px; }
.hd-more-wrap { text-align: center; margin-top: 24px; }

/* Promo banner */
.hd-promo { background: #111; background-image: linear-gradient(90deg, #111 0%, #111 55%, var(--hd-primary) 55.1%); color: #fff; }
.hd-promo__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 26px; padding-bottom: 26px; }
.hd-promo__copy { flex: 1 1 420px; }
.hd-promo__tag { display: inline-block; background: var(--hd-yellow); color: #111; font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 5px 10px; border-radius: 4px; margin-bottom: 10px; }
.hd-promo h2 { font-weight: 800; font-size: clamp(24px, 2.8vw, 36px); }
.hd-promo p { margin: 6px 0 0; color: #DADADA; }
.hd-promo__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hd-ended p { color: var(--hd-muted); max-width: 60ch; }
.hd-ended .hd-btn { margin: 6px 8px 0 0; }

/* Filter chips */
.hd-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 6px; scrollbar-width: thin; }
.hd-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--hd-line); border-radius: 22px; background: #fff; font: 600 14px var(--hd-body); color: var(--hd-ink); cursor: pointer; }
.hd-chip svg { color: var(--hd-primary); }
.hd-chip span { font-size: 12px; color: var(--hd-muted); }
.hd-chip.is-on { background: var(--hd-secondary); border-color: var(--hd-secondary); color: #fff; }
.hd-chip.is-on svg, .hd-chip.is-on span { color: #fff; }

/* Departments with icons */
.hd-section--depts { padding: 44px 0 36px; }
.hd-depts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hd-dept { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; background: #fff; border: 1px solid var(--hd-line); border-radius: var(--hd-radius); padding: 18px 10px 16px; text-decoration: none; min-height: 118px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hd-dept__icon { width: 52px; height: 52px; border-radius: 50%; background: #FCEBEB; color: var(--hd-primary); display: flex; align-items: center; justify-content: center; }
.hd-dept__name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.hd-dept:hover { border-color: var(--hd-primary); box-shadow: 0 6px 18px rgba(31,47,97,.10); transform: translateY(-2px); }
.hd-dept:hover .hd-dept__icon { background: var(--hd-primary); color: #fff; }
.hd-mega a { display: flex; align-items: center; gap: 10px; }
.hd-mega svg { color: var(--hd-primary); flex-shrink: 0; }
.hd-page-hero__sub { margin: 8px 0 0; color: #C9CFE3; font-weight: 500; }

/* Steps */
.hd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.hd-step { background: #fff; border-radius: var(--hd-radius); padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.hd-step__n { width: 52px; height: 52px; border-radius: 50%; background: var(--hd-primary); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 22px var(--hd-head); }
.hd-step h3 { font-size: 18px; font-weight: 700; }
.hd-step p { margin: 0; color: var(--hd-muted); font-size: 15px; }

/* About */
.hd-about { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hd-about .hd-photo { flex: 1 1 420px; min-height: 360px; border-radius: var(--hd-radius); }
.hd-about__copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.hd-about__copy p { margin: 0; font-size: 17px; color: var(--hd-muted); }
.hd-values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hd-values li { display: inline-flex; align-items: center; gap: 6px; background: var(--hd-soft); border: 1px solid var(--hd-line); padding: 8px 14px; border-radius: 20px; font-weight: 600; font-size: 14px; }
.hd-values svg { color: var(--hd-secondary); }

/* Reviews */
.hd-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.hd-review { background: #fff; border-radius: var(--hd-radius); padding: 26px; border-top: 5px solid var(--hd-secondary); display: flex; flex-direction: column; gap: 14px; margin: 0; }
.hd-review p { margin: 0; font-size: 16px; }
.hd-review cite { font-style: normal; font-weight: 700; }

/* Stores */
.hd-stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.hd-store { background: #fff; border: 1px solid var(--hd-line); border-radius: var(--hd-radius); overflow: hidden; display: flex; flex-direction: column; }
.hd-store .hd-photo { height: 150px; }
.hd-store__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.hd-store h3 { font-size: 20px; font-weight: 700; }
.hd-store p { margin: 0; color: var(--hd-muted); font-size: 14px; }
.hd-store .hd-store__mgr { color: var(--hd-ink); font-weight: 600; }
.hd-store .hd-photo { height: 190px; }
.hd-store__btns { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.hd-store__btns .hd-btn { flex: 1; font-size: 14px; padding: 9px 10px; }
.hd-store.is-mine { border-color: var(--hd-primary); box-shadow: 0 0 0 2px var(--hd-primary); }

/* Brands: sliding row */
.hd-section--brands { padding: 40px 0; border-top: 1px solid var(--hd-line); }
.hd-section--brands .hd-h2 { margin-bottom: 16px; }
.hd-brands { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hd-brands__track { display: flex; gap: 14px; width: max-content; animation: hd-marquee 60s linear infinite; }
.hd-brands:hover .hd-brands__track, .hd-brands:focus-within .hd-brands__track { animation-play-state: paused; }
.hd-brands__item { flex: 0 0 150px; height: 80px; background: #fff; border: 1px solid var(--hd-line); border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 10px 16px; }
.hd-brands__item img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
@keyframes hd-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) {
	.hd-brands { overflow-x: auto; }
	.hd-brands__track { animation: none; }
}

/* Footer: short and clean */
.hd-footer { background: var(--hd-dark); color: #C9CFE3; font-size: 14px; }
.hd-footer a { color: #fff; text-decoration: none; }
.hd-footer a:hover { color: var(--hd-yellow); }
.hd-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 22px; }
.hd-footer__brand { font: 800 20px var(--hd-head); color: #fff; line-height: 1.1; }
.hd-footer__brand span { color: var(--hd-primary); }
.hd-footer__brand small { display: block; font: 500 13px var(--hd-body); color: #C9CFE3; margin-top: 4px; }
.hd-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hd-footer__links a { font-weight: 600; }
.hd-footer__contact { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.hd-footer__contact a { display: inline-flex; align-items: center; gap: 6px; }
.hd-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; }
.hd-footer__base a { color: #C9CFE3; }

/* Inner pages */
.hd-page-hero { background: var(--hd-dark); color: #fff; padding: 44px 0; }
.hd-page-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
.hd-content { max-width: 820px; font-size: 17px; padding: 44px 0 64px; }
.hd-content a { color: var(--hd-secondary); font-weight: 600; }
.hd-content img { border-radius: var(--hd-radius); }
.hd-post { padding: 24px 0; border-bottom: 1px solid var(--hd-line); }
.hd-post h2 { font-size: 24px; margin-bottom: 6px; }
.hd-post h2 a { text-decoration: none; }

@media (max-width: 1100px) {
	.hd-depts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.hd-promo { background: #111; }
	.hd-promo__btns .hd-btn { flex: 1; }
	.hd-depts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.hd-dept { min-height: 96px; padding: 12px 6px; gap: 6px; }
	.hd-dept__icon { width: 42px; height: 42px; }
	.hd-dept__icon svg { width: 22px; height: 22px; }
	.hd-dept__name { font-size: 12.5px; }
	.hd-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hd-product__body { padding: 10px 10px 12px; }
	.hd-product__name { font-size: 13.5px; }
	.hd-store-pick { border-left: 0; padding-left: 0; order: 3; }
	.hd-search { order: 4; flex-basis: 100%; }
	.hd-header__quote { display: none; }
	.hd-topbar { position: sticky; top: 0; }
	.hd-topbar__info, .hd-topbar__link { display: none; }
	.hd-topbar { font-size: 13px; }
	.hd-topbar .hd-wrap { justify-content: space-between; }
	.hd-hero__grid { padding-top: 20px; padding-bottom: 32px; }
	.hd-hero__media { order: -1; flex-basis: auto; }
	.hd-hero__copy { flex-basis: auto; }
	.hd-hero__btns .hd-btn { width: 100%; }
	.hd-brands__item { flex-basis: 120px; height: 64px; }
	.hd-footer__row, .hd-footer__base { justify-content: center; text-align: center; }
	.hd-footer ul, .hd-footer__contact { justify-content: center; }
	.hd-nav__menu { display: none; width: 100%; }
	.hd-nav__menu.is-open { display: block; }
	.hd-nav__menu ul { flex-direction: column; }
	.hd-nav__burger { display: flex; align-items: center; justify-content: center; }
	.hd-dept-toggle { flex: 1; }
	.hd-product__price { font-size: 20px; }
	.hd-product .hd-btn { font-size: 13px; padding: 10px 8px; }
	.hd-section { padding: 40px 0; }
}

/* ===== v3: app-style layout ===== */

/* Banner carousel */
.hd-banners { padding: 20px 0 6px; }
.hd-banners__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.10); aspect-ratio: 2.6 / 1; background: var(--hd-dark); }
.hd-banners__track::-webkit-scrollbar { display: none; }
.hd-banner { flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden; }
.hd-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-banner > a { display: block; height: 100%; }
.hd-banner__text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 4% 5%; color: #fff; }
.hd-banner--team::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,28,60,.88) 0%, rgba(20,28,60,.55) 45%, rgba(20,28,60,0) 75%); }
.hd-banner--team .hd-banner__text { z-index: 1; max-width: 640px; }
.hd-banner__tag { font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--hd-yellow); }
.hd-banner h1, .hd-banner h2 { font-weight: 800; font-size: clamp(20px, 3.4vw, 46px); line-height: 1.08; }
.hd-banner--finance { background: linear-gradient(120deg, var(--hd-secondary) 0%, var(--hd-dark) 70%); }
.hd-banner--finance strong { color: var(--hd-yellow); display: block; font-size: 1.5em; }
.hd-banner--finance p { margin: 0; color: #C9CFE3; font-weight: 500; }
.hd-banners__dots { display: flex; justify-content: center; gap: 10px; padding: 14px 0 0; }
.hd-banners__dots span { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #C9CCD6; background: #fff; }
.hd-banners__dots span.is-on { background: var(--hd-primary); border-color: var(--hd-primary); width: 16px; height: 16px; margin-top: -2px; }

/* Category photo cards */
.hd-section--cards { padding: 22px 0 36px; }
.hd-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hd-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; text-decoration: none; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.10); transition: transform .15s, box-shadow .15s; }
.hd-card__img { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--hd-primary); }
.hd-card__img img { width: 78%; height: 86%; object-fit: contain; }
.hd-card__label { background: var(--hd-secondary); color: #fff; text-align: center; font: 700 clamp(16px, 1.6vw, 21px) var(--hd-head); padding: 14px 8px; }
.hd-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }

/* Bottom app bar (phones) */
.hd-appbar { display: none; }

/* Side drawer menu */
.hd-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: #fff; z-index: 200; transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto; border-radius: 0 18px 18px 0; box-shadow: 8px 0 30px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.hd-drawer.is-open { transform: translateX(0); }
.hd-drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 190; }
.hd-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 18px 18px 22px; border-bottom: 1px solid var(--hd-line); }
.hd-drawer__close { background: none; border: 0; color: #8A90A3; width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hd-drawer__list { list-style: none; margin: 0; padding: 8px 0; }
.hd-drawer__list--2 { border-top: 1px solid var(--hd-line); }
.hd-drawer__link { display: flex; align-items: center; gap: 18px; width: 100%; padding: 13px 22px; min-height: 52px; text-decoration: none; color: var(--hd-ink); font: 500 17px var(--hd-body); background: none; border: 0; cursor: pointer; text-align: left; }
.hd-drawer__link svg:first-child { color: #6B7184; flex-shrink: 0; }
.hd-drawer__link span { flex: 1; }
.hd-drawer__link svg:last-child:not(:first-child) { color: #A5AABB; }
.hd-drawer__link:hover { background: var(--hd-soft); color: var(--hd-primary); }
.hd-drawer__link:hover svg:first-child { color: var(--hd-primary); }
.hd-drawer__foot { margin-top: auto; padding: 16px 22px 24px; border-top: 1px solid var(--hd-line); font-size: 13px; color: var(--hd-muted); display: flex; flex-direction: column; gap: 6px; }
.hd-drawer__foot a { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--hd-ink); text-decoration: none; font-size: 15px; }
body.hd-sheet-open { overflow: hidden; }

@media (max-width: 900px) {
	.hd-topbar { display: none; }
	.hd-header .hd-wrap { padding-top: 12px; padding-bottom: 10px; gap: 12px; }
	.hd-store-pick { order: 4; flex-basis: 100%; border: 1px solid var(--hd-line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
	.hd-store-pick select { width: 100%; font-size: 16px; color: var(--hd-secondary); }
	.hd-search { order: 3; }
	.hd-nav { background: none; position: static; }
	.hd-dept-toggle, .hd-nav__burger { display: none !important; }
	.hd-nav__menu { display: none !important; }
	.hd-mega { position: fixed; left: 0; right: 0; top: auto; bottom: 76px; max-height: 72vh; overflow-y: auto; border-radius: 18px 18px 0 0; border-bottom: 0; box-shadow: 0 -10px 30px rgba(0,0,0,.2); z-index: 120; }
	.hd-mega ul { grid-template-columns: 1fr 1fr; padding: 16px 0 20px; }
	.hd-banners { padding-top: 14px; }
	.hd-banners__track { aspect-ratio: 2.1 / 1; border-radius: 14px; }
	.hd-banner__text { gap: 8px; padding: 14px 16px; }
	.hd-banner__tag { font-size: 10px; }
	.hd-banner .hd-btn { min-height: 38px; padding: 8px 14px; font-size: 13px; }
	.hd-banner--finance p { display: none; }
	.hd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.hd-card__label { padding: 12px 6px; }
	body { padding-bottom: 104px; }
	.hd-appbar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; background: var(--hd-secondary); border-top: 4px solid var(--hd-primary); padding: 8px 2px calc(8px + env(safe-area-inset-bottom)); }
	.hd-appbar__item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-decoration: none; background: none; border: 0; font: 500 11.5px var(--hd-body); cursor: pointer; min-height: 52px; padding: 4px 0; }
	.hd-appbar__item[aria-expanded="true"] { color: var(--hd-yellow); }
	.hd-appbar__tab { position: absolute; left: 50%; top: -38px; transform: translateX(-50%); background: var(--hd-primary); color: #fff; text-decoration: none; font: 600 14px var(--hd-body); padding: 8px 18px 10px; border-radius: 16px 16px 0 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; max-width: 86vw; overflow: hidden; text-overflow: ellipsis; }
}
