/* ===============================
   GLOBAL STYLES & VARIABLES
   =============================== */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');

/* ===============================
   ARABIC FONT RULES
   =============================== */
/* Apply Amiri font to all Arabic/RTL content */
[lang="ar"],
[dir="rtl"],
.arabic-text,
.font-amiri {
  font-family: 'Amiri', 'Tahoma', 'Arial', serif !important;
}

/* Exception: Preserve Saudi Riyal symbol font */
.icon-saudi_riyal,
.symbol {
  font-family: 'SaudiRiyalSymbol', Arial, sans-serif !important;
}

/* Specific Arabic text elements */
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] h5, [lang="ar"] h6,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: 'Amiri', 'Tahoma', 'Arial', serif !important;
  font-weight: 700;
}

[lang="ar"] p, [lang="ar"] div, [lang="ar"] label,
[dir="rtl"] p, [dir="rtl"] div, [dir="rtl"] label {
  font-family: 'Amiri', 'Tahoma', 'Arial', serif !important;
  font-weight: 400;
}

/* Arabic form inputs */
[lang="ar"] input, [lang="ar"] textarea, [lang="ar"] select,
[dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select {
  font-family: 'Amiri', 'Tahoma', 'Arial', serif !important;
}

@tailwind base;
@tailwind components;
@tailwind utilities;
   
   :root {
     /* header dimensions */
     --header-height:           60px;
     --header-vert-pad:         1.5rem;   /* desktop: top/bottom padding */
     --header-padding:           1.5rem;    /* desktop: left/right gutter */
     --header-gutter-mobile:    0px;      /* mobile: zero gutter */
   }
   
   /* ===============================
      RESET & GLOBAL
      =============================== */
   html {
     font-size: 93.75%;
     overflow-x: hidden;
   }
   body {
     margin: 0;
     padding: 0;
     padding-top: calc(var(--header-height) + 1rem); /* Add space for fixed header */
     font-family: Arial, sans-serif;
     overflow-x: hidden;
   }
   
   /* ===============================
      HEADER BASE (DESKTOP)
      =============================== */
   header {
     position: fixed;
     top: 0; left: 0; right: 0;
     height: var(--header-height);
     padding: var(--header-vert-pad) 200px;
     background: rgba(255,255,255,0.2);
     -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
     border-bottom: 1px solid rgba(0,0,0,0.08);
     transition: all 0.4s ease-in-out;
     z-index: 1000;
   }
   header.scrolled {
     -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
     border-bottom-color: rgba(0,0,0,0.12);
     box-shadow: 0 2px 20px rgba(0,0,0,0.08);
   }
   
   /* ===============================
      CONTAINER & THREE ZONES
      =============================== */
   header .container {
     width: 100%;
     padding: 0 var(--header-padding);
     display: flex;
     align-items: center;
     justify-content: center;  /* logo centered */
     position: relative;
     height: 100%;
   }
   .left-nav,
   .header-center,
   .right-nav {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     display: flex;
     align-items: center;
   }
   .left-nav   { left: var(--header-padding); }
   .right-nav  { right: var(--header-padding); }
   .header-center {
     left: 50%;
     transform: translate(-50%, -50%);
     z-index: 100;
     text-align: center;
   }
   
   /* ===============================
      NAV ITEMS & SWITCHER
      =============================== */
   nav ul {
     display: flex;
     gap: 1rem;
     list-style: none;
     margin: 0; padding: 0;
   }
   nav ul li a {
     font-family: 'Roboto', sans-serif;
     font-weight: 300;
     text-transform: uppercase;
     transition: color 0.3s;
   }
   nav ul li a:hover,
   nav ul li a.active {
     color: #000;
     font-weight: bold;
   }
   .language-switcher,
   .mobile-language-switcher {
     display: inline-flex;
     gap: 0.25rem;
     align-items: center;
   }
   .language-switcher a.active {
     color: #000;
     font-weight: bold;
   }
   
   
   
   /* ===============================
      RTL OVERRIDES (all widths)
      =============================== */
   html[dir="rtl"] header .container {
     flex-direction: row-reverse;
   }
   html[dir="rtl"] .left-nav  { right: var(--header-padding);  left: auto; }
   html[dir="rtl"] .right-nav { left: var(--header-padding);  right: auto; }
   /* html[dir="rtl"] nav ul     { flex-direction: row-reverse; } */
   html[dir="rtl"] nav ul li a,
   html[dir="rtl"] .language-switcher a {
     text-align: right;
   }
   
/* ===============================
   MOBILE HAMBURGER TOGGLE
   =============================== */
   .mobile-menu-toggle {
    display: none;
    cursor: pointer;
    position: fixed;
    padding: 0.6rem;
    z-index: 1000;
  }
  
  /* Mobile Hamburger Bar Style */
  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #333;
    transition: all 0.3s ease;
  }
  
  /* ===============================
     RESPONSIVE OVERRIDES (max-width: 768px)
     =============================== */
  @media (max-width: 768px) {
  
    /* Collapse side-gutter and adjust vertical padding */
    :root {
      --header-vert-pad: 0.5rem;
      --header-gutter: var(--header-gutter-mobile);
    }
  
    /* Header tweaks */
    header {
      padding: var(--header-vert-pad) 0;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
  
    /* Container full-width for true centering */
    header .container {
      padding: 0;
      justify-content: space-between;
    }
  
    /* Mobile nav & toggle (hide default nav) */
    nav:not(.mobile-nav) {
      display: none;
    }
    .mobile-menu-toggle {
      display: block;
    }
  
    /* Center logo wrapper */
    .header-center {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    
    /* Mobile-nav RTL slide tweaks */
    [dir="rtl"] .mobile-nav {
      left: 0;
      right: auto;
      transform: translateX(-100%);
    }
  
    [dir="rtl"] .mobile-nav.active {
      transform: translateX(0);
    }
  
    [dir="rtl"] .mobile-nav-backdrop {
      right: 0;
      left: auto;
    }
  
    /* RTL Overrides */
    [dir="rtl"] {
      .content,
      .text-content {
        text-align: right;
        direction: rtl;
      }
  
      .mobile-nav {
        right: auto;
        position: fixed;
        top: 0;
        height: 100vh;
        max-width: 340px;
        padding: 0;
        background: #fff;
        box-shadow: -2px 0 24px rgba(0, 0, 0, 0.18);
        border-radius: 0 0 20px 20px;
        transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0s linear 0.4s;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        display: block;
        overflow-y: auto;
        outline: none;
        transform: translateX(-100%);
        z-index: 1201;
      }
    }
  
    /* Prevent scroll when nav is open */
    body.nav-open {
      position: fixed;
      width: 100%;
      overflow: hidden;
    }
  }
  
  /* ===============================
     MOBILE MENU TOGGLE
     =============================== */
  @media (max-width: 768px) {
    /* Mobile menu toggle for LTR */
    :dir(ltr) .mobile-menu-toggle {
      right: env(safe-area-inset-right, 1rem);
    }
  
    /* Mobile menu toggle for RTL */
    :dir(rtl) .mobile-menu-toggle {
      left: env(safe-area-inset-left, 1rem);
      right: auto;
    }
  
    /* Mobile menu toggle visibility */
    .mobile-menu-toggle {
      display: block;
    }
  }
  
  /* ===============================
     MOBILE NAVIGATION STYLES
     =============================== */
  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 85vw;
    max-width: 340px;
    padding: 0;
    background: #fff;
    box-shadow: -2px 0 24px rgba(0, 0, 0, 0.18);
    border-radius: 0 0 20px 20px;
    transform: translateX(100%); /* Starts off-screen */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0s linear 0.4s;
    z-index: 1201;
    overflow-y: auto;
    outline: none;
    display: block;
  }
  
  /* Show when active */
  .mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  
  .mobile-nav-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.2rem 1.5rem 0.5rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: #faf9f7;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  }
  
  .mobile-nav ul {
    width: 100%;
    box-sizing: border-box;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  @keyframes navFadeIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
  }
  
  /* Backdrop */
  .mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
    opacity: 0;
    transition: opacity 0.25s;
  }
  .mobile-nav.active ~ .mobile-nav-backdrop {
    display: block;
    opacity: 1;
  }
  
  .mobile-nav-close {
    background: none;
    border: none;
    color: #333;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: color 0.2s, background 0.2s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-nav-close:hover,
  .mobile-nav-close:focus {
    color: #000000;
    background: #ffffff;
    outline: none;
  }
  
  .mobile-nav ul li {
    animation: menuItemFadeIn 0.4s forwards;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .mobile-nav.active ul li:nth-child(1) { animation-delay: 0.1s; }
  .mobile-nav.active ul li:nth-child(2) { animation-delay: 0.18s; }
  .mobile-nav.active ul li:nth-child(3) { animation-delay: 0.26s; }
  .mobile-nav.active ul li:nth-child(4) { animation-delay: 0.34s; }
  .mobile-nav.active ul li:nth-child(5) { animation-delay: 0.42s; }
  .mobile-nav.active ul li:nth-child(6) { animation-delay: 0.5s; }
  
  @keyframes menuItemFadeIn {
    to { opacity: 1; transform: translateY(0); }
  }
  
  .mobile-nav ul li:last-child {
    border-bottom: none;
  }
  
  .mobile-nav ul li a {
    align-items: center;
    justify-content: flex-start;
    height: 20px;
    line-height: 1.2;
    text-decoration: none;
    margin-left: 2rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  
  .mobile-nav ul li a.active,
  .mobile-nav ul li a:focus {
    background: #f6efe8;
    color: #000000;
    box-shadow: 0 2px 8px #00000022;
    outline: none;
  }
  
  .mobile-nav ul li a:hover {
    background: #f6efe8;
    color: #000000;
  }
  
  .mobile-language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    justify-content: center;
  }
  
  .mobile-nav:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }
  

.cover {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.cover-content {
    position: absolute;
    left: 20.5%;
    top: 42%;
    transform: translate(-20%, -20%);
    text-align: center;
}

/* RTL override */
[dir="rtl"] .cover-content {
  left: 50%;
  transform: translate(-50%, -42%);
  text-align: center;
}

/* Telegram Button - Uiverse.io Splendid Wolverine 24 (exact) */
.telegram {
  transition: none 0.5s ease;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 10px;
  padding-right: 10px;
  width: 130px;
  height: 50px;
  gap: 10px;
  border: none;
  background-color: rgb(42 171 238);
  color: white;
  border-radius: 15px;
  cursor: pointer;
}

.telegram-text {
  transition: none 0.3s ease;
  font-weight: bold;
  font-size: 1rem;
}

.telegram-svg {
  width: 23px;
  height: 23px;
  transition: 0.8s;
}

.telegram:hover .telegram-text {
  display: none;
  position: absolute;
}

.telegram:hover .telegram-svg {
  margin-left: 40px;
  display: block;
  transform: rotate(50deg);
}

.cover-content h1 {
    font-size: 65px;
    font-family: 'Cinzel', serif;
    font-weight: normal;
    line-height: 1.4em;
    transition: all 4s ease; /* Very slow h1 */
}

.cover-content .typed {
    font-weight: bold;
    font-size: 60px;
    color: #000000;
    transition: opacity 4s ease, transform 4s ease; /* Ultra slow typing */
    display: inline-block;
}

.static-text {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    right: 26%;
    color: black;
    text-align: center;
    margin-top: 0.5rem; /* Added space above subheading */
    position: relative;
    z-index: 1;
}

.static-title {
    display: inline-block;
    white-space: nowrap;
}

.typed-cursor {
  opacity: 1;
  transition: opacity 0.3s ease;
  font-size: 65px;
  color: black;
  display: inline-block;
  animation: blink 3s infinite; /* Slowest possible cursor */
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typed-cursor.typed-cursor--blink {
  animation: none;
  -webkit-animation: none;
}

/* General section styling for both Trending and Best Selling */
section {
    margin: 0 0 40px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Font for small titles */
.small {
    font-family: 'Roboto condensed', sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: normal;
}

/* Font for big titles */
.big {
    font-family: 'Merriweather', serif;
    position: relative;
    font-size: 45px;
    text-align: center;
    font-weight: normal;
    margin-bottom: 100px;
}

/* Add small line beneath the Trending Now and Best Selling titles */
.big::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #000000;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

/* === Product Image & Overlay === */
.product-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease-in-out;
}
.product-image:hover .overlay,
.product-image:focus-within .overlay {
  opacity: 1;
}

/* === Product Info === */
.product-name {
  font-size: 1.2em;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}
.price {
  font-size: 1.1em;
  font-weight: bold;
  color: #000000;
  margin-top: 5px;
}

/* Styling for the "Be Always on the Trend" section */
.always-on-trend {
    padding: 60px 0;
    color: #333;
    position: relative;
    margin-bottom: 100px;
}

/* Container to wrap the content */
.always-on-trend .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content wrapper to hold text and images */
.always-on-trend .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Text content styling */
.text-content {
    max-width: 50%;
    padding-right: 30px;
}

/* Styling for section title */
.always-on-trend .section-title {
    font-family: 'Merriweather', serif;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #333;
}

/* Styling for section description */
.always-on-trend .section-description {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #666;
}

[dir="rtl"] .section-description {
  white-space: normal;
  text-align: right;
  max-width: 100%;
  word-wrap: break-word;
  padding-right: 1.5rem; /* Added right padding */
  margin-right: 0.5rem; /* Small right margin */
}

/* Button styling */
.always-on-trend .btn-trend {
    background-color: #ffffff;
    color: #fff;
    padding: 15px 30px;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 25px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.always-on-trend .btn-trend:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
}

/* Image content styling */
.image-content {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 45%;
    gap: 10px;
}

/* First image styling (smaller image, centered vertically) */
.image-first {
    width: 450px;
    height: 550px;
    object-fit: cover;
    border-radius: 8px;
    position: absolute;
    top: -10%;
    left: 15%;
    z-index: 1;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Hover effect for the first image */
.image-first:hover {
    transform: scale(1.1);
    filter: brightness(80%);
}

/* Second image styling (larger image, raised slightly) */
.image-second {
    width: 400px;
    height: 550px;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    left: -200px;
    z-index: 2;
    top: 80px;
}

/* Optional: Add a dark overlay to the background image for better text visibility */
.always-on-trend::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.always-on-trend .container {
    position: relative;
    z-index: 2;
}

/* Ensure responsiveness */
@media (max-width: 768px) {
    .always-on-trend .content {
        flex-direction: column;
        text-align: center;
    }

    .text-content {
        max-width: 100%;
        padding-right: 0;
    }

    .image-content {
        max-width: 100%;
        margin-top: 20px;
    }

    .image-first,
    .image-second {
        width: 100%;
        height: 300px;
    }
}

/* --- Consolidated Mobile Styles (max-width: 767px) --- */
@media (max-width: 767px) {
    .always-on-trend .content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .always-on-trend .text-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .always-on-trend .image-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .always-on-trend img {
        width: 70%;
        margin: 0 auto;
    }
    
    [dir="rtl"] .always-on-trend .text-content {
        text-align: right;
    }
    .image-first {
      left: 30%;
    }
    .image-second {
      left: -30%;
    }
}

/* Styling for the "Why Choose Us" section */
.why-choose-us {
    padding: 60px 0; /* Adjust padding to suit your design */
    text-align: center;
    color: #333;
}

/* Container for the section */
.why-choose-us .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reason items grid */
.reasons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

/* Individual reason item */
.reason-item {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Hover effect for each reason item */
.reason-item:hover {
    transform: translateY(-5px);
}

/* Reason title styling */
h3, .reason-title {
  color: #000000;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Roboto Condensed', sans-serif;
}

/* Reason description styling */
.reason-description {
    font-size: 16px;
    margin-top: 10px;
    color: #666;
}

/* Icon styling */
.reason-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Ensure responsiveness */
@media (max-width: 768px) {
    .reasons {
        grid-template-columns: 1fr 1fr; /* Stacks the items on smaller screens */
    }
}

@media (max-width: 480px) {
    .reasons {
        grid-template-columns: 1fr; /* Stacks the items vertically on very small screens */
    }
}

.contact-us {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.contact-description {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555;
}
  
  /* Update category page product cards to match index style */
  .products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  /* Base product item styles */
  .product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px 0 rgba(60, 60, 60, 0.1), 0 1.5px 6px 0 rgba(160, 120, 60, 0.08);
    height: 100%;
  }

  .product-item .product-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
  }

  .product-item img {
    transition: transform 0.7s ease;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .product-item .p-4 {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
  }

  .product-item h2,
  .product-item h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: bold;
    color: #333;
  }

  .product-item .price {
    font-size: 1.125rem;
    font-weight: bold;
    color: #000;
    margin-top: auto;
  }

  .product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  }

  .product-item:hover img {
    transform: scale(1.05);
  }

  /* Products grid specific styles */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  .products-grid .product-item {
    max-width: 100%;
    height: auto;
    margin: 0;
  }

/* Hide Quick View button on mobile */
@media (max-width: 640px) {
  /* Hide quick view only on very small screens */
  .quick-view-btn,
  .product-item .relative > .absolute {
    display: none !important;
  }
}

/* Show arrows on larger screens */

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 80%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

.contact-form button[type="submit"] {
    background: #000000;
    color: #ffffff;
}

.contact-form button[type="submit"]:hover {
    background: #333333;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.contact-form button.telegram-btn {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
}
.contact-form button.telegram-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.contact-form .form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-us img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 20px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem; /* Adjust font size */
    display: flex;
    justify-content: flex-start;
    margin-left: 0;
    margin-top: 60px;
}

.breadcrumb-nav a {
  color: #000000;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-nav span {
  color: #666;
}

/* Main Heading */
.text-5xl.font-bold {
    margin-left: 104px;
    font-size: 4.33rem; /* Ensures consistent large heading */
    margin-top: 60px;
    margin-bottom: 70px;
    line-height: 1.4em;
    font-family: 'Merriweather', serif;
}

@media (max-width: 767px) {
  .text-5xl.font-bold {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
    width: 100%;
    padding: 0 1rem; /* Add some padding on mobile */
    font-size: 3.5rem; /* Reduce font size for mobile */
  }

  /* Contact subtitle centering on mobile */
  .hero-section p {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 1rem; /* Add some padding on mobile */
    font-size: 1.25rem; /* Adjust font size for mobile */
  }
}

/* Unified Image Styling */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease-in-out;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

/* Base image styles */
img {
    width: auto;
    height: auto;
    vertical-align: middle;
    will-change: transform;
}
/* Override any max-width: 100% that might be applied */
img, video {
  max-width: none; /* Remove any max-width restrictions */
  height: auto;
}

/* Product item base styles are now consolidated above */

/* --- Modern Product Grid Redesign --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem 2rem;
    margin: 2.5rem auto 3rem auto;
    max-width: 1300px;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    padding: 0 1rem;
    background: none;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(60, 60, 60, 0.10), 0 1.5px 6px 0 rgba(160, 120, 60, 0.08);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
    height: 420px;
    padding-bottom: 1.5rem;
    margin: 0 0.5rem 1.2rem 0.5rem; /* Small horizontal and bottom gap between cards */
}




/* Responsive grid for tablets */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 98vw;
        gap: 1.1rem;
    }
    .product-image {
        height: 230px;
    }
}

