/*
Theme Name: Mastara
Theme URI: https://mastara.me
Author: Mastara
Author URI: https://mastara.me
Description: Custom theme for Mastara — made-to-measure curtains, blinds & fabrics in Kuwait. Airy, premium-minimal design: white canvas, soft mint blocks, tan accents, pill buttons.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: mastara
*/

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  --mint:        #e0e9e9;
  --mint-hover:  #c2e2dd;
  --mint-2:      #b7dbdd;
  --tan:         #d7b398;
  --tan-dark:    #c19a7b;
  --text:        #282828;
  --text-strong: #000;
  --muted:       #666;
  --muted-2:     #9e9e9e;
  --surface:     #f7f7f7;
  --surface-2:   #f0f0f0;
  --surface-warm:#eeebe8;
  --border:      #d9d9d9;
  --border-soft: #e6e0e0;
  --white:       #fff;
  --danger:      #ed3e2e;

  --radius-btn:   35px;
  --radius-card:  10px;
  --radius-input: 4px;
  --radius-thumb: 14%;

  --font-head: 'Fredoka', 'Almarai', system-ui, sans-serif;
  --font-body: 'Cabin', 'Almarai', system-ui, sans-serif;
  --font-alt:  'Dosis', 'Almarai', system-ui, sans-serif;

  --container: 1600px;
  --shadow-soft: 0 8px 30px rgba(40, 40, 40, .08);
  --shadow-card: 0 4px 18px rgba(40, 40, 40, .07);
}

html[dir="rtl"] body,
html[lang="ar"] body {
  --font-head: 'Almarai', 'Fredoka', system-ui, sans-serif;
  --font-body: 'Almarai', 'Cabin', system-ui, sans-serif;
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--tan-dark); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.25;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-block: clamp(32px, 5vw, 60px); }
.section-mint { background: var(--mint); }
.section-surface { background: var(--surface); }
.section-warm { background: var(--surface-warm); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 52px); }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-alt);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tan-dark);
  margin-bottom: 10px;
}
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  padding: 13px 32px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  line-height: 1.2;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text-strong); color: var(--white); }
.btn-primary:hover { background: var(--tan); color: var(--text-strong); }
.btn-mint { background: var(--mint); color: var(--text-strong); }
.btn-mint:hover { background: var(--mint-hover); color: var(--text-strong); }
.btn-tan { background: var(--tan); color: var(--text-strong); }
.btn-tan:hover { background: var(--tan-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--text-strong); color: var(--text-strong); }
.btn-outline:hover { background: var(--text-strong); color: var(--white); }
.btn-lg { padding: 16px 42px; font-size: 1.08rem; }
.btn-sm { padding: 9px 22px; font-size: .9rem; }
.btn-whatsapp { background: #e7f6ee; color: #1a7f4e; }
.btn-whatsapp:hover { background: #d2efdf; color: #14653d; }

/* ============================================================
   4. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.site-logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: .14em;
  color: var(--text-strong);
}
.site-logo img { max-height: 46px; width: auto; }
.site-logo:hover { color: var(--text-strong); }
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius-btn);
  background: var(--mint);
  color: var(--text-strong);
  transition: background .2s ease;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { background: var(--mint-hover); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
}
.nav-toggle:hover { background: var(--mint); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-strong);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 18px 24px 26px;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 8px; }
  .site-nav a { display: block; text-align: center; padding: 13px 18px; }
  .header-actions .btn-header-cta { display: none; }
}

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-2) 60%, var(--mint-hover) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: clamp(420px, 55vw, 560px);
  padding-block: clamp(48px, 6vw, 72px);
}
.hero-copy .eyebrow { color: var(--text-strong); opacity: .55; }
.hero-copy h1 { margin-bottom: .4em; }
.hero-copy p {
  font-size: 1.12rem;
  color: var(--text);
  max-width: 46ch;
  margin-bottom: 1.8em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--white);
}
.hero-art img, .hero-art svg { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 44px; }
  .hero-art { order: -1; max-height: 300px; }
}

/* ============================================================
   6. CATEGORY CARDS (Shop by Category)
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: clamp(22px, 3vw, 36px) 18px;
  background: var(--mint);
  border-radius: var(--radius-card);
  transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.cat-card:hover {
  background: var(--mint-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  color: var(--text-strong);
}
.cat-card-icon {
  width: clamp(64px, 8vw, 92px);
  height: clamp(64px, 8vw, 92px);
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cat-card-icon img, .cat-card-icon svg { width: 100%; height: 100%; object-fit: contain; }
.cat-card-label { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--text-strong); }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   7. COLLECTION STRIPS / TILE GRIDS
   ============================================================ */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.tile-grid-4 { grid-template-columns: repeat(4, 1fr); }
.tile-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tile-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.tile-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); color: inherit; }
.tile-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mint); }
.tile-media img, .tile-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile-card:hover .tile-media img, .tile-card:hover .tile-media svg { transform: scale(1.045); }
.tile-body { padding: 18px 20px 22px; }
.tile-body h3 { font-size: 1.12rem; margin-bottom: 4px; }
.tile-body p { color: var(--muted); font-size: .92rem; margin: 0; }
.tile-cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tan-dark);
}
@media (max-width: 900px) { .tile-grid, .tile-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid, .tile-grid-4, .tile-grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   8. CTA BAND (appointment)
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, var(--tan) 0%, #e3c5ac 100%);
  border-radius: var(--radius-card);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 52ch; color: var(--text); }
