/* =========================================================
   Public Smart Menu — refreshed layout
   ========================================================= */
.sm-page {
  --profile-bg: #eef2f7;
  --name-color: #0b1220;
  --sm-ink: #0c1220;
  --sm-muted: #64748b;
  --sm-line: rgba(15, 23, 42, 0.09);
  --sm-accent: #1d4ed8;
  --sm-accent-2: #e11d48;
  --sm-accent-soft: rgba(29, 78, 216, 0.1);
  --sm-price: #0f766e;
  --sm-sheet: rgba(255, 255, 255, 0.86);
  --sm-card: #ffffff;
  --sm-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  --sm-radius: 22px;
  --sm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  min-height: 100vh;
  font-family: "Cairo", "DM Sans", sans-serif;
  overflow-x: clip;
  color: var(--sm-ink);
  background: var(--profile-bg);
}

html[dir="ltr"] .sm-page {
  font-family: "DM Sans", "Cairo", sans-serif;
}

.sm-page--dark {
  --sm-ink: #f1f5f9;
  --sm-muted: rgba(241, 245, 249, 0.68);
  --sm-line: rgba(241, 245, 249, 0.12);
  --sm-accent: #60a5fa;
  --sm-accent-2: #fb7185;
  --sm-accent-soft: rgba(96, 165, 250, 0.16);
  --sm-price: #5eead4;
  --sm-sheet: rgba(10, 14, 22, 0.78);
  --sm-card: rgba(18, 24, 36, 0.92);
  --sm-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.sm-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 48% at 12% -10%, rgba(29, 78, 216, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 42% at 100% 8%, rgba(15, 118, 110, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 100%, rgba(225, 29, 72, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 42%),
    linear-gradient(180deg, var(--profile-bg) 0%, var(--profile-bg) 100%);
}

.sm-page--dark .sm-atmosphere {
  background:
    radial-gradient(ellipse 70% 48% at 12% -10%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 42% at 100% 8%, rgba(45, 212, 191, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 100%, rgba(251, 113, 133, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 45%),
    linear-gradient(180deg, var(--profile-bg) 0%, var(--profile-bg) 100%);
}

.sm-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(1.1rem, 3vw, 1.85rem) clamp(0.9rem, 2.8vw, 1.6rem) clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 0;
  background: var(--sm-sheet);
  border-inline: 1px solid var(--sm-line);
  box-shadow: var(--sm-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  animation: smRise 0.6s var(--sm-ease) both;
  min-height: 100vh;
  box-sizing: border-box;
}

@keyframes smRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero — cover lives only in the banner zone */
.sm-hero {
  margin: 0 0 1.35rem;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--sm-line);
}

.sm-hero-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 26px;
  padding: 1.35rem 1.25rem 1.45rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.45)),
    linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid var(--sm-line);
  margin-bottom: 1rem;
  min-height: 168px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.sm-page--dark .sm-hero-banner {
  background:
    linear-gradient(160deg, rgba(18, 24, 36, 0.9), rgba(12, 18, 32, 0.78));
}

.sm-hero--cover .sm-hero-banner {
  background: linear-gradient(145deg, #111827 0%, #1e293b 55%, #0f172a 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(15, 23, 42, 0.18);
}

.sm-hero-media {
  display: none;
}

.sm-hero--cover .sm-hero-media {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(8, 12, 20, 0.55) 0%, rgba(8, 12, 20, 0.35) 45%, rgba(8, 12, 20, 0.7) 100%),
    linear-gradient(115deg, rgba(29, 78, 216, 0.28), transparent 55%),
    var(--sm-hero-cover);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: smCoverDrift 14s ease-in-out infinite alternate;
}

@keyframes smCoverDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}

.sm-hero-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 1.05rem;
  align-items: center;
}

.sm-hero-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  padding: 3px;
  background:
    conic-gradient(from 210deg, #60a5fa, #34d399, #f472b6, #60a5fa);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  animation: smAvatarIn 0.7s var(--sm-ease) both;
}

@keyframes smAvatarIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sm-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: #1e293b;
  display: block;
}

