/* ==========================================================================
   Store design system
   Brand colors come from the admin settings (--brand / --accent are set in
   the layout); every other shade is derived from them, so re-theming the
   store is a settings change, not a code change.
   Written with logical properties so the same rules serve RTL and LTR.
   ========================================================================== */

:root {
  --brand: #0B2A45;
  --accent: #C9A24D;

  --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-700: color-mix(in srgb, var(--brand) 88%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 7%, #fff);
  --brand-tint: color-mix(in srgb, var(--brand) 14%, #fff);
  --accent-ink: color-mix(in srgb, var(--accent) 62%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, #fff);
  --accent-tint: color-mix(in srgb, var(--accent) 28%, #fff);

  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F4EFE7;
  --text: #15202B;
  --muted: #5F6B77;
  --subtle: #8A94A0;
  --border: #E8E1D6;
  --border-strong: #D9CFC0;

  --success: #1E8A5A;
  --danger: #D0423A;
  --warning: #C98A12;
  --info: #2C7BB6;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;

  --shadow-xs: 0 1px 2px rgba(15, 25, 40, .06);
  --shadow-sm: 0 2px 6px -1px rgba(15, 25, 40, .08), 0 1px 2px rgba(15, 25, 40, .05);
  --shadow: 0 12px 28px -12px color-mix(in srgb, var(--brand) 35%, transparent);
  --shadow-lg: 0 28px 60px -24px color-mix(in srgb, var(--brand) 45%, transparent);

  --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --nav-h: 76px;

  --bs-body-font-family: var(--font-body);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-link-color-rgb: 11, 42, 69;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.25;
}
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; }
::selection { background: var(--accent-tint); color: var(--brand-ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.container-store { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 88px; }
.section-sm { padding-block: 56px; }
.section-surface { background: var(--surface); }
.section-cream { background: var(--surface-2); }
@media (max-width: 767.98px) {
  .section { padding-block: 60px; }
  .section-sm { padding-block: 40px; }
  .container-store { padding-inline: 16px; }
}

.text-muted-store { color: var(--muted) !important; }
.text-brand { color: var(--brand) !important; }
.text-accent { color: var(--accent-ink) !important; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-store {
  --b-bg: var(--brand);
  --b-color: #fff;
  --b-border: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.45rem;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem; line-height: 1.2;
  color: var(--b-color); background: var(--b-bg);
  border: 1.5px solid var(--b-border); border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-store:hover { color: var(--b-color); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-store:active { transform: translateY(0); }
.btn-store:disabled, .btn-store.disabled { opacity: .55; pointer-events: none; }
.btn-store .bi { font-size: 1.05em; }

.btn-brand { --b-bg: var(--brand); --b-border: var(--brand); --b-color: #fff; }
.btn-brand:hover { --b-bg: var(--brand-ink); --b-border: var(--brand-ink); }
.btn-accent { --b-bg: var(--accent); --b-border: var(--accent); --b-color: var(--brand-ink); }
.btn-accent:hover { --b-bg: color-mix(in srgb, var(--accent) 88%, #000); --b-border: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-outline { --b-bg: transparent; --b-border: var(--border-strong); --b-color: var(--text); }
.btn-outline:hover { --b-bg: var(--brand); --b-border: var(--brand); --b-color: #fff; }
.btn-light-store { --b-bg: #fff; --b-border: #fff; --b-color: var(--brand); }
.btn-ghost-light { --b-bg: rgba(255,255,255,.08); --b-border: rgba(255,255,255,.35); --b-color: #fff; backdrop-filter: blur(6px); }
.btn-ghost-light:hover { --b-bg: #fff; --b-color: var(--brand); --b-border: #fff; }
.btn-danger-soft { --b-bg: color-mix(in srgb, var(--danger) 10%, #fff); --b-border: transparent; --b-color: var(--danger); }
.btn-whatsapp { --b-bg: #1FAF5A; --b-border: #1FAF5A; --b-color: #fff; }
.btn-sm-store { padding: .55rem 1rem; font-size: .86rem; }
.btn-lg-store { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  position: relative; cursor: pointer;
  transition: all .2s var(--ease);
}
.icon-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.icon-btn .bi { font-size: 1.15rem; line-height: 1; }
.icon-btn .count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 20px; height: 20px; padding-inline: 5px;
  border-radius: 999px; background: var(--accent); color: var(--brand-ink);
  font-size: .7rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--surface);
}
.icon-btn.is-active, .icon-btn.is-active:hover { background: color-mix(in srgb, var(--danger) 10%, #fff); color: var(--danger); border-color: transparent; }

/* --------------------------------------------------------------------------
   Badges, pills, chips
   -------------------------------------------------------------------------- */
.badge-store {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; line-height: 1.3;
  background: var(--brand-soft); color: var(--brand);
}
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge-success { background: color-mix(in srgb, var(--success) 12%, #fff); color: var(--success); }
.badge-danger { background: color-mix(in srgb, var(--danger) 11%, #fff); color: var(--danger); }
.badge-warning { background: color-mix(in srgb, var(--warning) 14%, #fff); color: var(--warning); }
.badge-info { background: color-mix(in srgb, var(--info) 12%, #fff); color: var(--info); }
.badge-primary { background: var(--brand-soft); color: var(--brand); }
.badge-secondary { background: var(--surface-2); color: var(--muted); }
.badge-solid { background: var(--brand); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 500; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--accent); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: .88rem; font-weight: 500;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip .chip-count { font-size: .75rem; opacity: .7; }

/* --------------------------------------------------------------------------
   Top bar & navigation
   -------------------------------------------------------------------------- */
.topbar { background: var(--brand-ink); color: rgba(255,255,255,.78); font-size: .82rem; }
.topbar .container-store { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: var(--accent); }
.topbar-info { display: flex; align-items: center; gap: 1.4rem; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-social { display: flex; align-items: center; gap: .9rem; }
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
@media (max-width: 767.98px) { .topbar-info .hide-sm { display: none !important; } }

.site-nav {
  position: sticky; top: 0; z-index: 1030;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 30px -18px rgba(11,42,69,.35); }
.site-nav .container-store { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); }
.brand-mark { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); flex-shrink: 0; }
.brand-mark:hover { color: var(--text); }
.brand-mark img { height: 46px; width: auto; max-width: 150px; object-fit: contain; }
.brand-logo-fallback {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-ink));
  color: var(--accent); font-size: 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.brand-text small { color: var(--muted); font-size: .72rem; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-menu { display: flex; align-items: center; gap: .25rem; margin: 0 auto; padding: 0; list-style: none; }
.nav-menu > li > a, .nav-menu > li > button {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .95rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 400; font-size: .95rem;
  color: var(--text); background: none; border: 0;
  transition: all .2s var(--ease);
}
.nav-menu > li > a:hover, .nav-menu > li > button:hover { color: var(--brand); background: var(--brand-soft); }
.nav-menu > li > a.active { color: var(--brand); background: var(--brand-soft); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: .55rem; }
.nav-toggler { display: none; }

.dropdown-menu-store {
  border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem;
  box-shadow: var(--shadow-lg); min-width: 240px; background: var(--surface);
}
.dropdown-menu-store .dropdown-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .8rem; border-radius: var(--radius-xs);
  font-size: .92rem; color: var(--text);
}
.dropdown-menu-store .dropdown-item .bi { color: var(--muted); font-size: 1.05rem; }
.dropdown-menu-store .dropdown-item:hover, .dropdown-menu-store .dropdown-item:focus { background: var(--brand-soft); color: var(--brand); }
.dropdown-menu-store .dropdown-item:hover .bi { color: var(--brand); }
.dropdown-menu-store .dropdown-header { font-size: .78rem; color: var(--muted); padding: .5rem .8rem; }
.user-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .3rem .3rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .9rem; }
[dir="rtl"] .user-chip { padding: .3rem .9rem .3rem .3rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--brand)));
  color: #fff; font-weight: 700; font-size: .85rem; font-family: var(--font-display);
}
.avatar-lg { width: 72px; height: 72px; font-size: 1.6rem; }

@media (max-width: 1199.98px) {
  .nav-menu { display: none; }
  .nav-toggler { display: inline-grid; }
  .brand-text small { display: none; }
}
@media (max-width: 575.98px) {
  .site-nav .container-store { gap: .75rem; }
  .nav-actions { gap: .35rem; }
  .icon-btn { width: 40px; height: 40px; }
  .nav-actions .hide-xs { display: none !important; }
  .brand-text strong { font-size: 1rem; }
  .brand-mark img { height: 38px; }
  .brand-logo-fallback { width: 40px; height: 40px; }
}

/* Mobile menu (offcanvas) */
.offcanvas-store { background: var(--surface); border: 0 !important; width: min(360px, 88vw) !important; }
.offcanvas-store .offcanvas-header { border-bottom: 1px solid var(--border); padding: 1.1rem 1.25rem; }
.mobile-links { list-style: none; padding: .75rem; margin: 0; }
.mobile-links a {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem; border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-display); font-size: 1rem;
}
.mobile-links a .bi { color: var(--accent-ink); font-size: 1.15rem; }
.mobile-links a:hover, .mobile-links a.active { background: var(--brand-soft); color: var(--brand); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 1060;
  background: color-mix(in srgb, var(--brand-ink) 72%, transparent);
  backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 16px;
}
.search-overlay.open { display: flex; animation: fadeIn .2s var(--ease); }
.search-box { width: min(680px, 100%); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box form { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.search-box input { flex: 1; border: 0; outline: 0; font-size: 1.1rem; background: transparent; color: var(--text); }
.search-results { max-height: 50vh; overflow: auto; padding: .5rem; }
.search-results a { display: flex; align-items: center; gap: .85rem; padding: .6rem .75rem; border-radius: var(--radius-sm); color: var(--text); }
.search-results a:hover, .search-results a.focused { background: var(--brand-soft); }
.search-results img, .search-results .thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--subtle); }
.search-hint { padding: 1rem 1.25rem; color: var(--muted); font-size: .88rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 520px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 60%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-ink) 100%);
  color: #fff;
  padding-block: 96px 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Cpath d='M36 0v72M0 36h72'/%3E%3Ccircle cx='36' cy='36' r='14'/%3E%3C/g%3E%3C/svg%3E");
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 600; line-height: 1.15; margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--accent); }
.hero-lead { color: rgba(255,255,255,.78); font-size: 1.12rem; max-width: 560px; margin-bottom: 2rem; }
.hero .eyebrow { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.6rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: #fff; line-height: 1.1; }
.hero-stat span { font-size: .85rem; color: rgba(255,255,255,.65); }

.hero-visual { position: relative; min-height: 460px; }
.hero-frame {
  position: absolute; inset: 0 0 0 8%;
  border-radius: 200px 200px var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 35%, var(--brand)) 0%, var(--brand-ink) 100%);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.1);
}
[dir="rtl"] .hero-frame { inset: 0 8% 0 0; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame .hero-emblem { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--accent) 80%, #fff); }
.hero-frame .hero-emblem svg { width: 62%; height: auto; opacity: .9; }
.hero-float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem; border-radius: var(--radius);
  background: rgba(255,255,255,.96); color: var(--text);
  box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.hero-float .float-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 1.25rem; }
.hero-float strong { display: block; font-family: var(--font-display); font-size: .95rem; font-weight: 600; }
.hero-float small { color: var(--muted); font-size: .78rem; }
.hero-float.f1 { top: 12%; inset-inline-start: -2%; }
.hero-float.f2 { bottom: 10%; inset-inline-end: -3%; animation-delay: -3s; }
@media (max-width: 991.98px) {
  .hero { padding-block: 64px 80px; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero .eyebrow::before { display: none; }
  .hero-visual { min-height: 340px; margin-top: 3rem; }
  .hero-frame, [dir="rtl"] .hero-frame { inset: 0 6%; }
  .hero-float.f1 { inset-inline-start: 0; }
  .hero-float.f2 { inset-inline-end: 0; }
}
@media (max-width: 575.98px) { .hero-float { display: none; } }

/* Trust strip overlapping the hero */
.trust-strip { position: relative; z-index: 3; margin-top: -56px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.4rem; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--border); }
.trust-item .ti-icon { width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.4rem; }
.trust-item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.trust-item small { color: var(--muted); font-size: .82rem; }
@media (max-width: 991.98px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 575.98px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--border); }
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; margin: .55rem 0 .4rem; }
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }
.section-head.centered { flex-direction: column; align-items: center; text-align: center; }
.section-head.centered .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 500; }
.link-arrow .bi { transition: transform .2s var(--ease); }
.link-arrow:hover .bi { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .bi { transform: translateX(-4px); }

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */
.page-header {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-ink) 100%);
  color: #fff; padding-block: 56px 60px;
}
.page-header::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  inset-inline-end: -160px; top: -260px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%);
}
.page-header h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; margin: .4rem 0 .35rem; }
.page-header p { color: rgba(255,255,255,.72); margin: 0; max-width: 640px; }
.breadcrumb-store { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; list-style: none; padding: 0; margin: 0; font-size: .85rem; color: rgba(255,255,255,.6); }
.breadcrumb-store a { color: rgba(255,255,255,.8); }
.breadcrumb-store a:hover { color: var(--accent); }
.breadcrumb-store li + li::before { content: "/"; margin-inline-end: .45rem; opacity: .5; }

/* --------------------------------------------------------------------------
   Cards: shared
   -------------------------------------------------------------------------- */
.card-store {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.card-store .card-pad { padding: 1.6rem; }
.card-title-store { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.6rem; border-bottom: 1px solid var(--border); }

.media-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(150deg, var(--brand-soft), var(--surface-2));
  color: color-mix(in srgb, var(--brand) 45%, var(--accent));
}
.media-fallback .bi { font-size: 3rem; opacity: .75; }

/* Category tiles */
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 210px; padding: 1.4rem; border-radius: var(--radius-lg);
  overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(150deg, var(--brand), var(--brand-ink));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, color-mix(in srgb, var(--brand-ink) 88%, transparent) 100%); }
.cat-tile .cat-icon { position: absolute; top: 1.2rem; inset-inline-start: 1.2rem; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); color: var(--accent); font-size: 1.3rem; }
.cat-tile h3 { color: #fff; font-size: 1.15rem; font-weight: 600; margin: 0 0 .2rem; }
.cat-tile span { color: rgba(255,255,255,.75); font-size: .85rem; display: inline-flex; align-items: center; gap: .35rem; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.cat-tile:hover img { transform: scale(1.06); }

/* Product card */
.product-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-badges { position: absolute; top: .85rem; inset-inline-start: .85rem; display: flex; flex-direction: column; gap: .35rem; z-index: 2; }
.product-badges .badge-store { box-shadow: var(--shadow-sm); }
.product-card .wish-btn { position: absolute; top: .75rem; inset-inline-end: .75rem; z-index: 2; width: 38px; height: 38px; box-shadow: var(--shadow-sm); border-color: transparent; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.2rem; }
.product-cat { font-size: .78rem; color: var(--accent-ink); font-weight: 600; margin-bottom: .3rem; }
.product-title { font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.45; margin: 0 0 .4rem; }
.product-title a { color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-title a:hover { color: var(--brand); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .75rem; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--brand); white-space: nowrap; }
.price-old { color: var(--subtle); text-decoration: line-through; font-size: .85rem; white-space: nowrap; }
.price-lg { font-size: 1.9rem; }
.add-btn { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: all .2s var(--ease); }
.add-btn:hover { background: var(--accent); color: var(--brand-ink); transform: rotate(-6deg) scale(1.05); }
.add-btn:disabled { background: var(--surface-2); color: var(--subtle); transform: none; }

.stars { display: inline-flex; align-items: center; gap: 2px; color: #E3A008; font-size: .82rem; }
.stars .bi-star { color: var(--border-strong); }
.stars-count { color: var(--muted); font-size: .78rem; margin-inline-start: .3rem; }

/* Service card */
.service-card {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .3s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-media .badge-store { position: absolute; top: .9rem; inset-inline-start: .9rem; background: rgba(255,255,255,.94); }
.service-body { padding: 1.3rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 .45rem; }
.service-body h3 a { color: var(--text); }
.service-body p { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--border); }
.meta-item { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .85rem; }
.meta-item .bi { color: var(--accent-ink); }

/* Animal card */
.animal-card { position: relative; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; transition: all .3s var(--ease); }
.animal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.animal-media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; display: block; }
.animal-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.animal-card:hover .animal-media img { transform: scale(1.05); }
.animal-media .price-tag { position: absolute; bottom: .9rem; inset-inline-start: .9rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--brand); font-family: var(--font-display); font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-sm); }
.animal-body { padding: 1.2rem 1.3rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.animal-body h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .65rem; }
.animal-body h3 a { color: var(--text); }
.spec-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.spec { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: .8rem; }
.spec .bi { color: var(--accent-ink); }

/* Doctor card */
.doctor-card { height: 100%; text-align: center; padding: 1.8rem 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all .3s var(--ease); display: flex; flex-direction: column; align-items: center; }
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.doctor-photo { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; margin-bottom: 1rem; padding: 4px; background: conic-gradient(from 180deg, var(--accent), var(--brand), var(--accent)); }
.doctor-photo img, .doctor-photo .media-fallback { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); }
.doctor-photo .media-fallback .bi { font-size: 2.4rem; }
.doctor-card h3 { font-size: 1.08rem; font-weight: 600; margin: 0 0 .2rem; }
.doctor-card h3 a { color: var(--text); }
.doctor-card .spec-line { color: var(--accent-ink); font-size: .86rem; font-weight: 600; margin-bottom: .75rem; }
.doctor-card .doc-stats { display: flex; justify-content: center; gap: 1.2rem; color: var(--muted); font-size: .82rem; margin-bottom: 1.1rem; }
.doctor-card .btn-store { margin-top: auto; }

/* Testimonials */
.testimonial { height: 100%; padding: 1.8rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); position: relative; }
.testimonial::before { content: "\201C"; position: absolute; top: .4rem; inset-inline-end: 1.4rem; font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--accent-tint); }
.testimonial p { color: var(--text); margin: .9rem 0 1.3rem; }
.testimonial .who { display: flex; align-items: center; gap: .75rem; }
.testimonial .who strong { display: block; font-size: .95rem; }
.testimonial .who small { color: var(--muted); font-size: .8rem; }

