.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: 72rem;
    min-height: 68px;
    margin: 0 auto;
    padding: 12px 16px;
    align-items: center;
    gap: 20px;
}

.store-wordmark,
.footer-wordmark {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    color: #8a0000;
    line-height: 1;
    text-decoration: none;
}

.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;
}

.store-wordmark-logo {
    display: block;
    width: auto;
    height: 44px;
    max-width: 190px;
    object-fit: contain;
}

.footer-wordmark-logo {
    display: block;
    width: auto;
    height: 86px;
    max-width: min(100%, 250px);
    object-fit: contain;
}

.header-search {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    max-width: 560px;
    min-width: 0;
    height: 42px;
}

.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: #8a0000;
    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: #8a0000;
    color: #fff;
}

.header-search button:hover,
.header-login:hover {
    background: #6f0000;
}

.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: #8a0000;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.header-search-all {
    display: block;
    padding: 11px 14px;
    color: #8a0000;
    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-cart {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 6px;
    color: #27272a;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.header-cart:hover {
    color: #8a0000;
}

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

.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: #8a0000;
    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 #8a0000;
    border-radius: 9px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.header-register {
    background: #fff;
    color: #8a0000;
}

.header-register:hover {
    background: #fef2f2;
}

.header-login {
    background: #8a0000;
    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, #8a0000, #b91c1c);
    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: 72rem;
    min-height: 42px;
    margin: 0 auto;
    padding: 0 16px;
    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: #8a0000;
}

.header-hotline {
    display: inline-flex;
    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: #8a0000;
    font-weight: 700;
}

.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: #8a0000;
}

.header-notifications-link .lucide-menu-icon {
    width: 18px;
    height: 18px;
    color: #8a0000;
}

.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: #8a0000;
}

.mobile-menu-links a.is-active {
    background: #fef2f2;
    color: #8a0000;
}

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

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

.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: #a1a1aa;
    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: 94px;
    }

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

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

    .store-wordmark-logo {
        height: 38px;
        max-width: 164px;
    }

    .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-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: #8a0000;
    }

    .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: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 12px;
        z-index: 45;
        display: block;
        pointer-events: none;
    }

    .mobile-bottom-inner {
        display: grid;
        width: 100%;
        max-width: 28rem;
        min-height: 62px;
        margin: 0 auto;
        padding: 4px 6px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border: 1px solid rgba(212, 212, 216, 0.9);
        border-radius: 20px;
        background: #fff;
        pointer-events: auto;
        box-shadow: 0 10px 32px rgba(24, 24, 27, 0.16);
    }

    .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: #8a0000;
    }

    .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: #8a0000;
        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: #8a0000;
        background: #8a0000;
        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 {
        position: relative;
        padding-top: 32px;
        color: #15803d;
    }

    .mobile-whatsapp-icon {
        position: absolute;
        top: -21px;
        display: flex;
        width: 54px;
        height: 54px;
        align-items: center;
        justify-content: center;
        border: 4px solid #fff;
        border-radius: 999px;
        background: linear-gradient(145deg, #22c55e, #15803d);
        color: #fff;
        box-shadow: 0 7px 18px rgba(21, 128, 61, 0.28);
    }

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

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

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

    .mobile-bottom-nav {
        right: 8px;
        left: 8px;
    }

}

@media (max-width: 1023px) {
    .footer-grid {
        row-gap: 4px;
    }

    .footer-accordion {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        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;
    }
}