.cta-band .btn { flex-shrink: 0; }

/* ============================================================
   9. NEWSLETTER
   ============================================================ */
.newsletter { text-align: center; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 24px auto 0;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 13px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--mint-2); border-color: var(--mint-2); }
.newsletter-note { font-size: .85rem; color: var(--muted-2); margin-top: 12px; }
@media (max-width: 520px) { .newsletter-form { flex-direction: column; } }

/* ============================================================
   10. PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: var(--mint);
  text-align: center;
  padding-block: clamp(44px, 7vw, 84px);
}
.page-hero p { max-width: 60ch; margin-inline: auto; color: var(--text); font-size: 1.08rem; }
.page-hero-tan { background: linear-gradient(120deg, var(--surface-warm), #f2e5d9); }

/* ============================================================
   11. FORMS
   ============================================================ */
.m-form { max-width: 640px; }
.m-form-full { max-width: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-strong);
}
.form-field label .req { color: var(--danger); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 2px solid var(--mint-2); border-color: var(--mint-2); }
.form-hint { font-size: .82rem; color: var(--muted-2); margin-top: 5px; }
.form-msg {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-card);
  margin-bottom: 18px;
  font-weight: 500;
}
.form-msg.error { background: #fdecea; color: var(--danger); }
.form-msg.success { background: #e7f6ee; color: #1a7f4e; }
.form-success-panel {
  display: none;
  text-align: center;
  padding: clamp(36px, 5vw, 64px) 24px;
  background: var(--mint);
  border-radius: var(--radius-card);
}
@media (max-width: 680px) {
  .form-row, .form-row-3, .form-row-4 { grid-template-columns: 1fr; gap: 0; }
}

/* slot picker */
.slot-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-chip { position: relative; }
.slot-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot-chip span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: .92rem;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.slot-chip input:checked + span { background: var(--text-strong); border-color: var(--text-strong); color: var(--white); }
.slot-chip input:focus-visible + span { outline: 2px solid var(--mint-2); }
.slot-chip:hover span { border-color: var(--text-strong); }

/* booking layout */
.booking-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.booking-side .side-card {
  background: var(--mint);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  margin-bottom: 20px;
}
.booking-side .side-card.tan { background: var(--surface-warm); }
.booking-side h3 { font-size: 1.08rem; margin-bottom: 12px; }
.booking-side li {
  position: relative;
  padding-inline-start: 26px;
  margin-bottom: 9px;
  font-size: .95rem;
}
.booking-side li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--tan-dark);
  font-weight: 700;
}
@media (max-width: 880px) { .booking-layout { grid-template-columns: 1fr; } .booking-side { order: 2; } }