/* Responsive grid for mobile */
/* --- Consolidated Mobile Styles (max-width: 767px) --- */
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
        max-width: 100vw;
        gap: 0.7rem;
        justify-items: center;
    }
    .product-image {
        height: 170px;
    }
}
/* --- End Modern Product Grid Redesign --- */

/* Utility class for spacing above product grid sections */
.section-above-products {
    margin-bottom: 2.5rem;
}

/* Standardize product image heights */
.product-grid img {
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns tablet */
        max-width: 95vw;
        gap: 1rem;
    }
}

/* --- Consolidated Mobile Styles (max-width: 767px) --- */
@media (max-width: 767px) {
    .product-grid {
        padding: 0 1rem;
        justify-items: center;
    }
    
    [dir="rtl"] .product-grid {
        direction: rtl;
        text-align: center;
        padding: 0 1rem;
        justify-items: center;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.product-image {
    position: relative;
    width: 310px;
    height: 387.5px;
}

/* .overlay removed: No overlay on product images */

/* ------------------------------
   Modal Core Layout
--------------------------------*/

.fixed {
  position: fixed;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.hidden {
  display: none;
}

.modal-content {
  padding: 2rem;
}

/* ------------------------------
   Slideshow Styles
--------------------------------*/

.slideshow-container {
  position: relative;
  margin: auto;
}

.slide {
  display: none;
}
.slide img {
  width: 100%;
}

/* Arrows */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
  user-select: none;
  transition: 0.3s ease;
  z-index: 10;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
  border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* RTL Arrows */
.rtl .prev {
  right: 10px;
  left: auto;
}
.rtl .next {
  left: 10px;
  right: auto;
}

/* Dots */
.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

/* ------------------------------
   Typography Utility
--------------------------------*/

.txt-type {
  color: #000;
  font-weight: 600;
}
.txt-type .txt {
  display: inline-block;
  min-width: 100px;
  font-weight: 600;
}

/* ------------------------------
   RTL Footer Mobile Adjustments (always loaded at end for specificity)
--------------------------------*/
@media (max-width: 767px) {
  [dir="rtl"] .footer__mobile {
    direction: rtl;
    text-align: right;
  }
  [dir="rtl"] .footer__mobile-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 80px;
    padding: 0 30px;
    align-items: flex-start;
  }
  [dir="rtl"] .footer__mobile-col {
    text-align: right;
    align-items: flex-end;
    margin-bottom: 0.5rem;
  }
  [dir="rtl"] .footer__mobile-col h3,
  [dir="rtl"] .footer__mobile-col ul,
  [dir="rtl"] .footer__mobile-col li,
  [dir="rtl"] .footer__mobile-col a {
    text-align: right;
  }
  [dir="rtl"] .footer__mobile-contact {
    text-align: center;
    align-items: center;
    padding: 20px 15px;
  }
  [dir="rtl"] .footer__telegram-wrapper,
  [dir="rtl"] .footer__telegram-button {
    justify-content: center;
    direction: ltr;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  [dir="rtl"] .footer__telegram-badge {
    display: none;
    margin-right: 0;
    margin-left: auto;
    text-align: right;
    font-size: 0.95rem;
    color: #888;
    margin-top: 0.3rem;
  }
}
/* ---------------------------------
   Product Page Layout
----------------------------------*/
.product-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .product-container {
    flex-direction: row;
    align-items: flex-start;
  }
  [dir="rtl"] .product-container {
    flex-direction: row-reverse;
  }
}

/* ------------------------------
   Mobile Adjustments
--------------------------------*/

@media (max-width: 767px) {
  .modal-content {
    width: 90vw !important;
    max-width: none !important;
    margin: 20px auto !important;
    border-radius: 16px !important;
    padding: 2rem 1.5rem !important;
  }

}

/* ------------------------------
   RTL Adjustments
--------------------------------*/

[dir="rtl"] .modal-content {
  text-align: right;
}

[dir="rtl"] .md\:pl-6 {
  padding-left: 0;
  padding-right: 1.5rem;
}



/* PRODUCT STYLES */

.product-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}
.product-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

/* About Page Improvements */

.about-us {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.about-us h2 {
  color: #000; /* Black for better contrast */
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 80px;
}

.about-us h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #000000;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.about-us img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-us img:hover {
    transform: scale(1.02);
}

.values-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.values-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: bold;
}

