/**
 * Zinc Header/Footer Builder — Frontend Styles
 *
 * Comprehensive styling for all HFB output: rows, columns,
 * 13 element types, sticky/transparent/shrink headers,
 * mobile menu, responsive breakpoints, dark mode default.
 *
 * @package ZincOS
 * @since   1.0.0
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --zinc-hfb-breakpoint: 768px;
    --zinc-hfb-max-width: 1280px;
    --zinc-hfb-gutter: 24px;

    /* Colors (design-token driven) */
    --zinc-hfb-bg: var(--zb-color-bg, var(--zinc-bg, #09090b));
    --zinc-hfb-bg-surface: var(--zb-color-surface, var(--zinc-surface, #18181b));
    --zinc-hfb-text: var(--zb-color-text, var(--zinc-text, #fafafa));
    --zinc-hfb-text-muted: var(--zb-color-muted, var(--zinc-text-muted, #a1a1aa));
    --zinc-hfb-text-dim: var(--zb-color-text-muted, var(--zinc-text-dim, #71717a));
    --zinc-hfb-border: var(--zb-color-border, var(--zinc-border, rgba(63, 63, 70, 0.5)));
    --zinc-hfb-accent: var(--zb-color-accent, var(--zinc-accent, #dc2626));
    --zinc-hfb-accent-hover: var(--zb-color-accent-hover, var(--zinc-accent-hover, #ef4444));
    --zinc-hfb-glass-bg: color-mix(in srgb, var(--zinc-hfb-bg) 85%, transparent);
    --zinc-hfb-glass-blur: 16px;
    --zinc-hfb-hover-bg: color-mix(in srgb, var(--zinc-hfb-text) 8%, transparent);

    /* Transitions */
    --zinc-hfb-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --zinc-hfb-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER — BASE
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-header {
    position: relative;
    width: 100%;
    z-index: 1000;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    transition: all var(--zinc-hfb-transition);
}

.zinc-hfb-header--sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--zinc-hfb-glass-bg);
    backdrop-filter: blur(var(--zinc-hfb-glass-blur));
    -webkit-backdrop-filter: blur(var(--zinc-hfb-glass-blur));
    border-bottom: 1px solid var(--zinc-hfb-border);
}

.zinc-hfb-header--transparent {
    background: transparent !important;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.zinc-hfb-header--transparent.zinc-hfb-header--scrolled {
    background: var(--zinc-hfb-glass-bg) !important;
    backdrop-filter: blur(var(--zinc-hfb-glass-blur));
    -webkit-backdrop-filter: blur(var(--zinc-hfb-glass-blur));
    border-bottom-color: var(--zinc-hfb-border);
}

/* Shrink on scroll */
.zinc-hfb-header--shrink.zinc-hfb-header--scrolled .zinc-hfb-row--main {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.zinc-hfb-header--shrink.zinc-hfb-header--scrolled .zinc-hfb-el--logo img {
    max-height: 32px !important;
    transition: max-height var(--zinc-hfb-transition);
}

/* Smart-hide: hidden when scrolling down */
.zinc-hfb-header--hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

/* Body padding when sticky */
body.zinc-hfb-has-sticky-header {
    padding-top: var(--zinc-hfb-header-height, 72px);
}

/* WordPress Admin Bar Compatibility */
.admin-bar .zinc-hfb-header--sticky {
    top: 32px;
}

.admin-bar.zinc-hfb-has-sticky-header {
    padding-top: calc(var(--zinc-hfb-header-height, 72px) + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .zinc-hfb-header--sticky {
        top: 46px;
    }

    .admin-bar.zinc-hfb-has-sticky-header {
        padding-top: calc(var(--zinc-hfb-header-height, 72px) + 46px);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER — BASE
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-footer {
    position: relative;
    width: 100%;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    border-top: 1px solid var(--zinc-hfb-border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ROW LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-row {
    width: 100%;
    transition: padding var(--zinc-hfb-transition),
                background-color var(--zinc-hfb-transition);
}

.zinc-hfb-row--top-bar {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.zinc-hfb-row--main {
    font-size: 0.9375rem;
}

.zinc-hfb-row--bottom {
    font-size: 0.8125rem;
}

/* Container */
.zinc-hfb-container {
    max-width: var(--zinc-hfb-max-width);
    margin: 0 auto;
    padding: 0 var(--zinc-hfb-gutter);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.zinc-hfb-container--full {
    width: 100%;
    padding: 0 var(--zinc-hfb-gutter);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COLUMN LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-col {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
}

.zinc-hfb-col--left {
    justify-content: flex-start;
}

.zinc-hfb-col--center {
    justify-content: center;
}

.zinc-hfb-col--right {
    justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: LOGO
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.zinc-hfb-logo__link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--zinc-hfb-transition-fast);
}

.zinc-hfb-logo__link:hover {
    opacity: 0.8;
}

.zinc-hfb-logo__link img {
    display: block;
    height: auto;
    transition: max-height var(--zinc-hfb-transition);
}

.zinc-hfb-logo__text {
    font-size: 1.25rem;
    font-weight: 700;
    color: inherit;
    letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--nav {
    display: flex;
    align-items: center;
}

.zinc-hfb-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.zinc-hfb-nav__item {
    position: relative;
}

.zinc-hfb-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: background var(--zinc-hfb-transition-fast),
                color var(--zinc-hfb-transition-fast);
    white-space: nowrap;
}

.zinc-hfb-nav__link:hover {
    background: var(--zinc-hfb-hover-bg);
    color: var(--zinc-hfb-text);
}

.zinc-hfb-nav__item--current .zinc-hfb-nav__link {
    color: var(--zinc-hfb-text);
    background: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: SEARCH
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--search {
    position: relative;
    display: flex;
    align-items: center;
}

.zinc-hfb-search__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--zinc-hfb-transition-fast);
}

.zinc-hfb-search__trigger:hover {
    background: var(--zinc-hfb-hover-bg);
}

/* Search form — overlay mode */
.zinc-hfb-search__form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--zinc-hfb-transition);
}

.zinc-hfb-search__form[aria-hidden="false"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.zinc-hfb-search__form form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 640px;
    gap: 8px;
}

.zinc-hfb-search__input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    font-size: 1rem;
    color: var(--zinc-hfb-text);
    background: var(--zinc-hfb-bg-surface);
    border: 1px solid var(--zinc-hfb-border);
    border-radius: 10px;
    outline: none;
    transition: border-color var(--zinc-hfb-transition-fast);
}

.zinc-hfb-search__input:focus {
    border-color: var(--zinc-hfb-accent);
}

.zinc-hfb-search__input::placeholder {
    color: var(--zinc-hfb-text-dim);
}

.zinc-hfb-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--zinc-hfb-accent);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--zinc-hfb-transition-fast);
}

.zinc-hfb-search__submit:hover {
    background: var(--zinc-hfb-accent-hover);
}

.zinc-hfb-search__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--zinc-hfb-text-muted);
    cursor: pointer;
    border-radius: 8px;
    margin-left: 8px;
    transition: background var(--zinc-hfb-transition-fast);
}

.zinc-hfb-search__close:hover {
    background: var(--zinc-hfb-hover-bg);
    color: var(--zinc-hfb-text);
}

/* Search inline style */
[data-search-style="inline"] .zinc-hfb-search__trigger {
    display: none;
}

[data-search-style="inline"] .zinc-hfb-search__form {
    position: relative;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    height: auto;
    width: 100%;
}

[data-search-style="inline"] .zinc-hfb-search__form form {
    max-width: 100%;
}

[data-search-style="inline"] .zinc-hfb-search__close {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: CART
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--cart {
    position: relative;
    display: flex;
    align-items: center;
}

.zinc-hfb-cart__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: background var(--zinc-hfb-transition-fast);
}

.zinc-hfb-cart__link:hover {
    background: var(--zinc-hfb-hover-bg);
}

.zinc-hfb-cart__count {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
    background: var(--zinc-hfb-accent);
    border-radius: 9px;
    line-height: 1;
}

.zinc-hfb-cart__count[data-count="0"] {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: ACCOUNT
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--account {
    display: flex;
    align-items: center;
}

.zinc-hfb-account__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: background var(--zinc-hfb-transition-fast);
}

.zinc-hfb-account__link:hover {
    background: var(--zinc-hfb-hover-bg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: SOCIAL
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--social {
    display: flex;
    align-items: center;
    gap: 4px;
}

.zinc-hfb-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--zinc-hfb-text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: color var(--zinc-hfb-transition-fast),
                background var(--zinc-hfb-transition-fast);
}

.zinc-hfb-social__link:hover {
    color: var(--zinc-hfb-text);
    background: var(--zinc-hfb-hover-bg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--button {
    display: flex;
    align-items: center;
}

.zinc-hfb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    white-space: nowrap;
    transition: all var(--zinc-hfb-transition-fast);
    line-height: 1.4;
    cursor: pointer;
    border: 2px solid transparent;
}

.zinc-hfb-btn--primary {
    background: var(--zinc-hfb-accent);
    color: #fff;
    border-color: var(--zinc-hfb-accent);
}

.zinc-hfb-btn--primary:hover {
    background: var(--zinc-hfb-accent-hover);
    border-color: var(--zinc-hfb-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.zinc-hfb-btn--secondary {
    background: var(--zinc-hfb-bg-surface);
    color: var(--zinc-hfb-text);
    border-color: var(--zinc-hfb-border);
}

.zinc-hfb-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.zinc-hfb-btn--outline {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}

.zinc-hfb-btn--outline:hover {
    background: var(--zinc-hfb-hover-bg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: HTML
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--html {
    line-height: 1.6;
}

.zinc-hfb-el--html a {
    color: var(--zinc-hfb-accent);
    text-decoration: none;
    transition: color var(--zinc-hfb-transition-fast);
}

.zinc-hfb-el--html a:hover {
    color: var(--zinc-hfb-accent-hover);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: TEXT
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--text {
    display: flex;
    align-items: center;
    font-size: inherit;
    color: inherit;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: ICON
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--icon {
    display: flex;
    align-items: center;
}

.zinc-hfb-icon__link {
    display: inline-flex;
    color: inherit;
    text-decoration: none;
    transition: color var(--zinc-hfb-transition-fast);
}

.zinc-hfb-icon__link:hover {
    color: var(--zinc-hfb-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: WIDGET AREA
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--widget-area {
    width: 100%;
}

.zinc-hfb-el--widget-area .zinc-widget__title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zinc-hfb-text);
    margin: 0 0 16px;
}

.zinc-hfb-el--widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zinc-hfb-el--widget-area ul li {
    margin-bottom: 8px;
}

.zinc-hfb-el--widget-area ul li a {
    color: var(--zinc-hfb-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--zinc-hfb-transition-fast);
}

.zinc-hfb-el--widget-area ul li a:hover {
    color: var(--zinc-hfb-text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: COPYRIGHT
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--copyright {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    color: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENT: NEWSLETTER
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-el--newsletter {
    width: 100%;
}

.zinc-hfb-newsletter__heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--zinc-hfb-text);
    margin: 0 0 8px;
}

.zinc-hfb-newsletter__desc {
    font-size: 0.875rem;
    color: var(--zinc-hfb-text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.zinc-hfb-newsletter__form {
    display: flex;
    gap: 8px;
}

.zinc-hfb-newsletter__input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    font-size: 0.875rem;
    color: var(--zinc-hfb-text);
    background: var(--zinc-hfb-bg-surface);
    border: 1px solid var(--zinc-hfb-border);
    border-radius: 8px;
    outline: none;
    transition: border-color var(--zinc-hfb-transition-fast);
    min-width: 0;
}

.zinc-hfb-newsletter__input:focus {
    border-color: var(--zinc-hfb-accent);
}

.zinc-hfb-newsletter__input::placeholder {
    color: var(--zinc-hfb-text-dim);
}

.zinc-hfb-newsletter__btn {
    height: 42px;
    padding: 0 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--zinc-hfb-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--zinc-hfb-transition-fast);
}

.zinc-hfb-newsletter__btn:hover {
    background: var(--zinc-hfb-accent-hover);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE MENU TOGGLE
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--zinc-hfb-text);
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--zinc-hfb-transition-fast);
    position: absolute;
    right: var(--zinc-hfb-gutter);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.zinc-hfb-mobile-toggle:hover {
    background: var(--zinc-hfb-hover-bg);
}

.zinc-hfb-toggle__text {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE MENU PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    visibility: hidden;
    pointer-events: none;
}

.zinc-hfb-mobile-menu[aria-hidden="false"] {
    visibility: visible;
    pointer-events: auto;
}

/* Overlay */
.zinc-hfb-mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity var(--zinc-hfb-transition);
}

.zinc-hfb-mobile-menu[aria-hidden="false"] .zinc-hfb-mobile-menu__overlay {
    opacity: 1;
}

/* Panel */
.zinc-hfb-mobile-menu__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--zinc-hfb-bg);
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform var(--zinc-hfb-transition);
}

/* Slide-right */
.zinc-hfb-mobile-menu--slide-right .zinc-hfb-mobile-menu__panel {
    right: 0;
    transform: translateX(100%);
    border-left: 1px solid var(--zinc-hfb-border);
}

.zinc-hfb-mobile-menu--slide-right[aria-hidden="false"] .zinc-hfb-mobile-menu__panel {
    transform: translateX(0);
}

/* Slide-left */
.zinc-hfb-mobile-menu--slide-left .zinc-hfb-mobile-menu__panel {
    left: 0;
    transform: translateX(-100%);
    border-right: 1px solid var(--zinc-hfb-border);
}

.zinc-hfb-mobile-menu--slide-left[aria-hidden="false"] .zinc-hfb-mobile-menu__panel {
    transform: translateX(0);
}

/* Fullscreen */
.zinc-hfb-mobile-menu--fullscreen .zinc-hfb-mobile-menu__panel {
    width: 100%;
    max-width: 100%;
    transform: scale(0.95);
    opacity: 0;
    transition: transform var(--zinc-hfb-transition),
                opacity var(--zinc-hfb-transition);
}

.zinc-hfb-mobile-menu--fullscreen[aria-hidden="false"] .zinc-hfb-mobile-menu__panel {
    transform: scale(1);
    opacity: 1;
}

/* Dropdown */
.zinc-hfb-mobile-menu--dropdown .zinc-hfb-mobile-menu__panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    transform: translateY(-100%);
    border-bottom: 1px solid var(--zinc-hfb-border);
}

.zinc-hfb-mobile-menu--dropdown[aria-hidden="false"] .zinc-hfb-mobile-menu__panel {
    transform: translateY(0);
}

/* Close button */
.zinc-hfb-mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--zinc-hfb-text-muted);
    cursor: pointer;
    border-radius: 8px;
    align-self: flex-end;
    flex-shrink: 0;
    transition: color var(--zinc-hfb-transition-fast),
                background var(--zinc-hfb-transition-fast);
}

.zinc-hfb-mobile-menu__close:hover {
    color: var(--zinc-hfb-text);
    background: var(--zinc-hfb-hover-bg);
}

/* Mobile nav list */
.zinc-hfb-mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zinc-hfb-mobile-nav__item a {
    display: block;
    padding: 14px 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--zinc-hfb-text);
    text-decoration: none;
    border-bottom: 1px solid var(--zinc-hfb-border);
    transition: color var(--zinc-hfb-transition-fast);
}

.zinc-hfb-mobile-nav__item a:hover {
    color: var(--zinc-hfb-accent);
}

.zinc-hfb-mobile-nav__item--current a {
    color: var(--zinc-hfb-accent);
}

.zinc-hfb-mobile-nav__item:last-child a {
    border-bottom: none;
}

/* Mobile menu logo */
.zinc-hfb-mobile-menu__logo {
    flex-shrink: 0;
}

/* Mobile menu social */
.zinc-hfb-mobile-menu__social {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--zinc-hfb-border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — HIDE/SHOW AT BREAKPOINT
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .zinc-hfb-row--hidden-mobile {
        display: none !important;
    }

    .zinc-hfb-mobile-toggle {
        display: flex;
    }

    /* Hide desktop nav on mobile */
    .zinc-hfb-header .zinc-hfb-el--nav {
        display: none;
    }

    /* Stack columns on mobile */
    .zinc-hfb-container,
    .zinc-hfb-container--full {
        flex-wrap: wrap;
    }

    .zinc-hfb-col {
        width: 100% !important;
        justify-content: center;
    }

    /* Footer columns stack on mobile */
    .zinc-hfb-footer .zinc-hfb-col {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }

    .zinc-hfb-footer .zinc-hfb-col--left,
    .zinc-hfb-footer .zinc-hfb-col--right {
        justify-content: center;
    }

    .zinc-hfb-newsletter__form {
        flex-direction: column;
    }

    .zinc-hfb-el--social {
        justify-content: center;
    }

    :root {
        --zinc-hfb-gutter: 16px;
    }
}

@media (min-width: 769px) {
    .zinc-hfb-mobile-toggle {
        display: none !important;
    }

    .zinc-hfb-mobile-menu {
        display: none !important;
    }
}

/* Larger breakpoint override (e.g., ecommerce preset uses 1024) */
@media (max-width: 1024px) {
    .zinc-hfb-header[data-breakpoint="1024"] .zinc-hfb-el--nav {
        display: none;
    }

    .zinc-hfb-header[data-breakpoint="1024"] .zinc-hfb-mobile-toggle {
        display: flex;
    }
}

@media (min-width: 1025px) {
    .zinc-hfb-header[data-breakpoint="1024"] .zinc-hfb-mobile-toggle {
        display: none !important;
    }
}

/* "Always mobile" for minimal preset (breakpoint 9999) */
.zinc-hfb-header[data-breakpoint="9999"] .zinc-hfb-el--nav {
    display: none;
}

.zinc-hfb-header[data-breakpoint="9999"] .zinc-hfb-mobile-toggle {
    display: flex;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-scheme-light .zinc-hfb-header,
.zinc-scheme-light .zinc-hfb-footer {
    --zinc-hfb-bg: #ffffff;
    --zinc-hfb-bg-surface: #f4f4f5;
    --zinc-hfb-text: #18181b;
    --zinc-hfb-text-muted: #52525b;
    --zinc-hfb-text-dim: #a1a1aa;
    --zinc-hfb-border: rgba(0, 0, 0, 0.08);
    --zinc-hfb-glass-bg: rgba(255, 255, 255, 0.9);
    --zinc-hfb-hover-bg: rgba(0, 0, 0, 0.04);
}

.zinc-scheme-light .zinc-hfb-nav__link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.zinc-scheme-light .zinc-hfb-nav__item--current .zinc-hfb-nav__link {
    background: rgba(0, 0, 0, 0.06);
}

.zinc-scheme-light .zinc-hfb-search__trigger:hover,
.zinc-scheme-light .zinc-hfb-cart__link:hover,
.zinc-scheme-light .zinc-hfb-account__link:hover,
.zinc-scheme-light .zinc-hfb-social__link:hover,
.zinc-scheme-light .zinc-hfb-mobile-toggle:hover,
.zinc-scheme-light .zinc-hfb-mobile-menu__close:hover {
    background: rgba(0, 0, 0, 0.04);
}

.zinc-scheme-light .zinc-hfb-btn--secondary {
    background: #f4f4f5;
    border-color: rgba(0, 0, 0, 0.1);
}

.zinc-scheme-light .zinc-hfb-mobile-menu__panel {
    background: #fff;
}

.zinc-scheme-light .zinc-hfb-mobile-nav__item a {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS & KEYFRAMES
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes zincHfbFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes zincHfbSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.zinc-hfb-header {
    animation: zincHfbFadeIn 0.4s ease-out;
}

.zinc-hfb-footer .zinc-hfb-row {
    animation: zincHfbSlideUp 0.5s ease-out both;
}

.zinc-hfb-footer .zinc-hfb-row:nth-child(2) {
    animation-delay: 0.1s;
}

.zinc-hfb-footer .zinc-hfb-row:nth-child(3) {
    animation-delay: 0.2s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOCUS VISIBLE (Accessibility)
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-hfb-header *:focus-visible,
.zinc-hfb-footer *:focus-visible,
.zinc-hfb-mobile-menu *:focus-visible {
    outline: 2px solid var(--zinc-hfb-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════════════════ */

@media print {
    .zinc-hfb-header,
    .zinc-hfb-mobile-menu,
    .zinc-hfb-mobile-toggle {
        display: none !important;
    }

    .zinc-hfb-footer {
        border-top: 1px solid #ccc;
        page-break-inside: avoid;
    }
}
