/* ==========================================================================
   Header (Figma: Header / Desktop) and Footer (Footer / Desktop)
   ========================================================================== */

.site-header { position: relative; z-index: 50; background: var(--c-white); }
.site-header.is-stuck .masthead { box-shadow: 0 1px 0 var(--c-line); }

/* Top bar ------------------------------------------------------------------ */
.topbar { background: var(--c-dark); color: var(--c-white); font-size: 12px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__group { display: flex; align-items: center; gap: 28px; }
.topbar__group--right { gap: 18px; }
.topbar .icon { width: 16px; height: 16px; }
.topbar a:hover { text-decoration: none; color: var(--c-accent); }
.topbar__deliver { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: inherit; font-size: 12px; }
.topbar__deliver strong { font-weight: 700; }
.topbar__deliver .icon--caret { width: 14px; height: 14px; margin-left: 12px; opacity: .8; }
.topbar__cod { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); }
.topbar__cod .icon { color: var(--c-accent); }
.topbar__link { color: rgba(255,255,255,.85); }
.topbar__seller { color: var(--c-accent); font-weight: 700; }

.mode-toggle { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--c-dark-2); }
.mode-toggle a {
	display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: var(--r-pill);
	color: rgba(255,255,255,.75); font-size: 12px; font-weight: 500;
}
.mode-toggle a[aria-current="true"] { background: var(--c-accent); color: var(--c-ink); font-weight: 600; }
.mode-toggle a:not([aria-current="true"]):hover { color: var(--c-white); }

.pill-select { position: relative; }
.pill-select > button {
	display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border: 0;
	border-radius: var(--r-pill); background: var(--c-dark-2); color: var(--c-white); font-size: 12px;
}
.pill-select > button .icon { width: 14px; height: 14px; }
.menu-pop {
	position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; z-index: 60;
	background: var(--c-white); color: var(--c-text); border-radius: var(--r-lg); box-shadow: var(--sh-pop);
	padding: 6px; list-style: none; margin: 0; border: 1px solid var(--c-line);
}
.menu-pop[hidden] { display: none; }
.menu-pop--left { right: auto; left: 0; }
.menu-pop a, .menu-pop button {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
	padding: 9px 12px; border: 0; border-radius: var(--r-md); background: none; font-size: 13px; color: var(--c-text); text-align: left;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--c-surface); text-decoration: none; color: var(--c-ink); }
.menu-pop [aria-current="true"] { font-weight: 700; }
.menu-pop [aria-current="true"]::after { content: "✓"; font-size: 12px; }
.menu-pop__label { padding: 8px 12px 4px; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }

/* Masthead ----------------------------------------------------------------- */
.masthead { background: var(--c-white); }
.masthead__inner { display: flex; align-items: center; gap: 48px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex: none; color: var(--c-ink); }
.brand:hover { text-decoration: none; }
.brand__mark { display: inline-flex; align-items: flex-end; font-family: var(--f-display); font-size: 34px; line-height: .82; letter-spacing: -.01em; }
.brand__dot { display: inline-block; width: 8px; height: 8px; background: var(--c-accent); margin-left: 3px; margin-bottom: 1px; }
.brand__sub {
	padding-left: 12px; border-left: 1px solid var(--c-line);
	font-family: var(--f-mono); font-size: 9.5px; line-height: 1.15; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3);
}
.brand img.custom-logo { max-height: 40px; width: auto; }
.brand--light { color: var(--c-white); }
.brand--light .brand__sub { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.25); }

.search-form { flex: 1; position: relative; }
.search-form__box {
	display: flex; align-items: center; height: 44px; padding: 3px 3px 3px 14px;
	border: 1.5px solid var(--c-text); border-radius: 6px; background: var(--c-white);
}
.search-form__box:focus-within { box-shadow: var(--focus); }
.search-form__box .icon { width: 18px; height: 18px; color: var(--c-muted); }
.search-form input[type="search"] {
	flex: 1; min-height: 0; height: 100%; border: 0; padding: 0 12px; box-shadow: none !important; background: none; font-size: 15px;
}
.search-form input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form__submit {
	height: 100%; padding: 0 20px; border: 0; border-radius: 4px; background: var(--c-dark); color: var(--c-white);
	font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.search-form__submit:hover { background: #000; }
.search-suggest {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70;
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-pop);
	padding: 6px; max-height: 420px; overflow: auto;
}
.search-suggest[hidden] { display: none; }
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-md); font-size: 14px; }
.search-suggest a:hover, .search-suggest a.is-active { background: var(--c-surface); text-decoration: none; }
.search-suggest img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; background: var(--c-surface); }
.search-suggest .price { margin-left: auto; font-size: 12px; }
.search-suggest__empty { padding: 14px; color: var(--c-muted); font-size: 13px; }