/* Promo / CTA bands */
.promo-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.6rem);
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-ink) 60%);
  color: #fff;
}
.promo-band::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; border-radius: 50%; inset-inline-end: -120px; bottom: -220px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%); }
.promo-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; margin: .6rem 0 .6rem; }
.promo-band p { color: rgba(255,255,255,.75); margin-bottom: 1.6rem; max-width: 540px; }
.promo-band .eyebrow { color: var(--accent); }
.promo-accent { background: linear-gradient(120deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #fff) 100%); color: var(--brand-ink); }
.promo-accent h2 { color: var(--brand-ink); }
.promo-accent p { color: color-mix(in srgb, var(--brand-ink) 80%, transparent); }
.promo-accent .eyebrow { color: var(--brand); }
.promo-accent .eyebrow::before { background: var(--brand); }
.promo-icon { font-size: 7rem; line-height: 1; color: color-mix(in srgb, var(--accent) 70%, transparent); opacity: .9; }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.stats-band > div { background: var(--surface); padding: 2rem 1.2rem; text-align: center; }
.stats-band strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--brand); line-height: 1.1; }
.stats-band span { color: var(--muted); font-size: .88rem; }
@media (max-width: 767.98px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-label-store { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .45rem; color: var(--text); }
.form-label-store .req { color: var(--danger); }
.input-store, .select-store, textarea.input-store {
  width: 100%; padding: .78rem 1rem;
  font-size: .95rem; color: var(--text); font-family: var(--font-body);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input-store:focus, .select-store:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.input-store.is-invalid, .select-store.is-invalid { border-color: var(--danger); }
.select-store { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235F6B77' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 4.6a.75.75 0 0 1 1.06 0L8 9.94l5.34-5.34a.75.75 0 1 1 1.06 1.06l-5.87 5.87a.75.75 0 0 1-1.06 0L1.6 5.66a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px; padding-inline-end: 2.6rem; }
[dir="rtl"] .select-store { background-position: left 1rem center; }
textarea.input-store { min-height: 120px; resize: vertical; }
.input-icon { position: relative; }
.input-icon .bi { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 1rem; color: var(--subtle); pointer-events: none; }
.input-icon .input-store { padding-inline-start: 2.7rem; }
.invalid-msg { color: var(--danger); font-size: .82rem; margin-top: .35rem; }
.form-hint { color: var(--muted); font-size: .82rem; margin-top: .35rem; }
.check-store { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .92rem; }
.check-store input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Option cards (payment methods, time slots, doctors) */
.option-card { position: relative; display: block; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card .option-body {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--surface);
  transition: all .2s var(--ease);
}
.option-card .option-body .option-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); font-size: 1.25rem; }
.option-card .option-body strong { display: block; font-size: .95rem; }
.option-card .option-body small { color: var(--muted); font-size: .82rem; }
.option-card .option-check { margin-inline-start: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; display: grid; place-items: center; }
.option-card input:checked + .option-body { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 8%, transparent); }
.option-card input:checked + .option-body .option-check { border-color: var(--brand); background: var(--brand); }
.option-card input:checked + .option-body .option-check::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.option-card input:focus-visible + .option-body { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.option-card input:disabled + .option-body { opacity: .45; cursor: not-allowed; background: var(--surface-2); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .55rem; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: block; text-align: center; padding: .6rem .4rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface); font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .15s var(--ease); }
.slot input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot input:disabled + span { background: var(--surface-2); color: var(--subtle); text-decoration: line-through; cursor: not-allowed; }
.slot span:hover { border-color: var(--brand); }

