 /* ================= CSS Variables & Reset ================= */
    :root {
        --primary-color: #4f46e5;
        --primary-hover: #4338ca;
        --bg-light: #f8fafc;
        --text-dark: #1e293b;
        --text-gray: #64748b;
        --border-color: #e2e8f0;
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        --radius-md: 8px;
        --radius-lg: 12px;
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        direction: rtl;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    .header-wrapper {
        background: #ffffff;
        width: 100%;
        position: relative;
        z-index: 1000;
    }

    .header-sticky {
        position: sticky;
        top: 0;
        box-shadow: var(--shadow-md);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    /* ================= Desktop Header ================= */
    #header_pc {
        display: flex;
        flex-direction: column;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .pc-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0;
        gap: 40px;
        border-bottom: 1px solid var(--border-color);
    }

    .pc-logo img {
        height: 45px;
        object-fit: contain;
        transition: var(--transition);
    }

    .pc-logo:hover img {
        transform: scale(1.02);
    }

    .search-container {
        flex: 1;
        max-width: 600px;
    }

    .search-box {
        display: flex;
        align-items: center;
        background: var(--bg-light);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        overflow: hidden;
        transition: var(--transition);
    }

    .search-box:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        background: #fff;
    }

    .search-box input {
        flex: 1;
        border: none;
        padding: 12px 16px;
        background: transparent;
        font-size: 14px;
        outline: none;
        color: var(--text-dark);
    }

    .search-box button {
        background: transparent;
        border: none;
        padding: 0 16px;
        cursor: pointer;
        color: var(--text-gray);
        display: flex;
        align-items: center;
    }

    .search-box button:hover {
        color: var(--primary-color);
    }

    .pc-actions {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .contact-info {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-dark);
    }

    .action-btn {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--bg-light);
        color: var(--text-dark);
        transition: var(--transition);
        border: 1px solid var(--border-color);
    }

    .action-btn:hover {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
    }

    .action-btn svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

    .cart-badge {
        position: absolute;
        bottom: -5px;
        right: -5px;
        background: #ef4444;
        color: white;
        font-size: 11px;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 10px;
        border: 2px solid #fff;
    }

    .pc-bottom-row {
        display: flex;
        align-items: center;
        padding: 12px 0;
        gap: 30px;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .nav-links a {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-gray);
        transition: var(--transition);
        position: relative;
    }

    .nav-links a:hover {
        color: var(--text-dark);
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        right: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    /* Dropdown PC */
    .pc-dropdown {
        position: relative;
    }

    .dropdown-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        transition: var(--transition);
    }

    .dropdown-btn:hover {
        background: var(--primary-hover);
        box-shadow: var(--shadow-md);
    }

    .dropdown-content {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 10px;
        width: 260px;
        background: #fff;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition);
        border: 1px solid var(--border-color);
        padding: 8px 0;
        z-index: 100;
    }

    .pc-dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .drop-item {
        position: relative;
    }

    .drop-item > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        font-size: 14px;
        color: var(--text-dark);
        transition: background 0.2s;
    }

    .drop-item > a:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    .sub-menu {
        position: absolute;
        top: 0;
        right: 100%;
        width: 240px;
        background: #fff;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: var(--transition);
        border: 1px solid var(--border-color);
        padding: 8px 0;
    }

    .drop-item:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    /* ================= Mobile Header ================= */
    #header_mobile {
        display: flex;
        flex-direction: column;
        padding: 12px 16px;
        gap: 12px;
    }

    .mob-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hamburger-btn {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        color: var(--text-dark);
    }

    .mob-logo img {
        height: 35px;
        object-fit: contain;
    }

    .mob-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* ================= Mobile Drawer ================= */
    .drawer-overlay {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .drawer-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .drawer-content {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        max-width: 85vw;
        height: 100%;
        background: #fff;
        z-index: 9999;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    }

    .drawer-content.active {
        right: 0;
    }

    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-light);
    }

    .drawer-header h2 {
        margin: 0;
        font-size: 18px;
        font-weight: bold;
        color: var(--text-dark);
    }

    .drawer-close {
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-gray);
        box-shadow: var(--shadow-sm);
    }

    .drawer-tabs {
        display: flex;
        padding: 16px;
        gap: 8px;
    }

    .tab-btn {
        flex: 1;
        padding: 10px;
        border: none;
        background: var(--bg-light);
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: 600;
        color: var(--text-gray);
        cursor: pointer;
        transition: var(--transition);
    }

    .tab-btn.active {
        background: var(--primary-color);
        color: #fff;
    }

    .tab-body {
        flex: 1;
        overflow-y: auto;
        padding: 0 16px 20px;
    }

    .tab-pane {
        display: none;
        animation: fadeIn 0.3s ease;
    }

    .tab-pane.active {
        display: block;
    }

    .mob-nav-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 12px;
        border-bottom: 1px solid var(--border-color);
        font-size: 15px;
        color: var(--text-dark);
        font-weight: 500;
    }

    .mob-nav-item:last-child {
        border-bottom: none;
    }

    .btn-back-cat {
        width: 100%;
        padding: 12px;
        background: var(--bg-light);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-bottom: 16px;
        font-weight: bold;
        color: var(--text-dark);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .drawer-btn-link {
        display: block;
        padding: 16px;
        background: var(--bg-light);
        border-radius: var(--radius-md);
        margin-bottom: 10px;
        text-align: center;
        font-weight: bold;
        color: var(--text-dark);
        border: 1px solid var(--border-color);
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 991px) {
        #header_pc { display: none; }
    }
    @media (min-width: 992px) {
        #header_mobile { display: none; }
    }