.ecommerce-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid #e4e4e7;
    background: #fff;
    box-shadow: 0 3px 14px rgba(24, 24, 27, 0.04);
}

.ecommerce-header-main {
    display: flex;
    width: 100%;
    max-width: var(--site-layout-width);
    min-height: 68px;
    margin: 0 auto;
    padding: 12px var(--site-layout-gutter);
    align-items: center;
    gap: 16px;
}

.store-wordmark,
.footer-wordmark {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    color: var(--brand-primary);
    line-height: 1;
    text-decoration: none;
}

.site-wordmark-logo { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; object-fit: contain; }
.footer-wordmark .site-wordmark-logo { width: 38px; height: 38px; flex-basis: 38px; }
.store-wordmark:has(.site-wordmark-logo),
.footer-wordmark:has(.site-wordmark-logo) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; }
.store-wordmark:has(.site-wordmark-logo) .site-wordmark-logo,
.footer-wordmark:has(.site-wordmark-logo) .site-wordmark-logo { grid-row: 1 / span 2; }
.store-wordmark:has(.site-wordmark-logo) > span,
.footer-wordmark:has(.site-wordmark-logo) > span { grid-column: 2; align-self: end; }
.store-wordmark:has(.site-wordmark-logo) > small,
.footer-wordmark:has(.site-wordmark-logo) > small { grid-column: 2; align-self: start; }

.store-wordmark span,
.footer-wordmark span {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.store-wordmark small,
.footer-wordmark small {
    margin-top: 4px;
    color: #52525b;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.header-search {
    position: relative;
    display: flex;
    flex: 1 1 600px;
    max-width: 640px;
    min-width: 0;
    height: 42px;
    margin-left: 12px;
}

.header-quick-links {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    border-left: 1px solid #e4e4e7;
}

.header-quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 2px;
    color: #52525b;
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .16s ease;
}

.header-quick-links .lucide-menu-icon {
    width: 15px;
    height: 15px;
}

.header-quick-links a:hover,
.header-quick-links a.is-active {
    color: var(--brand-primary);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 1px solid #d4d4d8;
    border-radius: 10px;
    background: #fafafa;
    padding: 0 52px 0 16px;
    color: #18181b;
    font: inherit;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-search input:focus {
    border-color: var(--brand-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(138, 0, 0, 0.1);
}

.header-search button {
    position: absolute;
    inset: 4px 4px 4px auto;
    display: flex;
    width: 38px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--brand-primary);
    color: #fff;
}

.header-search button:hover,
.header-login:hover {
    background: var(--brand-primary-hover);
}

.header-search svg,
.header-cart svg,
.header-menu-button svg {
    width: 20px;
    height: 20px;
}

.header-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 70;
    max-height: min(420px, calc(100vh - 110px));
    overflow-y: auto;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(24, 24, 27, 0.14);
}

.header-search-status {
    margin: 0;
    padding: 18px;
    color: #71717a;
    font-size: 0.82rem;
    text-align: center;
}

.header-search-result {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 12px;
    align-items: center;
    border-bottom: 1px solid #f4f4f5;
    color: #18181b;
    text-decoration: none;
}

.header-search-result:hover,
.header-search-result:focus-visible {
    background: #fafafa;
    outline: none;
}

.header-search-result-media {
    display: flex;
    width: 52px;
    height: 52px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f4f4f5;
    color: #a1a1aa;
    font-size: 0.68rem;
}

.header-search-result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-search-result-copy {
    min-width: 0;
}

.header-search-result-copy strong,
.header-search-result-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search-result-copy strong {
    font-size: 0.83rem;
    line-height: 1.35;
}

.header-search-result-copy span {
    margin-top: 3px;
    color: #71717a;
    font-size: 0.7rem;
}

