/* =============================================================================
   NAILIVA STORE — HEADER / ANNOUNCEMENT BAR / DRAWERS / FOOTER
   Matches the reference exactly: only the announcement bar is solid
   near-black. The main header sits on the same cream as the page body,
   with a hairline bottom border and near-black text/icons. The footer is
   the deeper cream alt surface (--color-bg-alt), not a dark band.
   ============================================================================= */

.site-header-sticky { position: sticky; top: 0; z-index: 100; width: 100%; }

/* -----------------------------------------------------------------------
   ANNOUNCEMENT BAR
   ----------------------------------------------------------------------- */
.announcement-bar {
	background-color: var(--color-bg-dark);
	color: var(--color-text-on-dark);
	height: var(--announcement-height);
	display: flex; align-items: center; overflow: hidden;
}
.announcement-track { position: relative; width: 100%; height: 100%; }
.announcement-item {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	margin: 0; padding-inline: 16px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
	text-transform: uppercase; text-align: center; opacity: 0; transition: opacity var(--transition-base);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.announcement-item.is-active { opacity: 1; }
.announcement-row-desktop { display: none; }

/* -----------------------------------------------------------------------
   MAIN HEADER
   ----------------------------------------------------------------------- */
.site-header {
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	height: var(--header-height);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.hamburger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; }
.hamburger-box { position: relative; display: block; width: 20px; height: 14px; }
.hamburger-line {
	position: absolute; left: 0; width: 100%; height: 1.5px;
	background-color: var(--color-text);
	transition: transform var(--transition-base), opacity var(--transition-base);
}
.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 6px; }
.hamburger-line:nth-child(3) { top: 12px; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-logo { position: absolute; left: 50%; transform: translateX(-50%); }
.site-logo img { max-height: 28px; width: auto; }
.site-logo-text {
	font-family: var(--font-heading); font-size: 20px; font-weight: 500;
	letter-spacing: 0.02em; white-space: nowrap; color: var(--color-text);
}

.primary-nav { display: none; }

.site-header-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.header-icon-link {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; color: var(--color-text);
}
/* Comes after .header-icon-link so its display:none wins the cascade
   (both are single-class selectors of equal specificity — source order
   decides). header-newin-link also has header-icon-link as a class. */
.header-newin-link { display: none; }

/* Line-icon glyphs via CSS — no icon font dependency */
.icon-search, .icon-cart, .icon-account, .icon-filter {
	display: block; width: 18px; height: 18px; position: relative;
}
.icon-search::before {
	content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px;
	border: 1.5px solid currentColor; border-radius: 50%;
}
.icon-search::after {
	content: ""; position: absolute; bottom: 0; right: 0; width: 7px; height: 1.5px;
	background: currentColor; transform: rotate(45deg); transform-origin: right;
}
.icon-cart::before {
	content: ""; position: absolute; top: 4px; left: 1px; width: 16px; height: 13px;
	border: 1.5px solid currentColor; border-radius: 0 0 2px 2px;
}
.icon-cart::after {
	content: ""; position: absolute; top: 0; left: 5px; width: 8px; height: 7px;
	border: 1.5px solid currentColor; border-bottom: none; border-radius: 6px 6px 0 0;
}
.icon-account::before {
	content: ""; position: absolute; top: 0; left: 5px; width: 8px; height: 8px;
	border: 1.5px solid currentColor; border-radius: 50%;
}
.icon-account::after {
	content: ""; position: absolute; bottom: 0; left: 1px; width: 16px; height: 8px;
	border: 1.5px solid currentColor; border-bottom: none; border-radius: 8px 8px 0 0;
}
.icon-filter::before, .icon-filter::after {
	content: ""; position: absolute; left: 2px; width: 14px; height: 1.5px; background: currentColor;
}
.icon-filter::before { top: 5px; }
.icon-filter::after { top: 12px; width: 9px; }

.cart-count {
	position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px;
	border-radius: 50%; background: var(--color-bg-dark); color: var(--color-text-on-dark);
	font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.cart-count[data-cart-count="0"] { display: none; }

/* -----------------------------------------------------------------------
   NAV / FILTER / CART DRAWERS — shared shell lives in base.css; here just
   content-specific styling.
   ----------------------------------------------------------------------- */
.nav-drawer-search { padding: 16px 20px; border-bottom: 1px solid var(--color-border); }

/* WooCommerce product search form, styled to match */
.woocommerce-product-search {
	display: flex; align-items: center; border: 1px solid var(--color-border); background-color: var(--color-bg-alt);
}
.woocommerce-product-search input[type="search"] {
	flex: 1; border: none; background: transparent; padding: 12px 14px; min-height: 44px; font-size: 15px; color: var(--color-text);
}
.woocommerce-product-search button {
	width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	font-size: 0;
}
.woocommerce-product-search button::before {
	content: ""; display: block; width: 14px; height: 14px; margin: auto;
	border: 1.5px solid var(--color-text); border-radius: 50%;
}

.nav-drawer-list { padding: 8px 20px 24px; }
.nav-drawer-list li { border-bottom: 1px solid var(--color-border); }
.nav-drawer-list a { display: flex; align-items: center; min-height: 56px; font-family: var(--font-heading); font-size: 18px; }

/* Filter drawer */
.filter-drawer-body { padding: 20px; }
.filter-group { margin-bottom: 28px; }
.filter-group-title { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.filter-term-list li { border-bottom: 1px solid var(--color-border); }
.filter-term-link { display: flex; align-items: center; min-height: 48px; font-size: 15px; }
.filter-group select,
.filter-group .orderby {
	width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--color-border); background-color: var(--color-bg);
	font-size: 14px; color: var(--color-text); border-radius: var(--radius);
}

/* -----------------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------------- */
.site-footer { background-color: var(--color-bg-alt); color: var(--color-text); margin-top: var(--space-section-y); }

.footer-inner { padding-block: 40px 8px; }
.footer-brand { margin-bottom: 32px; }
.footer-wordmark { font-family: var(--font-heading); font-size: 22px; margin-bottom: 8px; }
.footer-blurb { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; max-width: 40ch; margin-bottom: 12px; }
.footer-bundle-line { font-size: 13px; color: var(--color-text-muted); margin-bottom: 16px; }
.footer-bundle-line a { color: var(--color-text); text-decoration: underline; }
.footer-social { display: flex; gap: 8px; }
.footer-social-link {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border: 1px solid var(--color-border);
}
.icon-instagram { display: block; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 5px; position: relative; }
.icon-instagram::before { content: ""; position: absolute; inset: 3px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-instagram::after { content: ""; position: absolute; top: 2px; right: 2px; width: 2px; height: 2px; background: currentColor; border-radius: 50%; }
.icon-tiktok { display: block; width: 16px; height: 16px; position: relative; }
.icon-tiktok::before {
	content: ""; position: absolute; top: 0; right: 2px; width: 8px; height: 8px;
	border-radius: 50%; border: 1.5px solid currentColor; border-left-color: transparent; border-bottom-color: transparent;
}
.icon-tiktok::after { content: ""; position: absolute; bottom: 0; left: 2px; width: 1.5px; height: 14px; background: currentColor; }

.footer-group { border-top: 1px solid var(--color-border); }
.footer-group:last-child { border-bottom: 1px solid var(--color-border); }
.footer-group-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text); }
.footer-group-panel { padding-bottom: 16px; }
.footer-link-list li { margin-bottom: 12px; }
.footer-link-list a { font-size: 14px; color: var(--color-text-muted); min-height: 44px; display: inline-flex; align-items: center; }
.footer-link-list a:hover, .footer-link-list a:focus-visible { color: var(--color-text); }

.footer-bottom { border-top: 1px solid var(--color-border); }
.footer-bottom-inner { padding-block: 16px; display: flex; flex-direction: column; gap: 6px; }
.footer-copyright, .footer-payment-line { font-size: 12px; color: var(--color-text-muted); }

/* -----------------------------------------------------------------------
   TABLET (768px+)
   ----------------------------------------------------------------------- */
@media (min-width: 768px) {
	.footer-inner { padding-block: 56px 8px; }
}

/* -----------------------------------------------------------------------
   DESKTOP (1024px+)
   ----------------------------------------------------------------------- */
@media (min-width: 1024px) {
	.announcement-row-desktop {
		display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
		font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
	}
	.announcement-row-item:not(:last-child)::after { content: "\00B7"; margin-left: 10px; color: rgba(255,255,255,0.5); }
	.announcement-track { display: none; }

	.hamburger { display: none; }
	.site-logo { position: static; transform: none; }
	.site-header-inner { gap: 32px; }
	.primary-nav { display: block; flex: 1; }
	.primary-nav-list { display: flex; align-items: center; gap: 32px; }
	.primary-nav-list a {
		font-size: 13px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase;
		padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color var(--transition-fast);
	}
	.primary-nav-list a:hover, .primary-nav-list a:focus-visible { border-bottom-color: var(--color-accent-deep); }
	.site-logo-text, .custom-logo { font-size: 26px; }
	.site-header-actions { flex: 1; justify-content: flex-end; gap: 8px; }
	.header-newin-link {
		display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500;
		letter-spacing: 0.03em; text-transform: uppercase;
	}

	.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-block: 64px 24px; }
	.footer-brand { margin-bottom: 0; }
	.footer-link-groups { display: contents; }
	.footer-group, .footer-group:last-child { border: none; }
	.footer-group-trigger { pointer-events: none; min-height: auto; margin-bottom: 16px; font-size: 13px; }
	.footer-group-trigger .accordion-icon { display: none; }
	.footer-group-panel[hidden] { display: block !important; }
	.footer-group-panel { padding-bottom: 0; }
	.footer-bottom-inner { flex-direction: row; justify-content: space-between; }
}
