/* ============================================
   TABLE OF CONTENTS
   ============================================
   1. Fonts & Reset
   2. Base Styles
   3. Header Styles
   4. Main Content & Hero
   5. Features Section
   6. Filter & Sort Section
   7. Products Section
   8. Product Cards
   9. Pagination
   10. Customer Reviews
   11. Footer Styles
   12. Modals & Overlays
   13. About Page Styles
   14. Responsive Design
   ============================================ */

/* ============================================
   1. FONTS & RESET
   ============================================ */
   @font-face {
    font-family: 'Agraham';
    src: url('fonts/Agraham.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* ============================================
     2. BASE STYLES
     ============================================ */
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.5;
    font-size: 14px;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
  }
  
  .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
  }
  
  .skip-link:focus {
    top: 6px;
  }
  
  /* ============================================
     3. HEADER STYLES
     ============================================ */
  .site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    overflow: hidden;
  }
  
  /* Header Top Bar */
  .header-top {
    background: #f8f9fa;
    padding: 8px 0;
    font-size: 12px;
    color: #666;
  }
  
  .header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .language-selector select {
    padding: 6px 25px 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    background-color: #fff;
    min-width: 85px;
    max-width: 100px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease;
  }
  
  .language-selector select:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  }
  .whatsapp-link {
    color: #25d366;         /* WhatsApp green (optional) */
    text-decoration: none;
    font-size: 1.2em;
    cursor: pointer;
  }
  .social-links {
    display: flex;
    gap: 5px;
  }
  
  .social-links a {
    color: #666;
    text-decoration: none;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .social-links a:hover {
    color: #333;
    background-color: #f0f0f0;
    transform: scale(1.1);
  }
  
  /* Header Main */
  .header-main {
    padding: 15px 0;
  }
  
  .header-main .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
  }
  
  .logo-container {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent;
    border: none;
  }
  
  .logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }
  
  .logo-img {
    height: 140px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: height 0.3s ease;
  }
  
  /* Search Row */
  .search-row {
    display: flex;
    width: 100%;
    max-width: 1000px;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
  
  .search-container {
    flex: 1;
    min-width: 0;
  }
  
  .menu-container {
    flex-shrink: 0;
  }
  
  /* Header Search */
  .header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #f5f6f7;
    border: 1px solid #e1e4e8;
    border-radius: 20px;
    overflow: hidden;
    min-height: 40px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .header-search:focus-within {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  }
  
  .search-input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    outline: none;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    letter-spacing: 0.2px;
  }
  
  .search-input::-webkit-search-cancel-button,
  .search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
  }
  
  .search-input::-ms-clear,
  .search-input::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
  }
  
  .search-input::placeholder {
    color: #999;
  }
  
  .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 16px;
    pointer-events: none;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #888;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
  }
  
  .search-input:not(:placeholder-shown) + .search-clear {
    display: flex;
  }
  
  .search-clear::before {
    content: '×';
    display: inline-block;
    width: 100%;
    height: 100%;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
  }
  
  .search-clear:hover {
    background: rgba(0,0,0,0.05);
  }
  
  /* Back Button */
  .back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-height: 44px;
    font-size: 14px;
  }
  
  .back-button:visited { 
    color: #2c3e50; 
  }
  
  .back-button:hover { 
    text-decoration: none;
    background: #f8f9fa;
    color: #1a252f;
    transform: translateX(-2px);
  }
  
  .back-button:active {
    transform: translateX(0);
    background: #e9ecef;
  }
  
  .back-button i { 
    color: inherit;
    font-size: 16px;
  }
  
  /* Header Actions */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
  }
  
  .mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .mobile-filter-toggle:hover {
    background: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }
  
  .mobile-filter-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  /* ============================================
     4. MAIN CONTENT & HERO
     ============================================ */
  .main-content {
    padding: 20px 0;
    min-height: 60vh;
    width: 100%;
    overflow-x: hidden;
  }
  
  .hero-section {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100px;
    padding: 10px 0 !important;
    background: linear-gradient(135deg, #fafcff 0%, #e6ecf5 100%) !important;
    text-align: center;
  }
  
  .hero-content {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
  }
  
  .hero-content h1 {
    font-family: 'Agraham', Georgia, 'Times New Roman', serif;
    font-size: 32px;
    margin: 0;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
    padding: 0 20px;
  }
  
  [dir="rtl"] .hero-content h1,
  html[lang="ar"] .hero-content h1,
  #i18n-hero[lang="ar"] {
    font-family: 'Agraham', 'Amiri', 'Noto Sans Arabic', 'Cairo', 'Tajawal', Georgia, 'Times New Roman', serif !important;
    font-size: 3rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0.5rem 0 !important;
    color: #333 !important;
    text-align: center !important;
    padding: 0 20px !important;
    width: 100% !important;
    display: block !important;
  }
  
  /* ============================================
     5. FEATURES SECTION
     ============================================ */
  .fluid_container {
    background: #fff;
    padding: 20px 0 10px;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
  }
  
  .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    transition: box-shadow .2s ease, transform .2s ease, background .2s ease;
  }
  
  .feature-item:hover {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
  }
  
  .feature-icon {
    font-size: 20px;
    color: #2c3e50;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
  }
  
  .feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
  
  .feature-text h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #222;
    line-height: 1.2;
    min-height: 20px;
  }
  
  .feature-text p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
  }
  
  /* ============================================
     6. FILTER & SORT SECTION
     ============================================ */
  .filter-sort-section {
    margin-bottom: 20px;
  }
  
  .filter-sort-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
  }
  
  /* ============================================
     7. PRODUCTS SECTION
     ============================================ */
  .products-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    min-height: 400px;
  }
  
  /* Filters Sidebar */
  .filters-sidebar {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    height: fit-content;
    max-height: 400px;
    max-width: 220px;
    min-width: 180px;
    overflow-y: auto;
    position: relative;
  }
  
  .filter-section {
    margin-bottom: 12px;
  }
  
  .filter-section h4 {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
  }
  
  .filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
  }
  
  .clear-filters,
  .apply-filters {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 40px;
    flex: 1;
    min-width: 80px;
  }
  
  .apply-filters {
    background: #333;
    color: white;
    border-color: #333;
  }
  
  .clear-filters:hover {
    background: #f8f9fa;
    border-color: #ccc;
  }
  
  .apply-filters:hover {
    background: #555;
    border-color: #555;
  }
  
  /* Products Container */
  .products-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
  }
  
  .products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .products-count {
    font-size: 14px;
    color: #666;
    flex: 1;
    min-width: 120px;
  }
  
  .sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  
  .sort-controls label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
  }
  
  .sort-select,
  .category-select {
    padding: 10px 35px 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    width: 100%;
    min-width: 180px;
    max-width: 300px;
    min-height: 44px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .sort-select:focus,
  .category-select:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
  }
  
  /* ============================================
     8. PRODUCT CARDS
     ============================================ */
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
    padding: 20px 5%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .product-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
  }
  
  .product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ddd;
    transform: translateY(-2px);
  }
  
  .product-image {
    position: relative;
    height: 220px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
  }
  
  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s;
    padding: 10px;
  }
  
  .product-card:hover .product-image img {
    transform: scale(1.02);
  }
  
  .product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
  }
  
  .product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
  }
  
  .product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
  }
  
  .product-description {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 0;
    flex-wrap: wrap;
    padding: 10px;
  }
  
  .regular-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
  }
  
  .sale-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
  }
  
  /* ============================================
     9. PAGINATION
     ============================================ */
  .pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0 60px 0;
    flex-wrap: wrap;
    min-height: 60px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    position: relative;
    z-index: 1;
  }
  
  .page-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 2px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .page-button:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #ccc;
  }
  
  .page-button.active {
    background: #333;
    color: #fff;
    border-color: #333;
  }
  
  .page-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .page-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-left: 15px;
    white-space: nowrap;
  }
  
  /* ============================================
     10. CUSTOMER REVIEWS
     ============================================ */
  .reviews-section {
    background: #f9f9f9;
    padding: 60px 0;
    margin-top: 0;
    clear: both;
    border-top: 1px solid #e9ecef;
  }
  
  .reviews-header h2 {
    text-align: center;
    font-family: 'Agraham', Georgia, 'Times New Roman', serif;
    font-size: 32px;
    color: #222;
    margin-bottom: 25px;
  }
  
  .reviews-scroller {
    position: relative;
  }
  
  .reviews-track {
    display: flex;
    gap: 16px;
    overflow: hidden;
    padding: 10px 44px;
    scroll-behavior: smooth;
  }
  
  .review-card {
    min-width: 320px;
    max-width: 380px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  
  .review-rating {
    color: #FFC763;
    margin-bottom: 8px;
  }
  
  .review-text {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
  }
  
  .review-author {
    margin-top: 10px;
    color: #333;
    font-weight: 600;
    font-size: 13px;
  }
  
  .reviews-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    color: #333;
  }
  
  .reviews-prev { left: 8px; }
  .reviews-next { right: 8px; }
  .reviews-nav:hover { background: #f8f9fa; }
  
  /* ============================================
     11. FOOTER STYLES
     ============================================ */
  .site-footer {
    background: #f8f9fa;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #e5e5e5;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
  }
  
  /* Footer sections order - FIXED */
  .footer-content > .footer-brand {
    grid-column: 1;
    order: 1;
  }
  
  .footer-content > .footer-section:nth-of-type(2) {
    grid-column: 2;
    order: 2;
  }
  
  .footer-content > .footer-section:nth-of-type(3) {
    grid-column: 3;
    order: 3;
  }
  
  .footer-content > .footer-section:nth-of-type(4) {
    grid-column: 4;
    order: 4;
  }
  
  .footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links-list li {
    margin-bottom: 12px;
  }
  
  .footer-section a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
  }
  
  .footer-section a:hover {
    color: #333;
  }
  
  .footer-section .social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
  }
  
  .footer-section .social-links a {
    font-size: 18px;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    transition: all 0.3s ease;
  }
  
  .footer-section .social-links a:hover {
    color: #fff;
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .footer-brand {
    text-align: left;
  }
  
  .footer-logo {
    margin-bottom: 20px;
  }
  
  .footer-logo-img {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .footer-logo-img:hover {
    transform: scale(1.05);
  }
  
  .footer-tagline {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
    font-style: italic;
    font-weight: 500;
  }
  
  .footer-contact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 8px;
    font-size: 15px;
    color: #333;
  }
  
  .footer-contact i {
    color: #FFC763;
    font-size: 16px;
  }
  
  .footer-contact span {
    font-weight: 500;
  }
  
  .footer-newsletter {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
  }
  
  .footer-newsletter p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
  }
  
  .footer-section select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
    min-width: 120px;
    max-width: 180px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
  }
  
  .footer-section select:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  }
  
  .footer-bottom {
    border-top: 2px solid #e5e5e5;
    padding-top: 25px;
    margin-top: 20px;
  }
  
  .footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-bottom-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
  }
  
  .footer-bottom-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
  }
  
  .footer-bottom-links a:hover {
    color: #333;
    text-decoration: underline;
  }
  
  .copyright {
    color: #666;
    font-size: 12px;
  }
  
  /* ============================================
     12. MODALS & OVERLAYS
     ============================================ */
  .cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .cart-sidebar.open {
    right: 0;
  }
  
  .mobile-filter-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1400 !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
    display: none;
  }
  
  .mobile-filter-backdrop.show {
    opacity: 1 !important;
    display: block !important;
  }
  
  /* ============================================
     13. ABOUT PAGE STYLES
     ============================================ */
  .about-hero {
    text-align: center;
    padding: 40px 0 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 30px;
  }
  
  .about-hero h2 {
    font-family: 'Agraham', Georgia, 'Times New Roman', serif;
    font-size: 40px;
    color: #222;
    margin: 0 0 10px 0;
    line-height: 1.2;
  }
  
  .about-hero .subtitle {
    color: #666;
    font-size: 18px;
    letter-spacing: 0.3px;
    font-weight: 400;
  }
  
  .about-section {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    line-height: 1.7;
  }
  
  .about-section h3 {
    font-size: 24px;
    color: #111;
    margin: 0 0 15px 0;
    font-weight: 600;
  }
  
  .about-section p {
    color: #444;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 15px 0;
    text-align: justify;
  }
  
  .about-section p:last-child {
    margin-bottom: 0;
  }
  
  .about-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
  }
  
  .about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    padding: 8px 0;
  }
  
  .about-list li i {
    color: #FFC763;
    font-size: 18px;
    line-height: 1.6;
    margin-top: 2px;
    width: 24px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
  }
  
  .about-list li strong {
    margin-right: 8px;
    font-weight: 600;
    color: #222;
  }
  
  /* ============================================
     14. RESPONSIVE DESIGN
     ============================================ */
  
  /* Tablets and Medium Devices (768px - 1024px) */
  @media (max-width: 1024px) {
    .products-section {
      grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 300px;
      height: 100vh;
      background: #fff;
      z-index: 1500;
      box-shadow: 2px 0 10px rgba(0,0,0,0.1);
      overflow-y: auto;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      max-width: none;
      max-height: none;
      padding: 20px;
      border-radius: 0;
    }
    
    .filters-sidebar.open {
      display: block;
      transform: translateX(0);
    }
    
    .mobile-filter-toggle {
      display: flex;
    }
    
    .features-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
      grid-template-columns: repeat(2, 1fr);
      gap: 35px;
    }
    
    .footer-content > .footer-brand {
      grid-column: 1;
    }
    
    .footer-content > .footer-section:nth-of-type(2) {
      grid-column: 2;
    }
    
    .footer-content > .footer-section:nth-of-type(3) {
      grid-column: 1;
    }
    
    .footer-content > .footer-section:nth-of-type(4) {
      grid-column: 2;
    }
  }
  
  /* Mobile Devices (480px - 768px) */
  @media (max-width: 768px) {
    body {
      font-size: 15px;
    }
    
    .container {
      padding: 0 15px;
    }
    
    .header-top .container {
      flex-direction: column;
      gap: 12px;
      align-items: center;
    }
    
    .header-main .container {
      flex-direction: column;
      gap: 15px;
      padding: 15px 20px;
    }
    
    .logo-img {
      height: 100px;
    }
    
    .search-row {
      flex-direction: column;
      gap: 12px;
    }
    
    .hero-content h1 {
      font-size: 24px;
    }
    
    [dir="rtl"] .hero-content h1,
    html[lang="ar"] .hero-content h1,
    #i18n-hero[lang="ar"] {
      font-size: 2rem !important;
    }
    
    .products-grid {
      padding: 15px 3%;
      gap: 12px;
    }
    
    .product-image {
      height: 180px;
    }
    
    .product-info {
      padding: 12px;
    }
    
    .product-title {
      font-size: 15px;
    }
    
    .pagination {
      margin: 30px 0 40px 0;
      padding: 12px;
      gap: 6px;
      min-height: 50px;
    }
    
    .reviews-header h2 {
      font-size: 22px;
    }
    
    .reviews-track {
      padding: 10px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
    }
    
    .review-card {
      scroll-snap-align: start;
      min-width: 240px;
    }
    
    .reviews-nav {
      display: none;
    }
    
    .filters-sidebar {
      width: 280px;
    }
    
    .products-header {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }
    
    .products-count {
      text-align: center;
      order: 2;
    }
    
    .sort-controls {
      justify-content: center;
      order: 1;
    }
    
    .back-button {
      padding: 10px 14px;
      font-size: 15px;
      min-height: 48px;
    }
    
    .about-hero {
      padding: 30px 0 15px;
    }
    
    .about-hero h2 {
      font-size: 32px;
    }
    
    .about-section {
      margin: 20px 15px;
      padding: 20px;
    }
    
    .about-list {
      grid-template-columns: 1fr;
    }
    
    .footer-content {
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }
    
    .footer-bottom-content {
      flex-direction: column;
      text-align: center;
    }
  }
  
  /* Small Mobile Devices (320px - 480px) */
  @media (max-width: 480px) {
    body {
      font-size: 14px;
    }
    
    .container {
      padding: 0 12px;
    }
    
    .header-top {
      padding: 10px 0;
    }
    
    .header-top .container {
      gap: 10px;
    }
    
    .language-selector select {
      min-width: 85px;
      max-width: 100px;
      padding: 6px 24px 6px 12px;
      font-size: 12px;
    }
    
    .social-links {
      gap: 5px;
    }
    
    .social-links a {
      width: 36px;
      height: 36px;
      font-size: 16px;
    }
    
    .logo-img {
      height: 70px !important;
    }
    
    .header-search {
      max-width: 100%;
      min-height: 44px;
      border-radius: 25px;
    }
    
    .search-input {
      font-size: 14px;
      padding: 12px 15px 12px 45px;
      height: 44px;
    }
    
    .search-icon {
      left: 15px;
    }
    
    .search-clear {
      right: 10px;
    }
    
    .hero-section {
      padding: 20px 0;
      min-height: 100px;
    }
    
    .hero-content h1 {
      font-size: 20px;
    }
    
    .features-grid {
      grid-template-columns: 1fr;
    }
    
    .feature-item {
      padding: 14px 16px;
    }
    
    .products-grid {
      padding: 10px 2%;
      gap: 8px;
    }
    
    .product-image {
      height: 160px;
    }
    
    .product-info {
      padding: 10px;
    }
    
    .product-title {
      font-size: 14px;
      min-height: 2.8em;
    }
    
    .product-price {
      gap: 6px;
      flex-direction: column;
      align-items: flex-start;
      padding: 10px;
    }
    
    .pagination {
      margin: 20px 0 30px 0;
      padding: 10px;
      gap: 4px;
      min-height: 45px;
    }
    
    .page-button {
      min-width: 36px;
      height: 36px;
      padding: 0 10px;
      font-size: 14px;
    }
    
    .page-info {
      font-size: 12px;
      margin-left: 10px;
    }
    
    .mobile-filter-toggle {
      padding: 8px 12px;
      font-size: 12px;
      min-height: 36px;
      gap: 6px;
    }
    
    .back-button {
      padding: 8px 12px;
      font-size: 14px;
      min-height: 44px;
    }
    
    .filters-sidebar {
      width: 100%;
      max-width: 320px;
      padding: 12px;
    }
    
    .filter-actions {
      gap: 10px;
      margin-top: 16px;
      flex-direction: column;
    }
    
    .clear-filters,
    .apply-filters {
      padding: 10px 16px;
      font-size: 14px;
      min-height: 44px;
    }
    
    .sort-select,
    .category-select {
      padding: 10px 35px 10px 14px;
      font-size: 14px;
      min-height: 44px;
    }
    
    .about-hero {
      padding: 25px 0 12px;
    }
    
    .about-hero h2 {
      font-size: 28px;
    }
    
    .about-section {
      margin: 15px 10px;
      padding: 16px;
    }
    
    .about-section h3 {
      font-size: 18px;
    }
    
    .about-section p {
      font-size: 14px;
    }
    
    .footer-content {
      grid-template-columns: 1fr;
      gap: 25px;
      text-align: center;
    }
    
    .footer-content > .footer-brand,
    .footer-content > .footer-section:nth-of-type(2),
    .footer-content > .footer-section:nth-of-type(3),
    .footer-content > .footer-section:nth-of-type(4) {
      grid-column: 1;
    }
    
    .footer-brand {
      text-align: center !important;
    }
    
    .footer-contact {
      justify-content: center !important;
    }
    
    .footer-section .social-links {
      justify-content: center;
    }
    
    .footer-bottom {
      padding-top: 20px;
    }
    
    .footer-bottom-content {
      gap: 12px;
    }
  }
  
  /* Very Small Devices (max 360px) */
  @media (max-width: 360px) {
    .container {
      padding: 0 10px;
    }
    
    .products-grid {
      grid-template-columns: 1fr;
      gap: 6px;
    }
    
    .product-image {
      height: 140px;
    }
    
    .product-info {
      padding: 8px;
    }
    
    .product-title {
      font-size: 13px;
    }
  }
  
  /* RTL Support */
  [dir="rtl"] .header-search,
  [dir="rtl"] .search-input {
    padding: 10px 45px 10px 15px;
  }
  
  [dir="rtl"] .search-icon {
    left: auto;
    right: 15px;
  }
  
  [dir="rtl"] .search-clear {
    right: auto;
    left: 10px;
  }
  
  [dir="rtl"] .sort-select,
  [dir="rtl"] .category-select {
    background-position: left 14px center;
    padding-right: 14px;
    padding-left: 35px;
  }
  
  [dir="rtl"] .language-selector select {
    background-position: left 8px center;
    padding-right: 10px;
    padding-left: 25px;
  }
  
  [dir="rtl"] .footer-section select {
    background-position: left 12px center;
    padding-right: 12px;
    padding-left: 30px;
  }
  
  [dir="rtl"] .footer-brand {
    text-align: right;
  }
  
  [dir="rtl"] .footer-contact {
    justify-content: flex-end;
    flex-direction: row-reverse;
  }
  
  [dir="rtl"] .about-list li strong {
    margin-right: 0;
    margin-left: 8px;
  }
  
  [dir="rtl"] .feature-item {
    direction: rtl;
  }
  
  /* Print Styles */
  @media print {
    .site-header,
    .filters-sidebar,
    .mobile-filter-toggle,
    .pagination,
    .site-footer,
    button,
    .back-button {
      display: none !important;
    }
    
    .container {
      width: 100%;
      max-width: 100%;
      padding: 0;
    }
    
    .products-section {
      grid-template-columns: 1fr;
    }
    
    .product-card {
      break-inside: avoid;
      border: 1px solid #000;
    }
    
    /* ============================================
   HEADER TOP BAR - MOBILE FIX
   ============================================ */

/* Enhanced Header Top for Better Mobile Display */
.header-top {
  background: #f8f9fa;
  padding: 8px 0;
  font-size: 12px;
  color: #666;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.header-top-left {
  flex-shrink: 0;
  min-width: 0;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

/* Language Selector - Enhanced for Mobile */
.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.language-selector span {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
}

.language-selector select {
  padding: 6px 25px 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  color: #333;
  background-color: #fff;
  min-width: 100px;
  max-width: 150px;
  flex-shrink: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.nav-link {
  color: #666;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #333;
}

/* ============================================
   MOBILE RESPONSIVE FIXES (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .header-top {
    padding: 10px 0;
  }

  .header-top .container {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .header-top-left {
    order: 2;
    text-align: center;
    width: 100%;
  }

  .header-top-right {
    order: 1;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .language-selector {
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .language-selector span {
    font-size: 12px;
  }

  .language-selector select {
    min-width: 85px;
    max-width: 100px;
    font-size: 12px;
  }

  .social-links {
    gap: 5px;
  }

  .nav-link {
    font-size: 13px;
  }
}

/* ============================================
   SMALL MOBILE FIXES (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .header-top {
    padding: 12px 0;
  }

  .header-top .container {
    padding: 0 12px;
    gap: 15px;
  }

  .header-top-right {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .language-selector {
    width: 100%;
    max-width: 280px;
    justify-content: space-between;
    padding: 0 10px;
  }

  .language-selector span {
    font-size: 12px;
    font-weight: 600;
  }

  .language-selector select {
    min-width: 85px;
    max-width: 100px;
    padding: 8px 28px 8px 12px;
    font-size: 12px;
  }

  .social-links {
    justify-content: center;
    width: 100%;
    gap: 18px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .nav-link {
    font-size: 14px;
    padding: 5px 10px;
  }

  /* Hide separator on very small screens */
  .language-selector span[aria-hidden="true"] {
    display: none;
  }
}

/* ============================================
   VERY SMALL SCREENS (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
  .header-top .container {
    padding: 0 10px;
  }

  .language-selector {
    max-width: 100%;
    padding: 0 5px;
  }

  .language-selector span:not([aria-hidden]) {
    font-size: 12px;
  }

  .language-selector select {
    min-width: 85px;
    max-width: 100px;
    padding: 7px 26px 7px 10px;
    font-size: 12px;
  }

  .social-links {
    gap: 5px;
  }

  .social-links a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* ============================================
   RTL SUPPORT FOR MOBILE
   ============================================ */
[dir="rtl"] .header-top-right {
  flex-direction: row-reverse;
}

[dir="rtl"] .language-selector {
  flex-direction: row-reverse;
}

[dir="rtl"] .language-selector select {
  background-position: left 8px center;
  padding-right: 10px;
  padding-left: 25px;
}

@media (max-width: 480px) {
  [dir="rtl"] .header-top-right {
    flex-direction: column;
  }
  
  [dir="rtl"] .language-selector {
    flex-direction: row-reverse;
  }
}

/* Update the product-info section to accommodate the button */
.product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 10px;
}

/* Product Actions Row - Buy Now + WhatsApp */
.product-actions {
  display: flex;          /* puts span + a in same line */
  align-items: center;    /* vertically centers them */
  gap: 10px;              /* space between span and icon */
  margin: 5px 0;
  width: 100%;
}

/* Buy Now Button */
.buy-now-btn {
  flex: 1;
  padding: 12px 20px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-now-btn:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.buy-now-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* WhatsApp Icon Button */
.whatsapp-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
  font-size: 22px;
}

/* Update product-price to work with the button */
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 0;
  flex-wrap: wrap;
  padding: 10px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR BUY NOW BUTTON
   ============================================ */

/* Mobile Devices (480px - 768px) */
@media (max-width: 768px) {
  .buy-now-btn {
    padding: 10px 16px;
    font-size: 14px;
    min-height: 42px;
  }
  
  .product-info {
    gap: 8px;
  }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
  .buy-now-btn {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
    letter-spacing: 0.3px;
  }
  
  .product-info {
    padding: 10px;
    gap: 6px;
  }
}

/* Very Small Devices (max 360px) */
@media (max-width: 360px) {
  .buy-now-btn {
    padding: 9px 12px;
    font-size: 12px;
    min-height: 38px;
  }
  
  .product-info {
    padding: 8px;
  }
}

/* RTL Support for Buy Now Button */
[dir="rtl"] .buy-now-btn {
  flex-direction: row-reverse;
}

/* Print Styles - Hide Buy Now Button */
@media print {
  .buy-now-btn {
    display: none !important;
  }

    @page {
      margin: 1cm;
    }
  }
}