/* Backspace Animation */
.backspacing {
    animation: backspacePulse 0.3s ease;
    transform-origin: left center;
}

@keyframes backspacePulse {
    0% { transform: scaleX(1); }
    50% { transform: scaleX(0.8); opacity: 0.7; }
    100% { transform: scaleX(1); opacity: 1; }
}

/* Letter Deletion Effect */
.deleting {
    animation: letterDelete 0.7s ease forwards;
}

@keyframes letterDelete {
    0% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.5; transform: translateX(-5px); }
    100% { opacity: 0; transform: translateX(-10px); }
}
/* Mobile Language Switcher */
.mobile-language-switcher {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

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


@media (max-width: 1200px) {  
  .left-nav {
    margin-left: 6rem; /* Increased spacing */
    min-width: 200px; /* Prevent squeezing */
  }
}

@media (max-width: 992px) {
  .left-nav {
    margin-left: 3rem;
    flex-wrap: nowrap; /* Prevent wrapping */
  }
}

/* Mobile First Breakpoints */
/* --- Consolidated Mobile Styles (max-width: 767px) --- */
@media (max-width: 767px) {
    /* Mobile styles */
    [dir="rtl"] header .container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 0 15px;
    }
    
    [dir="rtl"] .left-nav {
        transform: none;
        margin-left: 1rem;
    }
    
    section {
        padding: 0 1rem;
    }
    
    [dir="rtl"] section {
        padding: 0 1rem;
    }

/* Best Selling Products - Mobile */
    .best-selling-products {
        flex-direction: column;
        align-items: center;
    }
    
    [dir="rtl"] .best-selling-products {
        align-items: flex-end;
    }

/* Mobile Header Cover */
    .cover.header-content {
        padding: 2rem 1rem;
    }
    
    .cover-content h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .static-text {
        font-size: 1.2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    [dir="rtl"] .cover-content h1,
    [dir="rtl"] .static-text {
        text-align: right;
    }

    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Header Section */
    .cover-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    /* Trend Section */
    .always-on-trend .content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Best Selling */
    .best-selling-products {
        flex-direction: column;
        align-items: center;
    }
    
    /* Testimonials */
    .testimonial-card {
        margin: 0 auto 2rem;
        width: 90%;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .product-image {
        width: 200px;
        height: 200px;
    }

    .product-overlay {
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.9);
        justify-content: center;
    }
}

/* Load custom Saudi Riyal font */
@font-face {
  font-family: 'SaudiRiyalSymbol';
  src: url('/assets/fonts/saudiriyalsymbol.woff2') format('woff2'),
       url('/assets/fonts/saudiriyalsymbol.woff') format('woff'),
       url('/assets/fonts/saudiriyalsymbol.otf') format('opentype'),
       url('/assets/fonts/saudiriyalsymbol.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Icon styling for Saudi Riyal */
.icon-saudi_riyal {
  font-family: 'SaudiRiyalSymbol', Arial, sans-serif;
  display: inline-block;
  font-size: 1em;
  margin-right: 2px;
}

/* Adjust margin for RTL layout */
[dir="rtl"] .icon-saudi_riyal {
  margin-right: 0;
  margin-left: 2px;
}

/* Separate class to style just the symbol if needed */
.symbol {
  font-family: 'SaudiRiyalSymbol';
  font-size: inherit;
  margin-right: 0.2em;
  color: inherit;
  font-weight: bold;
}

/* Zoom Styles */
.zoom-container {
  position: relative;
}

.zoomContainer {
  z-index: 1001 !important;
}

.zoomWindow {
  border: 4px solid white !important;
  box-shadow: 0 0 10px rgba(0,0,0,0.2) !important;
}

/* Custom dropdown arrow */
#filter-options {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#filter-options + i.fa-chevron-down {
    display: none !important;
}

/* Mobile Breakpoints */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
    
  .filter-section {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch Targets */


select {
  font-size: 16px; /* Prevent iOS zoom */
}

/* Performance */
img {
  will-change: transform;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* Responsive Images */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease-in-out;
}

@media (max-width: 640px) {
  .product-image {
    aspect-ratio: 1/1;
  }
}

/* Header Container */
.header-container {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
  background: white;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* Logo Image */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0rem 0;
  width: 100%;
  height: auto; 
  margin: 0 auto; 
  display: block;
  /* Optimized image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: nearest-neighbor;
}

/* Force GPU rendering */
.logo img {
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
}

/* Utility classes */
.product-grid{
  display:flex;
  flex-wrap:wrap;
  gap:1.5rem;
  justify-content:center;
}
.price-inline{
  display:inline-flex;
  align-items:center;
  gap:2px;
  white-space:nowrap;
}
[dir="rtl"] .price-inline{direction:ltr;}

/* Prevent blurring */
.logo img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent any interference */
  pointer-events: none;
  filter: none !important;
}

/* --- Consolidated Mobile Styles (max-width: 767px) --- */
@media (max-width: 767px) {
  /* ===== Mobile Logo Enlargement ===== */
  .header-center .logo {
    width: 150px;        
    max-width: none;     
    margin: 0 auto;      
    padding: 0.5rem 0;   
  }

  .header-center .logo-img {
    width: 100%;         
    height: auto;        
    max-width: none;     
    display: block;      
  }

  /* Prevent any accidental horizontal scrolling */
  body {
    overflow-x: hidden;
  }
}

@media (min-width: 768px) {
  .header-center .logo {
    max-width: none; 
    width: auto;     
    margin: 0 auto;
  }

  .header-center .logo img {
    max-width: 190px;     
    width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
  }
}

.main-image {
  transition: box-shadow 0.4s ease;
}

.main-image:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.thumbnail {
  transition: all 0.4s ease-in-out;
}

.thumbnail:hover {
  transform: translateY(-3px);
}

/* Delayed Animations */
.product-info > * {
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
}

.product-title { animation-delay: 0.1s; }
.product-price { animation-delay: 0.2s; }
.product-description { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.availability {
  font-size: 0.95rem;
  color: #2ca66f;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  justify-content: flex-end;
}

@media (max-width: 767px) {
  .availability {
    color: #2ca66f;
    font-weight: 600;
  }
  
  .icon-check {
    color: #2ca66f;
  }
}

/* About Page Hero Section */
.hero-section {
  margin-top: var(--header-height); /* Match header height */
}

/* Hero section content positioning */
.hero-section .absolute {
  padding-bottom: 2rem; /* Add more spacing at bottom */
}

.hero-section .absolute a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.hero-section .absolute p {
  margin: 0;
  padding: 0 1rem;
  text-align: center;

}

/* About Page Hero Section Arrow */
.hero-section .fa-chevron-down {
  font-size: 1.5rem; /* Base size */
  color: white;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {  
  .hero-section {
    margin-top: 60px; /* Ensure consistent spacing on mobile */
  }

  .hero-section h1 {
    text-align: center;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-section h1.text-5xl.font-bold {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block;
  }

  .hero-section .fa-chevron-down {
    font-size: 1.25rem; /* Smaller on mobile */
    margin-top: 2rem; /* Move down from the top */
    margin-bottom: 1rem; /* Add spacing below */
  }
}
/* Fix for RTL dropdown arrow */
[dir="rtl"] .fa-chevron-down {
  right: auto;
}

/* Footer base */
.site-footer {
  background-color: #ffffff;
  color: #000000;
  padding: 20px 0 10px;
  font-family: 'Roboto', sans-serif;
  text-align: left;
  font-weight: 300;
  line-height: 1.6;
  border-top: 1px solid rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}

/* Desktop styles for footer content */
@media (min-width: 768px) {
  .footer__content {
    display: grid;
    grid-column-gap: 0.1px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Logo */
.footer-logo {
  flex: 0 0 100%;
  max-width: 180px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo img.logo-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.footer__about,
.footer__shop,
.footer__contact {
  flex: 1 1 220px;
  min-width: 220px;
  margin-bottom: 1.5rem;
}

/* Section titles */
.footer__about h3,
.footer__shop h3,
.footer__contact h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: #222;
  text-transform: uppercase;
  text-align: center;
}

/* Mobile footer initially hidden */
.footer-mobile-layout {
  display: none;
}



/* Footer content wrapper */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-content: space-between;
}

/* Lists */
.footer__about ul,
.footer__shop ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__about ul li,
.footer__shop ul li {
  margin-bottom: 8px;
}

/* Links */
.footer__about ul li a,
.footer__shop ul li a,
.footer__contact p a.footer-email-link {
  color: #222;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__about ul li a:hover,
.footer__shop ul li a:hover,
.footer__contact p a.footer-email-link:hover {
  color: #1e40af; /* Blue */
  text-decoration: underline;
}

/* Contact email */
.footer__contact {
  grid-column: span 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.footer__contact h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.footer-email-link {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer-email-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.footer__telegram-contact {
  margin: 0.5rem 0 0;
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer__telegram-contact a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__telegram-contact a:hover {
  text-decoration: underline;
}

.footer__telegram-contact .telegram-note {
  font-size: 0.75rem;
  color: #5f6368;
  background: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
}

.footer__telegram-contact .telegram-note:before {
  content: '•';
  color: #9e9e9e;
  font-size: 1.2em;
  line-height: 1;
}

/* Telegram badge */
.telegram-badge {
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #3b82f6 60%, #60a5fa 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

/* Fix phone number alignment in RTL desktop footer */
[dir="rtl"] .footer__telegram-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
[dir="rtl"] .footer__telegram-contact a {
  direction: ltr; /* Keep phone number LTR in RTL layout */
  unicode-bidi: bidi-override;
}
[dir="rtl"] .telegram-note {
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .footer__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__about,
  .footer__shop,
  .footer__contact,
  .footer-logo {
    flex: none;
    width: 100%;
    max-width: 320px;
    margin-bottom: 2rem;
  }
}

/* =======================
   Desktop Footer Layout
   ======================= */
.footer-logo {
  max-width: 200px;
  margin: 0;
}

.footer__about,
.footer__shop,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__about h3,
.footer__shop h3,
.footer__contact h3 {
  margin: 0 0 1rem 0;
  text-align: left;
}

.footer-copyright {
  padding-left: 4.5rem;
  text-align: left;
  color: #666;
  font-size: 0.875rem;
}

.footer-copyright p {
  margin: 0;
}

/* =======================
   Mobile Footer Layout
   ======================= */
@media (max-width: 767px) {
  /* Mobile footer styles */
  .site-footer {
    padding: 25px 15px 15px;
    margin-top: 30px;
  }
  
  .footer__mobile {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .footer__logo {
    display: flex;
    justify-content: center;
    margin: 0 auto 30px;
  }
  
  .footer__logo img.logo-img {
    max-width: none;
    image-rendering: -webkit-optimize-contrast;
    width: 200px;
    height: auto;
  }

  /* Two columns side by side */
  .footer__mobile-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 80px;
    margin: 0 auto 30px;
    max-width: 100%;
    padding: 0 30px;
  }
  
  .footer__mobile-col {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
    padding: 0 15px; /* Equal padding on both sides */
    box-sizing: border-box; /* Include padding in width calculation */
  }
  
  .footer__mobile-col h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
    margin: 0 0 15px;
    letter-spacing: 0.05em;
  }
  
  .footer__mobile-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer__mobile-col li {
    margin-bottom: 8px;
  }
  
  .footer__mobile-col a {
    color: #444;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer__mobile-col a:hover {
    color: #1e40af;
    text-decoration: underline;
  }
  /* RTL support */
  [dir="rtl"] .footer__mobile-columns,
  :dir(rtl) .footer__mobile-columns {
    flex-direction: row;
    justify-content: space-between;
    gap: 80px;
    padding: 0 30px;
  }
  /* Make section headings bold and right-aligned in RTL (stronger selector, after all others) */
  [dir="rtl"] .footer__mobile-col h3,
  [dir="rtl"] .footer__mobile-contact h3,
  :dir(rtl) .footer__mobile-col h3,
  :dir(rtl) .footer__mobile-contact h3 {
    font-weight: 900 !important;
    color: #111 !important;
  }
  /* Phone number RTL fix: right-aligned, LTR, no stretch */
  [dir="rtl"] .footer__mobile-contact .footer-telegram-link,
  :dir(rtl) .footer__mobile-contact .footer-telegram-link {
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
    display: inline-flex !important;
    align-items: center;
    text-align: right !important;
    margin: 0 !important;
    float: right !important;
    clear: both;
    width: auto !important;
  }
  .footer__mobile-col h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
    color: #111;
  }
  .footer__mobile-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .footer__mobile-col ul li {
    margin-bottom: 10px;
  }
  .footer__mobile-col ul li:last-child {
    margin-bottom: 0;
  }
  .footer__mobile-col ul li a {
    color: #444;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
  }
  .footer__mobile-col ul li a:hover {
    color: #1e40af;
    text-decoration: underline;
  }

  /* Contact section */
  .footer__mobile-contact {
    margin: 0 auto 25px;
    text-align: center;
    padding: 20px 15px;
    background: #f9f9f9;
    border-radius: 8px;
  }
  
  .footer__mobile-contact h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px;
    color: #222;
    letter-spacing: 0.05em;
  }
  
  .footer-email-link {
    display: block;
    color: #1e40af;
    margin-bottom: 15px;
    font-weight: 500;
    text-decoration: none;
  }
  
  .footer-email-link:hover {
    text-decoration: underline;
  }
  
  .footer__telegram-wrapper {
    margin-top: 15px;
  }
  
  .footer__telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #0088cc;
    color: white !important;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 10px;
    transition: background-color 0.2s;
  }
  
  .footer__telegram-button:hover {
    background-color: #006699;
    text-decoration: none;
  }
  
  .footer__telegram-badge {
    display: none;
  }
  .footer-mobile-contact .footer-email-link {
    display: block;
    color: #111;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
    transition: color 0.2s;
  }
  .footer-mobile-contact .footer-email-link:hover {
    color: #1e40af;
    text-decoration: underline;
  }
  .footer-mobile-contact .footer-telegram-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: underline;
    margin-bottom: 4px;
    transition: color 0.2s;
    direction: ltr; /* Keep phone number LTR in RTL mode */
    unicode-bidi: bidi-override; /* Force LTR for the phone number */
  }
  /* RTL adjustments for phone number */
  [dir="rtl"] .footer-mobile-contact .footer-telegram-link,
  :dir(rtl) .footer-mobile-contact .footer-telegram-link {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-end;
    width: 100%;
  }
  .footer-mobile-contact .footer-telegram-link:hover {
    color: #1e40af;
  }
  .footer-mobile-contact {
    display: block;
    color: #bbb;
    font-size: 0.78rem;
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
  }

  /* Consolidated mobile footer styles */

  .footer__content {
    display: none !important;
  }
  
  .footer-mobile-layout {
    display: block !important;
    padding: 2rem 1rem 1rem;
  }
  
  .footer-mobile-copyright {
    display: block !important;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    padding: 1.5rem 0 1rem;
    margin-top: 1rem;
    border-top: 1px solid #eee;
  }
  
  /* Hide desktop columns and copyright on mobile */
  .footer__about,
  .footer__shop,
  .footer__contact,
  .footer-copyright {
    display: none !important;
  }
}

/* Desktop Footer */
@media (min-width: 768px) {
  .footer__mobile {
    display: none !important;
  }
  

  
  .footer__logo {
    max-width: 180px;
    margin: 0;
  }
  
  .footer__about,
  .footer__shop,
  .footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer__about h3,
  .footer__shop h3,
  .footer__contact h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  /* Telegram button styles */
  .telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background-color: #f0f7ff;
    color: #1a73e8;
    border-radius: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e0f0ff;
  }
  
  .telegram-button:hover {
    background-color: #e1f0ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .telegram-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, #1a73e8, #0d5fcc);
    color: white;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.3;
  }
  
  .footer-email-link {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .footer-email-link:hover {
    color: #0d5fcc;
    text-decoration: underline;
  }
  
  .footer__about ul,
  .footer__shop ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer__about ul a,
  .footer__shop ul a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .footer__about ul a:hover,
  .footer__shop ul a:hover {
    color: #1a73e8;
  }
}

/* Utility class for no underline if needed */
.no-underline {
  text-decoration: none !important;
}

/* Screen reader only text */
.sr-only {
  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;
}