.sm-hero-copy {
  min-width: 0;
}

.sm-hero-banner .sm-kicker,
.sm-hero-banner .sm-bio {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.sm-hero--cover .sm-kicker,
.sm-hero--cover .sm-bio {
  color: rgba(248, 250, 252, 0.9);
}

.sm-hero--cover .sm-brand {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.sm-kicker {
  margin: 0 0 0.3rem;
  color: var(--sm-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sm-brand {
  margin: 0 0 0.4rem;
  font-family: "Zain", "Outfit", "Cairo", sans-serif;
  font-size: clamp(1.65rem, 4.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--name-color, var(--sm-ink));
}

html[dir="ltr"] .sm-brand {
  font-family: "Outfit", "DM Sans", sans-serif;
}

.sm-bio {
  margin: 0 0 0.65rem;
  color: var(--sm-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.sm-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sm-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--sm-accent-soft);
  color: var(--sm-accent);
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.sm-hero--cover .sm-meta-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.sm-info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.sm-info-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: var(--sm-card);
  border: 1px solid var(--sm-line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s var(--sm-ease), border-color 0.22s ease;
}

.sm-info-chip:hover,
.sm-info-chip--link:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.35);
}

.sm-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--sm-accent-soft);
  color: var(--sm-accent);
  font-size: 1rem;
}

.sm-info-text {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
  text-align: start;
}

.sm-info-text small {
  color: var(--sm-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.sm-info-text strong {
  color: var(--sm-ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.status-open { color: #16a34a; }
.status-closed { color: #dc2626; }

.sm-info-arrow {
  margin-inline-start: auto;
  color: var(--sm-muted);
  font-size: 0.8rem;
}

.sm-contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.sm-contact-row--center {
  justify-content: center;
  grid-template-columns: minmax(130px, 280px);
}

.sm-social-row {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.85rem;
  justify-content: center;
}

.sm-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sm-card);
  border: 1px solid var(--sm-line);
  color: var(--sm-ink);
  font-size: 1.15rem;
  text-decoration: none;
  transition: transform 0.2s var(--sm-ease), border-color 0.2s ease, color 0.2s ease;
}

.sm-social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--sm-accent);
  color: var(--sm-accent);
}

.sm-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s var(--sm-ease), box-shadow 0.2s ease;
}

.sm-contact-btn:hover { transform: translateY(-2px); }

.sm-contact-btn--wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
}

.sm-contact-btn--call {
  background: var(--sm-accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.28);
}

.sm-contact-btn--review {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: #fff;
  box-shadow: 0 10px 22px rgba(66, 133, 244, 0.3);
}

.sm-contact-btn i { font-size: 1.1rem; }

/* Sticky toolbar: search + tabs */
.sm-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0 0 1.15rem;
  padding: 0.65rem 0 0.85rem;
  background: linear-gradient(180deg, var(--sm-sheet) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sm-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  padding: 0.85rem 1.05rem;
  border-radius: 16px;
  background: var(--sm-card);
  border: 1px solid var(--sm-line);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sm-search:focus-within {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 10px 26px rgba(29, 78, 216, 0.12);
}

.sm-search i {
  color: var(--sm-muted);
  font-size: 0.95rem;
}

.sm-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--name-color, var(--sm-ink));
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
}

.sm-search-input::placeholder {
  color: var(--sm-muted);
  font-weight: 600;
}

.sm-search-empty {
  text-align: center;
  color: var(--sm-muted);
  font-weight: 700;
  padding: 1.5rem 0;
}

.sm-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.05rem 0.05rem 0.15rem;
  margin: 0;
  scrollbar-width: none;
}

.sm-tabs::-webkit-scrollbar { display: none; }

