@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* White Theme (Default Light Mode) */
  --bg-canvas: #F6F9F7;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #EDF5F0;
  --bg-muted: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --border-strong: #CBD5E1;
  --brand: #059669;
  --brand-hover: #047857;
  --brand-light: #ECFDF5;
  --brand-glow: rgba(5, 150, 105, 0.16);
  --accent-amber: #EA580C;
  --accent-amber-bg: #FFF7ED;
  --whatsapp: #16A34A;
  --whatsapp-hover: #15803D;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 22px 48px rgba(15, 23, 42, 0.12);
  --hero-grad: linear-gradient(135deg, #064E3B 0%, #059669 58%, #10B981 100%);
  --deal-grad: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  --deal-border: #FED7AA;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

html[data-theme="dark"] {
  /* Black / Carbon Dark Theme */
  --bg-canvas: #080C10;
  --bg-surface: #10171E;
  --bg-elevated: #16202A;
  --bg-subtle: #11241E;
  --bg-muted: #1B2632;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border-color: #1E293B;
  --border-strong: #334155;
  --brand: #10B981;
  --brand-hover: #34D399;
  --brand-light: rgba(16, 185, 129, 0.14);
  --brand-glow: rgba(16, 185, 129, 0.24);
  --accent-amber: #FB923C;
  --accent-amber-bg: rgba(251, 146, 60, 0.14);
  --whatsapp: #22C55E;
  --whatsapp-hover: #16A34A;
  --danger: #F87171;
  --danger-bg: rgba(248, 113, 113, 0.14);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.65);
  --hero-grad: linear-gradient(135deg, #042F2E 0%, #065F46 55%, #047857 100%);
  --deal-grad: linear-gradient(135deg, #1F1610 0%, #2B1B10 100%);
  --deal-border: #7C2D12;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.55;
  transition: background-color 0.22s ease, color 0.22s ease;
  padding-bottom: 92px;
  overflow-x: hidden;
}

html[dir="ltr"] body {
  font-family: 'Plus Jakarta Sans', 'Cairo', system-ui, sans-serif;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement & Delivery Ribbon */
.top-ribbon {
  background: #064E3B;
  color: #ECFDF5;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .top-ribbon {
  background: #042F2E;
}

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

.ribbon-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
  display: inline-block;
}

.coupon-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px dashed rgba(253, 224, 71, 0.65);
  color: #FEF08A;
  padding: 2px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.coupon-pill:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

/* Sticky Main Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--hero-grad);
  display: grid;
  place-items: center;
  color: #FFFFFF;
  box-shadow: 0 8px 18px var(--brand-glow);
}

.brand-title {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

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

/* Branch Pill + Search Bar */
.header-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 620px;
}

.branch-selector-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.search-wrap {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border-radius: 13px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-muted);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

html[dir="ltr"] .search-input {
  padding: 10px 16px 10px 40px;
}

.search-input:focus {
  outline: none;
  background: var(--bg-surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
}

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

html[dir="ltr"] .search-icon {
  right: auto;
  left: 13px;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn, .pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 41px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
}

.icon-btn:hover, .pill-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.owner-link-btn {
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  border-color: color-mix(in srgb, var(--accent-amber) 32%, transparent);
}

.cart-header-btn {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
  padding: 0 16px;
  box-shadow: 0 6px 16px var(--brand-glow);
}

.cart-header-btn:hover {
  background: var(--brand-hover);
  color: #FFFFFF;
}

.cart-count-badge {
  background: #FFFFFF;
  color: #065F46;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
}

/* Quick Nav Links Bar */
.subnav-bar {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.subnav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  transition: color 0.15s ease;
}

.subnav-links a:hover {
  color: var(--brand);
}

/* Bento Hero Section */
.hero-section {
  padding: 22px 0 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 18px;
}

.hero-main-card {
  background: var(--hero-grad);
  border-radius: var(--radius-xl);
  padding: 34px 36px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.hero-main-card::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 70%);
  top: -90px;
  left: -80px;
  pointer-events: none;
}

.hero-content {
  max-width: 500px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #FFFFFF;
  color: #064E3B;
  border: none;
  padding: 12px 22px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.16s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 12px 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-art-cluster {
  display: grid;
  grid-template-columns: repeat(2, 98px);
  gap: 10px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.hero-mini-tile {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 8px;
  height: 98px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .hero-mini-tile {
  background: rgba(16, 23, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Side Promo Deal Card */
.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deal-spotlight-card {
  flex: 1;
  background: var(--deal-grad);
  border: 1px solid var(--deal-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.countdown-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.time-box {
  background: var(--accent-amber);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.84rem;
  padding: 4px 8px;
  border-radius: 8px;
  min-width: 34px;
  text-align: center;
}

.whatsapp-banner-mini {
  background: var(--bg-surface);
  border: 1.5px solid color-mix(in srgb, var(--whatsapp) 35%, var(--border-color));
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

/* Value Trust Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0 22px;
}

.trust-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-title {
  font-size: 0.88rem;
  font-weight: 800;
}

.trust-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Department Pills Strip */
.dept-section {
  margin: 8px 0 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.32rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 9px;
}

.dept-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.dept-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.dept-pill:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.dept-pill.active {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 8px 20px var(--brand-glow);
}

.dept-count {
  font-size: 0.74rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-secondary);
}

.dept-pill.active .dept-count {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* Filter & Sort Toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sort-select {
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

/* Product Grid & Studio Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border-color));
}

.product-card.out-of-stock {
  opacity: 0.72;
}

.product-visual {
  height: 146px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 8px;
}

.product-visual svg {
  max-height: 132px;
  transition: transform 0.22s ease;
}

.product-card:hover .product-visual svg {
  transform: scale(1.06);
}

.discount-ribbon {
  position: absolute;
  top: 9px;
  right: 9px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.73rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}

html[dir="ltr"] .discount-ribbon {
  right: auto;
  left: 9px;
}

.origin-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  background: color-mix(in srgb, var(--bg-surface) 90%, transparent);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-size: 0.71rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  z-index: 2;
}

html[dir="ltr"] .origin-tag {
  left: auto;
  right: 9px;
}

.soldout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  display: grid;
  place-items: center;
  z-index: 3;
}

.soldout-pill {
  background: #0F172A;
  color: #F8FAFC;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
}

.product-unit {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-light);
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  width: fit-content;
}

.product-name {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
  min-height: 2.6em;
  color: var(--text-primary);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
}

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

.price-current {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
}

.price-currency {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.price-old {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
}

.add-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  border: none;
  background: var(--brand);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.add-btn:hover:not(:disabled) {
  background: var(--brand-hover);
  transform: scale(1.03);
}

.add-btn:disabled {
  background: var(--bg-muted);
  color: var(--text-muted);
  cursor: not-allowed;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #FFFFFF;
  border-radius: 11px;
  height: 38px;
  overflow: hidden;
}

.qty-stepper button {
  width: 33px;
  height: 38px;
  border: none;
  background: transparent;
  color: #FFFFFF;
  font-size: 1.08rem;
  font-weight: 900;
  cursor: pointer;
}

.qty-stepper button:hover {
  background: rgba(0, 0, 0, 0.16);
}

.qty-stepper span {
  min-width: 26px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 900;
}

/* About the Store Section */
.about-section, .branches-section, .tracker-section {
  margin-top: 44px;
}

.about-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  box-shadow: var(--shadow-sm);
}

.about-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-tile {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.stat-num {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--brand);
}

.stat-label {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 700;
}

/* Branches, Phones, Hours & Interactive Map */
.branches-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
}

.branch-cards-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branch-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.branch-card.active {
  border-color: var(--brand);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-sm);
}

.map-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.map-visual-canvas {
  position: relative;
  height: 290px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #E2E8F0;
}

/* Slide-over Cart & WhatsApp Checkout Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(460px, 100vw);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  z-index: 110;
  display: flex;
  flex-direction: column;
  transform: translateX(-104%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-lg);
}

html[dir="ltr"] .cart-drawer {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border-color);
  transform: translateX(104%);
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.free-shipping-bar {
  padding: 10px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 700;
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: var(--border-color);
  margin-top: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 13px;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
}

.checkout-form-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  display: block;
  font-size: 0.79rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.summary-row.grand {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--text-primary);
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
}

.btn-whatsapp-order {
  width: 100%;
  padding: 13px 16px;
  border-radius: 13px;
  border: none;
  background: var(--whatsapp);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
}

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

/* Cashier Receipt Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(5px);
  z-index: 130;
  display: none;
  place-items: center;
  padding: 16px;
}

.modal-overlay.open {
  display: grid;
}

.receipt-modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.receipt-paper {
  background: var(--bg-muted);
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  padding: 16px;
  font-size: 0.86rem;
  white-space: pre-wrap;
  line-height: 1.65;
  margin: 12px 0;
  color: var(--text-primary);
}

/* Sticky Mobile Floating Bottom Cart Bar */
.mobile-cart-bar {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  max-width: 560px;
  margin: 0 auto;
  background: #064E3B;
  color: #FFFFFF;
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 75;
  box-shadow: 0 16px 36px rgba(6, 78, 59, 0.38);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-cart-bar.hidden {
  display: none;
}

/* Footer */
.site-footer {
  margin-top: 56px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
}

/* Admin / Price Manager Specific Styles */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.admin-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.admin-steps-banner {
  background: var(--bg-subtle);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border-color));
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.admin-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  padding: 12px 14px;
  text-align: start;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.admin-table th {
  background: var(--bg-muted);
  font-weight: 800;
  color: var(--text-secondary);
}

.price-edit-input {
  width: 92px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
}

.price-edit-input:focus {
  outline: none;
  border-color: var(--brand);
}

.stock-switch {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.stock-switch.in {
  background: var(--brand-light);
  color: var(--brand);
}

.stock-switch.out {
  background: var(--danger-bg);
  color: var(--danger);
}

@media (max-width: 980px) {
  .hero-grid, .about-card, .branches-layout {
    grid-template-columns: 1fr;
  }
  .trust-strip, .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-steps-banner {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .header-center {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
}

@media (min-width: 769px) {
  .mobile-cart-bar {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 12px;
  }
  .top-ribbon {
    font-size: 0.72rem;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  .brand-title {
    font-size: 1rem;
  }
  .brand-sub {
    display: none;
  }
  .icon-btn, .pill-btn {
    height: 35px;
    padding: 0 9px;
    font-size: 0.76rem;
  }
  .owner-link-btn, #themeBtnLabel {
    display: none;
  }
  .branch-selector-pill {
    display: none;
  }
  .hero-main-card {
    padding: 20px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-title {
    font-size: 1.32rem;
  }
  .hero-art-cluster {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }
  .hero-mini-tile {
    height: 64px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }
}
