/* ===========================================================================
   AL BURAQ — Store responsiveness + polish layer.
   Loaded after the page styles, so it refines the store (landing, category,
   search, product) — especially on phones — without editing each template.
   =========================================================================== */

/* ---- Subtle desktop polish ---------------------------------------------- */
.st-cat { height: 300px; }
.st-cat-body h3 { letter-spacing: -0.01em; }
.st-search { box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.5); }

/* ---- Tablets ( <= 1024px ) ---------------------------------------------- */
@media (max-width: 1024px) {
  .st-hero { padding: 130px 0 64px; }
  .st-head { padding: 116px 0 44px; }
  .st-cat { height: 260px; }
}

/* ---- Phones ( <= 768px ) ------------------------------------------------ */
@media (max-width: 768px) {
  .st-hero { padding: 104px 0 48px; }
  .st-head { padding: 96px 0 30px; }

  /* Hero search: stack the barcode button under the search field */
  .st-search { gap: 0.4rem; padding: 0.4rem; border-radius: 16px; }
  .st-search input { font-size: 1rem; padding: 0.8rem 1rem; }
  .st-search button { padding: 0 1.1rem; }

  /* Category tiles: shorter, tighter */
  .st-cat-grid { gap: 1rem; }
  .st-cat { height: 210px; border-radius: 18px; }
  .st-cat-body { padding: 1.1rem; }
  .st-cat-body h3 { font-size: 1.25rem; }
  .st-cat-go { width: 38px; height: 38px; top: 0.85rem; right: 0.85rem; }

  /* Category-detail header chips */
  .st-subnav { gap: 0.45rem; }
  .st-chip { padding: 0.4rem 0.85rem; font-size: 0.8rem; }

  /* Trim big section paddings so phones aren't all whitespace */
  .section { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .st-cta { padding: 2rem 1.25rem; }
  .st-cta-ic { width: 60px; height: 60px; font-size: 1.5rem; }

  /* Pagination: easier to tap, wraps cleanly */
  .st-pagination { gap: 0.4rem; }
  .st-page { min-width: 40px; height: 40px; }

  /* Decorative blurs can cause horizontal scroll on small screens */
  .st-orb { display: none; }
}

/* ---- Small phones ( <= 480px ) ------------------------------------------ */
@media (max-width: 480px) {
  .st-hero { padding: 92px 0 40px; }
  .st-head { padding: 88px 0 26px; }
  .st-cat { height: 185px; }
  .st-cat-body h3 { font-size: 1.15rem; }

  /* Keep a clean 2-up product grid on phones */
  .st-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .st-product-media { height: 150px; padding: 0.6rem; }
  .st-product-body { padding: 0.8rem; }
  .st-product-title { font-size: 0.88rem; min-height: 2.5em; margin-bottom: 0.6rem; }
  .st-price { font-size: 1.1rem; }
  .st-product-actions { flex-direction: column; }
  .st-product-actions .btn { width: 100%; min-height: 40px; }
}

/* Never let anything cause sideways scrolling on a phone */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
}
