/* TERRA BUILD: FAQ 4x2 on mobile + desktop. Scoped to FAQ section. */
html body section.s-block--faqs .faqs-list,
html body section.tb-faq-two-columns .faqs-list {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  grid-template-rows: repeat(4,auto) !important;
  grid-auto-flow: column !important;
  gap: 8px !important;
  direction: rtl;
}
html body section.s-block--faqs .faqs-list > .faq-container {
  min-width: 0 !important;
  width: 100% !important;
}
@media (max-width:767px) {
  html body section.s-block--faqs .faqs-list .faqs-list__item > label {
    font-size: 11px !important;
    line-height: 1.55 !important;
    padding: 10px 5px !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 28px !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }
}

/* ================================================================
   TERRA BUILD | Salla / Malak Theme | Test 1 Draft
   CSS v14.0  |  31 October 2026

   REPLACE the previous CSS file entirely with this full stylesheet.
   DO NOT append it below v1.0 (that creates competing rules).

   Design direction: white first, deep teal, quiet grey, warm accents.
   Built for browsing categories, comparing products, and easy checkout.
   No added JS, external fonts, tracking, or fake scarcity.

   Note: Salla / Malak theme updates may change some class names.
   Preview on desktop and mobile BEFORE publishing the theme.
   ================================================================ */

/* 01. Color system ------------------------------------------------ */
:root {
  --tb-primary: #075963;
  --tb-primary-dark: #06474f;
  --tb-primary-light: #eaf4f5;
  --tb-accent: #ca6247;
  --tb-ink: #18252d;
  --tb-muted: #61717a;
  --tb-line: #e2e8f0;
  --tb-surface: #ffffff;
  --tb-soft: #f8fafc;
  --tb-radius-sm: 10px;
  --tb-radius: 16px;
  --tb-shadow: 0 4px 18px rgb(15 47 56 / 5%);
  --tb-shadow-hover: 0 12px 30px rgb(15 47 56 / 11%);
}

/* 02. Site foundation -------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background-color: var(--tb-surface);
  color: var(--tb-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, h4) {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

:where(p, li) {
  overflow-wrap: break-word;
}

:where(img, svg) {
  vertical-align: middle;
}

/* RTL in Arabic / LTR in English are handled by the theme itself. */

/* 03. Header, navigation and search ------------------------------- */
:is(.main-header, .store-header, .site-header) {
  background: var(--tb-surface);
  border-bottom: 1px solid var(--tb-line);
}

:is(.main-header, .store-header, .site-header) :is(a, button) {
  transition: color .18s ease, background-color .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  :is(.main-header, .store-header, .site-header) a:hover {
    color: var(--tb-primary);
  }
}

:is(.s-search-input, .search-input, input[type="search"]) {
  border-radius: var(--tb-radius-sm);
}

:is(input, select, textarea):focus-visible {
  border-color: var(--tb-primary);
}

/* 04. Section titles and rhythm ---------------------------------- */
:is(.s-block__title h2, .s-block__title h3, .section-title, .home-section__title) {
  color: var(--tb-ink);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -.012em;
}

:is(.s-block__title p, .section-subtitle, .s-block__description) {
  color: var(--tb-muted);
  line-height: 1.7;
}

:is(.s-block, .home-section, .store-section) {
  scroll-margin-top: 92px;
}