/* ============================================================
   12. CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.contact-block { margin-bottom: 28px; }
.contact-block h3 {
  font-family: var(--font-alt);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-block p { margin: 0; font-size: 1.05rem; }
.contact-block a { color: var(--tan-dark); font-weight: 600; }
.contact-block a:hover { color: var(--text-strong); }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

/* ============================================================
   13. ABOUT / PROSE
   ============================================================ */
.prose { max-width: 760px; margin-inline: auto; font-size: 1.06rem; }
.prose p { margin-bottom: 1.35em; }
.prose strong { color: var(--text-strong); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.pillar {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.pillar h3 { color: var(--tan-dark); }
@media (max-width: 820px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ============================================================
   14. PORTAL PAGES
   ============================================================ */
.portal-wrap { padding-block: clamp(36px, 5vw, 64px); }
.portal-hero {
  background: var(--mint);
  border-radius: var(--radius-card);
  padding: clamp(26px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.portal-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
}
.portal-hero .portal-actions { margin-inline-start: auto; display: flex; gap: 10px; }
.portal-section { margin-bottom: 44px; }
.portal-section > h2 {
  font-size: 1.35rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mint-2);
  margin-bottom: 20px;
}
.portal-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.portal-login-panel {
  max-width: 460px;
  margin: clamp(48px, 8vw, 96px) auto;
  text-align: center;
  background: var(--mint);
  border-radius: var(--radius-card);
  padding: clamp(32px, 5vw, 56px) 32px;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer { background: var(--surface-warm); margin-top: clamp(48px, 7vw, 96px); }
.footer-member {
  background: var(--mint);
  padding-block: clamp(36px, 5vw, 56px);
  text-align: center;
}
.footer-member p { max-width: 62ch; margin-inline: auto; color: var(--text); }
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3.5vw, 48px);
  padding-block: clamp(40px, 5vw, 64px);
}
.footer-brand .site-logo { display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-alt);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: .96rem; }
.footer-col a:hover { color: var(--tan-dark); }
.footer-address p { font-size: .95rem; margin-bottom: 6px; }
.footer-address a { color: var(--tan-dark); font-weight: 600; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--mint-hover); }
.footer-social svg { width: 18px; height: 18px; fill: var(--text-strong); }
.footer-bar {
  border-top: 1px solid var(--border-soft);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: .85rem;
  color: var(--muted);
}
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* floating WhatsApp */
.wa-float {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 950;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ============================================================
   16. 404 / MISC
   ============================================================ */
.error-404 { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.error-404 .code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 600;
  color: var(--mint-2);
  line-height: 1;
}
.entry-content { padding-block: clamp(36px, 5vw, 64px); }
.entry-content h1 { margin-bottom: .8em; }

/* RTL niceties — logical properties used throughout; flip check icon */
[dir="rtl"] .tile-cta svg { transform: scaleX(-1); }

/* ── Overflow hardening (mobile grid min-content fix) ───────────────────── */
.hero-inner > *, .tile-grid > *, .cat-grid > *, .form-row > *, .form-row-3 > *, .form-row-4 > * { min-width: 0; }
.hero-art img { width: 100%; height: auto; }
body { overflow-x: clip; }

/* ============================================================
   17. SHOP (v1.1.0) — header icons
   ============================================================ */
.cart-link, .account-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--text-strong);
  transition: background .2s ease;
}
.cart-link:hover, .account-link:hover { background: var(--mint); color: var(--text-strong); }
.cart-count {
  position: absolute;
  top: 2px;
  inset-inline-end: 0;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--tan-dark);
  color: var(--white);
  font-family: var(--font-alt);
  font-size: .7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--border);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
  transition: background .2s ease, border-color .2s ease;
}
.lang-toggle:hover { background: var(--mint); border-color: var(--mint-2); color: var(--text-strong); }