.header-search-result-price {
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.header-search-all {
    display: block;
    padding: 11px 14px;
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.header-search-all:hover,
.header-search-all:focus-visible {
    background: #fef2f2;
    outline: none;
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.header-icon-action,
.header-cart {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e4e4e7;
    border-radius: 9px;
    color: #27272a;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.header-icon-action:hover,
.header-cart:hover {
    border-color: #a1a1aa;
    background: #fafafa;
    color: var(--brand-primary);
}

.header-cart-icon {
    position: relative;
    display: flex;
}

.header-icon-action .lucide-menu-icon,
.header-cart .lucide-menu-icon {
    width: 19px;
    height: 19px;
}

.header-cart-label {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.header-cart-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    display: inline-flex;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
}

.header-auth {
    display: inline-flex;
    min-height: 38px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand-primary);
    border-radius: 9px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.header-register {
    min-height: 36px;
    padding: 0 6px;
    border-color: transparent;
    background: transparent;
    color: var(--brand-primary);
}

.header-register:hover {
    background: var(--brand-primary-soft);
}

.header-login {
    background: var(--brand-primary);
    color: #fff;
}

.header-avatar-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: box-shadow 160ms ease;
}

.header-avatar-link:hover {
    box-shadow: 0 0 0 2px #fecaca;
}

.header-avatar {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #e4e4e7;
    object-fit: cover;
}

.header-avatar-initial {
    background: linear-gradient(145deg, var(--brand-primary-hover), var(--brand-primary));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.header-mobile-notification {
    display: none;
}

.header-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4d4d8;
    border-radius: 9px;
    color: #27272a;
}

.ecommerce-nav {
    border-top: 1px solid #f4f4f5;
    background: #fff;
}

.ecommerce-nav > div {
    display: flex;
    width: 100%;
    max-width: var(--site-layout-width);
    min-height: 42px;
    margin: 0 auto;
    padding: 0 var(--site-layout-gutter);
    align-items: center;
    gap: 24px;
}

.ecommerce-nav a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 6px;
    color: #3f3f46;
    font-size: 0.77rem;
    font-weight: 600;
    text-decoration: none;
}

.ecommerce-nav a:hover,
.ecommerce-nav a.is-active {
    color: var(--brand-primary);
}

.ecommerce-nav-category::after {
    margin-left: 12px;
    color: #d4d4d8;
    content: '|';
    font-weight: 400;
}

.header-hotline {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 6px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.header-hotline:hover {
    border-color: #86efac;
    background: #dcfce7;
    transform: translateY(-1px);
}

.header-hotline-icon {
    display: flex;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(145deg, #22c55e, #15803d);
    box-shadow: 0 3px 8px rgba(21, 128, 61, 0.3);
}

.header-hotline-icon .lucide-menu-icon {
    width: 15px;
    height: 15px;
    color: #fff;
    stroke-width: 2.3;
}

.header-hotline-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-hotline-text small {
    color: #16a34a;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-hotline-text strong {
    color: #14532d;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.header-hotline strong {
    color: var(--brand-primary);
    font-weight: 700;
}

.floating-whatsapp {
    position: fixed;
    z-index: 45;
    right: 36px;
    bottom: 40px;
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 10px 24px rgb(22 163 74 / .28);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.floating-whatsapp:hover {
    background: #15803d;
    box-shadow: 0 14px 28px rgb(21 128 61 / .33);
    color: #fff;
    transform: translateY(-2px);
}

.floating-whatsapp .lucide-menu-icon {
    width: 21px;
    height: 21px;
}

.floating-whatsapp-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgb(239 68 68 / .65);
    animation: floating-whatsapp-badge-pulse 1.25s ease-out infinite;
}

@keyframes floating-whatsapp-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.8); }
    75% { box-shadow: 0 0 0 7px rgb(239 68 68 / 0); }
}

@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp-badge {
        animation: none;
    }
}

.header-notifications-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    color: #3f3f46;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: color 160ms ease;
}

.header-notifications-link:hover,
.header-notifications-link.is-active {
    color: var(--brand-primary);
}

.header-notifications-link .lucide-menu-icon {
    width: 18px;
    height: 18px;
    color: var(--brand-primary);
}

.header-notification-icon {
    position: relative;
    display: flex;
}

