/* ==========================================================================
   Athar Specialty Coffee & Craft Store — E-Commerce Catalog + WhatsApp Cart
   Built by Raqam Studio (رقم ستوديو) | RTL Arabic First | Zero-Build Static
   ========================================================================== */

:root {
  /* Warm Roastery Commercial Palette (High Contrast AA+) */
  --bg-page: #FAF8F5;
  --bg-surface: #FFFFFF;
  --bg-cream: #F3EFE6;
  --bg-dark: #1C1917;

  --primary: #B45309;
  --primary-hover: #92400E;
  --primary-soft: #FEF3C7;
  --primary-border: rgba(180, 83, 9, 0.24);

  --whatsapp: #15803D;
  --whatsapp-hover: #166534;
  --emerald-soft: #ECFDF5;

  --text-main: #1C1917;
  --text-body: #292524;
  --text-muted: #44403C;
  --border-subtle: #E7E5E4;
  --border-strong: #D6D3D1;

  /* Typography */
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Inter', 'Cairo', sans-serif;

  /* Spacing & Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 12px 28px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 22px 48px rgba(28, 25, 23, 0.12);
  --header-height: 74px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-ar);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Numeric & LTR Helper */
.num {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  display: inline-block;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-rtl-flip {
  transform: scaleX(-1);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.35;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(180, 83, 9, 0.22);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.24);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

/* ==========================================================================
   Top Announcement Strip & Sticky Header
   ========================================================================== */
.top-bar {
  background-color: var(--bg-dark);
  color: #F5F5F4;
  font-size: 0.84rem;
  font-weight: 600;
  padding-block: 8px;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  text-align: center;
}

.top-bar strong {
  color: #FCD34D;
}

.top-bar-sep {
  opacity: 0.35;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--bg-dark);
  color: #FCD34D;
  display: grid;
  place-items: center;
}

.brand-icon svg {
  width: 23px;
  height: 23px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-body);
}

.desktop-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cart-trigger-btn:hover {
  border-color: var(--primary);
  background-color: #FFFBEB;
}

