/* ==============================================================
   KOJI — STYLESHEET
   Organized in clear sections. Kept simple and easy to edit.
   ============================================================== */
/* -----------------------------------------------------------
   1. COLOR PALETTE & BASE VARIABLES
   deep green (primary) + warm ivory (background) + orange (accent)
   + soft coral (secondary)
   ----------------------------------------------------------- */
   :root {
    /* Dark tone (used for header, hero, footer, cta banner) */
    --primary: #18392B;
    --primary-soft: #2C5B45;
    /* Light tones (used as the main page background) */
    --background: #F8F4EC; /* main background */
    --background-alt: #EFE8DB; /* slightly darker background for alternating sections */
    --surface: #FFFDF9; /* card background */
    /* Accent colors */
    --accent: #F47B3A;
    --accent-dark: #D94A45;
    --secondary: #F39A93;
    /* Icon color */
    --icon: #2C5B45;
    /* Text colors */
    --text: #2E2E2E;
    --text-muted: #8C8983;
    --text-on-dark: #F8F4EC;
    --text-on-dark-muted: rgba(248,244,236,0.75);
    /* Borders / lines */
    --border: #DED8CF;
    --border-on-dark: rgba(248,244,236,0.18);
    /* Shape & spacing */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;
    --shadow-soft: 0 8px 24px rgba(24,57,43,0.08);
    --shadow-med: 0 16px 40px rgba(24,57,43,0.14);
    --max-width: 1280px;
    --ease: ease;
  }
  
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* -----------------------------------------------------------
       2. RESET & BASE ELEMENTS
       ----------------------------------------------------------- */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
  }
  
  body {
    margin: 0;
    font-family: 'Vazirmatn', 'Estedad', sans-serif;
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
  }
  
  ul,
  ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  input {
    font-family: inherit;
  }
  
  h1,
  h2,
  h3,
  h4 {
    font-family: 'Vazirmatn', 'Estedad', sans-serif;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: var(--text);
  }
  
  h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  p {
    margin: 0;
    line-height: 1.85;
    color: var(--text);
  }
  
  .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
  }
  
 

/*
.container-narrow {
    max-width: 780px;
  } 
  */
