/* ==========================================================================
   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 { position: relative; z-index: 20; 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: 4px; min-height: 48px; }
.allcats-btn {
	display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-sm);
	background: var(--c-dark); color: var(--c-white); transition: background-color .15s var(--ease), color .15s var(--ease);
	font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.allcats-btn:hover { background: var(--c-dark-2); }
.allcats-btn[aria-expanded="true"] { background: var(--c-accent); color: var(--c-text); }
.allcats-btn .icon { width: 16px; height: 16px; }
.allcats-btn .icon--caret { transition: transform .2s var(--ease); }
.allcats-btn[aria-expanded="true"] .icon--caret { transform: rotate(180deg); }
.catnav__links { display: flex; flex: 1; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0 8px; overflow: hidden; flex-wrap: nowrap; }
.catnav__links a {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-sm); white-space: nowrap;
	font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(26,26,26,.8);
	transition: background-color .15s var(--ease), color .15s var(--ease);
}
.catnav__links a:hover { text-decoration: none; background: var(--c-surface); color: var(--c-text); }
.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 (preview: hover-open, icon roots, sub-category tiles, popular products) */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 55; animation: sey-fade-in .35s ease both; }
.mega[hidden] { display: none; }
.mega__panel {
	display: grid; grid-template-columns: 280px minmax(0, 1fr); height: min(72vh, 600px); min-height: 440px; overflow: hidden;
	background: var(--c-white); border: 1px solid var(--c-line); border-top: 0; border-radius: 0 0 16px 16px;
	box-shadow: 0 2px 4px rgba(10,10,10,.04), 0 18px 40px -16px rgba(10,10,10,.25);
}
.mega__roots { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; overscroll-behavior: contain; background: var(--c-surface); border-right: 1px solid var(--c-line); }
.mega__root {
	display: flex; align-items: center; gap: 12px; margin: 0 8px; padding: 8px 12px; border-radius: 8px;
	font-size: 13.5px; line-height: 1.25; color: rgba(26,26,26,.8); transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.mega__root:hover { text-decoration: none; color: var(--c-text); }
.mega__root.is-active { background: var(--c-white); color: var(--c-text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); }
.mega__root-icon { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; background: var(--c-white); transition: background-color .15s var(--ease); }
.mega__root.is-active .mega__root-icon { background: var(--c-accent); }
.mega__root-icon .icon { width: 16px; height: 16px; }
.mega__root-name { flex: 1; }
.mega__root-caret { width: 16px; height: 16px; flex-shrink: 0; opacity: .3; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.mega__root.is-active .mega__root-caret { opacity: 1; transform: translateX(2px); }
.mega__pane { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; padding: 28px; overflow-y: auto; animation: sey-fade-in .35s ease both; }
.mega__pane[hidden] { display: none; }
.mega__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mega__title { font-family: var(--f-sans); font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: -.025em; text-transform: none; }
.mega__desc { max-width: 28rem; margin-top: 4px; font-size: 13px; color: var(--c-muted); }
.mega__all { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--c-text); }
.mega__all:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega__all .icon { width: 16px; height: 16px; }
.mega__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.mega__tile { display: block; padding: 8px; border: 1px solid var(--c-line); border-radius: 12px; color: var(--c-text); transition: border-color .15s var(--ease); }
.mega__tile:hover { text-decoration: none; border-color: var(--c-text); }
.mega__tile-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--c-line-2); }
.mega__tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mega__tile:hover .mega__tile-img img { transform: scale(1.05); }
.mega__tile-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; padding: 0 2px; font-size: 13px; font-weight: 600; line-height: 1.375; }
.mega__popular { align-self: start; padding: 16px; border-radius: 12px; background: var(--c-surface); }
.mega__popular-title { margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.mega__popular ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.mega__product { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; background: var(--c-white); color: var(--c-text); transition: box-shadow .15s var(--ease); }
.mega__product:hover { text-decoration: none; box-shadow: 0 1px 2px rgba(10,10,10,.04), 0 8px 24px -12px rgba(10,10,10,.12); }
.mega__product-img { flex-shrink: 0; width: 48px; height: 48px; overflow: hidden; border-radius: 6px; background: var(--c-line-2); }
.mega__product-img img { width: 100%; height: 100%; object-fit: cover; }
.mega__product-body { display: grid; min-width: 0; }
.mega__product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 600; line-height: 1.375; }
.mega__product-price { font-size: 12.5px; font-weight: 600; }
@media (max-width: 1279px) {
	.mega__pane { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
	.mega__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 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; }
}