/* ── shop states / toolbar ── */
.shop-state {
  text-align: center;
  color: var(--muted);
  padding: 34px 20px;
  background: var(--surface);
  border-radius: var(--radius-card);
  margin-bottom: 24px;
}
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.shop-search { flex: 1; min-width: 220px; }
.shop-search input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}
.shop-search input:focus { outline: 2px solid var(--mint-2); border-color: var(--mint-2); }
.shop-cat-filter {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: .96rem;
  background: var(--white);
  max-width: 260px;
}

/* ── category cards (real data) ── */
.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.shop-cat-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.shop-cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); color: inherit; }
.shop-cat-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mint); }
.shop-cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.shop-cat-card:hover .shop-cat-media img { transform: scale(1.05); }
.shop-cat-label {
  font-family: var(--font-head);
  font-weight: 500;
  padding: 12px 16px 14px;
  color: var(--text-strong);
}

/* ── product cards / grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); color: inherit; }
.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--tan);
  color: var(--text-strong);
  font-family: var(--font-alt);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-btn);
}
.product-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.product-card-title { font-family: var(--font-head); font-weight: 500; color: var(--text-strong); line-height: 1.3; }
.product-card-price { color: var(--tan-dark); font-weight: 600; font-size: .95rem; }
.mini-swatch-row { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.mini-swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  display: inline-block;
}
.mini-swatch-more { font-size: .72rem; color: var(--muted-2); }

.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 40px);
}
.shop-page-info { font-family: var(--font-alt); font-size: .9rem; color: var(--muted); }

/* ── product detail ── */
.product-page { padding-block: clamp(28px, 4vw, 56px); }
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
}
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } }
.product-gallery-main {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-card);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--surface);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--tan-dark); }
.product-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .2em; }
.product-code { color: var(--muted-2); font-size: .88rem; margin-bottom: 6px; }
.product-price-line { color: var(--tan-dark); font-weight: 700; font-size: 1.25rem; margin-bottom: 18px; }
.product-option { margin-bottom: 18px; }
.product-option-label { font-size: .95rem; margin-bottom: 10px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 64px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.swatch-chip img, .swatch-chip .swatch-fill {
  display: block;
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color .18s ease, transform .18s ease;
}
.swatch-chip:hover img, .swatch-chip:hover .swatch-fill { border-color: var(--tan); transform: scale(1.06); }
.swatch-chip.is-active img, .swatch-chip.is-active .swatch-fill { border-color: var(--text-strong); }
.swatch-code { font-size: .68rem; color: var(--muted); line-height: 1.2; text-align: center; }

.qty-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-btn); overflow: hidden; }
.qty-stepper input {
  width: 58px;
  text-align: center;
  border: 0;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn {
  width: 40px; height: 42px;
  border: 0;
  background: var(--surface);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .18s ease;
}
.qty-btn:hover { background: var(--mint); }
.qty-sm input { padding: 6px 2px; width: 46px; }
.qty-sm .qty-btn { height: 34px; width: 32px; }

.product-price-box {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--mint);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin: 20px 0;
}
.product-price-label { font-family: var(--font-alt); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.product-price-value { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--text-strong); }
.product-price-note { font-size: .82rem; color: var(--muted); flex-basis: 100%; }
.product-add { width: 100%; }
.product-meta { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.product-tabs { margin-top: clamp(32px, 5vw, 56px); }
.product-tab-section { margin-bottom: 32px; }
.product-tab-section > h2 { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 2px solid var(--mint-2); margin-bottom: 16px; }
.product-description { white-space: pre-line; }
.product-specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
  max-width: 560px;
}
.product-specs dt { font-weight: 600; color: var(--text-strong); }
.product-specs dd { margin: 0; color: var(--muted); }

