/**
 * Custom Header Styles
 * Modern Arabic e-commerce header design
 */

/* Custom Header Container */
.custom-header {
    background-color: var(--custom-header-bg, #f8f9fa);
    color: var(--custom-header-text, #333333);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
}

/* Top Header Bar */
.custom-top-header {
    background-color: var(--custom-header-accent, #000000);
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
}

.custom-top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-announcement {
    flex: 1;
    text-align: center;
}

.custom-announcement a {
    color: #ffffff;
    text-decoration: none;
}

.custom-top-header-actions {
    display: flex;
    align-items: center;
}

.custom-top-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.custom-top-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.custom-top-menu a:hover {
    opacity: 0.8;
}

/* Main Header */
.custom-main-header {
    height: var(--custom-header-height, 70px);
    display: flex;
    align-items: center;
}

.custom-header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.custom-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    width: 100%;
}

/* Left Section - Navigation */
.custom-header-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* Center Section - Logo */
.custom-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    flex: 0 0 auto;
    order: 2;
    display: flex;
    align-items: center;
}

/* Right Section - Actions */
.custom-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    order: 3;
}

/* Notifications Icon */
.custom-header-notifications {
    position: relative;
    margin-right: 15px;
}

.notifications-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--custom-header-text, #333333);
    transition: color 0.3s ease;
    position: relative;
}

