/* Ngwanu Shop — Mobile-first, calm, readable stylesheet.
   Designed for 360/390/412px Android phones first, scaling cleanly to 768px and 1280px. */

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-alt: #f2f2ee;
  --border: #e3e3dc;
  --border-strong: #c8c8be;
  --text: #161614;
  --text-muted: #55554e;
  --placeholder-bg: #e9e9e3;
  --placeholder-text: #626259;

  --brand: #1b5e3a;
  --brand-hover: #14492d;
  --brand-fg: #ffffff;

  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-border: #fecdca;

  --ok-bg: #ecfdf3;
  --ok-border: #abefc6;
  --ok-text: #067647;

  --warn-bg: #fffaeb;
  --warn-border: #fedf89;
  --warn-text: #b54708;

  --font-heading: Georgia, 'Iowan Old Style', Cambria, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --header-h: 60px;
  --bottom-bar-h: 66px;
}

:root[data-theme='dark'] {
  --bg: #121210;
  --surface: #1b1b18;
  --surface-alt: #242420;
  --border: #2e2e29;
  --border-strong: #46463f;
  --text: #f3f3ee;
  --text-muted: #aaaa9f;
  --placeholder-bg: #262622;
  --placeholder-text: #9d9d92;

  --danger: #f97066;
  --danger-bg: #2b1615;
  --danger-border: #5c2420;

  --ok-bg: #11241a;
  --ok-border: #1e4b33;
  --ok-text: #75e0a7;

  --warn-bg: #292011;
  --warn-border: #5c4316;
  --warn-text: #fec84b;
}

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

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-underline-offset: 2px;
}

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

:root[data-theme='dark'] a:not(.btn) {
  color: #e6e6de;
  text-decoration-color: var(--border-strong);
}

:root[data-theme='dark'] a:not(.btn):hover {
  color: #ffffff;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: var(--text);
  overflow-wrap: break-word;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.2rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 0.75rem;
  overflow-wrap: break-word;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.875rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Layout containers */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow-page {
  max-width: 640px;
  padding-top: 24px;
  padding-bottom: 40px;
  flex: 1;
}

.dashboard-main {
  padding-top: 20px;
  padding-bottom: 48px;
  flex: 1;
}

.shop-main {
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 32px;
  flex: 1;
}

.page-shop {
  padding-bottom: var(--bottom-bar-h);
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--header-h);
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand-wordmark,
.header-shop-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Buttons — all >= 44px tap targets */
.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  white-space: nowrap;
}

.btn:disabled,
.icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

.btn-primary,
.btn-brand {
  background: var(--brand);
  color: var(--brand-fg);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-brand:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--brand-fg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.icon-btn {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.icon-btn:hover {
  background: var(--surface-alt);
}

.link-plain {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.btn.header-cart-btn {
  display: none;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Panels & Cards */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}

.status-panel {
  padding: 24px 20px;
}

.closed-message {
  font-size: 1.05rem;
  margin: 12px 0 18px;
}

.confirm-banner {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--text);
}

.confirm-title {
  color: var(--ok-text);
  font-size: 1.1rem;
}

.notice-banner {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
  font-weight: 500;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Public shop hero */
.shop-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
}

.shop-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.shop-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.shop-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.shop-identity-text {
  min-width: 0;
}

.shop-name {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.shop-city {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.shop-about {
  margin-bottom: 14px;
  color: var(--text);
}

.shop-meta {
  margin: 0 0 14px;
  display: grid;
  gap: 6px;
  font-size: 0.94rem;
}

.shop-meta-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
}

.shop-meta dt {
  color: var(--text-muted);
  font-weight: 500;
}

.shop-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
}

.shop-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Wrapping chip row — NEVER scrolls sideways */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-fg);
}

/* Catalog & Product cards */
.category-section {
  margin-bottom: 28px;
}

.category-heading {
  font-size: 1.15rem;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.product-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  background: var(--placeholder-bg);
  cursor: pointer;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  font-size: 0.92rem;
  font-weight: 500;
}

.photo-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(18, 18, 16, 0.78);
  color: #ffffff;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
}

.product-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.product-name {
  margin: 0;
  font-size: 1.05rem;
}

.product-name-btn {
  min-height: 0;
}

.product-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.price-note {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.product-card-actions .btn:first-child {
  flex: 1;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-muted {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-new {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid var(--warn-border);
}

.badge-confirmed {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.badge-done,
.badge-active {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid var(--ok-border);
}

.badge-cancelled,
.badge-paused {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

/* Fixed bottom bar on mobile phones */
.mobile-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
}

.mobile-bar-btn {
  padding: 0 8px;
  font-size: 0.88rem;
  min-width: 0;
}

/* Modals / Bottom Sheets */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 10, 0.58);
}

.modal-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  margin: 0;
  font-size: 1.15rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Scroll-snap swipe photo row (contained inside modal, never scroll-locked) */
.photo-swipe-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  scrollbar-width: thin;
}

.photo-swipe-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  background: var(--placeholder-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.photo-swipe-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
}

.gallery-dot.is-active {
  background: var(--brand);
}

.detail-price {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.detail-stock {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--danger);
  margin-bottom: 8px;
}

.detail-description {
  white-space: pre-line;
  margin-bottom: 16px;
}

.detail-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.detail-controls .btn-brand {
  flex: 1;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 44px;
  padding: 0;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

/* Cart list */
.cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}

.cart-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* Forms */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field.grow {
  flex: 1 1 200px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='number'],
input[type='date'],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input[type='file'] {
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text);
}

input[type='color'] {
  width: 56px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.colour-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.colour-row input[type='text'] {
  max-width: 140px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-label input[type='checkbox'] {
  width: 22px;
  height: 22px;
  margin: 0;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.form-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin: 0;
}

.toast {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-bottom: 14px;
}

.back-link {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* Dashboard Tabs & Lists */
.tab-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.tab-btn {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-fg);
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
}

.section-spacer {
  margin-top: 24px;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.item-card-title {
  margin: 0;
  font-size: 1.05rem;
}

.order-items-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.94rem;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-dash-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.product-dash-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--placeholder-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--placeholder-text);
  text-align: center;
  padding: 4px;
}

.product-dash-info {
  min-width: 0;
  flex: 1;
}

.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.thumb-item {
  width: 84px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thumb-item img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

.logo-preview-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--placeholder-text);
  overflow: hidden;
  flex-shrink: 0;
}

.logo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Directory & Legal prose */
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.shop-directory-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.shop-directory-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.shop-dir-link {
  font-weight: 600;
  text-decoration: none;
}

.prose h2 {
  margin-top: 20px;
}

.empty-state {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 0;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .tab-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .btn.header-cart-btn {
    display: inline-flex;
  }

  .mobile-bottom-bar {
    display: none;
  }

  .page-shop {
    padding-bottom: 0;
  }

  .modal {
    align-items: center;
    padding: 20px;
  }

  .modal-sheet {
    border-radius: var(--radius-lg);
    max-height: 86vh;
  }
}

/* Desktop (1080px / 1280px+) */
@media (min-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