.sm-tab {
  flex: 0 0 auto;
  border: 1px solid var(--sm-line);
  background: var(--sm-card);
  color: var(--sm-ink);
  border-radius: 999px;
  padding: 0.52rem 1rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.2s var(--sm-ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sm-tab:hover {
  transform: translateY(-1px);
  border-color: var(--sm-accent);
}

.sm-tab.is-active {
  background: var(--sm-ink);
  border-color: var(--sm-ink);
  color: #fff;
}

.sm-page--dark .sm-tab.is-active {
  background: var(--sm-accent);
  border-color: var(--sm-accent);
  color: #0c1220;
}

/* Offers */
.sm-offers-section {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  border-radius: var(--sm-radius);
  background:
    linear-gradient(145deg, rgba(225, 29, 72, 0.07), rgba(29, 78, 216, 0.05));
  border: 1px solid rgba(225, 29, 72, 0.16);
}

.sm-offers-section .sm-section-head {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(225, 29, 72, 0.14);
}

.sm-offers-section .sm-section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--sm-accent-2);
  font-size: 1.25rem;
  font-weight: 800;
}

.sm-offers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.sm-offer-card {
  display: grid;
  gap: 0.5rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: var(--sm-card);
  border: 1px solid var(--sm-line);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s var(--sm-ease), box-shadow 0.25s ease;
  min-width: 0;
}

.sm-offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.sm-offer-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
}

.sm-offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sm-offer-media--empty {
  display: grid;
  place-items: center;
  color: var(--sm-accent-2);
  font-size: 1.5rem;
}

.sm-offer-badge {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--sm-accent-2);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
}

.sm-offer-body {
  display: grid;
  gap: 0.35rem;
}

.sm-offer-body h3 {
  margin: 0;
  font-family: "Zain", "Outfit", "Cairo", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--sm-ink);
  line-height: 1.25;
}

.sm-offer-prices {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sm-offer-price-new {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sm-accent-2);
}

.sm-offer-price-old {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sm-muted);
  text-decoration: line-through;
}

.sm-offer-actions {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.sm-offer-actions .sm-size-select {
  min-height: 34px;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  border-radius: 10px;
}

.sm-offer-actions .sm-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.sm-offer-actions .sm-qty-input {
  width: 32px;
  font-size: 0.85rem;
}

.sm-offer-actions .sm-order-btn {
  min-height: 36px;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 10px;
}

.sm-offer-btn {
  width: 100%;
}

/* Menu surface & products — restaurant board rows */
.sm-menu-surface {
  display: grid;
  gap: 2rem;
}

.sm-section {
  position: relative;
}

.sm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
  padding: 0 0.15rem 0.65rem;
  border-bottom: 2px solid var(--sm-ink);
}

.sm-section-head h2 {
  margin: 0;
  font-family: "Zain", "Outfit", "Cairo", sans-serif;
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sm-ink);
  text-transform: none;
}

.sm-section-head span {
  min-width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--sm-muted);
  border: 1px solid var(--sm-line);
  font-size: 0.75rem;
  font-weight: 800;
}

.sm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.85rem;
  row-gap: 0;
  width: 100%;
  counter-reset: sm-item;
}

.sm-product {
  --sm-row-pad: 0.7rem 0.15rem;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  padding: var(--sm-row-pad);
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--sm-line);
  box-shadow: none;
  transition: background 0.2s ease, padding 0.2s ease;
  box-sizing: border-box;
  animation: smCardIn 0.45s var(--sm-ease) both;
  counter-increment: sm-item;
}

.sm-product:nth-last-child(-n + 2) {
  border-bottom: 0;
}

@keyframes smCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sm-product:hover {
  background: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
  padding-inline: 0.35rem;
}

.sm-page--dark .sm-product:hover {
  background: rgba(241, 245, 249, 0.04);
}

.sm-product--noimg {
  grid-template-columns: minmax(0, 1fr);
  padding-inline-start: 0.1rem;
}

.sm-product-media {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0.1rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #e8eef5;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  flex: 0 0 auto;
  align-self: start;
  box-shadow: 0 0 0 2px var(--sm-sheet), 0 0 0 3px var(--sm-line);
}

.sm-page--dark .sm-product-media {
  background: #1e293b;
}

.sm-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s var(--sm-ease);
}

.sm-product-media:hover img,
.sm-product-media:focus-visible img {
  transform: scale(1.08);
}

.sm-zoom {
  position: absolute;
  inset-inline-end: 2px;
  inset-block-end: 2px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.72);
  color: #fff;
  font-size: 0.5rem;
  pointer-events: none;
}