.cart-count-badge {
  min-width: 24px;
  height: 24px;
  padding-inline: 6px;
  border-radius: 999px;
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 14px 18px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-link:hover {
  background-color: var(--bg-cream);
  color: var(--primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-block: 52px 68px;
  background:
    radial-gradient(circle at 85% 20%, rgba(180, 83, 9, 0.08), transparent 45%),
    var(--bg-page);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 44px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-soft);
  border: 1px solid #FDE68A;
  color: #92400E;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-badge .icon {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 590px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-highlights {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border-strong);
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-item strong {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.highlight-item span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.highlight-divider {
  width: 1px;
  height: 34px;
  background-color: var(--border-strong);
}

/* Showcase Featured Card */
.showcase-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.showcase-tag {
  background-color: var(--emerald-soft);
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.showcase-weight {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-cream);
  padding: 4px 10px;
  border-radius: 999px;
}

.showcase-art {
  background-color: #FAF7F2;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}

.showcase-art svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.showcase-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.showcase-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.showcase-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.price-block {
  display: flex;
  flex-direction: column;
}

.old-price {
  font-size: 0.84rem;
  color: #78716C;
  text-decoration: line-through;
  line-height: 1.2;
}

.current-price {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.current-price small {
  font-size: 0.9rem;
  font-weight: 700;
}

/* ==========================================================================
   Trust Strip
   ========================================================================== */
.trust-strip {
  background-color: var(--bg-cream);
  border-block: 1px solid var(--border-strong);
  padding-block: 28px;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.trust-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

.trust-box strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.trust-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Sections & Catalog Controls
   ========================================================================== */
.section {
  padding-block: 72px;
}

.section-alt {
  background-color: var(--bg-cream);
  border-block: 1px solid var(--border-strong);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: 42px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #92400E;
  background-color: var(--primary-soft);
  border: 1px solid #FDE68A;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.32;
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--text-body);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip.is-active {
  background-color: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #FFFFFF;
}

.search-box {
  position: relative;
  flex: 1 1 280px;
  max-width: 340px;
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 42px 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
}

/* ==========================================================================
   Products Grid & Cards (Uniform Bottom CTA Alignment)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.product-visual {
  position: relative;
  background-color: #FAF7F2;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  height: 152px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  padding: 16px;
}

.product-visual svg {
  width: 84px;
  height: 84px;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--bg-dark);
  color: #FCD34D;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-spec {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

.product-cat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.89rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.product-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
}

.product-price small {
  font-size: 0.84rem;
  font-weight: 700;
}

.product-old-price {
  font-size: 0.82rem;
  color: #78716C;
  text-decoration: line-through;
}

.add-cart-btn {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.92rem;
}

/* Inline Card Quantity Stepper when already in cart */
.card-qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  background-color: var(--emerald-soft);
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
}

.qty-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.qty-step-btn:hover {
  background-color: var(--whatsapp);
  color: #FFFFFF;
}

.card-qty-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #065F46;
}

/* Empty Search State */
.empty-catalog {
  text-align: center;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 48px 20px;
}

.empty-catalog[hidden] {
  display: none;
}

.empty-catalog-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background-color: var(--bg-cream);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.empty-catalog-icon svg {
  width: 26px;
  height: 26px;
}

.empty-catalog h3 {
  font-size: 1.18rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-catalog p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.noscript-msg {
  text-align: center;
  padding: 20px;
  color: #B91C1C;
  font-weight: 700;
}

/* ==========================================================================
   How Ordering Works (3 Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--bg-dark);
  color: #FCD34D;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-container {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: right;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  color: var(--primary);
  transition: transform 0.22s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 14px 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-subtle);
}

.faq-answer[hidden] {
  display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: #E7E5E4;
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 36px;
  padding-bottom: 42px;
}

.site-footer .brand-icon {
  background-color: #292524;
  border: 1px solid rgba(252, 211, 77, 0.25);
}

.site-footer .brand-name {
  color: #FFFFFF;
}

.site-footer .brand-sub {
  color: #FCD34D;
}

.footer-desc {
  margin-top: 14px;
  font-size: 0.94rem;
  color: #D6D3D1;
  max-width: 390px;
}

.site-footer h4 {
  color: #FFFFFF;
  font-size: 1.04rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.94rem;
  color: #D6D3D1;
}

.footer-links a:hover {
  color: #FCD34D;
}

.footer-contact p {
  font-size: 0.94rem;
  color: #D6D3D1;
  margin-bottom: 8px;
}

.footer-wa-link {
  display: inline-block;
  margin-top: 8px;
  color: #4ADE80;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-wa-link:hover {
  color: #86EFAC;
}

.footer-bottom {
  border-top: 1px solid rgba(214, 211, 209, 0.16);
  padding-block: 20px;
  font-size: 0.88rem;
  color: #D6D3D1;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.studio-credit strong {
  color: #38BDF8;
  font-weight: 700;
}

/* ==========================================================================
   Slide-Over Cart Drawer
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background-color: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(3px);
}

.cart-backdrop[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  width: 100%;
  max-width: 460px;
  background-color: var(--bg-surface);
  box-shadow: 12px 0 40px rgba(28, 25, 23, 0.22);
  display: flex;
  flex-direction: column;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-title-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cart-title-group h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.cart-badge-inline {
  min-width: 26px;
  height: 26px;
  padding-inline: 8px;
  border-radius: 999px;
  background-color: var(--bg-dark);
  color: #FCD34D;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.clear-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #FECACA;
  background-color: #FEF2F2;
  color: #B91C1C;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.clear-cart-btn[hidden] {
  display: none;
}

.clear-cart-btn .icon {
  width: 15px;
  height: 15px;
}

.clear-cart-btn:hover {
  background-color: #FEE2E2;
}

.close-drawer-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-page);
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.close-drawer-btn:hover {
  border-color: var(--text-main);
}

/* Free Shipping Bar */
.shipping-progress-box {
  padding: 12px 20px;
  background-color: #FAF7F2;
  border-bottom: 1px solid var(--border-subtle);
}

.shipping-progress-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 8px;
}

.shipping-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background-color: #E7E5E4;
  overflow: hidden;
}

.shipping-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background-color: var(--primary);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.shipping-bar-fill.is-free {
  background-color: var(--whatsapp);
}

/* Cart Body */
.cart-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.cart-empty-state {
  text-align: center;
  padding: 48px 16px;
}

.cart-empty-state[hidden],
#cartFilledContent[hidden] {
  display: none;
}

.cart-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg-cream);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.cart-empty-icon svg {
  width: 28px;
  height: 28px;
}

.cart-empty-state h3 {
  font-size: 1.12rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.cart-empty-state p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Cart Items */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background-color: var(--bg-page);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cart-item-meta {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cart-item-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.drawer-qty-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 3px 5px;
}

.drawer-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background-color: var(--bg-cream);
  color: var(--text-main);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.drawer-qty-btn:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.drawer-qty-val {
  min-width: 20px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.remove-item-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: #991B1B;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.remove-item-btn:hover {
  background-color: #FEF2F2;
  border-color: #FECACA;
}

.remove-item-btn svg {
  width: 16px;
  height: 16px;
}

/* Cart Totals */
.cart-totals-card {
  background-color: var(--bg-cream);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.totals-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 8px;
}

.totals-row.totals-final {
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-strong);
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text-main);
}

.free-ship-badge {
  color: var(--whatsapp);
  font-weight: 800;
}

/* Order Sent Banner */
.order-sent-banner {
  background-color: var(--emerald-soft);
  border: 1px solid #86EFAC;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-sent-banner[hidden] {
  display: none;
}

.order-sent-banner p {
  font-size: 0.88rem;
  font-weight: 700;
  color: #065F46;
}

/* Checkout Form */
.checkout-form {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.checkout-title {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 12px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

.req {
  color: #DC2626;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 0.94rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #FFFFFF;
}

.input-ltr {
  text-align: left;
}

.form-feedback {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.form-feedback.is-error {
  background-color: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.form-feedback.is-success {
  background-color: var(--emerald-soft);
  color: #065F46;
  border: 1px solid #86EFAC;
}

/* Mobile Sticky Bottom Cart Bar */
.mobile-cart-bar {
  display: none;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1080px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .trust-strip-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-sep {
    display: none;
  }

  .hero {
    padding-block: 32px 48px;
  }

  .hero-title {
    font-size: 1.68rem;
    line-height: 1.38;
    text-wrap: balance;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .highlight-divider {
    display: none;
  }

  .hero-highlights {
    justify-content: space-between;
    gap: 16px;
  }

  .section {
    padding-block: 52px;
  }

  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Generous footer bottom padding so sticky mobile cart bar never covers text */
  .site-footer {
    padding-bottom: calc(102px + env(safe-area-inset-bottom));
  }

  .mobile-cart-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-strong);
    box-shadow: 0 -8px 24px rgba(28, 25, 23, 0.1);
  }

  .mobile-cart-summary {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
  }

  .mobile-cart-items {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
  }

  .mobile-cart-total {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-main);
  }

  .mobile-cart-open-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 16px;
  }

  .hero-title {
    font-size: 1.52rem;
    line-height: 1.42;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    padding: 20px 18px;
  }

  .showcase-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-bottom .btn {
    width: 100%;
  }

  .cart-trigger-label {
    display: none;
  }
}
