/* =========================================================
   RAFAH PREMIUM DESKTOP HEADER
========================================================= */

:root {
    /* Brand colors */
    --rfh-primary: var(--rk-primary, #070826);
    --rfh-primary-dark: #070826;

    --rfh-secondary: var(--rk-secondary, );
    --rfh-secondary-light: #d7b578;

    --rfh-white: #ffffff;
    --rfh-black: #070826;

    --rfh-background: #ffffff;
    --rfh-surface: #ffffff;
    --rfh-surface-soft: #f7f7f8;

    --rfh-text: #070826;
    --rfh-text-soft: #667085;
    --rfh-text-light: #98a2b3;

    --rfh-border: #e6e8ec;
    --rfh-border-dark: rgba(255, 255, 255, 0.16);

    /* Typography */
    --rfh-font-family:
        "Inter",
        "Helvetica Neue",
        Arial,
        sans-serif;

    --rfh-font-size-xs: 11px;
    --rfh-font-size-sm: 13px;
    --rfh-font-size-base: 14px;
    --rfh-font-size-md: 15px;
    --rfh-font-size-lg: 17px;

    --rfh-font-weight-regular: 400;
    --rfh-font-weight-medium: 500;
    --rfh-font-weight-semibold: 600;
    --rfh-font-weight-bold: 700;
    --rfh-font-weight-extra-bold: 800;

    /* Layout */
    --rfh-container-width: 1720px;

    --rfh-topbar-height: 30px;
    --rfh-main-height: 76px;
    --rfh-nav-height: 46px;

    --rfh-logo-width: 210px;
    --rfh-action-width: 350px;

    /* Radius */
    --rfh-radius-xs: 5px;
    --rfh-radius-sm: 8px;
    --rfh-radius-md: 12px;
    --rfh-radius-lg: 16px;
    --rfh-radius-round: 999px;

    /* Shadows */
    --rfh-shadow-small:
        0 5px 18px rgba(16, 24, 40, 0.06);

    --rfh-shadow-medium:
        0 14px 36px rgba(16, 24, 40, 0.1);

    --rfh-shadow-large:
        0 28px 70px rgba(16, 24, 40, 0.16);

    /* Animation */
    --rfh-transition-fast: 0.18s ease;
    --rfh-transition: 0.28s ease;
}

/* =========================================================
   BASE
========================================================= */

.rfh-desktop-shell,
.rfh-desktop-shell * {
    box-sizing: border-box;
}

.rfh-desktop-shell {
    position: relative;
    z-index: 5000;

    width: 100%;

    font-family: var(--rfh-font-family);
}

.rfh-desktop-shell a {
    text-decoration: none;
}

.rfh-container {
    width: 100%;
    max-width: var(--rfh-container-width);

    margin: 0 auto;
    padding: 0 24px;
}

.rfh-visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================
   TOP BAR
========================================================= */

.rfh-topbar {
    height: var(--rfh-topbar-height);

    background: var(--rfh-primary-dark);
    color: var(--rfh-white);
}

.rfh-topbar-inner {
    height: var(--rfh-topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.rfh-topbar-left,
.rfh-topbar-right,
.rfh-social-links {
    display: flex;
    align-items: center;
}

.rfh-topbar-left {
    gap: 28px;
}

.rfh-topbar-right {
    gap: 12px;
}

.rfh-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--rfh-white);

    font-size: var(--rfh-font-size-xs);
    font-weight: var(--rfh-font-weight-medium);
    line-height: 1;

    white-space: nowrap;
}

.rfh-topbar-item i {
    color: var(--rfh-secondary-light);
    font-size: 12px;
}

.rfh-topbar-item strong {
    font-weight: var(--rfh-font-weight-bold);
    text-transform: uppercase;
}

.rfh-topbar-right > a {
    color: rgba(255, 255, 255, 0.86);

    font-size: var(--rfh-font-size-xs);
    font-weight: var(--rfh-font-weight-medium);

    transition: color var(--rfh-transition-fast);
}

.rfh-topbar-right > a:hover {
    color: var(--rfh-secondary-light);
}

.rfh-topbar-divider {
    width: 1px;
    height: 12px;

    background: rgba(255, 255, 255, 0.24);
}

.rfh-social-links {
    gap: 12px;
}

.rfh-social-links a {
    color: var(--rfh-white);
    font-size: 12px;

    transition:
        color var(--rfh-transition-fast),
        transform var(--rfh-transition-fast);
}

.rfh-social-links a:hover {
    color: var(--rfh-secondary-light);
    transform: translateY(-1px);
}

/* =========================================================
   MAIN HEADER
========================================================= */

.rfh-main-header {
    height: var(--rfh-main-height);

    background: var(--rfh-background);
    border-bottom: 1px solid var(--rfh-border);
}

.rfh-main-header-inner {
    height: var(--rfh-main-height);

    display: grid;
    grid-template-columns:
        var(--rfh-logo-width)
        minmax(360px, 1fr)
        var(--rfh-action-width);

    align-items: center;
    gap: 28px;
}

/* Logo */

.rfh-logo {
    min-width: 0;
}

.rfh-logo > a {
    min-height: 58px;

    display: inline-flex;
    align-items: center;
}

.rfh-logo img {
    display: block;

    width: auto;
    max-width: 170px;
    max-height: 62px;

    object-fit: contain;
}

.rfh-logo-text {
    color: var(--rfh-primary);

    display: inline-flex;
    flex-direction: column;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 7px;
    line-height: 1;
}

.rfh-logo-text small {
    margin-top: 8px;

    color: var(--rfh-secondary);

    font-family: var(--rfh-font-family);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Search */

.rfh-search {
    position: relative;
    min-width: 0;
}

.rfh-search-form {
    position: relative;

    width: 100%;
    height: 48px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        58px;

    align-items: center;

    border: 1px solid var(--rfh-border);
    border-radius: var(--rfh-radius-sm);

    background: var(--rfh-white);
    overflow: hidden;

    transition:
        border-color var(--rfh-transition-fast),
        box-shadow var(--rfh-transition-fast);
}

.rfh-search-form:focus-within {
    border-color: rgba(183, 139, 79, 0.75);

    box-shadow:
        0 0 0 4px rgba(183, 139, 79, 0.1);
}

.rfh-search-form input {
    width: 100%;
    min-width: 0;
    height: 100%;

    padding: 0 20px;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--rfh-text);

    font-family: inherit;
    font-size: var(--rfh-font-size-base);
}

.rfh-search-form input::placeholder {
    color: var(--rfh-text-light);
}

.rfh-search-category {
    height: 28px;
    padding: 0 18px;

    border-left: 1px solid var(--rfh-border);

    color: var(--rfh-text-soft);

    display: inline-flex;
    align-items: center;
    gap: 12px;

    font-size: var(--rfh-font-size-sm);
    font-weight: var(--rfh-font-weight-medium);

    white-space: nowrap;
}

.rfh-search-category i {
    font-size: 9px;
}

.rfh-search-form button {
    width: 58px;
    height: 48px;

    padding: 0;

    border: 0;
    background: var(--rfh-primary);
    color: var(--rfh-white);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    cursor: pointer;

    transition: background var(--rfh-transition-fast);
}

.rfh-search-form button:hover {
    background: var(--rfh-secondary);
}

.rfh-search-result {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 9000;

    max-height: 390px;
    overflow-y: auto;

    background: var(--rfh-white);
    border: 1px solid var(--rfh-border);
    border-radius: var(--rfh-radius-sm);

    box-shadow: var(--rfh-shadow-large);
}

/* Actions */

.rfh-actions {
    height: 100%;

    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.rfh-action-item {
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;
}

.rfh-action-item + .rfh-action-item {
    border-left: 1px solid var(--rfh-border);
}

.rfh-action-item > a {
    height: 100%;
    padding: 0 20px;

    color: var(--rfh-text);

    display: flex;
    align-items: center;
    gap: 12px;

    transition:
        color var(--rfh-transition-fast),
        background var(--rfh-transition-fast);
}

.rfh-action-item > a:hover {
    color: var(--rfh-secondary);
    background: var(--rfh-surface-soft);
}

.rfh-action-icon {
    position: relative;

    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.rfh-action-content {
    min-width: 0;
}

.rfh-action-content small,
.rfh-action-content strong {
    display: block;
    white-space: nowrap;
}

.rfh-action-content small {
    margin-bottom: 3px;

    color: var(--rfh-text-soft);

    font-size: var(--rfh-font-size-xs);
    font-weight: var(--rfh-font-weight-regular);
    line-height: 1.1;
}

.rfh-action-content strong {
    color: inherit;

    font-size: var(--rfh-font-size-sm);
    font-weight: var(--rfh-font-weight-semibold);
    line-height: 1.2;
}

.rfh-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    border-radius: var(--rfh-radius-round);

    background: var(--rfh-primary);
    color: var(--rfh-white);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 9px;
    font-weight: var(--rfh-font-weight-bold);
}

/* Existing mini-cart position override */

.rfh-cart .rk-mini-cart {
    top: calc(100% + 10px);
    right: 0;
}

.rfh-cart:hover .rk-mini-cart {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* =========================================================
   NAVIGATION
========================================================= */

.rfh-navigation-row {
    height: var(--rfh-nav-height);

    background: var(--rfh-white);
    border-bottom: 1px solid var(--rfh-border);

    box-shadow: var(--rfh-shadow-small);
}

.rfh-navigation-inner {
    height: var(--rfh-nav-height);

    display: grid;
    grid-template-columns:
        220px
        minmax(0, 1fr)
        220px;

    align-items: stretch;
    gap: 18px;
}

/* All categories */

.rfh-all-categories {
    position: relative;

    height: 100%;
}

.rfh-all-categories-button {
    width: 100%;
    height: 100%;

    padding: 0 18px;

    border: 0;
    border-radius: 0;

    background: var(--rfh-primary);
    color: var(--rfh-white);

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    font-family: inherit;
    font-size: var(--rfh-font-size-sm);
    font-weight: var(--rfh-font-weight-bold);
    text-transform: uppercase;

    cursor: pointer;

    transition: background var(--rfh-transition-fast);
}

.rfh-all-categories-button:hover {
    background: var(--rfh-primary-dark);
}

.rfh-all-categories-button i:first-child {
    font-size: 15px;
}

.rfh-all-categories-button i:last-child {
    margin-left: auto;
    font-size: 9px;
}

/* All category dropdown */

.rfh-all-categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9500;

    width: 760px;
    padding-top: 10px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity var(--rfh-transition-fast),
        visibility var(--rfh-transition-fast),
        transform var(--rfh-transition-fast);
}

.rfh-all-categories:hover .rfh-all-categories-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}

.rfh-all-categories-grid {
    padding: 22px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;

    background: var(--rfh-white);
    border: 1px solid var(--rfh-border);
    border-radius: var(--rfh-radius-md);

    box-shadow: var(--rfh-shadow-large);
}

.rfh-category-group {
    min-width: 0;
}

.rfh-category-group-title {
    position: relative;

    margin-bottom: 10px;
    padding-bottom: 9px;

    color: var(--rfh-primary);

    display: block;

    border-bottom: 1px solid var(--rfh-border);

    font-size: var(--rfh-font-size-sm);
    font-weight: var(--rfh-font-weight-extra-bold);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.rfh-category-group-title::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 34px;
    height: 2px;

    background: var(--rfh-secondary);
}

.rfh-category-group > a {
    min-height: 48px;
    padding: 6px 8px;

    border-radius: var(--rfh-radius-xs);

    color: var(--rfh-text);

    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;

    font-size: var(--rfh-font-size-sm);
    font-weight: var(--rfh-font-weight-medium);

    transition:
        color var(--rfh-transition-fast),
        background var(--rfh-transition-fast),
        transform var(--rfh-transition-fast);
}

.rfh-category-group > a:hover {
    color: var(--rfh-secondary);
    background: rgba(183, 139, 79, 0.08);
    transform: translateX(2px);
}

.rfh-category-group > a img,
.rfh-category-placeholder {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: var(--rfh-surface-soft);
    border: 1px solid var(--rfh-border);

    object-fit: cover;
}

.rfh-category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--rfh-text-soft);
    font-size: 13px;
}