.sm-product-media--empty {
  display: grid;
  place-items: center;
  color: var(--sm-accent);
  font-size: 1rem;
  cursor: default;
  border-radius: 50%;
}

.sm-product-body {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
  align-content: start;
  padding-top: 0.05rem;
}

.sm-product-titles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.3rem;
  width: 100%;
}

.sm-product-titles h3 {
  margin: 0;
  font-family: "Zain", "Outfit", "Cairo", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--sm-ink);
  min-width: 0;
}

.sm-product-rule {
  display: none;
}

.sm-product-from {
  margin: 0;
  color: var(--sm-price);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.sm-product-desc {
  margin: 0;
  color: var(--sm-muted);
  font-size: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sm-size-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
}

.sm-size-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  width: 100%;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--sm-line);
  box-sizing: border-box;
}

.sm-page--dark .sm-size-pill {
  background: rgba(241, 245, 249, 0.04);
}

.sm-size-name {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--sm-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sm-size-price {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sm-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* When size select exists, pills are redundant */
.sm-product:has(.sm-size-select) .sm-size-row,
.sm-offer-card:has(.sm-size-select) .sm-size-row {
  display: none;
}

.sm-addons {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.sm-addons-label,
.sm-addons-label.header {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sm-price);
}

.sm-addons ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.sm-addons li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.sm-addon-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sm-ink);
  cursor: pointer;
}

.sm-addon-label strong {
  margin-inline-start: auto;
  color: var(--sm-price);
  font-size: 0.82rem;
}

.sm-order-actions {
  display: grid;
  gap: 0.35rem;
}

.sm-size-select {
  width: 100%;
  min-height: 34px;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--sm-line);
  background: var(--sm-card);
  color: var(--sm-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.sm-qty-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  justify-self: start;
  padding: 0.15rem;
  border-radius: 10px;
  border: 1px solid var(--sm-line);
  background: var(--sm-card);
}

.sm-qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--sm-accent-soft);
  color: var(--sm-accent);
  font-weight: 800;
  cursor: pointer;
  font-size: 0.85rem;
}

.sm-qty-input {
  width: 32px;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--sm-ink);
}

.sm-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 36px;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 10px;
  background: var(--sm-ink);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s var(--sm-ease), opacity 0.2s ease;
}

.sm-order-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.sm-page--dark .sm-order-btn {
  background: var(--sm-accent);
  color: #0c1220;
}

/* Cart float & panel */
.sm-cart-float {
  position: fixed;
  inset-inline-end: 1.1rem;
  bottom: 1.25rem;
  z-index: 40;
}

.sm-cart-float-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--sm-ink);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(12, 18, 32, 0.35);
  transition: transform 0.2s var(--sm-ease);
}

.sm-page--dark .sm-cart-float-btn {
  background: var(--sm-accent);
  color: #0c1220;
}

.sm-cart-float-btn:hover { transform: scale(1.05); }

.sm-cart-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sm-accent-2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.sm-cart-panel {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  bottom: 0;
  width: min(100%, 420px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--sm-card);
  border-inline-start: 1px solid var(--sm-line);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
}

.sm-cart-panel[hidden] { display: none !important; }

.sm-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--sm-line);
}

.sm-cart-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.sm-cart-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--sm-accent-soft);
  color: var(--sm-ink);
  cursor: pointer;
}

.sm-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.sm-cart-empty {
  text-align: center;
  color: var(--sm-muted);
  font-weight: 700;
  padding: 2rem 0;
}

.sm-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--sm-line);
}

.sm-cart-item-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.sm-cart-item-info strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sm-ink);
}

.sm-cart-item-info small {
  font-size: 0.8rem;
  color: var(--sm-muted);
  font-weight: 700;
}

.sm-cart-item-info span {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--sm-price);
}

.sm-cart-remove {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  cursor: pointer;
}

.sm-cart-item-remove {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s var(--sm-ease);
}

.sm-cart-item-remove:hover {
  background: rgba(220, 38, 38, 0.2);
  transform: scale(1.05);
}

