   
   :root {
       --header-hover-bg: transparent;
       --header-hover-transition: 0.25s ease;
       --header-gold: #f59e0b;
       --header-accent: #7c3aed;
       --header-bg: #ffffff;
    }

   html,
   body {
        margin: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    .cat-page {
        background: #f8f9fc;
        min-height: 70vh;
        padding: 40px 0 60px;
    }


   .top-section {
        height: 30px;
        background: #1e0a36;
        color: rgba(255, 255, 255, 0.72);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 13px;
        letter-spacing: 0.03em;
    }
    
   .header {
        height: 72px;
        display: flex;
        flex-direction: auto;
        justify-content: space-between;
        align-items: flex-end;
        gap: 12px;
        padding: 0 20px 2px;
        background: #ffffff;
        box-shadow: 0 2px 12px rgba(109, 40, 217, 0.10);
        border-bottom: 1px solid rgba(124, 58, 237, 0.12);
    }

    .left-section {
        /* background-color:aquamarine; */
        display: flex;
        align-items: center;
        width: 280px;
        min-width: 120px;
    }
    .logo {
        width: 90px;
        height: 60px;
        margin-right: 0px;
        margin-left: 0;
        padding-top: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        filter: none;
        transition: opacity 0.3s ease;
    }

    .middle-section {
        
         /* background-color: red; */
        display: flex;
        flex: 1;
        justify-content: center;
        align-items: center;
        margin-left: 10px;
        margin-right: 10px;  
        max-width: 500px;
        align-items: center;
        position: relative;      
    }

    .search_button {
        width: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 42px;
        background-color: lightgray;
        border-color:white;
        border-radius: 2px;
        position: absolute;
        padding-bottom: 2px;
        right: 0;
       
    }

    .icon-tooltip {
        position: relative;
    }

    .icon-tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        right: -4px;
        bottom: calc(100% + 2px);
        transform: none;
        background: var(--header-gold);
        color: #1e0a36;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        padding: 4px 8px;
        border-radius: 4px;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--header-hover-transition);
        z-index: 50;
    }

    .icon-tooltip:hover::after,
    .icon-tooltip:focus-visible::after {
        opacity: 1;
    }

    .search-input {
        
        flex: 1;
        outline: none;
        width: 180px;
        height: 41px;
        padding-left: 10px;
        padding-right: 10px;
        border-style: solid;
        border-color: gray;
        border-width: 1px;
        border-radius: 2px;
        box-shadow: inset 1px 2px 5px rgba(0,0,0,0.1);
        
    }
    
    .search-input:focus {
        outline: 1px solid red;
    }

    .right-section {
        display: flex;
        align-items: center;
        /* background-color: yellow;  */
        width: auto;
        margin-left: auto;
        gap: 0px;
        flex-wrap: wrap;
        justify-content: flex-end;
        padding-bottom: 0px;
        
    }
    .house-button {
        margin-right: 20px;
        color: #3b0764;
        background-color: transparent;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 10px 10px;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        padding-bottom: 0;
        transition: background-color var(--header-hover-transition), color var(--header-hover-transition);
    }
    .house-button:hover {
        cursor: pointer;
        background-color: var(--header-hover-bg);
        color: var(--header-accent);
        border-radius: 25px;
    }
        
    .house-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        filter: none;
        transition: filter var(--header-hover-transition);
    }
    
    .house-button:hover .house-icon {
        filter: invert(24%) sepia(91%) saturate(1800%) hue-rotate(255deg) brightness(80%);
    }
    
    .house-icon:hover {
        cursor: pointer;
    }
    .bag-button {
        margin-right: 12px;
        color: #3b0764;
        background-color: transparent;
        display: inline-flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 10px 10px;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        padding-bottom: 0;
        transition: background-color var(--header-hover-transition), color var(--header-hover-transition);
    }
    .bag-button:hover {
        cursor: pointer;
        background-color: var(--header-hover-bg);
        color: var(--header-accent);
    }
    
    .bag-icon {
        flex-shrink: 0;
        margin-left: 0;
        margin-right: 0;
        filter: none;
        
        transition: filter var(--header-hover-transition);
    }
    .bag-button:hover .bag-icon {
        filter: invert(24%) sepia(91%) saturate(1800%) hue-rotate(255deg) brightness(80%);
    }
    .bag-icon:hover {
        cursor: pointer;
    }

    .bag-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .bag-counter {
        position: absolute;
        top: -8px;
        right: -10px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #dc3545;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
    }

    .bag-counter-empty {
        display: none;
    }

    .treatments-button,
    .treatments-button:hover,
    .treatments-button:focus,
    .treatments-button:active,
    .bag-link,
    .bag-link:hover,
    .bag-link:focus,
    .bag-link:active {
        text-decoration: none;
    }

    .bag-link {
        color: #3b0764;
        display: inline-flex;
        align-items: center;
    }
    .treatments-button {
        margin-right: 10px;
        font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 14px;
        color: #3b0764;
        flex-shrink: 0;
        margin-right: 10px;
        background-color: transparent;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px 4px;
        border: none;
        border-radius: 6px;
        letter-spacing: 0.04em;
        cursor: pointer;
        padding-bottom: 0;
        transition: background-color var(--header-hover-transition), color var(--header-hover-transition);
    }
    .treatments-button:hover {
        cursor: pointer;
        color: var(--header-gold);
        background-color: var(--header-hover-bg);
    }
    .login-div {
        display: flex;
        align-items: center;
        margin-left: 10px;
        gap: 8px;
        
    }
    .account-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        margin-right: 0;
        border-radius: 999px;
        text-decoration: none;
        padding-bottom: 0;
        transition: background-color var(--header-hover-transition);
    }
    .account-button:hover {
        background-color: var(--header-hover-bg);
        color: var(--header-accent);
    }
    .account-icon {
        display: block;
        filter: none;
        transition: filter var(--header-hover-transition);
    }
    .account-button:hover .account-icon {
        filter: invert(24%) sepia(91%) saturate(1800%) hue-rotate(255deg) brightness(80%);
    }
    .account-icon:hover {
        cursor: pointer;
        background-color: transparent;
    }
    .login-button {
        font-family: 'Segoe UI', sans-serif;
        font-size: 14px;
        color: #3b0764;
        flex-shrink: 0;
        margin-right: 0;
        border: none;
        background-color: transparent;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px 4px;
        white-space: nowrap;
        border-radius: 6px;
        letter-spacing: 0.04em;
        cursor: pointer;
        padding-bottom: 0;
        transition: background-color var(--header-hover-transition), color var(--header-hover-transition);
    }
    .login-button:hover {
        cursor: pointer;
        color: var(--header-gold);
        background-color: var(--header-hover-bg);
    }
    .login-button,
    .login-button:hover,
    .login-button:focus,
    .login-button:active,
    .login-button:visited,
    .register-button,
    .register-button:hover,
    .register-button:focus,
    .register-button:active,
    .register-button:visited {
        text-decoration: none;
    }
    .register-button {
        margin-right: 0;
        font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 14px;
        color: #3b0764;
        flex-shrink: 0;
        background-color: transparent;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px 4px;
        border: none;
        border-radius: 6px;
        letter-spacing: 0.04em;
        cursor: pointer;
        padding-bottom: 0;
        transition: background-color var(--header-hover-transition), color var(--header-hover-transition);
    }
    .register-button:hover {
        cursor: pointer;
        color: var(--header-gold);
        background-color: var(--header-hover-bg);
    }
    .bottom-section {
        min-height: 0;
        background: linear-gradient(135deg, #3b0764 0%, #5b21b6 50%, #4c1d95 100%);
        border-top: 1px solid rgba(196, 181, 253, 0.18);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 6px 14px;
        gap: 16px;
        row-gap: 8px;
        flex-wrap: wrap;
        overflow: visible;
    }
    .service-button {
        font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 13px;
        color: rgba(255,255,255,0.88);
        background-color: transparent;
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        padding: 6px 12px;
        border: none;
        white-space: nowrap;
        border-radius: 20px;
        text-decoration: none;
        letter-spacing: 0.03em;
        cursor: pointer;
        padding-bottom: 0;
        transition: background-color 0.25s ease, color 0.25s ease;
    }
    .service-button:hover {
        cursor: pointer;
        color: #1e0a36;
        background-color: var(--header-gold);
    }

    @media (max-width: 1200px) {
        .header {
            padding: 0 14px;
            gap: 8px;
        }

        .left-section {
            width: auto;
            min-width: 90px;
        }

        .logo {
            width: 78px;
            height: 52px;
        }

        .middle-section {
            max-width: 360px;
        }

        .search-input {
            width: 100%;
            min-width: 180px;
        }

        .house-button,
        .bag-button,
        .treatments-button,
        .login-button,
        .register-button {
            padding-top: 16px;
            padding-bottom: 16px;
        }
    }

    @media (max-width: 991.98px) {
        .top-section {
            height: 38px;
            font-size: 13px;
            padding: 0 10px;
            text-align: center;
        }

        .header {
            height: auto;
            flex-wrap: wrap;
            padding: 10px 12px;
        }

        .left-section {
            width: auto;
            min-width: 0;
            flex: 0 0 auto;
        }

        .middle-section {
            order: 3;
            flex: 1 1 100%;
            max-width: none;
            margin: 4px 0 0;
        }

        .search-input {
            height: 40px;
            min-width: 0;
        }

        .search_button {
            height: 40px;
        }

        .right-section {
            flex: 1 1 auto;
            justify-content: flex-end;
        }

        .house-button {
            margin-right: 8px;
            padding-left: 10px;
            padding-right: 10px;
        }

        .treatments-button {
            margin-right: 8px;
        }

        .login-div {
            margin-left: 2px;
            gap: 4px;
        }

        .login-button,
        .register-button,
        .treatments-button {
            font-size: 11px;
            padding-left: 8px;
            padding-right: 8px;
            white-space: nowrap;
        }

        .icon-tooltip::after {
            display: none;
        }
    }

    @media (max-width: 575.98px) {
        .header {
            padding: 8px 8px;
        }

        .logo {
            width: 68px;
            height: 46px;
            padding-top: 4px;
        }

        .right-section {
            gap: 0;
        }

        .house-button,
        .bag-button {
            padding: 10px 8px;
            margin-right: 0;
        }

        .house-icon,
        .bag-icon {
            width: 22px;
            height: 20px;
        }

        .treatments-button,
        .login-button,
        .register-button {
            padding: 10px 6px;
            font-size: 10px;
        }

        .account-icon {
            width: 18px;
            height: 18px;
        }

        .bottom-section {
            padding: 5px 8px;
            gap: 4px;
            row-gap: 4px;
            justify-content: center;
            flex-wrap: wrap;
            overflow: visible;
        }

        .service-button {
            font-size: 10px;
            padding: 4px 7px;
        }
    }

/* ── Hamburger button ── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.hamburger-btn:hover {
    background: var(--header-hover-bg);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #3b0764;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile slide-down nav ── */
.mobile-nav {
    display: none;
    background: #2d0a52;
    border-bottom: 2px solid rgba(196, 181, 253, 0.35);
    box-shadow: 0 4px 16px rgba(30,10,54,0.4);
    z-index: 999;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.mobile-nav.open {
    max-height: 400px;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0 12px;
}

.mobile-nav nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    border-bottom: 1px solid rgba(196,181,253,0.15);
    transition: background 0.15s, color 0.15s;
}

.mobile-nav nav a:last-child {
    border-bottom: none;
}

.mobile-nav nav a:hover,
.mobile-nav nav a:active {
    background: rgba(196,181,253,0.12);
    color: var(--header-gold);
}

.mobile-bag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    margin-left: 2px;
}

/* ── Show hamburger on small screens, hide desktop nav items ── */
@media (max-width: 575.98px) {
    .hamburger-btn {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    /* Hide desktop-only nav links */
    .right-section .house-button,
    .right-section .treatments,
    .right-section .login-div {
        display: none !important;
    }
}

/* JS toggle helper */
.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
