/*
|--------------------------------------------------------------------------
| CLEANING — HEADER
|--------------------------------------------------------------------------
*/

/* ==========================================================================
   GLOBAL
   ========================================================================== */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

.store-theme-cleaning .store-header {
    position: relative;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #dcebe7;
    box-shadow: 0 4px 18px rgba(30, 78, 69, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ==========================================================================
   HEADER INNER
   ========================================================================== */

.store-theme-cleaning .store-header-inner {
    width: min(1360px, calc(100% - 64px));
    min-height: 78px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
    box-sizing: border-box;
}

/* ==========================================================================
   LOGO
   ========================================================================== */

.store-theme-cleaning .store-logo {
    flex: 0 0 auto;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #17312d;
    text-decoration: none;
    box-sizing: border-box;
}

.store-theme-cleaning .store-logo-title {
    display: block;
    color: #17312d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.store-theme-cleaning .store-logo-subtitle {
    display: block;
    margin-top: 6px;
    color: #6c817d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 7px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    white-space: nowrap;
}

.store-theme-cleaning .store-logo-image {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   SEARCH
   ========================================================================== */

.store-theme-cleaning .store-search {
    flex: 1 1 auto;
    min-width: 180px;
}

.store-theme-cleaning .store-search-form {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    border: 1px solid #dcebe7;
    border-radius: 9px;
    background: #f7fbfa;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.store-theme-cleaning .store-search-form:focus-within {
    border-color: #9ccfc2;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(86, 184, 162, 0.10);
}

.store-theme-cleaning .store-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 15px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17312d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    box-sizing: border-box;
}

.store-theme-cleaning .store-search-input::placeholder {
    color: #91a39f;
}

.store-theme-cleaning .store-search-button {
    flex: 0 0 auto;
    height: 100%;
    padding: 0 18px;
    border: 0;
    border-left: 1px solid #dcebe7;
    background: transparent;
    color: #1f8f7a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.store-theme-cleaning .store-search-button:hover {
    color: #176f60;
}

/* ==========================================================================
   HEADER ACTIONS
   ========================================================================== */

.store-theme-cleaning .store-header-actions {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.store-theme-cleaning .store-header-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #dcebe7;
    border-radius: 8px;
    background: #ffffff;
    color: #49645f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.store-theme-cleaning .store-header-action:hover {
    border-color: #b7d9d0;
    background: #f2f9f7;
    color: #176f60;
}

/* ==========================================================================
   CART
   ========================================================================== */

.store-theme-cleaning .store-cart-action {
    gap: 6px;
    border-color: #cfe5df;
    background: #edf8f5;
    color: #176f60;
}

.store-theme-cleaning .store-cart-action:hover {
    border-color: #b7d9d0;
    background: #e4f4ef;
}

.store-theme-cleaning .cart-count {
    width: 20px;
    min-width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    background: #1f8f7a;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

/* ==========================================================================
   MOBILE MENU BUTTON
   ========================================================================== */

.store-theme-cleaning .mobile-menu-button {
    display: none;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d8eae5;
    border-radius: 8px;
    background: #f4faf8;
    color: #1f8f7a;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
}

.store-theme-cleaning .mobile-menu-button:hover {
    background: #eaf6f2;
}

/* ==========================================================================
   CATEGORY BAR
   ========================================================================== */

.store-theme-cleaning .store-category-bar {
    position: relative;
    width: 100%;
    border-top: 1px solid #eff5f3;
    border-bottom: 1px solid #dcebe7;
    background: #ffffff;
}

.store-theme-cleaning .store-category-inner {
    width: min(1360px, calc(100% - 64px));
    min-height: 44px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-sizing: border-box;
}

.store-theme-cleaning .store-category-item {
    position: static;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.store-theme-cleaning .store-category-link {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    color: #4f6863;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.store-theme-cleaning .store-category-link::after {
    content: "";
    position: absolute;
    right: 11px;
    bottom: 7px;
    left: 11px;
    height: 2px;
    border-radius: 999px;
    background: #1f8f7a;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.store-theme-cleaning .store-category-link:hover {
    color: #176f60;
    background: #f6fbfa;
}

.store-theme-cleaning .store-category-link:hover::after {
    transform: scaleX(1);
}

/* ==========================================================================
   SUBCATEGORY MENU
   ========================================================================== */

.store-theme-cleaning .store-subcategory-menu {
    z-index: 1001;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 190px;
    padding: 30px 0 34px;
    background: #ffffff;
    border: 1px solid #dcebe7;
    box-shadow: 0 16px 35px rgba(30, 78, 69, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
    box-sizing: border-box;
}

.store-theme-cleaning .store-category-item:hover .store-subcategory-menu {
    z-index: 1001;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.store-theme-cleaning .store-subcategory-menu .store-subcategory-link {
    display: block;
    width: min(1360px, calc(100% - 64px));
    margin: 0 auto;
    padding: 9px 0;
    color: #58706b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
}

.store-theme-cleaning .store-subcategory-menu .store-subcategory-link:hover {
    color: #176f60;
    background: #f1f8f6;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.store-theme-cleaning .mobile-menu {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #dcebe7;
    box-shadow: 0 15px 35px rgba(30, 78, 69, 0.10);
}

.store-theme-cleaning .mobile-menu-inner {
    width: min(1360px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0;
}

.store-theme-cleaning .mobile-menu-link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid #dcebe7;
    color: #49645f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.store-theme-cleaning .mobile-menu-link:hover {
    background: #f3f9f7;
    color: #176f60;
}

.store-theme-cleaning .mobile-subcategory-list {
    padding: 3px 0 7px 18px;
    border-left: 2px solid #dcebe7;
}

.store-theme-cleaning .mobile-subcategory-link {
    display: block;
    padding: 9px 4px;
    color: #71847f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-decoration: none;
}

.store-theme-cleaning .mobile-subcategory-link:hover {
    color: #176f60;
    background: #f7fbfa;
}

/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1150px) {

    .store-theme-cleaning .store-header-inner {
        width: calc(100% - 40px);
        gap: 20px;
    }

    .store-theme-cleaning .store-logo {
        min-width: 165px;
    }

    .store-theme-cleaning .store-logo-title {
        font-size: 19px;
    }

    .store-theme-cleaning .store-header-action {
        padding: 0 8px;
    }
}

/* ==========================================================================
   MOBILE HEADER
   ========================================================================== */

@media (max-width: 900px) {

    .store-theme-cleaning .store-header-inner {
        width: calc(100% - 24px);
        min-height: 64px;
        padding: 10px 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 7px;
    }

    .store-theme-cleaning .store-logo {
        flex: 1 1 auto;
        min-width: 0;
        align-items: flex-start;
        overflow: hidden;
    }

    .store-theme-cleaning .store-logo-title {
        font-size: 18px;
        line-height: 1.05;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .store-theme-cleaning .store-logo-subtitle {
        margin-top: 5px;
        font-size: 6px;
        letter-spacing: 0.14em;
    }

    .store-theme-cleaning .store-search {
        display: none;
    }

    .store-theme-cleaning .store-header-actions {
        flex: 0 0 auto;
        margin-left: auto;
        gap: 4px;
    }

    .store-theme-cleaning .store-header-actions .store-header-action {
        flex: 0 0 auto;
        min-width: 0;
        min-height: 36px;
        height: 36px;
        padding: 0 7px;
        font-size: 9px;
        letter-spacing: 0.01em;
    }

    .store-theme-cleaning .store-header-action::before {
        content: none !important;
    }

    .store-theme-cleaning .store-cart-action {
        min-width: 56px;
        gap: 5px;
        padding: 0 6px;
    }

    .store-theme-cleaning .store-cart-action::before {
        content: "Sepet" !important;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .store-theme-cleaning .cart-count {
        width: 18px;
        min-width: 18px;
        height: 18px;
        font-size: 8px;
    }

    .store-theme-cleaning .mobile-menu-button {
        display: inline-flex;
        flex: 0 0 36px;
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
    }

    .store-theme-cleaning .store-category-bar {
        display: none;
    }
}

/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 640px) {

    .store-theme-cleaning .store-header-inner {
        width: calc(100% - 18px);
        min-height: 60px;
        padding: 8px 0;
        gap: 4px;
    }

    .store-theme-cleaning .store-logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .store-theme-cleaning .store-logo-title {
        font-size: 16px;
    }

    .store-theme-cleaning .store-logo-subtitle {
        margin-top: 4px;
        font-size: 5px;
        letter-spacing: 0.10em;
    }

    .store-theme-cleaning .store-header-actions {
        gap: 3px;
    }

    .store-theme-cleaning .store-header-actions .store-header-action {
        min-height: 34px;
        height: 34px;
        padding: 0 6px;
        font-size: 8px;
    }

    .store-theme-cleaning .store-header-actions .store-cart-action {
        min-width: 52px;
        padding: 0 5px;
    }

    .store-theme-cleaning .store-header-actions .cart-count {
        width: 17px;
        min-width: 17px;
        height: 17px;
        font-size: 8px;
    }

    .store-theme-cleaning .mobile-menu-button {
        flex-basis: 34px;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
    }
}

/* ==========================================================================
   VERY SMALL MOBILE
   ========================================================================== */

@media (max-width: 390px) {

    .store-theme-cleaning .store-header-inner {
        width: calc(100% - 12px);
        gap: 3px;
    }

    .store-theme-cleaning .store-logo-title {
        font-size: 15px;
    }

    .store-theme-cleaning .store-logo-subtitle {
        font-size: 4.5px;
    }

    .store-theme-cleaning .store-header-actions {
        gap: 2px;
    }

    .store-theme-cleaning .store-header-actions .store-header-action {
        min-height: 32px;
        height: 32px;
        padding: 0 5px;
        font-size: 7px;
    }

    .store-theme-cleaning .store-header-actions .store-cart-action {
        min-width: 49px;
    }

    .store-theme-cleaning .mobile-menu-button {
        flex-basis: 32px;
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
    }
}

/* ==========================================================================
   DESKTOP ACTIONS
   ========================================================================== */

@media (min-width: 641px) {

    .store-theme-cleaning .store-header-actions .store-header-action {
        min-height: 40px;
        padding: 0 11px;
        font-size: 11px;
        font-weight: 600;
    }
}

/* ==========================================================================
   DESKTOP CATEGORY
   ========================================================================== */

@media (min-width: 901px) {

    .store-theme-cleaning .store-category-inner {
        min-height: 48px;
        gap: 18px;
    }

    .store-theme-cleaning .store-category-item {
        min-height: 48px;
    }

    .store-theme-cleaning .store-category-link {
        min-height: 48px;
        padding: 0 10px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.03em;
    }

    .store-theme-cleaning .store-category-link::after {
        bottom: 6px;
        height: 2px;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {

    .store-theme-cleaning .store-category-inner {
        gap: 12px;
    }

    .store-theme-cleaning .store-category-link {
        font-size: 10px;
        padding: 0 8px;
    }
}
/* ==========================================================
   CLEANING — FINAL MOBILE HEADER RESET
   ========================================================== */

@media (max-width: 900px) {

    /* Header sloganı tekrar logo altında normal akışa dönsün */
    .store-theme-cleaning .store-logo-subtitle {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        inset: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        white-space: normal !important;
        z-index: auto !important;
    }

    /* Fazladan gelen ikinci "Sepet" yazısını kapat */
    .store-theme-cleaning .store-cart-action::before,
    .store-theme-cleaning .store-cart-action::after {
        content: none !important;
        display: none !important;
    }
}
/* ==========================================================
   CLEANING — LOGO SLOGAN ALT ÇİZGİ MESAFESİ
   ========================================================== */

.store-theme-cleaning .store-logo-subtitle {
    padding-bottom: 7px !important;
}

/* ==========================================================
   CLEANING — MOBILE HEADER SIZE MATCH
   Fashion / Beauty mobil ölçülerine yaklaştır
   ========================================================== */

@media (max-width: 900px) {

    .store-theme-cleaning .store-header-actions {
        gap: 4px !important;
    }

    .store-theme-cleaning .store-header-actions .store-header-action {
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 8px !important;
        font-size: 9px !important;
    }

    .store-theme-cleaning .store-cart-action {
        min-width: 58px !important;
        min-height: 38px !important;
        height: 38px !important;
    }

    .store-theme-cleaning .mobile-menu-button {
        flex-basis: 38px !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
    }
}

@media (max-width: 640px) {

    .store-theme-cleaning .store-header-actions .store-header-action {
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 8px !important;
        font-size: 9px !important;
    }

    .store-theme-cleaning .store-cart-action {
        min-width: 58px !important;
        min-height: 38px !important;
        height: 38px !important;
    }

    .store-theme-cleaning .mobile-menu-button {
        flex-basis: 38px !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
    }
}

@media (max-width: 390px) {

    .store-theme-cleaning .store-header-actions .store-header-action {
        min-height: 35px !important;
        height: 35px !important;
        padding: 0 7px !important;
        font-size: 8px !important;
    }

    .store-theme-cleaning .store-cart-action {
        min-width: 54px !important;
        min-height: 35px !important;
        height: 35px !important;
    }

    .store-theme-cleaning .mobile-menu-button {
        flex-basis: 35px !important;
        width: 35px !important;
        min-width: 35px !important;
        height: 35px !important;
        min-height: 35px !important;
    }
}
/* ==========================================================
   CLEANING — MOBILE LOGO / SLOGAN SPACING
   ========================================================== */

@media (max-width: 900px) {

    .store-theme-cleaning .store-logo-subtitle {
        margin-top: 9px !important;
    }
}