.sm-cart-item-remove:active {
  transform: scale(0.95);
}

.sm-cart-footer {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--sm-line);
  display: grid;
  gap: 0.85rem;
}

.sm-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
}

.sm-cart-total span {
  color: var(--sm-muted);
  font-weight: 700;
}

.sm-cart-total strong {
  color: var(--sm-ink);
  font-weight: 800;
  font-size: 1.2rem;
}

.sm-cart-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1.35rem;
  border-radius: 14px;
  border: 0;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s var(--sm-ease);
}

.sm-cart-checkout:hover { transform: translateY(-2px); }
.sm-cart-checkout i { font-size: 1.2rem; }

/* Notification */
.sm-notification {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--sm-ease);
}

.sm-notification[hidden] { display: none; }

.sm-notification:not([hidden]) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sm-notification-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.32);
}

.sm-notification--error .sm-notification-content {
  background: #dc2626;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.32);
}

.sm-back {
  text-align: center;
  margin: 1.75rem 0 0.35rem;
}

.sm-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--sm-line);
  color: var(--sm-ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s var(--sm-ease), border-color 0.2s ease;
}

.sm-back a:hover {
  transform: translateY(-1px);
  border-color: var(--sm-accent);
}

.sm-page .site-footer {
  position: relative;
  z-index: 1;
}

/* Lightbox */
.sm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sm-lightbox[hidden] { display: none !important; }

.sm-lightbox img {
  max-width: min(95vw, 90vw) !important;
  max-height: min(85vh, 85vh) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #111;
}

.sm-lightbox-title {
  margin: 0;
  color: #f8fafc;
  font-weight: 800;
  text-align: center;
}

.sm-lightbox-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.sm-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sm-lightbox-nav:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.sm-lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.sm-lightbox-prev {
  right: 16px;
}

.sm-lightbox-next {
  left: 16px;
}

/* =========================================================
   Smart Catalog (public) — sc-page: no motion
   ========================================================= */
.sc-page .sm-shell,
.sc-page .sm-hero-avatar,
.sc-page .sm-product,
.sc-page .sm-offer-card,
.sc-page .sm-hero--cover .sm-hero-media,
.sc-page .sm-customer-form:not([hidden]) {
  animation: none !important;
}

.sc-page .sm-info-chip,
.sc-page .sm-social-btn,
.sc-page .sm-contact-btn,
.sc-page .sm-search,
.sc-page .sm-tab,
.sc-page .sm-offer-card,
.sc-page .sm-product,
.sc-page .sm-product-media img,
.sc-page .sm-order-btn,
.sc-page .sm-cart-float-btn,
.sc-page .sm-cart-checkout,
.sc-page .sm-notification,
.sc-page .sm-back a,
.sc-page .sm-lightbox-nav,
.sc-page .sm-form-group input,
.sc-page .sm-form-group textarea,
.sc-page .sm-cart-back,
.sc-page .sc-thumb {
  transition: none !important;
}

.sc-page .sm-info-chip:hover,
.sc-page .sm-info-chip--link:hover,
.sc-page .sm-social-btn:hover,
.sc-page .sm-contact-btn:hover,
.sc-page .sm-offer-card:hover,
.sc-page .sm-order-btn:hover,
.sc-page .sm-cart-float-btn:hover,
.sc-page .sm-cart-checkout:hover,
.sc-page .sm-back a:hover,
.sc-page .sm-tab:hover,
.sc-page .sc-gallery-nav:hover {
  transform: none !important;
}

.sc-page .sm-hero--cover .sm-hero-media {
  transform: none !important;
}

.sc-page .sm-notification:not([hidden]) {
  opacity: 1;
  transform: none;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.sc-page .sc-product {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
}

.sc-page .sc-product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 1px solid var(--sm-line);
  border-radius: 14px;
  overflow: hidden;
  background: #e8eef5;
}

.sc-page.sm-page--dark .sc-product-media,
.sc-page.sm-page--dark .sc-detail-media {
  background: rgba(241, 245, 249, 0.06);
}

.sc-page .sc-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sc-page .sc-product-media--empty {
  display: grid;
  place-items: center;
  color: var(--sm-muted);
  font-size: 1.5rem;
}

