/* Custom Header Styles - WoodMart Compatible RTL */
:root {
    --wmch-gold: #9e7947;
    --wmch-gold-hover: #b88e55;
    --wmch-dark: #23201d;
    --wmch-light-bg: #f8f6f2;
    --wmch-border: #e9e4dc;
}

.wmch-header-wrapper {
    width: 100%;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    font-family: inherit;
    position: relative;
    z-index: 1000;
}

.wmch-header-wrapper * {
    box-sizing: border-box;
}

.wmch-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Common Header Elements */
.wmch-logo img {
    max-height: 48px;
    height: auto;
    width: auto;
    display: block;
}

.wmch-search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.wmch-search-form input[type="text"] {
    width: 100%;
    padding: 10px 42px 10px 90px;
    border: 1px solid var(--wmch-border);
    border-radius: 25px;
    font-size: 13.5px;
    outline: none;
    transition: all 0.25s ease;
    background: #fff;
    color: #333;
}

.wmch-search-form input[type="text"]:focus {
    border-color: var(--wmch-gold);
    box-shadow: 0 0 0 3px rgba(158, 121, 71, 0.12);
}

.wmch-search-icon {
    position: absolute;
    right: 15px;
    color: #888;
    pointer-events: none;
}

.wmch-search-btn {
    position: absolute;
    left: 4px;
    background: #23201d;
    color: #fff;
    border: none;
    padding: 6px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.wmch-search-btn:hover {
    background: var(--wmch-gold);
}

.wmch-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wmch-action-item {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.wmch-action-item:hover {
    color: var(--wmch-gold);
}

.wmch-badge {
    background: var(--wmch-gold);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    position: absolute;
    top: -6px;
    right: -8px;
}

.wmch-contact-pill {
    background: var(--wmch-gold);
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.25s;
    white-space: nowrap;
}

.wmch-contact-pill:hover {
    background: var(--wmch-gold-hover);
}

/* Navigation Row */
.wmch-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.wmch-nav-list > li {
    position: relative;
}

.wmch-nav-list > li > a {
    text-decoration: none;
    color: #2b2b2b;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 0;
    transition: color 0.2s;
}

.wmch-nav-list > li > a:hover {
    color: var(--wmch-gold);
}

/* =======================================
   LAYOUT 1: Modern & Clean (الخيار 1)
   ======================================= */
.wmch-layout1 {
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.wmch-layout1-top {
    padding: 14px 0;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid #f0ece6;
}

.wmch-layout1-bottom {
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =======================================
   LAYOUT 2: Dark Luxury (الخيار 2)
   ======================================= */
.wmch-layout2 {
    background: #1b1917;
    color: #eee;
}

.wmch-layout2 a {
    color: #ddd;
}

.wmch-layout2 .wmch-layout1-top {
    border-bottom: 1px solid #2f2a24;
}

.wmch-layout2 .wmch-search-form input[type="text"] {
    background: #282522;
    border-color: #3d3731;
    color: #fff;
}

.wmch-layout2 .wmch-nav-list > li > a {
    color: #d8d3cd;
}

.wmch-layout2 .wmch-nav-list > li > a:hover {
    color: #dfb274;
}

.wmch-layout2 .wmch-mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 720px;
    background: #23201d;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    padding: 24px;
    display: none;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    border: 1px solid #3d3731;
}

.wmch-layout2 .wmch-has-mega:hover .wmch-mega-menu {
    display: grid;
}

/* =======================================
   LAYOUT 3: Dynamic with Sidebar Dropdown (الخيار 3)
   ======================================= */
.wmch-layout3-topbar {
    background: var(--wmch-gold);
    color: #fff;
    text-align: center;
    padding: 7px 0;
    font-size: 13px;
    font-weight: 500;
}

.wmch-layout3-main {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.wmch-layout3-content {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 25px;
}

.wmch-vertical-menu-wrapper {
    position: relative;
}

.wmch-vertical-menu-btn {
    background: #23201d;
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

.wmch-vertical-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    list-style: none;
    margin: 5px 0 0;
    padding: 8px 0;
    display: none;
}

.wmch-vertical-menu-wrapper:hover .wmch-vertical-dropdown {
    display: block;
}

.wmch-vertical-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #444;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.2s;
}

.wmch-vertical-dropdown li a:hover {
    background: #faf6f0;
    color: var(--wmch-gold);
    padding-right: 20px;
}

/* =======================================
   LAYOUT 4: Compact Capsule (الخيار 4)
   ======================================= */
.wmch-layout4 {
    padding: 12px 0;
    background: #faf8f5;
}

.wmch-pill-bar {
    background: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-bottom: 8px;
}

.wmch-sub-pill-bar {
    background: #242220;
    border-radius: 40px;
    padding: 6px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.wmch-sub-pill-bar a {
    color: #e5ded6;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: background 0.2s;
}

.wmch-sub-pill-bar a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* =======================================
   LAYOUT 5: Category Badge Grid (الخيار 5)
   ======================================= */
.wmch-layout5 {
    background: #fff;
    border-bottom: 2px solid #f2ede4;
}

.wmch-layout5-top {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wmch-badges-row {
    padding: 10px 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
}

.wmch-category-card-pill {
    background: #fbf9f6;
    border: 1px solid #ebd8c0;
    border-radius: 30px;
    padding: 7px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s;
}

.wmch-category-card-pill:hover {
    background: var(--wmch-gold);
    color: #fff;
    border-color: var(--wmch-gold);
    transform: translateY(-2px);
}
