.container {
    max-width: 1280px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Announcement */
.hs-announce.header-top {
    background: #1f140d;
    padding: 6px 0 !important;
    min-height: 0;
}

.hs-announce-text {
    text-align: center;
    color: #f5efe8;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.header-top-left,
.header-top-right {
    display: none;
}

/* Main header */
.hs-header-main.header-middle {
    padding: 10px 0 !important;
    box-shadow: none;
    border-bottom: 1px solid var(--sf-line);
}

.hs-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hs-header-main .company-logo {
    flex: 0 0 auto;
    margin: 0;
}

.hs-header-main .company-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

.hs-header-actions {
    flex: 0 0 auto;
}

.hs-search {
    flex: 1 1 auto;
    min-width: 0;
}

.hs-search form,
.categorie-search-box.hs-search form {
    display: flex !important;
    align-items: stretch;
    height: 48px !important;
    min-height: 48px !important;
    border: 1px solid #e4ddd6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    position: relative;
}

.hs-search .form-group {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    margin: 0 !important;
    height: 48px;
    flex: 0 0 168px;
}

.hs-search select,
.hs-search .bootstrap-select,
.hs-search .nice-select {
    height: 48px !important;
    line-height: 48px !important;
    width: 100% !important;
    border: 0 !important;
    border-right: 1px solid #e4ddd6 !important;
    border-radius: 0 !important;
    background: #f7f4f0 !important;
    color: #222 !important;
    font-size: 13px !important;
    font-weight: 600;
    padding: 0 28px 0 12px !important;
}

.hs-search .nice-select .current {
    line-height: 48px;
}

.hs-search .nice-select::after {
    right: 10px;
    margin-top: -2px;
}

.hs-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 48px 0 14px !important;
    font-size: 14px !important;
    color: #222 !important;
    background: #fff !important;
    line-height: 48px;
}

.hs-search input::placeholder {
    color: #8a827a !important;
    opacity: 1;
}

.hs-search button {
    position: absolute !important;
    right: 4px !important;
    top: 4px !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 8px !important;
    background: var(--sf-orange) !important;
    font-size: 18px !important;
}

.cart-box > ul > li > span {
    gap: 8px;
    padding: 6px 12px;
    min-height: 44px;
}

.cart-box .ion-bag {
    font-size: 22px;
    line-height: 1;
}

/* Nav bar */
.hs-nav.header-bottom {
    background: #fff !important;
    border-bottom: 1px solid var(--sf-line);
    min-height: 48px;
}

.hs-nav-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.hs-cat-menu {
    position: relative;
}

.hs-cat-menu .categorie-title,
.vertical-menu-two > span.categorie-title {
    background: transparent !important;
    color: #222 !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 14px !important;
    font-weight: 700;
    text-transform: none;
    padding: 0 14px 0 14px !important;
    border-radius: 8px;
}

.hs-cat-menu .categorie-title::after {
    display: none !important;
}

.hs-cat-menu .categorie-title {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    overflow: visible !important;
}

/* theme positions the caret absolutely (right:15px); put it back in the flow */
.hs-cat-menu .categorie-title i {
    position: static !important;
    transform: none !important;
    margin: 0;
    font-size: 16px !important;
    line-height: 1;
    color: var(--sf-orange);
    transition: transform 0.18s ease;
}

.hs-cat-menu:hover .categorie-title i,
.hs-cat-menu:focus-within .categorie-title i {
    transform: rotate(180deg) !important;
}

/* invisible bridge so the pointer can cross the gap between title and panel */
.hs-cat-menu::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 14px;
}

.hs-cat-menu:hover .categorie-title,
.hs-cat-menu:focus-within .categorie-title {
    background: #fff3e8 !important;
    color: #222 !important;
}

.header-bottom .hs-mega.vertical-menu-list {
    display: none !important;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: min(1080px, 92vw);
    max-height: 70vh;
    overflow: auto;
    padding: 20px;
    margin: 0;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(28, 25, 23, 0.12);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 24px;
    z-index: 1060;
}

.header-bottom .hs-cat-menu:hover .hs-mega,
.header-bottom .hs-cat-menu:focus-within .hs-mega {
    display: grid !important;
}

.hs-mega > li {
    list-style: none;
    padding: 0;
}

.hs-mega-parent {
    display: block;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #222 !important;
    padding: 4px 0 8px !important;
    background: transparent !important;
    line-height: 1.3 !important;
}

.hs-mega-parent:hover {
    color: var(--sf-orange) !important;
    background: transparent !important;
}

.hs-mega-col > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hs-mega-col > ul a {
    display: block;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #5c5752 !important;
    padding: 4px 0 !important;
    line-height: 1.35 !important;
    background: transparent !important;
}

.hs-mega-col > ul a:hover {
    color: var(--sf-orange) !important;
    background: transparent !important;
}

.hs-primary-nav .header-bottom-list {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.hs-primary-nav .header-bottom-list > li > a {
    color: #222 !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px;
}

.hs-primary-nav .header-bottom-list > li > a:hover {
    color: var(--sf-orange) !important;
}

/* Intro */
.hs-intro {
    padding: 28px 0 8px;
}

.hs-intro h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.hs-intro p {
    color: var(--sf-muted);
    max-width: 560px;
    margin-bottom: 16px;
}

.hs-intro-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hs-btn-ghost {
    background: #fff;
    border: 1px solid var(--sf-line);
    color: #222;
    border-radius: 10px;
}

.hs-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.hs-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 12px;
    padding: 14px 8px;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    min-height: 108px;
}

.hs-cat-card:hover {
    border-color: var(--sf-orange);
    color: #222;
}

.hs-cat-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.btn-add-to-cart.processing {
    opacity: 0.8;
}

@media (max-width: 991px) {
    .hs-header-row {
        flex-wrap: wrap;
    }

    .hs-header-main .company-logo {
        order: 1;
    }

    .hs-header-actions {
        order: 2;
        margin-left: auto;
    }

    .hs-search {
        order: 3;
        flex: 1 1 100%;
    }

    .hs-search .form-group {
        display: none !important;
    }

    .hs-search input {
        padding-left: 14px !important;
    }

    .hs-intro h1 {
        font-size: 26px;
    }

    .hs-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hs-nav-row {
        justify-content: flex-end;
    }
}

@media (max-width: 575px) {
    .hs-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hs-announce {
        display: none;
    }
}