.sc-page .sc-product-body {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0 0.1rem;
}

.sc-page .sc-product-body h3 {
  margin: 0;
  font-family: "Zain", "Outfit", "Cairo", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--sm-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-page .sc-product-from {
  margin: 0;
  color: var(--sm-price);
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sc-page .sc-product-desc {
  margin: 0;
  color: var(--sm-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-page .sc-img-count {
  position: absolute;
  inset-inline-end: 8px;
  bottom: 8px;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  pointer-events: none;
}

.sc-page .sc-product-gallery {
  display: grid;
  gap: 0.65rem;
}

.sc-page .sc-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sc-page .sc-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  cursor: pointer;
  opacity: 0.72;
}

.sc-page .sc-thumb.is-active {
  opacity: 1;
  border-color: var(--sm-accent);
}

.sc-page .sc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-page .sc-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sm-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s var(--sm-ease), background 0.2s ease;
}

.sc-page.sm-page--dark .sc-gallery-nav {
  background: rgba(241, 245, 249, 0.9);
  color: #0c1220;
}

.sc-page .sc-gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.sc-page.sm-page--dark .sc-gallery-nav:hover {
  background: #f1f5f9;
}

.sc-page .sc-gallery-nav--prev {
  left: 12px;
}

.sc-page .sc-gallery-nav--next {
  right: 12px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.35));
}

/* Product detail */
.sc-page .sc-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--sm-line);
}

.sc-page .sc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--sm-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.sc-page .sc-detail-store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: var(--sm-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.sc-page .sc-detail-store img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--sm-line);
  flex: 0 0 auto;
}

.sc-page .sc-detail-store span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-page .sc-product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  padding: 0;
  margin: 0 0 1.5rem;
  max-width: none;
}

.sc-page .sc-detail-media {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--sm-line);
  background: #e8eef5;
}

.sc-page .sc-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-page .sc-detail-media--empty {
  display: grid;
  place-items: center;
  color: var(--sm-muted);
  font-size: 2rem;
}