.rfh-category-group > a > i {
    color: var(--rfh-text-light);
    font-size: 10px;
}

/* Main menu */

.rfh-main-nav {
    min-width: 0;
    height: 100%;
}

.rfh-main-nav > ul {
    height: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: stretch;
    justify-content: center;

    list-style: none;
}

.rfh-main-nav > ul > li {
    position: relative;

    height: 100%;
}

.rfh-main-nav > ul > li > a {
    position: relative;

    height: 100%;
    padding: 0 15px;

    color: var(--rfh-text);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    font-size: var(--rfh-font-size-sm);
    font-weight: var(--rfh-font-weight-semibold);
    text-transform: uppercase;
    white-space: nowrap;

    transition:
        color var(--rfh-transition-fast),
        background var(--rfh-transition-fast);
}

.rfh-main-nav > ul > li > a::after {
    content: "";

    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;

    height: 2px;

    background: var(--rfh-secondary);

    transition:
        left var(--rfh-transition-fast),
        right var(--rfh-transition-fast);
}

.rfh-main-nav > ul > li:hover > a {
    color: var(--rfh-secondary);
    background: rgba(183, 139, 79, 0.045);
}

.rfh-main-nav > ul > li:hover > a::after {
    left: 14px;
    right: 14px;
}

.rfh-main-nav > ul > li > a i {
    font-size: 8px;
}