.header-actions { display: flex; align-items: center; gap: 28px; flex: none; }
.header-action { position: relative; display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--c-text); background: none; border: 0; padding: 0; }
.header-action:hover { text-decoration: none; color: var(--c-ink); }
.header-action .icon { width: 24px; height: 24px; stroke-width: 1.75; }
.header-action__count {
	position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px;
	display: grid; place-items: center; border-radius: var(--r-pill);
	background: var(--c-accent); color: var(--c-ink); font-size: 10px; font-weight: 700; font-family: var(--f-mono);
	border: 2px solid var(--c-white);
}
.header-action__count:empty, .header-action__count[data-count="0"] { display: none; }
.menu-toggle { display: none; }

/* Category nav ------------------------------------------------------------- */
.catnav { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-white); }
.catnav__inner { display: flex; align-items: center; gap: 22px; min-height: 44px; }
.allcats-btn {
	display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-sm);
	background: var(--c-dark); color: var(--c-white);
	font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.allcats-btn .icon { width: 16px; height: 16px; }
.allcats-btn .icon--caret { transition: transform .2s; }
.allcats-btn[aria-expanded="true"] .icon--caret { transform: rotate(180deg); }
.catnav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; overflow: hidden; flex-wrap: nowrap; }
.catnav__links a {
	display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r-xs); white-space: nowrap;
	font-family: var(--f-mono); font-size: 12.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text);
}
.catnav__links a:hover { text-decoration: none; background: var(--c-surface); }
.catnav__links .current-menu-item > a, .catnav__links a[aria-current="page"], .catnav__links .is-current > a { background: var(--c-dark); color: var(--c-white); }

/* Mega menu ---------------------------------------------------------------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 55; }
.mega[hidden] { display: none; }
.mega__backdrop { position: fixed; inset: 0; top: auto; height: 100vh; background: rgba(10,10,10,.35); z-index: -1; }
.mega__panel {
	display: grid; grid-template-columns: 260px 1fr 280px; min-height: 420px;
	background: var(--c-white); border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--sh-pop); overflow: hidden;
	border: 1px solid var(--c-line); border-top: 0;
}
.mega__roots { list-style: none; margin: 0; padding: 12px; background: var(--c-paper); border-right: 1px solid var(--c-line); }
.mega__roots button, .mega__roots a.mega__root {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px;
	border: 0; border-radius: var(--r-md); background: none; font-size: 14px; font-weight: 500; text-align: left; color: var(--c-text);
}
.mega__roots button .icon { width: 16px; height: 16px; color: var(--c-muted); }
.mega__roots button[aria-selected="true"], .mega__roots button:hover { background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line); font-weight: 700; }
.mega__pane { padding: 24px 28px; }
.mega__pane[hidden] { display: none; }
.mega__pane-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mega__pane-title { font-family: var(--f-display); font-size: 26px; text-transform: uppercase; font-weight: 400; }
.mega__cols { columns: 3 180px; column-gap: 28px; }
.mega__group { break-inside: avoid; margin-bottom: 20px; }
.mega__group-title { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.mega__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mega__group li a { font-size: 13px; color: var(--c-text-3); }
.mega__group li a:hover { color: var(--c-ink); }
.mega__promo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px; background: var(--c-dark); color: var(--c-white); overflow: hidden; }
.mega__promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mega__promo > * { position: relative; }
.mega__promo .eyebrow { color: var(--c-accent); }
.mega__promo strong { font-family: var(--f-display); font-size: 30px; line-height: 1; text-transform: uppercase; font-weight: 400; }
.mega__promo p { color: rgba(255,255,255,.75); font-size: 12px; }

/* Mobile drawer ------------------------------------------------------------ */
.mnav__section { padding: 8px 0 16px; border-bottom: 1px solid var(--c-line); }
.mnav__section:last-child { border-bottom: 0; }
.mnav__label { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); padding: 8px 0; }
.mnav__list { list-style: none; margin: 0; padding: 0; }
.mnav__list a, .mnav__list summary {
	display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none;
}
.mnav__list summary::-webkit-details-marker { display: none; }
.mnav__list details[open] > summary .icon { transform: rotate(180deg); }
.mnav__list details ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; border-left: 2px solid var(--c-line); }
.mnav__list details ul a { font-size: 14px; font-weight: 400; padding: 8px 0; color: var(--c-text-3); }
.mnav__row { display: flex; gap: 8px; flex-wrap: wrap; }
.mnav .mode-toggle { background: var(--c-surface); }
.mnav .mode-toggle a { color: var(--c-text-3); height: 32px; padding: 0 16px; font-size: 13px; }