.sc-page .sc-product-detail-info {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.sc-page .sc-product-detail-category {
  margin: 0;
  color: var(--sm-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sc-page .sc-product-detail-title {
  margin: 0;
  font-family: "Zain", "Outfit", "Cairo", sans-serif;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--sm-ink);
}

.sc-page .sc-product-detail-price {
  margin: 0;
  color: var(--sm-price);
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sc-page .sc-product-detail-desc {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.sc-page .sc-product-detail-desc h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--sm-ink);
}

.sc-page .sc-product-detail-desc p {
  margin: 0;
  color: var(--sm-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.sc-page .sc-product-detail-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.sc-page .sc-product-detail-actions .sm-qty-wrapper {
  width: fit-content;
}

.sc-page .sc-product-detail-actions .sm-order-btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 720px) {
  .sc-page .sc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .sc-page .sc-product-body h3 {
    font-size: 1.05rem;
  }

  .sc-page .sc-product-detail {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.75rem;
    align-items: start;
  }

  .sc-page .sc-thumb {
    width: 64px;
    height: 64px;
  }
}

@media (min-width: 1100px) {
  .sc-page .sc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .sc-page .sc-detail-top {
    flex-wrap: wrap;
  }

  .sc-page .sc-thumb {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 720px) {
  .sm-shell {
    padding: 0.85rem 0.7rem 1.25rem;
  }

  .sm-hero-banner {
    border-radius: 18px;
    padding: 1rem 0.85rem 1.1rem;
    min-height: 0;
  }

  .sm-hero-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .sm-hero-copy {
    display: grid;
    justify-items: center;
  }

  .sm-bio {
    text-align: center;
  }

  .sm-meta-row {
    justify-content: center;
  }

  .sm-hero-avatar {
    width: 88px;
    height: 88px;
  }

  .sm-grid,
  .sm-offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.5rem;
    row-gap: 0.35rem;
  }

  .sm-product {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    --sm-row-pad: 0.65rem 0.35rem;
    align-content: start;
    border-bottom: 0;
    border-radius: 14px;
    background: var(--sm-card);
    border: 1px solid var(--sm-line);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  }

  .sm-product:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .sm-product:hover {
    padding-inline: 0.35rem;
    transform: none;
  }

  .sm-product-media,
  .sm-product--noimg .sm-product-media {
    width: 100%;
    height: 88px;
    margin: 0;
    border-radius: 12px;
    box-shadow: none;
  }

  .sm-product-media--empty {
    font-size: 1.35rem;
    border-radius: 12px;
  }

  .sm-zoom {
    width: 22px;
    height: 22px;
    font-size: 0.55rem;
  }

  .sm-product-titles {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    align-items: start;
  }

  .sm-product-titles h3 {
    font-size: 0.88rem;
    max-width: none;
  }

  .sm-product-from {
    font-size: 0.8rem;
  }

  .sm-product-desc {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .sc-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1.75rem;
  }

  .sc-product {
    padding: 1.25rem;
  }

  .sc-product-titles h3 {
    font-size: 1.3rem;
  }

  .sc-product-from {
    font-size: 1.2rem;
  }

  .sc-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
  }

  .sm-size-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .sm-size-pill {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.45rem;
    border-radius: 8px;
  }

  .sm-size-name,
  .sm-size-price {
    font-size: 0.72rem;
  }

  .sm-addons {
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
  }

  .sm-addons-label,
  .sm-addons-label.header {
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
  }

  .sm-addon-label {
    font-size: 0.75rem;
    gap: 0.3rem;
  }

  .sm-addon-label strong {
    font-size: 0.7rem;
  }

  .sm-order-actions {
    gap: 0.3rem;
  }

  .sm-size-select {
    min-height: 32px;
    padding: 0.3rem 0.4rem;
    font-size: 0.72rem;
    border-radius: 8px;
  }

  .sm-qty-wrapper {
    width: 100%;
    justify-content: space-between;
    padding: 0.15rem;
    border-radius: 8px;
  }

  .sm-qty-btn {
    width: 30px;
    height: 30px;
  }

  .sm-qty-input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .sm-order-btn {
    min-height: 34px;
    padding: 0.4rem 0.5rem;
    font-size: 0.74rem;
    border-radius: 8px;
    gap: 0.25rem;
  }

  .sm-offers-section {
    padding: 0.75rem;
    border-radius: 16px;
  }

  .sm-offer-card {
    padding: 0.4rem;
    border-radius: 12px;
    gap: 0.4rem;
  }

  .sm-offer-media {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }

  .sm-offer-body h3 {
    font-size: 0.82rem;
  }

  .sm-offer-price-new {
    font-size: 0.85rem;
  }

  .sm-offer-price-old {
    font-size: 0.7rem;
  }

  .sm-offer-badge {
    top: 5px;
    inset-inline-end: 5px;
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
  }

  .sm-section-head {
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
  }

  .sm-section-head h2 {
    font-size: 1.05rem;
  }
}

@media (min-width: 720px) {
  .sm-grid {
    column-gap: 1.35rem;
  }

  .sm-product {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.65rem;
    --sm-row-pad: 0.8rem 0.2rem;
  }

  .sm-product-media {
    width: 56px;
    height: 56px;
  }

  .sm-product-titles {
    grid-template-columns: auto minmax(0.75rem, 1fr) auto;
  }

  .sm-product-rule {
    display: block;
  }

  .sm-product-titles h3 {
    font-size: 0.98rem;
  }

  .sm-product-from {
    font-size: 0.92rem;
  }

  .sm-offers-grid {
    gap: 0.9rem;
  }

  .sm-offer-media {
    aspect-ratio: 4 / 3;
  }

  .sm-offer-body h3 {
    font-size: 1rem;
  }
}

@media (min-width: 1100px) {
  .sm-shell {
    width: min(100%, 1040px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-shell,
  .sm-hero-avatar,
  .sm-product,
  .sm-offer-card,
  .sm-hero--cover .sm-hero-media {
    animation: none !important;
  }
}

/* =========================================================
   Dashboard helpers
   ========================================================= */
.sm-inline-form {
  margin-top: 0.75rem;
}

.sm-cat-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.sm-cat-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.sm-cat-edit {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}

.sm-cat-edit .form-control {
  flex: 1;
  min-width: 140px;
}

.sm-check {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.sm-section-title {
  margin: 1.25rem 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
}

.sm-item-list {
  display: grid;
  gap: 0.55rem;
}

.sm-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.sm-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #ecfdf5;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #0f766e;
}

.sm-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-item-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.sm-item-meta strong {
  font-size: 0.95rem;
}

.sm-item-meta small {
  color: var(--muted);
}

.sm-item-row .actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.sm-repeater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.sm-repeater {
  display: grid;
  gap: 0.45rem;
}

.sm-repeater-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
  gap: 0.4rem;
  align-items: center;
}

.sm-edit-thumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.sm-edit-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.modal--wide {
  max-width: 640px;
  width: min(100% - 1.5rem, 640px);
}

.smart-menu-link .label small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 600;
}

/* Dashboard offers section */
.sm-offer-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.sm-offer-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.sm-offer-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #fef3c7;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #d97706;
}

.sm-offer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-offer-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.sm-offer-meta strong {
  font-size: 0.95rem;
}

.sm-offer-meta small {
  color: var(--muted);
  font-weight: 700;
}

.sm-offer-row--expired {
  opacity: 0.6;
  background: #fff3f3;
}

.sm-offer-row--expired .sm-offer-thumb {
  background: #fee2e2;
  color: #dc2626;
}

/* Customer form for checkout */
.sm-customer-form {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #fff;
  z-index: 1000;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
}

.sm-customer-form:not([hidden]) {
  display: flex;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

html[dir="ltr"] .sm-customer-form {
  right: auto;
  left: 0;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

html[dir="ltr"] .sm-customer-form:not([hidden]) {
  animation: slideInLtr 0.3s ease;
}

@keyframes slideInLtr {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.sm-checkout-form {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sm-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sm-form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.sm-form-group input,
.sm-form-group textarea {
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.sm-form-group input:focus,
.sm-form-group textarea:focus {
  outline: none;
  border-color: #059669;
}

.sm-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.sm-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sm-cart-back {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sm-cart-back:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

@media (max-width: 720px) {
  .sm-customer-form {
    max-width: 100%;
  }

  .sm-checkout-form {
    padding: 1rem;
  }

  .sm-form-actions {
    flex-direction: column;
  }
}

/* WhatsApp toggle disabled state */
input[name="whatsapp_ordering_enabled"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive adjustments for cart */
@media (max-width: 480px) {
  .sm-cart-header {
    padding: 1rem;
  }

  .sm-cart-header h3 {
    font-size: 1.3rem;
  }

  .sm-cart-items {
    padding: 1rem;
  }

  .sm-cart-footer {
    padding: 1rem;
  }

  .sm-cart-total {
    font-size: 1rem;
  }

  .sm-cart-total strong {
    font-size: 1.2rem;
  }
}

/* =========================================================
   Smart commerce tabs + catalog gallery
   ========================================================= */
.sc-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.sc-tab {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.12));
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sc-tab i {
  color: #0f766e;
  font-size: 1.05rem;
}

.sc-tab span {
  font-weight: 800;
  font-size: 1rem;
}

.sc-tab small {
  color: var(--muted, #64748b);
  font-size: 0.82rem;
  font-weight: 600;
}

.sc-tab:hover {
  border-color: rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}

.sc-tab.is-active {
  border-color: #0f766e;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.12);
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 70%);
}

.sc-tabs-note {
  margin: 0 0 1.25rem;
  color: var(--muted, #64748b);
  font-size: 0.9rem;
  font-weight: 600;
}

.sc-edit-gallery,
.sc-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.sc-edit-gallery__item {
  display: grid;
  gap: 0.35rem;
  width: 88px;
  font-size: 0.78rem;
  font-weight: 700;
}

.sc-edit-gallery__item img,
.sc-image-preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.12));
}

@media (max-width: 640px) {
  .sc-tabs {
    grid-template-columns: 1fr;
  }
}

