:root {
  --ink: #32241d;
  --muted: #78665c;
  --cream: #fffaf1;
  --sand: #f2e4cf;
  --orange: #c95322;
  --orange-dark: #8a3015;
  --gold: #e7a83e;
  font-family: "Tajawal", sans-serif;
}

body,
button,
input,
select {
  font-family: "Tajawal", sans-serif;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

button,
a,
input,
select {
  touch-action: manipulation;
}

.brand-mark,
.brand strong,
.hero h1,
.section-heading h2,
.modal-heading h2 {
  font-family: "Tajawal", sans-serif;
}

.brand-mark,
.brand strong {
  font-weight: 800;
}

.hero h1,
.section-heading h2,
.modal-heading h2 {
  font-weight: 900;
}

@media (max-width: 900px) {
  .dashboard-sidebar {
    width: min(285px, 86vw);
    transform: translateX(105%);
    box-shadow: -20px 0 50px rgba(25, 17, 13, 0.25);
  }

  .dashboard-header .mobile-menu {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
  }

  .order-actions select {
    min-width: 150px;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .site-header {
    height: 72px;
    padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .brand strong {
    font-size: 17px;
    white-space: nowrap;
  }

  .cart-button {
    padding: 9px 12px;
  }

  .hero {
    min-height: auto;
    padding: 42px 18px 34px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.25;
  }

  .hero-copy > p {
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-actions {
    margin-top: 26px;
    gap: 16px;
  }

  .hero-actions .primary-button {
    width: min(100%, 330px);
  }

  .hero-art {
    height: 285px;
  }

  .sun {
    width: 245px;
    height: 245px;
  }

  .plate {
    width: 270px;
    height: 154px;
  }

  .pastry {
    font-size: 62px;
  }

  .pastry.p2 {
    right: 100px;
  }

  .float-card {
    font-size: 10px;
  }

  .benefits {
    padding: 12px 20px;
  }

  .products-section,
  .how-section {
    padding: 64px 14px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .products-grid {
    gap: 14px;
  }

  .product-card {
    grid-template-columns: 118px 1fr;
    border-radius: 18px;
    min-width: 0;
  }

  .product-visual > span {
    font-size: 52px;
  }

  .stock-badge {
    top: 8px;
    right: 8px;
    padding: 4px 7px;
  }

  .product-body {
    padding: 14px;
    min-width: 0;
  }

  .product-body p {
    overflow-wrap: anywhere;
  }

  .product-body h3 {
    font-size: 16px;
  }

  .product-body p {
    min-height: 36px;
    font-size: 11px;
  }

  .drawer-panel {
    width: 100%;
  }

  .modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 22px 16px max(22px, env(safe-area-inset-bottom));
    border-radius: 18px;
  }

  .modal input,
  .modal select {
    min-height: 48px;
    font-size: 16px;
  }

  .payment-option {
    min-height: 62px;
  }

  #otpForm input[name="otp"] {
    direction: ltr;
    text-align: center;
    letter-spacing: .35em;
    font-size: 22px;
  }

  .dashboard-header {
    height: 76px;
    padding: 0 14px;
  }

  .dashboard-header h2 {
    font-size: 17px;
  }

  .availability {
    gap: 7px;
  }

  .availability > span {
    display: none;
  }

  .dashboard-main > #dashboardContent {
    padding: 14px;
  }

  .stats-grid {
    gap: 9px;
  }

  .stat-card {
    padding: 13px;
    border-radius: 13px;
  }

  .stat-card b {
    font-size: 21px;
  }

  .panel {
    padding: 16px;
    border-radius: 15px;
  }

  .order-card {
    padding: 14px;
  }

  .order-actions select {
    width: 100%;
  }

  .small-button {
    padding: 9px 12px;
    min-height: 40px;
  }
}

@media (max-width: 390px) {
  .site-header {
    padding-inline: 10px;
  }

  .site-header .brand-mark {
    width: 36px;
    height: 36px;
  }

  .site-header .brand strong {
    font-size: 15px;
  }

  .hero {
    padding-inline: 14px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero-art {
    height: 240px;
    transform: scale(.9);
    margin-inline: -20px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .product-card {
    grid-template-columns: 104px 1fr;
  }

  .product-footer {
    margin-top: 10px;
  }

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