.notifications-btn:hover {
    color: var(--custom-header-accent, #000000);
}

.notifications-btn svg {
    width: 18px;
    height: 18px;
}

.notification-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ff4444;
    color: #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Mobile Menu Toggle - Left Side */
.custom-header-mobile-toggle {
    display: flex;
    align-items: center;
    order: 0;
    flex: 0 0 auto;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    margin-right: 15px;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--custom-header-text, #333333);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn:hover .hamburger-line {
    background-color: var(--custom-header-accent, #000000);
}

/* Navigation Menu - Left Side */
.custom-header-nav {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.custom-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.custom-nav-menu li {
    position: relative;
}

.custom-nav-menu a {
    color: var(--custom-header-text, #333333);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.3s ease;
    display: block;
}

.custom-nav-menu a:hover {
    color: var(--custom-header-accent, #000000);
}

/* Logo/Brand - Center */
.custom-header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.custom-header-logo img {
    max-height: var(--custom-logo-size, 35px);
    width: auto;
}

.custom-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--custom-header-text, #333333);
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 1px;
}

.custom-logo-text:hover {
    color: var(--custom-header-accent, #000000);
}

/* Header Actions - Right Side */
.custom-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Icon */
.custom-header-search-icon {
    display: flex;
    align-items: center;
}

.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--custom-header-text, #333333);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-btn:hover {
    color: var(--custom-header-accent, #000000);
}

.search-icon-btn svg {
    width: 18px;
    height: 18px;
}

.custom-header-wishlist,
.custom-header-account {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--custom-header-accent, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-header-wishlist:hover,
.custom-header-account:hover {
    background-color: var(--custom-header-text, #333333);
    transform: scale(1.05);
}

.custom-header-wishlist svg,
.custom-header-account svg {
    color: #ffffff;
    width: 18px;
    height: 18px;
}

/* Shopping Cart */
.custom-header-cart {
    position: relative;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--custom-header-accent, #000000);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 60px;
    justify-content: center;
}

.cart-btn:hover {
    background-color: var(--custom-header-text, #333333);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cart-text {
    font-size: 12px;
    font-weight: 500;
}

.cart-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 1px;
}

.cart-icon svg {
    color: var(--custom-header-accent, #000000);
    width: 10px;
    height: 10px;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #ff4444;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Search Bar */
.custom-header-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--custom-header-bg, #ffffff);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
}

.custom-header-search.active {
    display: block;
}

.search-input-group {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-field {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    border-color: var(--custom-header-accent, #000000);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--custom-header-accent, #000000);
    transition: color 0.3s ease;
}

.search-submit:hover {
    color: var(--custom-header-text, #333333);
}

/* Mobile Menu Overlay */
body.menu-open {
    overflow: hidden;
    touch-action: none;
}

.custom-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(9, 14, 24, 0.56);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

.custom-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: min(86vw, 380px);
    height: 100%;
    background-color: #ffffff;
    box-shadow: 14px 0 36px rgba(15, 23, 42, 0.24);
    transform: translateX(-100%);
    transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    direction: rtl;
}

.custom-mobile-menu-overlay.active .custom-mobile-menu {
    transform: translateX(0);
}

.mobile-menu-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 14px;
    background: #f7f8fc;
    border-bottom: 1px solid #e7ebf5;
}

.mobile-menu-search-form {
    flex: 1 1 auto;
    min-width: 0;
    direction: ltr;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe4f1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.mobile-menu-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 52px;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 500;
    color: #23263a;
    background: transparent;
    direction: rtl;
    text-align: right;
}

.mobile-menu-search-input::placeholder {
    color: #9aa1b5;
}

.mobile-menu-search-input:focus {
    outline: none;
}

.mobile-menu-search-form:focus-within {
    border-color: #453ec1;
    box-shadow: 0 10px 24px rgba(69, 62, 193, 0.18);
}

.mobile-menu-search-btn {
    position: static;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 0;
    border-left: 1px solid #dfe4f1;
    background: #453ec1;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    border: 1px solid #dde2ef;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    color: #6d7288;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.mobile-menu-close:hover {
    color: #453ec1;
    border-color: #453ec1;
}

.mobile-menu-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
}

.mobile-menu-tab {
    height: 58px;
    border: 0;
    border-left: 1px solid #e9e9e9;
    background: #f3f3f3;
    color: #898989;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    text-transform: none;
}

.mobile-menu-tab:first-child {
    border-left: 0;
}

.mobile-menu-tab.is-active {
    background: #ffffff;
    color: #222222;
    box-shadow: inset 0 -3px 0 #453ec1;
}

.mobile-menu-panels {
    flex: 1 1 auto;
    min-height: 0;
    background: #ffffff;
    overflow: hidden;
}

.mobile-menu-panel {
    display: none;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-panel.is-active {
    display: block;
}

.mobile-nav-menu,
.mobile-category-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu > li,
.mobile-category-menu > li {
    position: relative;
    border-bottom: 1px solid #ececec;
}

.mobile-nav-menu a,
.mobile-category-menu a {
    display: block;
    padding: 21px 56px 21px 18px;
    color: #1f1f1f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.mobile-category-menu a {
    text-transform: none;
    font-weight: 600;
}

.mobile-nav-menu a:hover,
.mobile-category-menu a:hover {
    color: #453ec1;
}

.mobile-nav-menu .sub-menu,
.mobile-category-menu .children {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fafafa;
    border-top: 1px solid #ececec;
}

.mobile-nav-menu .sub-menu li,
.mobile-category-menu .children li {
    border-bottom: 1px solid #efefef;
}

.mobile-nav-menu .sub-menu a,
.mobile-category-menu .children a {
    padding: 14px 48px 14px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
}

.mobile-has-children > a {
    padding-right: 72px;
}

.mobile-submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 100%;
    border: 0;
    border-left: 1px solid #ececec;
    background: #ffffff;
    color: #808080;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-submenu-toggle::before {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.25s ease;
}

.mobile-has-children.is-open > .mobile-submenu-toggle {
    background: #f6f7fb;
}

.mobile-has-children.is-open > .mobile-submenu-toggle::before {
    transform: rotate(45deg);
    margin-top: -4px;
}

.mobile-nav-menu li.is-open > .sub-menu,
.mobile-category-menu li.is-open > .children {
    display: block;
}

.mobile-menu-empty {
    padding: 16px 18px;
    color: #6a6a6a;
    font-size: 14px;
}

.mobile-menu-footer-links {
    border-top: 1px solid #ececec;
    background: #ffffff;
}

.mobile-footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    color: #202020;
    text-decoration: none;
    border-bottom: 1px solid #efefef;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.mobile-footer-link:last-child {
    border-bottom: 0;
}

.mobile-footer-link:hover {
    color: #453ec1;
}

.mobile-footer-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Beauty mobile menu visual direction */
.custom-header.beauty + .custom-mobile-menu-overlay .mobile-menu-search-form:focus-within {
    border-color: #d9a892;
    box-shadow: 0 10px 24px rgba(217, 168, 146, 0.25);
}

.custom-header.beauty + .custom-mobile-menu-overlay .mobile-menu-search-btn {
    background: #d9a892;
    border-left-color: #e9d5cc;
}

.custom-header.beauty + .custom-mobile-menu-overlay .mobile-menu-tab.is-active {
    box-shadow: inset 0 -3px 0 #d9a892;
}

.custom-header.beauty + .custom-mobile-menu-overlay .mobile-nav-menu a:hover,
.custom-header.beauty + .custom-mobile-menu-overlay .mobile-category-menu a:hover,
.custom-header.beauty + .custom-mobile-menu-overlay .mobile-footer-link:hover {
    color: #d9a892;
}

@media (max-width: 480px) {
    .custom-mobile-menu {
        width: 92vw;
    }

    .mobile-menu-tab {
        font-size: 14px;
        height: 54px;
    }

    .mobile-nav-menu a,
    .mobile-category-menu a {
        font-size: 15px;
        padding-top: 19px;
        padding-bottom: 19px;
    }
}

/* Responsive Design */
/* Mobile Layout - Simplified */
@media (max-width: 768px) {
    .custom-header-container {
        padding: 0 15px;
    }
    
    /* Reduce header height on mobile */
    .custom-header {
        height: 60px !important;
    }
    
    /* Hide top header on mobile */
    .custom-top-header {
        display: none;
    }
    
    /* Hide navigation on mobile */
    .custom-header-nav {
        display: none;
    }
    
    /* Mobile layout: Left (Hamburger) | Center (Logo) | Right (Cart) */
    .custom-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }
    
    /* Left Section - Hamburger Menu */
    .custom-header-left {
        display: flex;
        align-items: center;
        order: 1;
        flex: 0 0 auto;
    }
    
    /* Center Section - Logo */
    .custom-header-center {
        position: static;
        transform: none;
        flex: 1;
        text-align: center;
        order: 2;
    }
    
    /* Right Section - Cart Only */
    .custom-header-right {
        display: flex;
        align-items: center;
        order: 3;
        flex: 0 0 auto;
    }
    
    /* Show only hamburger menu on mobile */
    .custom-header-mobile-toggle {
        display: flex;
    }
    
    /* Hide all other icons on mobile */
    .custom-header-notifications,
    .custom-header-search-icon,
    .custom-header-wishlist,
    .custom-header-account {
        display: none;
    }
    
    /* Show only cart on mobile */
    .custom-header-cart {
        display: flex;
    }
    
    /* Cart button styling for mobile */
    .cart-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: auto;
    }
    
    .cart-text {
        display: none;
    }
    
    .cart-icon {
        width: 16px;
        height: 16px;
    }
    
    .cart-icon svg {
        width: 14px;
        height: 14px;
    }
    
    /* Hamburger menu styling for mobile */
    .mobile-menu-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        width: 36px;
        height: 36px;
        justify-content: center;
        align-items: center;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
        background-color: var(--custom-header-text, #333333);
        transition: all 0.3s ease;
    }
    
    /* Logo sizing for mobile */
    .custom-header-logo img {
        max-height: 35px;
    }
    
    .custom-header-logo .custom-logo-text {
        font-size: 20px;
    }
}

/* Extra Small Mobile - Simplified */
@media (max-width: 480px) {
    .custom-header-container {
        padding: 0 10px;
    }
    
    /* Even smaller header height for very small screens */
    .custom-header {
        height: 50px !important;
    }
    
    /* Smaller hamburger menu */
    .mobile-menu-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
    
    /* Smaller cart button */
    .cart-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .cart-icon svg {
        width: 12px;
        height: 12px;
    }
    
    /* Smaller logo */
    .custom-header-logo img {
        max-height: 30px;
    }
    
    .custom-header-logo .custom-logo-text {
        font-size: 18px;
    }
}

/* Hide Edit Icons and WordPress Admin Elements */
.custom-header .edit-icon,
.custom-header .wp-admin-bar,
.custom-header .customize-partial-edit-shortcut,
.custom-header .customize-partial-edit-shortcut-button,
.custom-header .customize-partial-edit-shortcut-visible,
.custom-header .wp-customizer .customize-partial-edit-shortcut,
.custom-header .wp-customizer .customize-partial-edit-shortcut-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide any edit buttons that might appear */
.custom-header [class*="edit"],
.custom-header [class*="customize"],
.custom-header [class*="shortcut"] {
    display: none !important;
}

/* Top Header Styles */
.custom-top-header {
    background-color: #f8f9fa;
    color: #666666;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid #e9ecef;
}

.custom-top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.custom-top-header-left,
.custom-top-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-top-header a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-top-header a:hover {
    color: #000000;
}

/* Custom Header Styles - Static CSS Only */

.custom-header-container {
    padding: 0 var(--custom-header-padding);
}

.custom-header-logo img {
    max-height: var(--custom-logo-size);
    width: auto;
}

/* Sticky Header Parts */
.custom-header.sticky-enabled {
    position: relative;
    padding-top: var(--jude-sticky-total-height, 0px);
    z-index: 1200;
}

.custom-header.sticky-enabled .sticky-part {
    position: fixed;
    left: 0;
    right: 0;
}

.custom-header .sticky-top {
    top: var(--jude-sticky-top-offset, 0px);
    z-index: 1300;
}

.custom-header .sticky-main {
    top: var(--jude-sticky-main-offset, 0px);
    z-index: 1250;
}

.custom-header .sticky-nav {
    top: var(--jude-sticky-nav-offset, 0px);
    z-index: 1225;
}

/* Fashion Header */
.custom-header.fashion {
    background-color: #ffffff;
    color: #111827;
}

.custom-header.fashion .custom-header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.custom-header.fashion .fashion-top-header {
    background: #0b1220;
    color: #ffffff;
    font-size: 13px;
}

.custom-header.fashion .fashion-top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    min-height: 52px;
    position: relative;
}

.custom-header.fashion .fashion-top-announcement {
    flex: 1;
    color: #ffffff;
}

.custom-header.fashion .fashion-top-social {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.custom-header.fashion .fashion-top-social a {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    transition: color 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease, transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-header.fashion .fashion-top-social a i {
    font-size: 14px;
    transition: color 0.32s ease;
}

.custom-header.fashion .fashion-top-social a:hover,
.custom-header.fashion .fashion-top-social a:focus-visible {
    color: var(--custom-header-accent, #453ec1);
    border-color: var(--custom-header-accent, #453ec1);
    box-shadow: 0 0 0 3px rgba(69, 62, 193, 0.18);
    transform: rotate(360deg);
}

.custom-header.fashion .fashion-top-social a:hover i,
.custom-header.fashion .fashion-top-social a:focus-visible i {
    color: var(--custom-header-accent, #453ec1);
}

.custom-header.fashion .fashion-top-left,
.custom-header.fashion .fashion-top-right {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.custom-header.fashion .fashion-top-left {
    margin-right: 0;
}

.custom-header.fashion .fashion-top-right {
    margin-left: 0;
}

.custom-header.fashion .fashion-top-menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.custom-header.fashion .fashion-top-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
}

.custom-header.fashion .fashion-top-nav a {
    color: #ffffff;
}

.custom-header.fashion .fashion-main-header {
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
    padding: 14px 0;
}

.custom-header.fashion .fashion-main-row {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
}

/* Fashion Header Inline Search Bar */
.custom-header.fashion .fashion-search-inline {
    flex: 1 1 auto;
    max-width: none;
    margin: 0 18px;
    display: flex;
    justify-content: center;
    order: 2;
}

.custom-header.fashion .fashion-search-inline .judev-searchbar-inline {
    --judev-searchbar-height: 46px;
    --judev-searchbar-padding: 4px;
    --judev-searchbar-bg: #ffffff;
    --judev-searchbar-border: rgba(17, 24, 39, 0.12);
    --judev-searchbar-border-hover: rgba(17, 24, 39, 0.22);
    --judev-searchbar-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    --judev-searchbar-shadow-hover: 0 10px 24px rgba(15, 23, 42, 0.1);
    --judev-searchbar-btn-size: 38px;
    --judev-searchbar-btn-color: #453ec1;
    --judev-searchbar-gap: 10px;
    --judev-searchbar-placeholder: #9aa3af;
    --judev-searchbar-font-size: 14px;

    display: flex;
    align-items: center;
    gap: var(--judev-searchbar-gap);
    width: 100%;
    height: var(--judev-searchbar-height);
    box-sizing: border-box;
    padding: var(--judev-searchbar-padding);
    background: var(--judev-searchbar-bg);
    border: 1px solid var(--judev-searchbar-border);
    border-radius: 999px;
    box-shadow: var(--judev-searchbar-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-header.fashion .fashion-search-inline .judev-searchbar-inline:hover,
.custom-header.fashion .fashion-search-inline .judev-searchbar-inline:focus-within {
    border-color: var(--judev-searchbar-border-hover);
    box-shadow: var(--judev-searchbar-shadow-hover);
}

.custom-header.fashion .fashion-search-inline .judev-searchbar-inline__input {
    order: 1;
    flex: 1 1 auto;
    height: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: var(--judev-searchbar-font-size);
    color: #0f172a;
    text-align: right;
    direction: rtl;
    padding: 0 10px;
}

.custom-header.fashion .fashion-search-inline .judev-searchbar-inline__input::placeholder {
    color: var(--judev-searchbar-placeholder);
    opacity: 1;
    text-align: right;
}

.custom-header.fashion .fashion-search-inline .judev-searchbar-inline__btn {
    order: 2;
    width: var(--judev-searchbar-btn-size);
    height: var(--judev-searchbar-btn-size);
    border: 0;
    border-radius: 999px;
    background: var(--judev-searchbar-btn-color) !important;
    color: #ffffff;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.custom-header.fashion .fashion-search-inline .judev-searchbar-inline__icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
    display: block;
}

@media (max-width: 992px) {
    .custom-header.fashion .fashion-search-inline {
        display: none;
    }
}

.custom-header.fashion .fashion-logo {
    min-width: 140px;
    order: 1;
}

.custom-header.fashion .fashion-search {
    flex: 1;
}

.custom-header.fashion .fashion-search form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 12px 6px 6px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    position: relative;
}

.custom-header.fashion .fashion-search input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #111827;
    text-align: right;
    padding-right: 8px;
}

.custom-header.fashion .fashion-search-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    border: 0;
    background: #453ec1;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(69, 62, 193, 0.35);
}

.custom-header.fashion .fashion-search-btn .fashion-search-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23ffffff' stroke-width='2'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.custom-header.fashion .fashion-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    justify-content: flex-end;
    order: 3;
}

.custom-header.fashion .fashion-call {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
    align-items: flex-end;
    text-align: right;
}

.custom-header.fashion .fashion-call strong {
    font-size: 14px;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
}

.custom-header.fashion .fashion-call-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #453ec1;
}

.custom-header.fashion .fashion-flash {
    background: #453ec1;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
}

.custom-header.fashion .fashion-nav {
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

.custom-header.fashion .fashion-nav-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    justify-content: space-between;
}

.custom-header.fashion .fashion-cats {
    position: relative;
}

.custom-header.fashion .fashion-cats-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 18px;
    font-weight: 700;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.custom-header.fashion .fashion-cats-icon {
    font-size: 14px;
    line-height: 1;
}

.custom-header.fashion .fashion-cats-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #111827;
    display: inline-block;
}

.custom-header.fashion .fashion-cats-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 50;
}

.custom-header.fashion .fashion-cats:hover .fashion-cats-menu,
.custom-header.fashion .fashion-cats:focus-within .fashion-cats-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-header.fashion .fashion-cats-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-header.fashion .fashion-cats-list li a {
    display: block;
    padding: 10px 16px;
    color: #111827;
    font-weight: 600;
}

.custom-header.fashion .fashion-cats-list li a:hover {
    background: var(--custom-header-accent, #453ec1);
    color: #ffffff;
}

.custom-header.fashion .fashion-main-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.custom-header.fashion .fashion-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    flex: 1;
}

.custom-header.fashion .fashion-menu a {
    color: #111827;
    font-weight: 600;
}

.custom-header.fashion .fashion-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 190px;
    justify-content: flex-end;
}

.custom-header.fashion .fashion-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f5f7fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
}

.custom-header.fashion .fashion-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #453ec1;
    color: #ffffff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.custom-header.fashion .fashion-icons-spacer {
    width: 120px;
    visibility: hidden;
}

.custom-header.fashion .fashion-icons a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
}

