 /* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ab8239;
    --secondary: #8f6c30;
    --light-bg: #FFFFFF;
    --light-gray: #F0F0F0;
    --footer-bg: #F5F5F5;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--light-bg);
    font-weight: 500;
    color: var(--text-dark);
    direction: rtl;
    overflow-x: hidden;
}

/* ==========================
   DESKTOP HEADER
   ========================== */
.top-header {
    position: sticky;
    top: 0;
    background-color: var(--light-bg);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 100;
    padding: 20px 8%;
}

.header-container {
    width: 100%;
    max-width: 2500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    grid-template-areas: "logo search cart";
}

.header-left {
    grid-area: logo;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-center {
    grid-area: search;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right {
    grid-area: cart;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo {
    height: 100px;
    width: auto;
    margin-right: 90px;
}

/* Search bar */
.search-container {
    width: 100%;
    max-width: 700px;
    position: relative;
    font-size: 1.5rem;
}

.search-bar {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    font-size: 16px;
    background-color: #f3f3f3;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(77, 183, 176, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: var(--transition);
}

.search-icon:hover {
    opacity: 1;
}

/* Cart icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    opacity: 0.8;
    transition: var(--transition);
    margin-left: 80px;
    transform: translateX(15px);
}

.cart-icon:hover {
    opacity: 1;
}

.cart-badge {
    position: absolute;
    top: -10px;
    left: -12px;
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================
   NAVIGATION BAR
   ========================== */
.nav-header {
    background-color: #ab8239;
    border-bottom: 1px solid var(--light-gray);
    padding: 0 8%;
    width: 100%;
    position: sticky;
    top: 120px;
    z-index: 999;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 18px 0;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.nav-link:hover {
    color: #000000;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--light-bg);
    min-width: 220px;
    box-shadow: 0 5px 15px var(--shadow);
    border-radius: 0 0 12px 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 10;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* ===========================
   MOBILE HEADER & SIDEBAR
   =========================== */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 95px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.header-left-mobile {
    display: flex;
    align-items: center;
    width: auto;
    flex: 1;
    justify-content: flex-start;
}

.header-center-mobile {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mobile {
    height: 90px;
    width: auto;
    margin-left: -30px;
}
.exclusive-wrapper {
    margin-top: 20px;
    text-align: center;
}

.exclusive-logo {
    width: 70px; /* adjust size if you want */
    display: block;
    margin: 0 auto 8px;
}

.exclusive-text {
    font-size: 15px;
    color: #333;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 20px;
}
.wholesale-number {
    text-align: center;
    margin-top: 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #333;
}

.wholesale-number span {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.whatsapp-number {
    color: #00A79D;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    unicode-bidi: bidi-override;
    direction: ltr;
}

.whatsapp-number:hover {
    text-decoration: underline;
}


.header-right-mobile {
    display: flex;
    align-items: center;
    width: auto;
    flex: 1;
    justify-content: flex-end;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

.icon-btn i {
    font-size: 29px;
    color: #ab8239;
    font-weight: 300;
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn:hover i {
    color: #333;
}

.cart-badge-mobile {
    position: absolute;
    top: 4px;
    left: 4px;
    background-color: #000000;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    margin-top: 20px;
}

.mobile-search.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-input-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    direction: rtl;
}

.search-input:focus {
    border-color: #ab8239;
    box-shadow: 0 0 0 3px rgba(77, 183, 176, 0.1);
}

.search-submit {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.search-submit i {
    font-size: 20px;
    color: #666;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background-color: white;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

/* Menu Sidebar */
.menu-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 88%;
    max-width: 360px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 25px rgba(0,0,0,0.12);
    z-index: 2500;
    transition: right 0.35s ease;
    overflow-y: auto;
    border-radius: 0 0 0 18px;
}

.menu-sidebar.active {
    right: 0;
}

.menu-sidebar .sidebar-header {
    padding: 28px 22px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-sidebar .sidebar-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    font-family: "Cairo", sans-serif;
}

.menu-sidebar .close-btn i {
    font-size: 32px;
    cursor: pointer;
    color: #666;
    transition: 0.2s;
}

.menu-sidebar .close-btn i:hover {
    color: #333;
}

.menu-items {
    padding: 10px 0;
}

.menu-item {
    padding: 18px 25px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    font-family: "Cairo", sans-serif;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: 0.25s ease;
}

.menu-item:hover {
    background: #f7fafa;
    padding-right: 35px;
}

.dropdown-toggle {
    position: relative;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: "›";
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 18px;
    color: #666;
    transition: .3s ease;
}

.dropdown-toggle.active::after {
    transform: translateY(-50%) rotate(90deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    background: #f9f9f9;
    border-right: 3px solid #ab8239;
    margin-bottom: 10px;
    transition: max-height .35s ease;
}

.dropdown-link {
    display: block;
    padding: 14px 40px 14px 25px;
    font-size: 15px;
    color: #444;
    font-family: 'Cairo', sans-serif;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-title {
    font-size: 20px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.close-btn i {
    font-size: 28px;
    color: #666;
}

/* Cart items */
.cart-items {
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.item-image {
    width: 70px;
    height: 70px;
    background-color: #f5f5f5;
    border-radius: 8px;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.item-price {
    font-size: 15px;
    color: #ab8239;
    margin-bottom: 8px;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
}

.qty-value {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.remove-btn i {
    font-size: 20px;
    color: #ff0000;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
}

.cart-actions {
    width: 100%;
    margin-top: 20px;
}

.cart-actions-inner {
    display: flex;
    gap: 12px; /* space between buttons */
}

.checkout-btn,
.view-cart-btn {
    flex: 1; /* equal width */
    background: #ab8239;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: none; /* remove hover */
}

.checkout-btn:hover,
.view-cart-btn:hover {
    background: #ab8239; /* remove hover change */
}


/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================
   CATEGORY PAGE
   ========================== */
.category-page {
    max-width: 1400px;
    margin: 50px auto 80px;
    padding: 0 20px;
}

.cat-header {
    text-align: center;
    margin-bottom: 40px;
}

.cat-header h1 {
    font-size: 32px;
    color: black;
    margin-bottom: 10px;
    font-family: 'Cairo', sans-serif;
}

.cat-subtext {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cat-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
}

.cat-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-sort label {
    color: var(--text-light);
    font-size: 14px;
}

.cat-sort select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    background: white;
    font-size: 14px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.cat-card {
    overflow: visible;
    transition: var(--transition);
    position: relative;
}

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-card-img {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: visible;
}

.cat-card-img img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cat-card-actions {
    position: absolute;
    bottom: -15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 10;
}

.cat-add-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 11;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    flex-shrink: 0;
}

.cat-add-circle span {
    color: var(--primary);
    font-size: 20px;
    font-weight: 500;
}

.cat-add-expand-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    font-family: 'Readex Pro', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 10;
    margin-right: -15px;
}

.cat-card-actions:hover .cat-add-expand-btn {
    opacity: 1;
    width: 140px;
    margin-right: 0;
}

.cat-card-actions:hover {
    background-color: var(--primary);
    border-radius: 25px;
    padding-right: 5px;
}

.cat-card-actions:hover .cat-add-circle {
    background-color: transparent;
    box-shadow: none;
}

.cat-card-actions:hover .cat-add-circle span {
    color: white;
}

.cat-card-info {
    padding: 20px 15px;
    text-align: center;
}

.cat-brand {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.cat-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', sans-serif;
}

.cat-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.cat-tags span {
    background-color: var(--light-gray);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.cat-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.cat-buy {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-family: 'Readex Pro', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    width: 60%;
}

.cat-buy:hover {
    background-color: var(--secondary);
}

/* ==========================
   LOAD MORE BUTTON
   ========================== */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding: 20px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 183, 176, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 183, 176, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.load-more-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cat-card:nth-child(n+17) {
    display: none;
}

.cat-grid.show-more .cat-card {
    display: block !important;
}

/* ==========================
   FOOTER
   ========================== */
footer {
    background-color: var(--footer-bg);
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-logo {
    height: 150px;
    width: auto;
    margin: 0 auto 30px;
    display: block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.footer-link:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
  .social-icon {
    color: black;
}

.social-icon i {
    color: var(--primary);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
}

.copyright {
    color: var(--text-light);
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
}

.copyright-link {
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.copyright-link:hover {
    color: #666;
}

.bawaba {
    color: #ff0000;
    font-weight: 600;
}

/* ==========================
   RESPONSIVE DESIGN
   ========================== */
/* Always show desktop headers by default */
.top-header,
.nav-header {
    display: block;
}

.mobile-header {
    display: none;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-menu {
        gap: 30px;
    }
}

/* Mobile: hide desktop, show mobile */
@media (max-width: 768px) {
    .top-header,
    .nav-header {
        display: none !important;
    }

    .mobile-header {
        display: flex !important;
    }

    .category-page {
        margin-top: 120px !important;
    }
    
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cat-filters-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cat-add-expand-btn {
        display: none;
    }
    
    .cat-name {
        font-size: 14px;
        min-height: 40px;
    }
    
    .cat-price {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .add-expand-btn {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .cat-name {
        font-size: 13px;
    }
    
    .cat-header h1 {
        font-size: 28px;
    }
    
    .cat-card-info {
        padding: 15px 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-name {
        font-size: 13px;
    }
}


.copyright-link {
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.copyright-link:hover {
    color: #666;
}

.bawaba {
    color: #ff0000;
    font-weight: 600;
}