/* Quantity stepper */
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); overflow: hidden; }
.qty-stepper button { width: 40px; height: 42px; border: 0; background: none; color: var(--text); font-size: 1.05rem; }
.qty-stepper button:hover { background: var(--brand-soft); color: var(--brand); }
.qty-stepper input { width: 48px; text-align: center; border: 0; outline: 0; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Steps indicator */
.steps { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: .55rem; color: var(--subtle); font-size: .9rem; font-weight: 500; }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border-strong); font-size: .82rem; font-weight: 700; }
.step.done .n, .step.current .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.current { color: var(--text); }
.step.done { color: var(--brand); }
.step-sep { width: 36px; height: 2px; background: var(--border); border-radius: 2px; }

/* --------------------------------------------------------------------------
   Shop layout pieces
   -------------------------------------------------------------------------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.1rem; margin-bottom: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.toolbar .result-count { color: var(--muted); font-size: .9rem; }
.filter-card { position: sticky; top: calc(var(--nav-h) + 20px); }
.filter-group + .filter-group { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.filter-group h6 { font-family: var(--font-display); font-weight: 600; font-size: .95rem; margin-bottom: .85rem; }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.filter-list a { display: flex; align-items: center; justify-content: space-between; padding: .5rem .7rem; border-radius: var(--radius-xs); color: var(--text); font-size: .92rem; }
.filter-list a:hover { background: var(--brand-soft); color: var(--brand); }
.filter-list a.active { background: var(--brand); color: #fff; }
.filter-list a .cnt { font-size: .78rem; opacity: .65; }

.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; }
.gallery-thumbs button { width: 78px; height: 78px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); }
.gallery-thumbs button.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; margin: .6rem 0 .8rem; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; color: var(--muted); font-size: .9rem; }
.stock-in { color: var(--success); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.stock-out { color: var(--danger); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.perk { display: flex; align-items: center; gap: .6rem; padding: .85rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .82rem; color: var(--muted); }
.perk .bi { color: var(--brand); font-size: 1.2rem; }
@media (max-width: 575.98px) { .perks { grid-template-columns: 1fr; } }

.tabs-store { display: flex; gap: .4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.6rem; overflow-x: auto; }
.tabs-store button { padding: .85rem 1.2rem; border: 0; background: none; color: var(--muted); font-family: var(--font-display); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-store button.active { color: var(--brand); border-bottom-color: var(--accent); }
.prose { color: var(--text); line-height: 1.9; }
.prose p:last-child { margin-bottom: 0; }

.summary-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .55rem; font-size: .95rem; }
.summary-row span:first-child { color: var(--muted); }
.summary-total { border-top: 1px dashed var(--border-strong); margin-top: .5rem; padding-top: 1rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.summary-total span:first-child { color: var(--text); }

.line-item { display: flex; align-items: center; gap: 1rem; padding-block: 1.1rem; }
.line-item + .line-item { border-top: 1px solid var(--border); }
.line-thumb { width: 84px; height: 84px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.line-thumb img, .line-thumb .media-fallback { width: 100%; height: 100%; object-fit: cover; }
.line-thumb .media-fallback .bi { font-size: 1.6rem; }

/* Status timeline */
.timeline-store { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-store li { position: relative; padding-inline-start: 2.4rem; padding-bottom: 1.4rem; }
.timeline-store li::before { content: ""; position: absolute; inset-inline-start: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.timeline-store li:last-child::before { display: none; }
.timeline-store .dot { position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--subtle); font-size: .85rem; border: 2px solid var(--border); }
.timeline-store li.done .dot { background: var(--brand); color: #fff; border-color: var(--brand); }
.timeline-store li.done::before { background: var(--brand); }
.timeline-store li.current .dot { background: var(--accent); border-color: var(--accent); color: var(--brand-ink); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline-store strong { display: block; font-size: .95rem; }
.timeline-store small { color: var(--muted); }

/* Tables */
.table-store { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-store th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: .85rem 1rem; background: var(--surface-2); text-align: start; white-space: nowrap; }
.table-store td { padding: 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
.table-store tr:hover td { background: color-mix(in srgb, var(--brand) 2.5%, transparent); }

/* Account area */
.account-nav { list-style: none; padding: .6rem; margin: 0; display: grid; gap: .2rem; }
.account-nav a { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: var(--radius-sm); color: var(--text); font-size: .94rem; }
.account-nav a .bi { color: var(--muted); font-size: 1.1rem; }
.account-nav a:hover, .account-nav a.active { background: var(--brand-soft); color: var(--brand); }
.account-nav a.active .bi, .account-nav a:hover .bi { color: var(--brand); }
.stat-tile { padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; gap: 1rem; }
.stat-tile .st-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.3rem; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.stat-tile strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.stat-tile small { color: var(--muted); font-size: .82rem; }

/* Empty state */
.empty-state { text-align: center; padding: 3.5rem 1.5rem; }
.empty-state .es-icon { width: 96px; height: 96px; margin: 0 auto 1.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 2.6rem; }
.empty-state h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: .45rem; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 1.4rem; }

/* Pagination */
.pagination { gap: .35rem; flex-wrap: wrap; justify-content: center; }
.pagination .page-link { border-radius: 12px !important; border: 1px solid var(--border); color: var(--text); min-width: 42px; height: 42px; display: grid; place-items: center; font-weight: 500; }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-link:hover { background: var(--brand-soft); color: var(--brand); }

/* Alerts */
.alert-store { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius); border: 1px solid; font-size: .92rem; }
.alert-store .bi { font-size: 1.2rem; line-height: 1.3; }
.alert-info { background: color-mix(in srgb, var(--info) 7%, #fff); border-color: color-mix(in srgb, var(--info) 25%, #fff); color: color-mix(in srgb, var(--info) 75%, #000); }
.alert-warning { background: color-mix(in srgb, var(--warning) 8%, #fff); border-color: color-mix(in srgb, var(--warning) 28%, #fff); color: color-mix(in srgb, var(--warning) 70%, #000); }
.alert-success { background: color-mix(in srgb, var(--success) 7%, #fff); border-color: color-mix(in srgb, var(--success) 25%, #fff); color: color-mix(in srgb, var(--success) 75%, #000); }
.alert-danger { background: color-mix(in srgb, var(--danger) 7%, #fff); border-color: color-mix(in srgb, var(--danger) 25%, #fff); color: color-mix(in srgb, var(--danger) 75%, #000); }

/* Auth pages */
.auth-wrap { min-height: calc(100vh - var(--nav-h) - 40px); display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--brand), var(--brand-ink));
  color: #fff; padding: 4rem; display: flex; flex-direction: column; justify-content: flex-end;
}
.auth-side::before { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; border-radius: 50%; inset-inline-end: -200px; top: -200px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 65%); }
.auth-side h2 { color: #fff; font-size: 2.2rem; font-weight: 600; }
.auth-side p { color: rgba(255,255,255,.72); max-width: 440px; }
.auth-side .auth-emblem { position: absolute; top: 3rem; inset-inline-start: 4rem; color: var(--accent); font-size: 3rem; }
.auth-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.auth-points li { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.85); }
.auth-points .bi { color: var(--accent); }
.auth-main { display: grid; place-items: center; padding: 3rem 1.5rem; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 1.9rem; font-weight: 600; margin-bottom: .4rem; }
.divider-text { display: flex; align-items: center; gap: .8rem; color: var(--subtle); font-size: .82rem; margin: 1.4rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--brand-ink); color: rgba(255,255,255,.7); padding-top: 80px; margin-top: 0; position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; border-radius: 50%; inset-inline-start: -260px; top: -320px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%); }
.site-footer h5 { color: #fff; font-size: 1.02rem; font-weight: 600; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .92rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; font-size: .92rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .bi { color: var(--accent); margin-top: .2rem; }
.footer-brand p { margin: 1rem 0 1.3rem; max-width: 340px; font-size: .92rem; }
.footer-brand .brand-mark, .footer-brand .brand-mark:hover { color: #fff; }
.footer-brand .brand-text small { color: rgba(255,255,255,.55); }
.social-row { display: flex; gap: .55rem; }
.social-row a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: all .2s var(--ease); }
.social-row a:hover { background: var(--accent); color: var(--brand-ink); transform: translateY(-3px); }
.footer-bottom { margin-top: 56px; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.pay-icons { display: flex; gap: .45rem; align-items: center; }
.pay-icons span { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 8px; background: rgba(255,255,255,.07); font-size: .78rem; color: rgba(255,255,255,.8); }

/* Floating actions */
.fab-whatsapp { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 1040; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1FAF5A; color: #fff; font-size: 1.7rem; box-shadow: 0 14px 30px -10px rgba(31,175,90,.6); transition: transform .2s var(--ease); }
.fab-whatsapp:hover { color: #fff; transform: scale(1.08); }
.fab-whatsapp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FAF5A; animation: pulse-ring 2.4s ease-out infinite; }
.back-top { position: fixed; bottom: 92px; inset-inline-end: 30px; z-index: 1040; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.back-top.show { opacity: 1; pointer-events: auto; }

/* Toasts */
.toast-stack { position: fixed; z-index: 1090; top: 92px; inset-inline-end: 20px; display: grid; gap: .6rem; width: min(380px, calc(100vw - 40px)); }
.toast-store {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .95rem 1.05rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: toastIn .35s var(--ease);
}
.toast-store .t-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.toast-store.success .t-icon { background: color-mix(in srgb, var(--success) 12%, #fff); color: var(--success); }
.toast-store.error .t-icon { background: color-mix(in srgb, var(--danger) 12%, #fff); color: var(--danger); }
.toast-store.info .t-icon { background: var(--brand-soft); color: var(--brand); }
.toast-store p { margin: 0; font-size: .92rem; flex: 1; padding-top: .3rem; }
.toast-store .t-close { border: 0; background: none; color: var(--subtle); padding: .2rem; }
.toast-store.hide { animation: toastOut .3s var(--ease) forwards; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-float, .fab-whatsapp::after { animation: none; }
  * { scroll-behavior: auto !important; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading { position: relative; pointer-events: none; color: transparent !important; }
.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; inset: 0; margin: auto; border-radius: 50%; border: 2px solid currentColor; border-color: #fff #fff transparent transparent; animation: spin .7s linear infinite; }
.add-btn.is-loading::after { border-color: #fff #fff transparent transparent; }

/* Responsive offcanvas (shop filters) is a normal column on large screens */
@media (min-width: 992px) {
  .offcanvas-lg.offcanvas-store { width: auto !important; background: transparent; }
}
.account-logout { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .75rem .9rem; border: 0; border-radius: var(--radius-sm); background: none; color: var(--danger); font-size: .94rem; text-align: start; }
.account-logout:hover { background: color-mix(in srgb, var(--danger) 8%, #fff); }
.min-w-0 { min-width: 0; }

/* Category tiles without an uploaded image get a decorated brand background */
.cat-tile.no-image {
  background:
    radial-gradient(420px 240px at 100% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 0v48M0 24h48' stroke='%23fff' stroke-opacity='.05'/%3E%3C/svg%3E"),
    linear-gradient(150deg, var(--brand), var(--brand-ink));
}
.cat-tile.no-image .cat-watermark { position: absolute; inset-inline-end: 6%; top: 50%; transform: translateY(-58%); font-family: var(--font-display); font-weight: 600; font-size: 9rem; line-height: 1; color: rgba(255,255,255,.07); z-index: -1; pointer-events: none; }
.cat-tile:nth-child(odd).no-image { background-position: 0 0, 0 0, 0 0; }