.custom-header.fashion .fashion-icons a svg {
    width: 18px;
    height: 18px;
}

.custom-header.fashion .fashion-mobile-toggle,
.custom-header.fashion .fashion-mobile-cart {
    display: none;
}

.custom-header.fashion .fashion-mobile-cart-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    color: #2d2d2d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.custom-header.fashion .fashion-mobile-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #453ec1;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    /* Disable sticky offsets on mobile Fashion header to avoid ghost white gap */
    .custom-header.fashion.sticky-enabled {
        padding-top: 0 !important;
    }

    .custom-header.fashion.sticky-enabled .sticky-part {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }

    .custom-header.fashion .fashion-top-header-inner {
        justify-content: center;
        min-height: 48px;
        padding: 10px 0;
        gap: 18px;
    }

    .custom-header.fashion .fashion-top-left,
    .custom-header.fashion .fashion-top-right,
    .custom-header.fashion .fashion-top-announcement,
    .custom-header.fashion .fashion-top-menu {
        display: none;
    }

    .custom-header.fashion .fashion-top-social {
        margin: 0 auto;
        gap: 22px;
        position: static;
        left: auto;
        top: auto;
        transform: none;
    }

    .custom-header.fashion .fashion-top-social a {
        width: auto;
        height: auto;
        border: 0;
        border-radius: 0;
        background: transparent;
        padding: 0;
        font-size: 30px;
        line-height: 1;
    }

    .custom-header.fashion .fashion-main-header {
        padding: 14px 0;
        margin-bottom: 10px;
    }

    .custom-header.fashion .fashion-main-row {
        display: grid;
        grid-template-columns: 52px 1fr 52px;
        align-items: center;
        gap: 10px;
        direction: rtl;
    }

    .custom-header.fashion .fashion-logo {
        order: 2;
        grid-column: 2;
        min-width: 0;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .custom-header.fashion .fashion-logo .custom-logo-link {
        display: inline-flex;
        justify-content: center;
    }

    .custom-header.fashion .fashion-logo img {
        max-height: 44px;
        width: auto;
    }

    .custom-header.fashion .fashion-search-inline,
    .custom-header.fashion .fashion-actions,
    .custom-header.fashion .fashion-nav {
        display: none !important;
    }

    .custom-header.fashion .fashion-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        order: 1;
        grid-column: 1;
    }

    .custom-header.fashion .fashion-mobile-toggle .mobile-menu-btn {
        margin-right: 0;
        width: 34px;
        height: 34px;
        padding: 4px;
        gap: 4px;
        justify-content: center;
        align-items: center;
    }

    .custom-header.fashion .fashion-mobile-toggle .hamburger-line {
        width: 28px;
        height: 3px;
        background-color: #343434;
    }

    .custom-header.fashion .fashion-mobile-cart {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        order: 3;
        grid-column: 3;
    }

    .custom-header.fashion .fashion-mobile-cart-btn {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 575px) {
    .custom-header.fashion .fashion-top-social a {
        font-size: 26px;
    }

    .custom-header.fashion .fashion-main-row {
        grid-template-columns: 48px 1fr 48px;
    }

    .custom-header.fashion .fashion-logo img {
        max-height: 38px;
    }
}