.header-notification-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    display: inline-flex;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #b91c1c;
    color: #fff;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
}

.lucide-menu-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    stroke-width: 1.9;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: 9px;
    color: #3f3f46;
    text-decoration: none;
}

.mobile-menu-links a:hover {
    background: #fafafa;
    color: var(--brand-primary);
}

.mobile-menu-links a.is-active {
    background: #fef2f2;
    color: var(--brand-primary);
}

.footer-wordmark span {
    color: #ffffff;
    font-size: 1.35rem;
}

.footer-wordmark small {
    color: #e4e4e7;
}

.site-footer {
    overflow: hidden;
    background: var(--brand-primary);
    color: #ffffff;
}

.footer-shell {
    position: relative;
    max-width: var(--site-layout-width);
    padding-inline: var(--site-layout-gutter);
}

.footer-shell::before {
    position: absolute;
    top: 0;
    right: 1rem;
    left: 1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    content: '';
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(8.5rem, .75fr) minmax(8.5rem, .85fr) minmax(13rem, 1.05fr);
    gap: 0;
    padding-top: 1.2rem;
}

.footer-brand {
    padding: .75rem 3.25rem .75rem 0;
}

.footer-description {
    max-width: 31rem;
    margin: 1.1rem 0 0;
    color: #e4e4e7;
    font-size: .875rem;
    line-height: 1.7;
}