/* ── cart ── */
.page-hero-plain { background: none; text-align: start; padding-block: clamp(28px, 4vw, 44px) 8px; }
.cart-page, .checkout-page { padding-bottom: clamp(36px, 5vw, 64px); }
.cart-empty {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(40px, 6vw, 72px) 24px;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}
@media (max-width: 820px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.cart-item-media {
  flex: 0 0 92px;
  width: 92px; height: 92px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-title { font-family: var(--font-head); font-weight: 500; color: var(--text-strong); }
.cart-item-meta { color: var(--muted); font-size: .88rem; margin: 4px 0 10px; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item-price { font-weight: 700; color: var(--text-strong); }
.cart-item-remove {
  border: 0;
  background: none;
  color: var(--danger);
  font-size: .85rem;
  cursor: pointer;
  padding: 4px 0;
}
.cart-item-remove:hover { text-decoration: underline; }
.cart-summary {
  background: var(--mint);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  position: sticky;
  top: 96px;
}
.cart-summary h3 { margin-bottom: 8px; }
.cart-summary-count { color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.cart-summary-total { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; color: var(--text-strong); margin-bottom: 14px; }
.cart-checkout-btn { width: 100%; }

/* ── checkout ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}
@media (max-width: 880px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-summary { order: -1; } }
.checkout-form h2 { font-size: 1.2rem; margin: 26px 0 14px; }
.checkout-form h2:first-of-type { margin-top: 0; }
.co-login-hint { background: var(--surface); border-radius: var(--radius-card); padding: 12px 18px; font-size: .92rem; }
.co-login-hint a { color: var(--tan-dark); font-weight: 600; }
.pay-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.pay-option:hover { border-color: var(--tan); }
.pay-option:has(input:checked) { border-color: var(--text-strong); background: var(--surface); }
.pay-option input { accent-color: var(--text-strong); }
.co-account-opt { margin-bottom: 20px; }
.co-check { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 12px; }
.co-check input { accent-color: var(--text-strong); width: 18px; height: 18px; }
.checkout-summary {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  position: sticky;
  top: 96px;
}
.co-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: .93rem;
}
.co-item-title { font-weight: 600; color: var(--text-strong); }
.co-item-meta { color: var(--muted); font-size: .82rem; grid-column: 1; }
.co-item-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; }
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  font-size: 1.1rem;
}
.checkout-summary-total strong { font-family: var(--font-head); font-size: 1.4rem; }

/* ── confirmation ── */
.conf-panel {
  max-width: 560px;
  margin: clamp(48px, 8vw, 96px) auto;
  text-align: center;
  background: var(--mint);
  border-radius: var(--radius-card);
  padding: clamp(36px, 5vw, 64px) 32px;
}
.conf-check {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  color: #1a7f4e;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.conf-number { font-size: 1.1rem; }
.conf-number strong { font-family: var(--font-head); font-size: 1.3rem; }
.conf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

/* ── auth panel ── */
.auth-panel {
  max-width: 480px;
  margin: clamp(40px, 7vw, 80px) auto;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 4vw, 44px);
}
.auth-tabs { display: flex; gap: 8px; margin: 20px 0 24px; }
.auth-tab {
  flex: 1;
  padding: 11px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--white);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.auth-tab:hover { border-color: var(--text-strong); }
.auth-tab.is-active { background: var(--text-strong); border-color: var(--text-strong); color: var(--white); }

/* ── orders list ── */
.order-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.order-status {
  font-family: var(--font-alt);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--mint);
  color: var(--text-strong);
  padding: 3px 12px;
  border-radius: var(--radius-btn);
}
.order-status-pending { background: var(--surface-warm); }
.order-status-confirmed { background: var(--mint-2); }
.order-status-delivered { background: #d2efdf; color: #14653d; }
.order-card-body { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: .92rem; }
.order-items { flex-basis: 100%; }

/* ── homepage sliders ── */
.home-slider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.home-slider-head p { color: var(--muted); margin: 0; }
.home-slider-nav { display: flex; align-items: center; gap: 10px; }
.home-slider-all {
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tan-dark);
}
.slider-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.slider-arrow:hover { background: var(--mint); border-color: var(--mint-2); }
.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 24vw, 260px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.slider-track > * { scroll-snap-align: start; }

/* header responsiveness for the new icons */
@media (max-width: 920px) {
  .header-actions { gap: 6px; }
  .lang-toggle { min-width: 38px; padding: 0 9px; }
}