/* Small premium menu dropdown */

.rfh-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 9400;

    width: 290px;
    padding-top: 10px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(10px);

    transition:
        opacity var(--rfh-transition-fast),
        visibility var(--rfh-transition-fast),
        transform var(--rfh-transition-fast);
}

.rfh-has-dropdown:hover .rfh-menu-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}

.rfh-menu-dropdown::before,
.rfh-all-categories-dropdown::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 12px;
}

.rfh-menu-dropdown > div {
    background: var(--rfh-white);
}

.rfh-menu-dropdown {
    border-radius: var(--rfh-radius-md);
}

.rfh-menu-dropdown-header {
    padding: 18px 20px 14px;

    border: 1px solid var(--rfh-border);
    border-bottom: 0;
    border-radius:
        var(--rfh-radius-md)
        var(--rfh-radius-md)
        0
        0;
}

.rfh-menu-dropdown-header span,
.rfh-menu-dropdown-header small {
    display: block;
}

.rfh-menu-dropdown-header span {
    color: var(--rfh-primary);

    font-size: var(--rfh-font-size-md);
    font-weight: var(--rfh-font-weight-extra-bold);
    text-transform: uppercase;
}

.rfh-menu-dropdown-header small {
    margin-top: 4px;

    color: var(--rfh-text-soft);

    font-size: var(--rfh-font-size-xs);
}