/* Header — tablet & mobile -------------------------------------------------- */
@media (max-width: 1279px) {
	.masthead__inner { gap: 28px; }
	.header-actions { gap: 20px; }
	.topbar__group { gap: 18px; }
}
@media (max-width: 1023px) {
	.topbar__cod, .topbar__link, .topbar .pill-select { display: none; }
	.catnav { display: none; }
	.menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border: 0; background: none; }
	.menu-toggle .icon { width: 24px; height: 24px; }
	.masthead__inner { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; min-height: 0; }
	.brand { margin-right: auto; }
	.search-form { order: 5; flex-basis: 100%; }
	.header-action__label { display: none; }
	.header-action { padding: 8px; }
	.header-actions { gap: 4px; }
}
@media (max-width: 767px) {
	.topbar__inner { min-height: 36px; }
	.topbar__seller { display: none; }
	.brand__mark { font-size: 28px; }
	.brand__sub { font-size: 8.5px; padding-left: 10px; }
	.search-form__submit { padding: 0 12px; }
	.search-form__submit span { display: none; }
	.search-form__submit .icon { display: block !important; color: var(--c-white); }
}
@media (min-width: 768px) { .search-form__submit .icon { display: none; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: var(--s-20); background: var(--c-dark); color: var(--c-white); }
.trustbar { border-bottom: 1px solid rgba(255,255,255,.1); }
.trustbar__list {
	display: flex; justify-content: space-between; gap: 12px 24px; list-style: none; margin: 0 auto; padding-block: 18px;
	font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
}
.trustbar__list li { display: flex; align-items: center; gap: 10px; }
.trustbar__list .icon { color: var(--c-accent); width: 18px; height: 18px; }
.trustbar__list strong { font-weight: 500; }
.trustbar__list span { color: rgba(255,255,255,.5); }
.footer-main { display: grid; grid-template-columns: 330px 1fr; gap: 40px; padding-block: 48px 40px; }
.footer-about p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.5; margin-top: 20px; max-width: 320px; }
.footer-about h3 { font-size: 13px; font-weight: 600; margin: 28px 0 12px; }
.newsletter { display: flex; align-items: center; height: 44px; padding: 4px 4px 4px 16px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); }
.newsletter input { flex: 1; min-height: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--c-white); font-size: 13px; box-shadow: none !important; }
.newsletter input::placeholder { color: rgba(255,255,255,.85); }
.newsletter button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--c-accent); color: var(--c-ink); display: grid; place-items: center; }
.newsletter button .icon { width: 18px; height: 18px; }
.newsletter-msg { font-size: 12px; margin-top: 8px; color: var(--c-accent); }
.app-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.app-badge {
	display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: var(--r-md);
	border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: var(--c-white); line-height: 1.05;
}
.app-badge:hover { border-color: rgba(255,255,255,.5); text-decoration: none; }
.app-badge small { display: block; font-size: 9px; color: rgba(255,255,255,.75); }
.app-badge strong { font-size: 14px; font-weight: 600; }
.app-badge .icon { width: 22px; height: 22px; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.socials a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.socials .icon { width: 16px; height: 16px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-col h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col--shop ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.88); }
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: 12px; color: rgba(255,255,255,.7); }
.footer-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-pill); color: var(--c-white); font-weight: 600; }

@media (max-width: 1199px) {
	.footer-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1299px) {
	.trustbar__list { flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 767px) {
	.site-footer { margin-top: var(--s-14); }
	.trustbar__list { flex-direction: column; gap: 12px; font-size: 11px; }
	.footer-cols { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
	.footer-col--shop { grid-column: 1 / -1; }
	.footer-bottom__inner { flex-direction: column; align-items: flex-start; }
}

/* Mobile bottom tab bar ------------------------------------------------------ */
.tabbar { display: none; }
@media (max-width: 767px) {
	.tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(5, 1fr);
		background: var(--c-white); border-top: 1px solid var(--c-line); padding-bottom: env(safe-area-inset-bottom);
	}
	.tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; font-size: 10px; color: var(--c-text-3); border: 0; background: none; }
	.tabbar a[aria-current="page"] { color: var(--c-ink); font-weight: 700; }
	.tabbar .icon { width: 22px; height: 22px; }
	.tabbar .header-action__count { top: 2px; right: calc(50% - 22px); }
	body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
	body.woocommerce-checkout, body.sey-hide-tabbar { padding-bottom: 0; }
	body.woocommerce-checkout .tabbar, body.sey-hide-tabbar .tabbar { display: none; }
}