/* Beauty Header */
.custom-header.beauty {
    background: var(--beauty-main-bg, #ffffff);
    color: var(--beauty-text, #1f1f1f);
    border-bottom: 1px solid var(--beauty-border, #e9e1dc);
    box-shadow: none;
}

.custom-header.beauty .custom-header-container {
    max-width: 1280px;
}

.custom-header.beauty .beauty-top-header {
    background: var(--beauty-top-bg, #f1cfc0);
    color: var(--beauty-text, #1f1f1f);
    border-bottom: 1px solid var(--beauty-border, #e9e1dc);
}

.custom-header.beauty .beauty-top-header-inner {
    min-height: 30px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.custom-header.beauty .beauty-top-header__left {
    justify-self: start;
}

.custom-header.beauty .beauty-top-header__center {
    justify-self: center;
    text-align: center;
}

.custom-header.beauty .beauty-top-header__right {
    justify-self: end;
}

.custom-header.beauty .beauty-main-header {
    background: var(--beauty-main-bg, #ffffff);
    border-bottom: 1px solid var(--beauty-border, #e9e1dc);
}

.custom-header.beauty .beauty-main-row {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    direction: ltr;
}

.custom-header.beauty .beauty-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-header.beauty .beauty-logo .custom-logo-link {
    display: inline-flex;
}

.custom-header.beauty .beauty-logo img {
    max-width: var(--beauty-logo-max-width, 140px);
    max-height: 44px;
    width: auto;
}

.custom-header.beauty .beauty-search {
    min-width: 0;
    flex: 0 0 var(--beauty-search-width, 320px);
    max-width: var(--beauty-search-width, 320px);
    order: 1;
}

.custom-header.beauty .beauty-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid var(--beauty-search-border, var(--beauty-border, #e9e1dc));
    border-radius: var(--beauty-search-radius, 999px);
    background: var(--beauty-search-bg, #ffffff);
    min-height: var(--beauty-search-height, 54px);
    padding: 3px 4px 3px 14px;
}

.custom-header.beauty .beauty-search-form input[type="search"] {
    border: 0;
    background: transparent;
    outline: none;
    height: calc(var(--beauty-search-height, 54px) - 8px);
    width: 100%;
    min-width: 0;
    color: var(--beauty-search-text, var(--beauty-muted, #616161));
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.custom-header.beauty .beauty-search-form input[type="search"]::placeholder {
    color: var(--beauty-search-placeholder, var(--beauty-muted, #616161));
    opacity: 1;
}

.custom-header.beauty .beauty-search-btn {
    width: var(--beauty-search-btn-size, 38px);
    height: var(--beauty-search-btn-size, 38px);
    border: 0;
    border-radius: var(--beauty-search-btn-radius, 999px);
    background: var(--beauty-search-btn-bg, var(--beauty-accent, #d9a892));
    color: var(--beauty-search-icon, #ffffff) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    line-height: 0;
    position: relative;
}

.custom-header.beauty .beauty-search-btn svg,
.custom-header.beauty .beauty-search-btn svg path,
.custom-header.beauty .beauty-search-btn svg circle {
    display: none !important;
    width: 18px;
    height: 18px;
    color: var(--beauty-search-icon, #ffffff) !important;
    fill: transparent !important;
    stroke: var(--beauty-search-icon, #ffffff) !important;
    opacity: 1 !important;
}

.custom-header.beauty .beauty-search-btn svg * {
    fill: transparent !important;
    stroke: var(--beauty-search-icon, #ffffff) !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.custom-header.beauty .beauty-search-btn::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2.2px solid var(--beauty-search-icon, #ffffff);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-57%, -62%);
    pointer-events: none;
}

.custom-header.beauty .beauty-search-btn::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2.4px;
    background: var(--beauty-search-icon, #ffffff);
    border-radius: 99px;
    top: 58%;
    left: 57%;
    transform: rotate(45deg);
    transform-origin: left center;
    pointer-events: none;
}

.custom-header.beauty .beauty-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin-left: auto;
    margin-right: 0;
    order: 3;
}

.custom-header.beauty .beauty-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--beauty-text, #1f1f1f);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
}

.custom-header.beauty .beauty-action:hover {
    color: var(--beauty-accent, #d9a892);
}

.custom-header.beauty .beauty-action__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-header.beauty .beauty-action__count {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 5px;
    background: var(--beauty-badge-bg, #111111);
    color: #ffffff;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
}

.custom-header.beauty .beauty-action__total {
    color: var(--beauty-muted, #616161);
    font-size: 11px;
}

.custom-header.beauty .beauty-action--cart {
    width: 34px;
    height: 34px;
    border: 1px solid var(--beauty-border, #e9e1dc);
    border-radius: 999px;
    background: #ffffff;
    justify-content: center;
    position: relative;
    padding: 0;
    gap: 0;
}

.custom-header.beauty .beauty-action--cart .beauty-action__icon {
    width: 17px;
    height: 17px;
}

.custom-header.beauty .beauty-action--cart .beauty-action__count {
    position: absolute;
    top: -6px;
    right: -6px;
}

.custom-header.beauty .beauty-action--cart:hover {
    border-color: var(--beauty-accent, #d9a892);
    color: var(--beauty-accent, #d9a892);
}

.custom-header.beauty .beauty-nav {
    background: var(--beauty-nav-bg, #f9f7f5);
    border-bottom: 1px solid var(--beauty-border, #e9e1dc);
}

.custom-header.beauty .beauty-nav-row {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.custom-header.beauty .beauty-cats {
    position: relative;
}

.custom-header.beauty .beauty-cats-btn {
    border: 0;
    background: var(--beauty-accent, #d9a892);
    color: #ffffff;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.custom-header.beauty .beauty-cats-btn__icon {
    font-size: 14px;
    line-height: 1;
}

.custom-header.beauty .beauty-cats-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid var(--beauty-border, #e9e1dc);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.custom-header.beauty .beauty-cats:hover .beauty-cats-menu,
.custom-header.beauty .beauty-cats:focus-within .beauty-cats-menu,
.custom-header.beauty .beauty-cats.is-open .beauty-cats-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-header.beauty .beauty-cats-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.custom-header.beauty .beauty-cats-list li a {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--beauty-text, #1f1f1f);
    font-size: 13px;
}

.custom-header.beauty .beauty-cats-list li a:hover {
    background: #f8f2ee;
}

.custom-header.beauty .beauty-main-menu {
    flex: 1;
    min-width: 0;
}

.custom-header.beauty .beauty-menu {
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-header.beauty .beauty-menu a {
    text-decoration: none;
    color: var(--beauty-text, #1f1f1f);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.custom-header.beauty .beauty-menu a:hover {
    color: var(--beauty-accent, #d9a892);
}

.custom-header.beauty .beauty-nav-offer {
    margin-left: auto;
    color: var(--beauty-muted, #616161);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.custom-header.beauty .beauty-mobile-toggle {
    display: none;
}

.custom-header.beauty .beauty-mobile-left {
    display: none;
}

.custom-header.beauty .beauty-mobile-cart {
    display: none;
}

@media (max-width: 1100px) {
    .custom-header.beauty .beauty-main-row {
        gap: 14px;
    }

    .custom-header.beauty .beauty-search {
        flex-basis: 260px;
        max-width: 260px;
    }

    .custom-header.beauty .beauty-actions {
        gap: 10px;
    }

    .custom-header.beauty .beauty-action__text,
    .custom-header.beauty .beauty-action__total {
        display: none;
    }
}

@media (max-width: 991px) {
    .custom-header.beauty {
        height: auto !important;
    }

    .custom-header.beauty.sticky-enabled {
        padding-top: 0 !important;
    }

    .custom-header.beauty.sticky-enabled .sticky-part {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }

    .custom-header.beauty .beauty-top-header {
        display: none;
    }

    .custom-header.beauty .beauty-nav {
        display: none !important;
    }

    .custom-header.beauty .custom-header-container {
        padding: 0 14px;
    }

    .custom-header.beauty .beauty-main-header {
        border-bottom: 0;
        padding: 8px 0 10px;
        background: linear-gradient(180deg, #ffffff 0%, #fffdfc 100%);
    }

    .custom-header.beauty .beauty-main-row {
        min-height: auto;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        grid-template-areas:
            "toggle logo actions"
            "search search search";
        gap: 10px;
        row-gap: 11px;
        align-items: center;
        position: relative;
    }

    .custom-header.beauty .beauty-mobile-left {
        display: flex;
        align-items: center;
        grid-area: toggle;
    }

    .custom-header.beauty .beauty-search {
        display: block !important;
        grid-area: search;
        max-width: none;
        flex: 1 1 auto;
        order: 4;
    }

    .custom-header.beauty .beauty-logo {
        grid-area: logo;
        position: static;
        left: auto;
        transform: none;
        justify-content: center;
        text-align: center;
    }

    .custom-header.beauty .beauty-logo img {
        max-height: 36px;
    }

    .custom-header.beauty .beauty-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .custom-header.beauty .beauty-mobile-toggle .mobile-menu-btn {
        margin: 0;
        width: 40px;
        height: 40px;
        padding: 9px 7px;
        gap: 4px;
        border: 1px solid var(--beauty-border, #e9e1dc);
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(30, 24, 20, 0.08);
    }

    .custom-header.beauty .beauty-mobile-toggle .hamburger-line {
        width: 100%;
        height: 2px;
        background: var(--beauty-text, #1f1f1f);
    }

    .custom-header.beauty .beauty-mobile-cart {
        display: inline-flex;
        grid-area: actions;
        justify-self: end;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid var(--beauty-border, #e9e1dc);
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(30, 24, 20, 0.08);
        color: var(--beauty-text, #1f1f1f);
        text-decoration: none;
        position: relative;
        transform: none;
        z-index: 1;
    }

    .custom-header.beauty .beauty-mobile-cart__icon {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .custom-header.beauty .beauty-mobile-cart__count {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--beauty-badge-bg, #111111);
        color: #ffffff;
        font-size: 10px;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
    }

    .custom-header.beauty .beauty-actions {
        display: none;
    }

    .custom-header.beauty .beauty-search-form {
        min-height: 48px;
        padding: 4px 5px 4px 12px;
        border-radius: 999px;
        box-shadow: 0 12px 24px rgba(30, 24, 20, 0.08);
        border-color: var(--beauty-border, #e9e1dc);
    }

    .custom-header.beauty .beauty-search-form input[type="search"] {
        height: 40px;
        font-size: 12px;
        letter-spacing: 0.03em;
    }

    .custom-header.beauty .beauty-search-btn {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .custom-header.beauty .beauty-search-btn::before {
        width: 9px;
        height: 9px;
    }

    .custom-header.beauty .beauty-search-btn::after {
        width: 6px;
    }
}

@media (max-width: 575px) {
    .custom-header.beauty .custom-header-container {
        padding: 0 11px;
    }

    .custom-header.beauty .beauty-main-row {
        grid-template-columns: 40px 1fr 40px;
        row-gap: 9px;
    }

    .custom-header.beauty .beauty-mobile-toggle .mobile-menu-btn,
    .custom-header.beauty .beauty-mobile-cart {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .custom-header.beauty .beauty-logo img {
        max-height: 32px;
    }

    .custom-header.beauty .beauty-search-form {
        min-height: 44px;
        padding: 3px 4px 3px 10px;
    }

    .custom-header.beauty .beauty-search-form input[type="search"] {
        height: 36px;
        font-size: 11px;
    }

    .custom-header.beauty .beauty-search-btn {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

/* Remove top whitespace between Beauty header and first content block */
.custom-header.beauty ~ .main.widget-sections {
    padding-top: 0 !important;
}

/* Beauty footer */
.footer.beauty-footer {
    background: var(--beauty-footer-bg, #f7f3f0);
    color: var(--beauty-footer-text, #2b2b2b);
    border-top: 1px solid var(--beauty-footer-border, #e7ddd7);
    padding: 0;
}

.footer.beauty-footer .beauty-footer__container {
    width: min(1140px, 92vw);
    margin: 0 auto;
    padding: 44px 0 18px;
}

.footer.beauty-footer .beauty-footer__newsletter {
    text-align: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--beauty-footer-border, #e7ddd7);
    margin-bottom: 30px;
}

.footer.beauty-footer .beauty-footer__newsletter-title {
    margin: 0 0 20px;
    color: var(--beauty-footer-title, #101010);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer.beauty-footer .beauty-footer__newsletter-form {
    display: inline-flex;
    align-items: center;
    max-width: 560px;
    width: 100%;
    border: 1px solid var(--beauty-footer-border, #e7ddd7);
    background: var(--beauty-footer-input-bg, #ffffff);
    min-height: 48px;
}

.footer.beauty-footer .beauty-footer__newsletter-form input[type="email"] {
    flex: 1;
    border: 0;
    padding: 0 16px;
    height: 46px;
    font-size: 14px;
    color: var(--beauty-footer-text, #2b2b2b);
    background: transparent;
}

.footer.beauty-footer .beauty-footer__newsletter-form input[type="email"]::placeholder {
    color: var(--beauty-footer-muted, #777777);
}

.footer.beauty-footer .beauty-footer__newsletter-form button {
    border: 0;
    height: 46px;
    padding: 0 26px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--beauty-footer-btn-text, #ffffff);
    background: var(--beauty-footer-btn-bg, #111111);
}

.footer.beauty-footer .beauty-footer__main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding-bottom: 24px;
}

.footer.beauty-footer .beauty-footer__col-title {
    margin: 0 0 16px;
    color: var(--beauty-footer-title, #101010);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer.beauty-footer .beauty-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer.beauty-footer .beauty-footer__list li {
    margin: 0 0 11px;
}

.footer.beauty-footer .beauty-footer__list a {
    color: var(--beauty-footer-muted, #777777);
    font-size: 13px;
}

.footer.beauty-footer .beauty-footer__list a:hover {
    color: var(--beauty-footer-title, #101010);
}

.footer.beauty-footer .beauty-footer__follow-copy {
    margin: 0 0 14px;
    color: var(--beauty-footer-muted, #777777);
    font-size: 13px;
}

.footer.beauty-footer .beauty-footer__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer.beauty-footer .beauty-footer__socials a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--beauty-footer-social-icon, #ffffff);
    background: var(--beauty-footer-social-bg, #111111);
    font-size: 13px;
}

.footer.beauty-footer .beauty-footer__socials a:hover {
    opacity: 0.82;
}

.footer.beauty-footer .beauty-footer__payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer.beauty-footer .beauty-footer__payments span {
    border: 1px solid var(--beauty-footer-border, #e7ddd7);
    color: var(--beauty-footer-muted, #777777);
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.footer.beauty-footer .beauty-footer__payments--images {
    gap: 10px;
}

.footer.beauty-footer .beauty-footer__payment-image {
    border: 1px solid var(--beauty-footer-border, #e7ddd7);
    background: #ffffff;
    border-radius: 999px;
    min-height: 28px;
    min-width: 58px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer.beauty-footer .beauty-footer__payment-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 62px;
    max-height: 18px;
    object-fit: contain;
}

.footer.beauty-footer .beauty-footer__apps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer.beauty-footer .beauty-footer__app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.footer.beauty-footer .beauty-footer__app-btn:hover {
    color: #ffffff;
    opacity: 0.85;
}

.footer.beauty-footer .beauty-footer__bottom {
    border-top: 1px solid var(--beauty-footer-border, #e7ddd7);
    padding-top: 16px;
    text-align: center;
    color: var(--beauty-footer-muted, #777777);
    font-size: 12px;
}

@media (max-width: 1100px) {
    .footer.beauty-footer .beauty-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .footer.beauty-footer .beauty-footer__container {
        width: min(92vw, 560px);
        padding-top: 34px;
    }

    .footer.beauty-footer .beauty-footer__newsletter-title {
        font-size: 18px;
    }

    .footer.beauty-footer .beauty-footer__newsletter-form {
        flex-direction: column;
        border: 0;
        gap: 10px;
        background: transparent;
    }

    .footer.beauty-footer .beauty-footer__newsletter-form input[type="email"] {
        width: 100%;
        border: 1px solid var(--beauty-footer-border, #e7ddd7);
        background: var(--beauty-footer-input-bg, #ffffff);
    }

    .footer.beauty-footer .beauty-footer__newsletter-form button {
        width: 100%;
    }

    .footer.beauty-footer .beauty-footer__main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