.rfh-menu-dropdown-links {
    padding: 8px;

    border: 1px solid var(--rfh-border);
    border-top: 0;

    border-radius:
        0
        0
        var(--rfh-radius-md)
        var(--rfh-radius-md);

    box-shadow: var(--rfh-shadow-medium);
}

.rfh-menu-dropdown-links a {
    min-height: 43px;
    padding: 8px 11px;

    border-radius: var(--rfh-radius-xs);

    color: var(--rfh-text);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    font-size: var(--rfh-font-size-sm);
    font-weight: var(--rfh-font-weight-medium);

    transition:
        color var(--rfh-transition-fast),
        background var(--rfh-transition-fast),
        padding-left var(--rfh-transition-fast);
}

.rfh-menu-dropdown-links a:hover {
    padding-left: 15px;

    color: var(--rfh-secondary);
    background: rgba(183, 139, 79, 0.08);
}

.rfh-menu-dropdown-links a i {
    color: var(--rfh-text-light);
    font-size: 10px;
}

/* Support */

.rfh-nav-support {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    color: var(--rfh-primary);
}

.rfh-nav-support > i {
    font-size: 20px;
}

.rfh-nav-support span {
    min-width: 0;
}

.rfh-nav-support small,
.rfh-nav-support strong,
.rfh-nav-support a {
    display: block;
}

.rfh-nav-support small {
    margin-bottom: 2px;

    color: var(--rfh-text-soft);
    font-size: 9px;
    line-height: 1;
}

.rfh-nav-support strong,
.rfh-nav-support a {
    color: var(--rfh-primary);

    font-size: var(--rfh-font-size-xs);
    font-weight: var(--rfh-font-weight-bold);

    white-space: nowrap;
}

/* =========================================================
   STICKY HEADER
========================================================= */

.rk-site-header.rk-header-sticky .rfh-sticky-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9200;

    box-shadow: var(--rfh-shadow-medium);

    animation: rfhHeaderSlideDown 0.3s ease;
}

.rk-site-header.rk-header-sticky .rfh-main-header {
    height: 68px;
}

.rk-site-header.rk-header-sticky .rfh-main-header-inner {
    height: 68px;
}

.rk-site-header.rk-header-sticky .rfh-logo img {
    max-height: 54px;
}

@keyframes rfhHeaderSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   LAPTOP RESPONSIVE
========================================================= */

@media (max-width: 1450px) and (min-width: 992px) {
    :root {
        --rfh-container-width: 1380px;
        --rfh-logo-width: 170px;
        --rfh-action-width: 300px;
    }

    .rfh-container {
        padding: 0 18px;
    }

    .rfh-main-header-inner {
        gap: 18px;
    }

    .rfh-logo img {
        max-width: 145px;
    }

    .rfh-action-item > a {
        padding: 0 14px;
    }

    .rfh-action-content small {
        display: none;
    }

    .rfh-main-nav > ul > li > a {
        padding: 0 11px;
        font-size: 12px;
    }

    .rfh-navigation-inner {
        grid-template-columns:
            190px
            minmax(0, 1fr)
            180px;
        gap: 10px;
    }

    .rfh-nav-support small {
        display: none;
    }
}

@media (max-width: 1180px) and (min-width: 992px) {
    :root {
        --rfh-logo-width: 140px;
        --rfh-action-width: 230px;
    }

    .rfh-logo img {
        max-width: 120px;
    }

    .rfh-search-category {
        display: none;
    }

    .rfh-search-form {
        grid-template-columns:
            minmax(0, 1fr)
            52px;
    }

    .rfh-search-form button {
        width: 52px;
    }

    .rfh-account .rfh-action-content {
        display: none;
    }

    .rfh-main-nav > ul > li > a {
        padding: 0 8px;
        font-size: 11px;
    }

    .rfh-nav-support {
        display: none;
    }

    .rfh-navigation-inner {
        grid-template-columns:
            180px
            minmax(0, 1fr);
    }
}

/* =========================================================
   MOBILE: KEEP EXISTING RK MOBILE HEADER
========================================================= */

@media (max-width: 991px) {
    .rfh-desktop-shell {
        display: none;
    }
}