.footer-company {
    margin: .75rem 0 0;
    color: #ffffff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.footer-accordion {
    min-width: 0;
    padding: .75rem 0 .75rem 2.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-accordion-content a {
    width: fit-content;
    color: #e4e4e7;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.footer-accordion-content a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-contact-list {
    display: grid;
    gap: .9rem;
}

.footer-social-list {
    display: grid;
    gap: .7rem;
}

.footer-social-list a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.footer-social-list .lucide-menu-icon {
    width: 1rem;
    height: 1rem;
    color: #e4e4e7;
}

.footer-contact-list li {
    line-height: 1.55;
}

.footer-contact-list svg {
    color: #e4e4e7;
}

.footer-bottom {
    border-top: 1px solid var(--brand-primary-hover);
    background: var(--brand-primary-hover);
}

.footer-bottom-inner {
    display: flex;
    max-width: var(--site-layout-width);
    padding-inline: var(--site-layout-gutter);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom-inner p {
    margin: 0;
    color: #ffffff;
}

.site-footer .footer-accordion-summary h2 {
    color: #ffffff;
}

.site-footer .footer-accordion-chevron {
    color: #e4e4e7;
}

.footer-accordion-summary {
    display: flex;
    cursor: pointer;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-accordion-summary::-webkit-details-marker {
    display: none;
}

.footer-accordion-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #e4e4e7;
    transition: transform 0.2s ease;
}

.footer-accordion[open] .footer-accordion-chevron {
    transform: rotate(180deg);
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 899px) {
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .ecommerce-header-main {
        min-height: 60px;
        padding-top: 9px;
        padding-bottom: 9px;
        gap: 12px;
    }

    .store-wordmark {
        margin-right: auto;
    }

    .store-wordmark span {
        font-size: 1.02rem;
    }

    .store-wordmark small {
        margin-top: 4px;
        font-size: 0.47rem;
        letter-spacing: 0.12em;
    }

    .desktop-search,
    .header-hotline,
    .header-notifications-link,
    .header-auth,
    .header-avatar-link,
    .header-icon-action,
    .header-cart,
    .header-cart-label,
    .ecommerce-nav {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .header-mobile-notification {
        display: flex;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 9px;
        color: #3f3f46;
        text-decoration: none;
    }

    .header-mobile-notification .lucide-menu-icon {
        width: 20px;
        height: 20px;
    }

    .header-mobile-notification.is-active {
        background: #fef2f2;
        color: var(--brand-primary);
    }

    .header-cart {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
        border: 1px solid #d4d4d8;
        border-radius: 9px;
    }

    .header-menu-button {
        display: flex;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 45;
        display: block;
    }

    .mobile-bottom-inner {
        display: grid;
        width: 100%;
        min-height: 64px;
        padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border-top: 1px solid #e4e4e7;
        background: #fff;
    }

    .mobile-bottom-inner > a {
        display: flex;
        min-width: 0;
        min-height: 54px;
        padding: 7px 2px 5px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        color: #71717a;
        font-size: 0.63rem;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-bottom-inner > a:hover,
    .mobile-bottom-inner > a.is-active {
        color: var(--brand-primary);
    }

    .profile-bottom-inner form {
        display: contents;
    }

    .profile-bottom-inner form button {
        display: flex;
        min-width: 0;
        min-height: 54px;
        padding: 7px 2px 5px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        border: 0;
        background: transparent;
        color: #71717a;
        cursor: pointer;
        font: inherit;
        font-size: 0.63rem;
        font-weight: 600;
    }

    .profile-bottom-inner form button:hover {
        color: #be123c;
    }

    .mobile-bottom-inner .lucide-menu-icon {
        width: 20px;
        height: 20px;
    }

    .mobile-bottom-cart-icon {
        position: relative;
        display: inline-flex;
    }

    .mobile-bottom-cart-badge {
        position: absolute;
        top: -7px;
        right: -10px;
        display: grid;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        place-items: center;
        border: 2px solid #fff;
        border-radius: 999px;
        background: var(--brand-primary);
        color: #fff;
        font-size: 0.5rem;
        font-weight: 800;
        line-height: 1;
    }

    .mobile-profile-avatar {
        display: grid;
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
        place-items: center;
        border: 1px solid #e4e4e7;
        border-radius: 50%;
        background: #fff;
        object-fit: cover;
    }

    .mobile-profile-initial {
        border-color: var(--brand-primary);
        background: var(--brand-primary);
        color: #fff;
        font-size: 0.58rem;
        font-weight: 800;
    }

    .mobile-bottom-inner > a.is-active .mobile-profile-avatar {
        box-shadow: 0 0 0 2px #fecaca;
    }

    .mobile-bottom-inner > a.mobile-whatsapp-cta {
        padding-top: 4px;
        padding-bottom: 3px;
        color: #15803d;
        font-weight: 800;
    }

    .mobile-whatsapp-icon {
        display: flex;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: linear-gradient(145deg, #22c55e, #15803d);
        color: #fff;
        box-shadow: 0 3px 8px rgba(21, 128, 61, 0.24);
    }

    .mobile-whatsapp-icon .lucide-menu-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 390px) {
    .store-wordmark small {
        letter-spacing: 0.08em;
    }

    .ecommerce-header-main {
        padding-right: 12px;
        padding-left: 12px;
    }

}

@media (min-width: 1024px) and (max-width: 1199px) {
    .header-quick-links {
        display: none;
    }

    .header-search {
        max-width: 560px;
    }
}

@media (max-width: 1023px) {
    .header-quick-links {
        display: none;
    }

    .header-search {
        max-width: 560px;
    }

    .floating-whatsapp {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding-top: .75rem;
    }

    .footer-brand {
        padding: .75rem 0 1.5rem;
    }

    .footer-accordion {
        padding-right: 0;
        padding-left: 0;
        border-top: 1px solid #e4e4e7;
        border-left: 0;
        padding-top: 14px;
        padding-bottom: 2px;
    }

    .footer-accordion:not([open]) {
        padding-bottom: 14px;
    }

    .footer-accordion-content {
        padding-bottom: 2px;
    }
}

@media (min-width: 1024px) {
    .footer-accordion-summary {
        cursor: default;
        pointer-events: none;
    }

    .footer-accordion-chevron {
        display: none;
    }

    .footer-accordion:not([open]) .footer-accordion-content {
        display: block;
    }
}

@media (max-width: 639px) {
    .footer-shell {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .footer-bottom-inner {
        align-items: center;
        flex-direction: column;
        gap: .45rem;
        text-align: center;
    }
}