/* add _ edit */  
  .container-narrow {
    max-width: 780px;
    margin-top: 2%;
}


  .eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin: 0 0 var(--space-2);
    display: block;
  }
  
  .eyebrow-dark {
    color: var(--accent-dark);
  }
  
  .section {
    padding: var(--space-7) 0;
  }
  
  .section-head {
    max-width: 620px;
    margin: 0 auto var(--space-6);
    text-align: center;
  }
  
  .section-sub {
    margin-top: var(--space-2);
    color: var(--text-muted);
  }
  
  .section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    gap: var(--space-3);
    flex-wrap: wrap;
  }
  
  /* -----------------------------------------------------------
       3. BACKGROUND RHYTHM
       Instead of stark white next to dark green blocks, every
       section uses one of these three tones so transitions feel
       smooth: --bg, --bg-alt (light) and --ink (dark, used sparingly).
       ----------------------------------------------------------- */
  .cta-banner,
  .site-footer {
    background: var(--primary);
    color: var(--text-on-dark);
  }
  
  .hero {
    background: var(--background);
  }
  
  .categories,
  .bestsellers,
  .why-us,
  .about-section {
    background: var(--background);
  }
  
  .new-arrivals,
  .faq-section,
  .brands-section {
    background: var(--background-alt);
  }
  
  /* -----------------------------------------------------------
       4. BUTTONS
       ----------------------------------------------------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
  }
  
  .btn-primary {
    background: var(--accent);
    color: #fff;
  }
  
  .btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
  }
  
  .btn-outline-light {
    background: transparent;
    color: var(--text-on-dark);
    border: 1.5px solid var(--border-on-dark);
  }
  
  .btn-outline-light:hover {
    background: rgba(248,245,238,0.1);
  }
  
  .btn-ghost {
    background: transparent;
    color: #ee948a;
    border: 1.5px solid ;
  }
  
  .btn-ghost:hover {
    color: #f05609;
    border-color: #f05609;
  }
  
  .btn-small {
    padding: 10px 16px;
    font-size: 0.82rem;
  }
  
  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.25s var(--ease);
  }
  
  .icon-btn:hover {
    background: rgba(24,57,43,0.08);
  }
  
  /* icon buttons on dark backgrounds (header, footer) */
  .site-header .icon-btn,
  .site-footer .icon-btn {
    color: var(--text-on-dark);
  }
  
  .site-header .icon-btn:hover,
  .site-footer .icon-btn:hover {
    background: rgba(248,245,238,0.12);
  }
  
  /* -----------------------------------------------------------
       5. IMAGE PLACEHOLDERS
       Used everywhere instead of real images. Simple dashed box
       with an icon and a label describing what image goes there.
       ----------------------------------------------------------- */
  .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: rgba(24,57,43,0.03);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: var(--space-2);
  }
  
  .placeholder-about {
    aspect-ratio: 4 / 3;
  }

  .placeholder-about.has-real-image {
    border: none;
    background: none;
    padding: 0;
    overflow: hidden;
  }

  .placeholder-about.has-real-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
  }
  
  .placeholder-product {
    aspect-ratio: 4 / 3;
  }
  
  .placeholder-arrival {
    aspect-ratio: 1 / 1;
  }
  
  .placeholder-modal {
    aspect-ratio: 1 / 1;
  }
  
  /* -----------------------------------------------------------
       6. HEADER
       ----------------------------------------------------------- */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--primary);
    padding: 18px 0;
  }
  
  .header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* .logo-mark{
      width: 36px; height: 36px; border-radius: 50%;
      background: rgba(248,245,238,0.12);
      border: 1.5px solid rgba(248,245,238,0.4);
      color: var(--text-on-dark);
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem; font-weight: 700;
    } */
  .logo-mark img {
    width: 150px;
    height: 64px;
  }
  
  .logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-on-dark);
  }
  
  /* Desktop nav: simple horizontal row */
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
  
  .main-nav-top {
    display: none;
  }
  
  .main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-on-dark);
  }
  
  .main-nav a:hover {
    color: var(--accent);
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  #menuToggle {
    display: none;
  }
  
  .search-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  
  .search-panel.is-open {
    max-height: 80px;
  }
  
  .search-panel-inner {
    max-width: var(--max-width);
    margin: 12px auto 0;
    padding: 12px 20px;
    background: var(--surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
    color: var(--text);
  }
  
  .search-panel-inner input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
  }
  
  /* -----------------------------------------------------------
       7. MOBILE NAVIGATION (hamburger + drop-down panel)
       Simple, robust approach: the menu drops down from the top
       of the screen as a full-width panel. No sideways sliding,
       so there are no RTL / layout issues.
       ----------------------------------------------------------- */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
   /* z-index: 550;*/
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  
  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }
  
  @media (max-width: 760px) {
    .main-nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 600;
      background: var(--primary);
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: var(--space-3);
      transform: translateY(-110%);
      transition: transform 0.35s var(--ease);
      box-shadow: var(--shadow-med);
    }
    
    button.btn.btn-ghost.btn-small {
    margin-bottom: 10px;
}
  
    .main-nav.is-open {
      transform: translateY(0);
    }
  
    .main-nav-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: var(--space-2);
      margin-bottom: var(--space-2);
      border-bottom: 1px solid var(--border-on-dark);
    }
  
    .main-nav-title {
      font-weight: 700;
      color: var(--text-on-dark);
    }
  
    .main-nav a {
      padding: 14px 4px;
      border-bottom: 1px solid var(--border-on-dark);
      font-size: 1.05rem;
    }
  
    #menuToggle {
      display: inline-flex;
    }
  
    .hide-mobile {
      display: none;
    }
  }
  
  /* -----------------------------------------------------------
       8. HERO
       ----------------------------------------------------------- */
  .hero {
    padding: 130px 0 var(--space-6);
  }
  
  /* Outer rounded card. overflow:hidden here is what gives every
       slide, image and control its rounded corners "for free". */
  .hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--primary);
    box-shadow: var(--shadow-med);
  }
  
  .hero-slides {
    position: relative;
  }
  
  /* ---- Mobile-first: image fills the card, text overlays the
     lower part of it (same visual language as the reference mobile
     mockup: full-bleed photo, gradient for legibility, headline +
     button sitting on top). The slide's height is driven by normal
     document flow (hero-content's own height + its padding-top),
     so nothing is ever clipped — short text just makes a shorter
     card, long text simply pushes it a bit taller. ---- */
  .hero-slide {
    display: none;
    position: relative;
    overflow: hidden;
  }
  
  .hero-slide.is-active {
    display: block;
  }
  
  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    transform: scale(1.04);
    transition: transform 6s var(--ease);
    z-index: 1; /* image at the back */
  }
  
  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .hero-slide.is-active .hero-media {
    transform: scale(1);
  }
  
  .hero-gradient {
    display: block;
    position: absolute;
    inset: 0;
    /* vertical, bottom-heavy gradient on mobile so the overlaid text
       stays readable no matter what part of the photo sits behind it */
    background: linear-gradient(to top, rgba(24,57,43,0.95) 12%, rgba(24,57,43,0.62) 45%, rgba(24,57,43,0.08) 78%);
    z-index: 2; /* gradient above image, below text */
  }
  
  .hero-content {
    position: relative;
    z-index: 3; /* text on top of everything */
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-3);
    /* this top padding is what reserves visible photo above the text —
       tune it (not a fixed height) so the card always fits its content */
    padding-top: clamp(150px, 58vw, 280px);
  }
  
  .hero-content .eyebrow {
    color: var(--accent);
  }
  
  .hero-content h1 {
    color: var(--text-on-dark);
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    line-height: 1.25;
  }
  
  .hero-desc {
    color: var(--text-on-dark-muted);
    font-size: 0.95rem;
    max-width: 100%;
  }
  
  .hero-content .btn {
    align-self: flex-start;
    margin-top: var(--space-1);
  }

  /* ---- Very small phones (down to ~250px) ----
     The base rules above already keep the card height fluid and use
     clamp() for the heading, but on very narrow screens the default
     spacing/padding is still too generous and the button can wrap
     awkwardly. This tightens things up without changing anything on
     wider screens (only fires below 400px, well under the 760px
     breakpoint where the mobile layout starts). */
  @media (max-width: 430px) {
    .hero {
      padding: 100px 0 var(--space-4);
    }

    .hero-content {
      padding: var(--space-3) var(--space-2);
      padding-top: clamp(120px, 52vw, 210px);
      gap: var(--space-1);
    }

    .hero-content h1 {
      font-size: clamp(1.3rem, 7.5vw, 1.7rem);
      line-height: 1.25;
    }

    .hero-desc {
      font-size: 0.88rem;
      max-width: 100%;
    }

    .hero-content .btn {
      width: 100%;
      text-align: center;
      padding-left: var(--space-2);
      padding-right: var(--space-2);
    }

    .logo-mark img {
      width: 110px;
      height: 47px;
    }

    .header-inner {
      gap: var(--space-2);
      padding: 0 var(--space-2);
    }
  }
  
  /* ---- Slide navigation (arrows + dots) ---- */
  .hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: var(--space-2) 0 var(--space-3);
  }
  
  .hero-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border-on-dark);
    color: var(--text-on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s var(--ease);
  }
  
  .hero-arrow:hover {
    background: rgba(248,245,238,0.1);
  }
  
  .hero-arrow-next {
    transform: scaleX(-1);
  }
  
  .hero-dots {
    display: flex;
    gap: 8px;
  }
  
  .hero-dot {
    width: 22px;
    height: 4px;
    border-radius: 2px;
    background: rgba(248,245,238,0.3);
    transition: background 0.25s var(--ease);
  }
  
  .hero-dot.is-active {
    background: var(--accent);
  }
  
  /* ---- Desktop: Hero Slider ---- */
  @media (min-width: 761px) { 
    .hero-slides {
      min-height: 560px;
    }
  
    .hero-slide {
      position: absolute;
      inset: 0;
      display: block;
      opacity: 0;
      visibility: hidden;
      transition: opacity .8s var(--ease);
    }
  
    .hero-slide.is-active {
      opacity: 1;
      visibility: visible;
    }
  
    .hero-media {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      transform: scale(1.04);
      transition: transform 6s var(--ease);
      z-index: 1;
    }
  
    .hero-slide.is-active .hero-media {
      transform: scale(1);
    }
  
    /* ---------- Slide 1 ---------- */
    .hero-slide:not(.hero-slide-reverse) .hero-content {
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      width: 50%;
      max-width: 560px;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      flex-direction: column;
      padding: var(--space-6);
      text-align: right;
      direction: rtl;
      z-index: 3;
    }
  
    .hero-slide:not(.hero-slide-reverse) .hero-gradient {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to left,
        rgba(24,57,43,.92) 20%,
        rgba(24,57,43,.45) 50%,
        transparent 75%
      );
      z-index: 2;
    }
  
    /* ---------- Slide 2 ---------- */
    .hero-slide-reverse .hero-content {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: 50%;
      max-width: 560px;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      flex-direction: column;
      padding: var(--space-6);
      text-align: left;
      direction: ltr;
      z-index: 3;
    }
  
    .hero-slide-reverse .hero-gradient {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to right,
        rgba(24,57,43,.92) 20%,
        rgba(24,57,43,.45) 50%,
        transparent 75%
      );
      z-index: 2;
    }
  
    .hero-controls {
      position: absolute;
      bottom: var(--space-3);
      right: 50%;
      transform: translateX(50%);
      padding: 0;
      z-index: 5;
    }
  }
  
  /* -----------------------------------------------------------
       9. SCROLL REVEAL (simple fade/slide on scroll)
       ----------------------------------------------------------- */
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  
  [data-reveal="fade-left"] {
    transform: translateX(-30px);
  }
  
  [data-reveal="fade-left"].is-visible {
    transform: none;
  }
  
  [data-reveal="fade-right"] {
    transform: translateX(30px);
  }
  
  [data-reveal="fade-right"].is-visible {
    transform: none;
  }
  
  /* -----------------------------------------------------------
       10. CATEGORY SECTION
       ----------------------------------------------------------- */
  .categories {
    padding: 0 0 var(--space-7);
    margin-top: -60px;
    position: relative;
    z-index: 20;
  }
  
  .category-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-med);
    padding: var(--space-4);
  }
  
  .category-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
  }
  
  .category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    transition: background 0.25s var(--ease);
  }
  
  .category-item span:last-child {
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .category-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    color: var(--icon);
  }
  
  .category-item:hover {
    background: var(--background-alt);
  }
  
  .category-item.is-active .category-icon {
    background: var(--accent);
    color: #fff;
  }
  
  /* -----------------------------------------------------------
       11. PRODUCT GRID
       ----------------------------------------------------------- */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
  
  .product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }
  
  .product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-med);
  }
  
  .product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  
  .product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--surface);
    color: var(--text);
    padding: 5px 10px;
    border-radius: var(--radius-pill);
  }
  
  /* Highlight variant for tags like "جدید" / "پرفروش" — add class="product-badge product-badge-highlight" */
  .product-badge-highlight {
    background: var(--secondary);
    color: var(--primary);
    right: auto;
    left: 12px;
  }
  
  .product-body {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
  }
  
  .product-origin {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  .product-name {
    font-size: 1.05rem;
    font-weight: 700;
  }
  
  .product-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    padding-top: var(--space-2);
  }
  
  .product-actions .btn {
    flex: 1;
  }
  
  /* -----------------------------------------------------------
       12. CTA BANNER (replaces old promo image banner)
       ----------------------------------------------------------- */
  .cta-banner {
    padding: var(--space-6) 0;
  }
  
  .cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
  }
  
  .cta-banner h3 {
    color: var(--text-on-dark);
    font-size: 1.5rem;
    margin-bottom: 6px;
  }
  
  .cta-banner p {
    color: var(--text-on-dark-muted);
  }
  
  /* -----------------------------------------------------------
       13. NEW ARRIVALS
       ----------------------------------------------------------- */
  .arrivals-nav {
    display: flex;
    gap: 8px;
  }
  
  .arrivals-nav .icon-btn {
    border: 1.5px solid var(--border);
  }
  
  .arrivals-track {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
  }
  
  .arrival-card {
    flex: 0 0 200px;
    width: 200px;
    scroll-snap-align: start;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
  }
  
  /* Both the real <img> and the placeholder div sit directly inside
     .arrival-card, so force them to the same fixed square size —
     this is what keeps every card's image identical regardless of
     the source image's own dimensions. */
  .arrival-card > img,
  .arrival-card .placeholder-arrival {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
  }
  
  .arrival-body {
    padding: var(--space-2) var(--space-3) var(--space-3);
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
  .arrival-tag {
    font-size: 0.7rem;
    color: var(--accent-dark);
    font-weight: 700;
  }
  
  .arrival-name {
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.35;
    /* Reserve space for 2 lines so a short name and a long name
       still produce the exact same card height. */
    min-height: calc(1.35em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  @media (max-width: 760px) {
    .arrival-card {
      flex: 0 0 160px;
      width: 160px;
    }
  }
  
  /* -----------------------------------------------------------
       14. BRANDS CAROUSEL
       ----------------------------------------------------------- */
  .brands-section {
    padding: var(--space-6) 0;
  }
  
  .brands-label {
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
  }
  
  .brands-carousel {
    overflow: hidden;
  }
  
  .brands-track {
    display: flex;
    gap: var(--space-6);
    width: max-content;
    animation: scroll-x 26s linear infinite;
  }
  
  .brands-carousel:hover .brands-track {
    animation-play-state: paused;
  }
  
  @keyframes scroll-x {
    from {
      transform: translateX(0);
    }
  
    to {
      transform: translateX(-50%);
    }
  }
  
  .brand-logo {
    font-weight: 800;
    font-size: 1.3rem;
    color: #750000;
    white-space: nowrap;
    opacity: 0.75;
  }
  
  /* -----------------------------------------------------------
       15. WHY CHOOSE US
       ----------------------------------------------------------- */
  .why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
  }
  
  .why-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-soft);
    text-align: center;
  }
  
  .why-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    color: var(--icon);
  }
  
  .why-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 8px 0 var(--space-2);
  }
  
  .why-counter {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text);
  }
  
  .why-counter-label {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  /* -----------------------------------------------------------
       16. FAQ
       ----------------------------------------------------------- */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .faq-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--space-3);
    font-weight: 700;
    text-align: start;
  }
  
  .faq-icon {
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
    color: var(--icon);
  }
  
  .faq-item.is-open .faq-icon {
    transform: rotate(45deg);
  }
  
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  
  .faq-item.is-open .faq-a {
    max-height: 220px;
  }
  
  .faq-a > div {
    padding: 0 var(--space-3) 18px;
  }
  
  .faq-a p {
    color: var(--text-muted);
  }
  
  /* -----------------------------------------------------------
       17. ABOUT
       ----------------------------------------------------------- */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: var(--space-6);
    align-items: center;
  }
  
  .about-content p {
    color: var(--text-muted);
    margin: var(--space-2) 0 var(--space-4);
  }
  
  .about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    /* new */
      margin-top: var(--space-2);
  }
  
  .about-pillars h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  
  .about-pillars p {
    font-size: 0.85rem;
    margin: 0;
  }
  
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-inline-start: 2px solid var(--border);
    padding-inline-start: var(--space-3);
  }
  
  .timeline li {
    position: relative;
    font-size: 0.92rem;
  }
  
  .timeline li::before {
    content: '';
    position: absolute;
    inset-inline-start: calc(-1 * var(--space-3) - 5px);
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
  }
  
  .timeline span {
    font-weight: 700;
    color: var(--accent-dark);
    margin-inline-end: 10px;
  }
  
  /* -----------------------------------------------------------
       18. FOOTER (includes the contact section)
       ----------------------------------------------------------- */
  .footer-top {
    text-align: center;
    padding: var(--space-6) var(--space-3) var(--space-4);
  }
  
  .footer-top .eyebrow {
    color: var(--accent);
  }
  
  .footer-top h2 {
    color: var(--text-on-dark);
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: var(--space-4);
    padding-bottom: var(--space-5);
  }
  
  .footer-col p {
    color: var(--text-on-dark-muted);
    font-size: 0.9rem;
    margin: var(--space-2) 0;
  }
  
  .footer-col h4 {
    color: var(--text-on-dark);
    font-size: 0.95rem;
    margin-bottom: var(--space-2);
  }
  
  .footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
    padding: 5px 0;
  }
  
  .footer-col a:hover {
    color: var(--accent);
  }
  
  .logo-footer {
    margin-bottom: var(--space-2);
  }
  
  .footer-social {
    display: flex;
    gap: 8px;
    margin-top: var(--space-2);
  }
  
  .footer-social .icon-btn {
    background: rgba(248,245,238,0.08);
  }
  
  .footer-social .icon-btn:hover {
    background: var(--accent);
  }
  
  .footer-contact .contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
  }
  
  .contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(248,245,238,0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .footer-contact a,
  .footer-contact span {
    color: var(--text-on-dark-muted);
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    border-top: 1px solid var(--border-on-dark);
    text-align: center;
    padding: var(--space-3);
    font-size: 0.8rem;
    color: var(--text-on-dark-muted);
  }
  
  /* -----------------------------------------------------------
       19. FLOATING BUTTONS
       ----------------------------------------------------------- */
  .floating-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-med);
    transition: transform 0.25s var(--ease);
  }
  
  .fab:hover {
    transform: translateY(-3px);
  }
  
  .fab-whatsapp {
    background: #25D366;
  }
  
  .fab-phone {
    background: var(--accent);
  }
  
  .fab-top {
    background: var(--primary);
    opacity: 0;
    pointer-events: none;
  }
  
  .fab-top.is-visible {
    opacity: 1;
    pointer-events: all;
  }
  
  /* -----------------------------------------------------------
       20. PRODUCT MODAL
       ----------------------------------------------------------- */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24,57,43,0.6);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  
  .modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  
  .modal-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 880px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-med);
  }
  
  .modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    background: var(--background);
  }
  
  .modal-content {
    position: relative;
  }
  
  .modal-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding: var(--space-4);
  }
  
  .modal-panel.is-active {
    display: grid;
  }
  
  .modal-info h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
  }
  
  .modal-origin {
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  
  .modal-desc {
    color: var(--text-muted);
    margin: var(--space-2) 0;
    font-size: 0.95rem;
  }
  
  .modal-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    margin-bottom: var(--space-3);
  }
  
  .modal-specs strong {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
  }
  
  .modal-specs span {
    font-weight: 600;
  }
  
  .modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .modal-actions .btn {
    flex: 1;
    min-width: 120px;
  }
  
  .modal-related {
    margin-top: 20px;
  }
  
  .modal-related-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
  }
  
  .modal-related-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  /* -----------------------------------------------------------
       21. RESPONSIVE ADJUSTMENTS
       ----------------------------------------------------------- */
  @media (max-width: 1100px) {
    .category-grid {
      grid-template-columns: repeat(5, 1fr);
    }
  
    .product-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .why-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .about-grid {
      grid-template-columns: 1fr;
    }
  
    .about-pillars {
      grid-template-columns: 1fr;
    }
  
    .footer-grid {
      grid-template-columns: 1fr 1fr;
    }
  
    .modal-panel {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 760px) {
    .category-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  
    .product-grid {
      grid-template-columns: 1fr;
    }
  
    .why-grid {
      grid-template-columns: 1fr;
    }
  
    .footer-grid {
      grid-template-columns: 1fr;
    }
  
    .floating-buttons {
      right: 14px;
      bottom: 14px;
    }
  
    .fab {
      width: 44px;
      height: 44px;
    }
  
    .hero {
      padding-top: 120px;
    }
  }
  
  /* Accessibility: visible focus outline */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .seller.span{
    font-size: 20px;
    color: #D94A45;
    margin-bottom: 20px;
  }
  .seller.span :hover{
    color: #2E2E2E;
  }

  .fab-instagram{
    background: linear-gradient(
        45deg,
        #F58529,
        #FEDA77,
        #DD2A7B,
        #8134AF,
        #515BD4
    );
}
.fab-instagram:hover{
  transform: translateY(-4px) scale(1.05);
}






/* add _ emad _ style */ 


/* عکس محصول وقتی که میزنه روش برای مشاهده جزییات  */


img.modal-image {
    margin-left: auto;
    margin-right: auto;
    align-content: center !important;
    align-items: center !important;
    margin-bottom: 5%;
    box-shadow: 0px 0px 20px 8px;
    position: relative;
    display: block;
    border-radius: 0px 0px 50px 50px;
}

/* فاصله برای ویژگی های محصول  */

.modal-info {
  
    margin: 10px;

}


/* عکس تیم / انبار ( درباره بلخاری )*/
img.attachment-full.size-full.wp-post-image {
    border-radius: 20px;
    box-shadow: 0px 0px 20px 7px;
}

/* برداشتن جستجوی هدر  */
.search_emad{
   appearance: none;

    /* حذف استایل‌های پیش‌فرض */
    border: none;
    border-radius: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: currentColor;
    cursor: pointer;
}
.search_emad:hover {
    background: rgb(155 109 1 / 0%);
}




/* slide */

.hero {
    padding: 130px 0px var(--space-6);
    margin-bottom: 14px !important;
}

.hero-controls {
    margin-bottom: 14px !important;
}



/* دباره ما - کارد ماموریت ما و 2 تا دیگه 

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    margin-top: var(--space-2);
}*/



/* footer _e m */ 


.developers{ 
    size: 20px; 
 text-align: center !important; 
} 
.developers a{ 
 color: #D94A45; 
}



/* =============================================
   برندها - دسکتاپ و موبایل
   ============================================= */
.brands-carousel {
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.brands-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scroll-x 25s linear infinite;
  width: max-content;
}

.brand-logo {
  font-size: 18px;
  font-weight: 600;
  color: #af0000;
  letter-spacing: 0.5px;
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
  padding: 0 10px;
  flex-shrink: 0;
}

.brand-logo:hover {
  opacity: 1;
  color: var(--primary);
}

@keyframes scroll-x {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   موبایل: اسکرول دستی فعال، انیمیشن خاموش
   ============================================= */
@media (max-width: 768px) {
  .brands-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
  }

  .brands-track {
    animation: none !important;
    transform: none !important;
    gap: 24px;
    width: auto;
    display: flex;
    flex-wrap: nowrap;
  }

  .brand-logo {
    font-size: 14px !important;
    padding: 8px 16px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    opacity: 1;
  }

  /* برای مودال */
  .modal-origin {
    font-size: 13px !important;
    display: block !important;
    word-wrap: break-word !important;
  }
}


.brand-logo {
    font-size: 18px;
    font-weight: 600;
    color: #af0000;
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
    padding: 0 10px;
    flex-shrink: 0;
}