/* ============================================================
   ROR MASTERPIECES — Drive CSS Design System
   Google Drive-inspired: white, clean, folder-based navigation.
   Accent: #1a6b3a (ROR Green)
   Font: Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --accent:         #1a6b3a;
  --accent-light:   #e8f5ee;
  --accent-hover:   #155730;
  --accent-text:    #ffffff;

  --bg:             #ffffff;
  --surface:        #f8f9fa;
  --surface-hover:  #f1f3f4;
  --border:         #e0e0e0;
  --border-light:   #eeeeee;

  --text:           #202124;
  --text-secondary: #5f6368;
  --text-muted:     #9aa0a6;

  --red:            #d93025;
  --red-light:      #fce8e6;
  --orange:         #e37400;
  --orange-light:   #fef3e0;
  --green:          #1e8e3e;
  --green-light:    #e6f4ea;

  --shadow-sm:    0 1px 2px rgba(0,0,0,.08);
  --shadow:       0 1px 6px rgba(0,0,0,.10);
  --shadow-md:    0 4px 16px rgba(0,0,0,.12);

  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    12px;

  --sidebar-w:    250px;
  --header-h:     56px;

  --transition:   0.15s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: 'Inter', 'Google Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
ul { list-style: none; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  box-shadow: var(--shadow-sm);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo img { height: 32px; width: auto; }
.header-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.header-logo:hover { text-decoration: none; }

.header-search {
  flex: 1;
  max-width: 540px;
  margin: 0 12px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 0 14px;
  transition: all var(--transition);
}
.header-search:focus-within {
  border-color: #d4af37;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.header-search__icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-right: 8px;
}
.header-search__input {
  width: 100%;
  height: 36px;
  border: none !important;
  background: transparent !important;
  color: var(--text);
  font-size: 13.5px;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.header-search__btn { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.header-btn:hover { background: var(--surface-hover); text-decoration: none; }
.header-btn .icon { font-size: 18px; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.cart-count.hidden { display: none; }

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* ── Layout ─────────────────────────────────────────────── */
.drive-layout {
  display: flex;
  width: 100%;
  min-height: calc(100vh - var(--header-h) - 70px);
  overflow: visible;
}

.main-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: var(--bg);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  margin: 2px 8px;
  border: 1px solid transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  user-select: none;
}
.sidebar-item:hover {
  background: rgba(43, 16, 85, 0.06);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
  transform: translateX(2px);
  text-decoration: none;
}
.sidebar-item.active {
  background: linear-gradient(135deg, #2b1055 0%, #481452 100%) !important;
  border: 1px solid #d4af37 !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(43, 16, 85, 0.35), 0 0 10px rgba(212, 175, 55, 0.35) !important;
}

.sidebar-item .folder-icon { font-size: 16px; flex-shrink: 0; }
.sidebar-item.active .folder-icon { filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6)); }
.sidebar-item .folder-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-item .folder-count {
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
  min-width: 22px;
  text-align: center;
}
.sidebar-item.active .folder-count {
  background: rgba(212, 175, 55, 0.2);
  color: #ffd700;
  border: 1px solid rgba(212, 175, 55, 0.4);
}
}

/* ── Main Panel ──────────────────────────────────────────── */
.main-panel {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
  flex-wrap: wrap;
  gap: 8px;
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.panel-count {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.toolbar-spacer { flex: 1; }

.filter-input {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 28px 0 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  min-width: 180px;
  max-width: 260px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.filter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(26,107,58,.12);
  background: var(--bg);
}

.filter-wrap { position: relative; }
.filter-wrap .filter-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.sort-select {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--accent); }

/* ── Product Table ───────────────────────────────────────── */
.product-table-wrap {
  flex: 1;
  overflow-x: auto;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.product-table thead th {
  padding: 11px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}
.product-table thead th:hover { color: var(--text); }
.product-table thead th.sorted { color: var(--accent); }
.product-table thead th .sort-arrow { font-size: 10px; margin-left: 3px; opacity: .5; }
.product-table thead th.sorted .sort-arrow { opacity: 1; }

.product-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.product-table tbody tr:hover { background: var(--surface-hover); }
.product-table tbody tr.out-of-stock { opacity: .5; }

.product-table td {
  padding: 12px 18px;
  vertical-align: middle;
}

.td-num {
  color: var(--text-muted);
  font-size: 12px;
  width: 44px;
  text-align: right;
}

.td-thumb {
  width: 60px;
  text-align: center;
  padding: 6px 8px;
}
.thumb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.product-mini-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border-light);
}

.td-name {
  width: auto;
  min-width: 250px;
}
.product-link {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.product-link:hover { color: var(--accent); text-decoration: none; }

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.dim-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(26,107,58,0.18);
  white-space: nowrap;
}

.td-price {
  white-space: nowrap;
  width: 130px;
  text-align: right;
}
.price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.price-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 11.5px;
}
.price-offer {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.price-normal {
  font-weight: 600;
  font-size: 14px;
}

.td-offer {
  width: 68px;
  text-align: center;
}
.badge-off {
  background: #fee8e8;
  color: #d93025;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.td-stock { width: 60px; text-align: center; }
.stock-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
}
.stock-badge.in  { background: var(--green-light); color: var(--green); }
.stock-badge.low { background: var(--orange-light); color: var(--orange); }
.stock-badge.out { background: var(--red-light); color: var(--red); }

.td-action { width: 60px; text-align: center; }

.btn-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.btn-add:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(26,107,58,0.3);
}
.btn-add:active { transform: scale(.95); }
.btn-add:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  color: var(--text-secondary);
  text-align: center;
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.empty-state h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--text-secondary); }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.page-btn:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.page-btn.disabled { opacity: .35; cursor: default; pointer-events: none; }
.page-dots { padding: 0 4px; color: var(--text-muted); }

/* ── Toast / Flash Messages ──────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: min(400px, 90vw);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  pointer-events: all;
  animation: toastIn .2s ease;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
.toast.info    { background: var(--accent); }
.toast .toast-icon { font-size: 16px; flex-shrink: 0; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cart Drawer ─────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100vw);
  background: var(--bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-title { font-size: 15px; font-weight: 600; }
.cart-drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.cart-drawer-close:hover { background: var(--surface-hover); }

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.cart-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.cart-item-price { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 4px; }

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--surface-hover); }
.qty-val { font-size: 13px; font-weight: 600; min-width: 16px; text-align: center; }

.cart-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 0;
}
.cart-remove:hover { color: var(--red); }

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  color: var(--text-secondary);
  text-align: center;
}
.cart-empty-state .icon { font-size: 40px; margin-bottom: 10px; opacity: .4; }

.cart-drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}
.cart-total-row.final {
  font-weight: 700;
  font-size: 15px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
}
.cart-total-label { color: var(--text-secondary); }
.cart-total-val { color: var(--text); }
.shipping-note { font-size: 11px; color: var(--green); margin-bottom: 10px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }

.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-danger:hover { background: #b5261e; }

.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 15px; }

/* Google Sign-In button */
.btn-google {
  background: #fff;
  color: #3c4043;
  border: 1px solid var(--border);
  height: 44px;
  font-weight: 500;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.btn-google:hover { background: var(--surface); box-shadow: var(--shadow); }
.btn-google svg { flex-shrink: 0; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  letter-spacing: .03em;
}
.form-control {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,107,58,.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 11px; color: var(--red); margin-top: 4px; }

/* ── Page Wrapper (non-Drive pages) ─────────────────────── */
.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}
.page-wrap-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}
.card-body { padding: 16px; }

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--surface);
}
.auth-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.auth-logo img { height: 36px; }
.auth-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 18px;
}

/* ── Product Detail Page ─────────────────────────────────── */
.product-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px;
}
.product-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 16px;
  cursor: pointer;
}
.product-back:hover { color: var(--accent); text-decoration: none; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.product-gallery { position: relative; }
.product-main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.product-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.product-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.product-thumb.active,
.product-thumb:hover { border-color: var(--accent); }

.product-info { display: flex; flex-direction: column; gap: 14px; }
.product-name { font-size: 20px; font-weight: 700; line-height: 1.3; }
.product-price-block { display: flex; align-items: baseline; gap: 10px; }
.product-offer-price { font-size: 24px; font-weight: 700; color: var(--accent); }
.product-original-price { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.product-savings { font-size: 13px; color: var(--green); font-weight: 600; }

.product-variants { display: flex; flex-direction: column; gap: 10px; }
.variant-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.variant-options { display: flex; flex-wrap: wrap; gap: 6px; }
.variant-btn {
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.variant-btn:hover { border-color: var(--accent); }
.variant-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-stepper-lg {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn-lg {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.qty-btn-lg:hover { background: var(--surface-hover); }
.qty-val-lg {
  width: 44px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border: none;
  outline: none;
  background: var(--bg);
  -moz-appearance: textfield;
}
.qty-val-lg::-webkit-outer-spin-button,
.qty-val-lg::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; white-space: pre-line; }
.product-desc-more {
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
}

.product-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary);
}
.product-meta-row span { display: flex; align-items: center; gap: 4px; }

/* ── Cart Page ───────────────────────────────────────────── */
.cart-page-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.cart-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cart-table th {
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.cart-table td { padding: 12px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.cart-table tbody tr:hover { background: var(--surface); }

.cart-prod-name { font-weight: 500; color: var(--text); }
.cart-prod-variant { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.cart-prod-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-right: 8px;
  float: left;
}

.order-summary-box { position: sticky; top: 8px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
}
.summary-row.total {
  font-size: 15px;
  font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

.coupon-row {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}
.coupon-input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.coupon-input:focus { border-color: var(--accent); }
.coupon-btn {
  height: 36px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
  transition: background var(--transition);
}
.coupon-btn:hover { background: var(--accent-light); }

/* ── Checkout ────────────────────────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.payment-options { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.payment-option:hover { border-color: var(--accent); background: var(--accent-light); }
.payment-option input[type="radio"] { accent-color: var(--accent); }
.payment-option.selected { border-color: var(--accent); background: var(--accent-light); }
.payment-option-label { font-size: 14px; font-weight: 500; }
.payment-option-sub { font-size: 11px; color: var(--text-secondary); }

/* ── Order Confirmation ──────────────────────────────────── */
.receipt-box {
  max-width: 560px;
  margin: 40px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.receipt-header {
  background: var(--accent);
  color: #fff;
  padding: 28px 24px;
  text-align: center;
}
.receipt-header .check { font-size: 40px; margin-bottom: 8px; }
.receipt-header h1 { font-size: 22px; font-weight: 700; }
.receipt-header p { font-size: 13px; opacity: .85; margin-top: 4px; }
.receipt-body { padding: 24px; }
.receipt-order-num {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.receipt-order-num strong { color: var(--text); font-size: 14px; }
.receipt-items { border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.receipt-item {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.receipt-item:last-child { border-bottom: none; }
.receipt-item-name { color: var(--text); }
.receipt-item-qty { color: var(--text-secondary); font-size: 12px; margin-top: 1px; }
.receipt-item-price { font-weight: 600; }
.receipt-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 0;
  margin-bottom: 16px;
}
.receipt-address {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}
.receipt-address strong { color: var(--text); font-size: 13px; }
.receipt-actions { display: flex; gap: 8px; }

/* ── Order Tracking ──────────────────────────────────────── */
.track-box {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 16px;
}
.timeline { margin-top: 24px; }
.timeline-step {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}
.timeline-step::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 26px;
  width: 2px;
  bottom: 0;
  background: var(--border);
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}
.timeline-dot.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.timeline-dot.active { border-color: var(--accent); background: var(--accent-light); }
.timeline-content { padding-top: 0; }
.timeline-label { font-size: 14px; font-weight: 600; }
.timeline-date { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.timeline-note { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }

/* ── Alert/Flash ─────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-success { background: var(--green-light); color: var(--green); border: 1px solid #b7dfbf; }
.alert-error   { background: var(--red-light);   color: var(--red);   border: 1px solid #f5c2be; }
.alert-info    { background: var(--accent-light); color: var(--accent); border: 1px solid #b8d9c9; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { margin-bottom: 14px; }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; list-style: none; }
.breadcrumb li a { font-size: 12px; color: var(--text-secondary); }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li.sep { color: var(--text-muted); font-size: 12px; }
.breadcrumb li .current { font-size: 12px; color: var(--text); font-weight: 500; }

/* ── Dimensions Tag ──────────────────────────────────────── */
.dim-tag {
  display: inline-block;
  background: var(--surface-hover);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  white-space: nowrap;
}
.mobile-dim-badge {
  display: none;
}

/* ── Mobile Top Tabs (Scrollable Pills) ───────────────────── */
.mobile-tabs {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mobile-tabs::-webkit-scrollbar { display: none; }
.mobile-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 6px;
  transition: all var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.mobile-tab:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}
.mobile-tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(26,107,58,.25);
}

/* ── Sticky mobile CTA ───────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 50;
  box-shadow: 0 -2px 8px rgba(0,0,0,.08);
}

/* ── Site Footer ─────────────────────────────────────────── */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  position: relative;
  z-index: 10;
}
.site-footer__copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}
.site-footer__copy a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links__item {
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links__item:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ── PWA Install Button & Banner ─────────────────────────── */
.pwa-install-btn {
  background: linear-gradient(135deg, #2b1055 0%, #481452 100%) !important;
  color: #ffd700 !important;
  border: 1.5px solid #d4af37 !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(43, 16, 85, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all 0.2s ease !important;
}
.pwa-install-btn:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4) !important;
  border-color: #ffd700 !important;
}

.pwa-bottom-banner {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.pwa-bottom-banner__content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-bottom-banner__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.pwa-bottom-banner__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pwa-bottom-banner__text strong {
  font-size: 14px;
  color: var(--text);
}
.pwa-bottom-banner__text span {
  font-size: 12px;
  color: var(--text-secondary);
}
.pwa-bottom-banner__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* iOS Safari PWA Modal */
.pwa-ios-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pwa-ios-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.5);
}
.pwa-ios-modal__card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 20px 20px 28px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  animation: slideUp 0.25s ease-out;
}
.pwa-ios-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pwa-ios-modal__header h3 {
  font-size: 16px;
  font-weight: 700;
}
.pwa-ios-modal__close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
}
.pwa-ios-modal__body {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.pwa-ios-modal__body ol {
  padding-left: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Floating Mobile Cart */
.mobile-floating-cart {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--accent);
  color: #ffffff;
  border-radius: 30px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(26,107,58,.4);
  z-index: 85;
  animation: slideUp 0.2s ease-out;
}
.mobile-floating-cart__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.mobile-floating-cart__count {
  background: rgba(255,255,255,.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.mobile-floating-cart__total {
  font-weight: 700;
  font-size: 15px;
}
.mobile-floating-cart__btn {
  background: #ffffff;
  color: var(--accent);
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Desktop default: Hide mobile-only elements */
.mobile-folders-root { display: none; }
.d-desktop-none { display: none !important; }
.main-product-view { display: block; }

/* ── Responsive Mobile Optimizations (Full Width & Clean) ── */
@media (max-width: 768px) {
  :root { --header-h: 52px; }

  /* Body & Container constraints */
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Mobile Category Folders Root */
  .mobile-folders-root { display: block; padding: 14px 14px; }
  .mobile-folders-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #2b1055;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 8px 0 10px 2px;
  }
  .mobile-folders-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mobile-folder-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #2b1055 0%, #481452 100%);
    border: 1.5px solid #d4af37;
    border-radius: 14px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(43, 16, 85, 0.25);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-folder-card:hover, .mobile-folder-card:active {
    transform: translateY(-2px) scale(1.01);
    border-color: #ffd700;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45), 0 0 16px rgba(212, 175, 55, 0.35);
    text-decoration: none;
  }
  .mobile-folder-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  }
  .mobile-folder-info {
    flex: 1;
    min-width: 0;
  }
  .mobile-folder-name {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
  }
  .mobile-folder-count {
    display: block;
    font-size: 12.5px;
    color: #f3df9b;
    margin-top: 3px;
    font-weight: 500;
  }
  .mobile-folder-arrow {
    font-size: 22px;
    color: #ffd700;
    font-weight: bold;
  }
  
  .d-mobile-none { display: none !important; }
  .d-mobile-hidden { display: none !important; }
  .d-desktop-none { display: inline-flex !important; }
  .mobile-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: linear-gradient(135deg, #2b1055 0%, #481452 100%);
    color: #ffd700;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-right: 8px;
    flex-shrink: 0;
    border: 1px solid #d4af37;
    box-shadow: 0 2px 8px rgba(43, 16, 85, 0.2);
  }

  /* Hide desktop sidebar */
  .sidebar { display: none !important; }

  .drive-layout {
    height: auto;
    overflow: visible;
    flex-direction: column;
    width: 100%;
  }
  .main-panel {
    overflow: visible;
    width: 100%;
    padding: 0;
  }

  /* Header adjustments (Zero horizontal overflow) */
  .site-header {
    padding: 0 10px !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .header-logo {
    gap: 0 !important;
    flex-shrink: 0 !important;
  }
  .header-logo__img {
    width: 32px !important;
    height: 32px !important;
  }
  .header-logo__name,
  .header-logo-text {
    display: none !important;
  }
  .header-search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 4px !important;
    max-width: none !important;
    height: 36px !important;
    padding: 0 10px !important;
  }
  .header-search__input {
    font-size: 13px !important;
    height: 34px !important;
  }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  .header-btn {
    padding: 6px 6px !important;
  }
  .pwa-install-btn {
    padding: 4px 8px !important;
    border-radius: 16px !important;
  }
  .pwa-install-btn__label {
    display: inline-block !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
  .sign-in-text {
    display: none !important;
  }

  /* Toolbar adjustments */
  .panel-toolbar {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
  }
  .panel-title { font-size: 15px; }
  .filter-wrap {
    flex: 1;
    min-width: 130px;
  }
  .filter-input {
    width: 100%;
    height: 32px;
    font-size: 12px;
  }
  .sort-select {
    height: 32px;
    font-size: 12px;
  }

  /* Mobile Product Card Rows */
  .product-table-wrap {
    padding: 8px 10px;
    overflow-x: hidden;
    width: 100%;
  }
  .product-table {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    border-collapse: separate !important;
  }
  .product-table thead {
    display: none !important;
  }
  .product-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .product-table tr.product-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
  }
  .product-table tr.product-row:active {
    background: #fdfdfd !important;
  }

  /* Number column - hide on mobile */
  .product-table td.td-num {
    display: none !important;
  }

  /* Thumbnail column */
  .product-table td.td-thumb {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }
  .product-table td.td-thumb .thumb-link {
    width: 64px !important;
    height: 64px !important;
    display: block !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    background: #f8fafc !important;
  }
  .product-table td.td-thumb .product-mini-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    border: none !important;
  }

  /* Product Name & Details column */
  .product-table td.td-name {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }
  .product-table td.td-name .product-link {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #111827 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-decoration: none !important;
    margin-bottom: 4px !important;
    white-space: normal !important;
  }
  .product-table td.td-name .product-meta-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 0 !important;
  }
  .product-table td.td-name .dim-tag {
    font-size: 11px !important;
    font-weight: 600 !important;
    background: #ecfdf5 !important;
    color: #047857 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    border: 1px solid #d1fae5 !important;
  }
  .product-table td.td-name .badge-off {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
  }

  /* Price column */
  .product-table td.td-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: auto !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    text-align: right !important;
  }
  .product-table td.td-price .price-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 2px !important;
  }
  .product-table td.td-price .price-offer {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a6b3a !important;
    line-height: 1.2 !important;
  }
  .product-table td.td-price .price-original {
    font-size: 11px !important;
    color: #9ca3af !important;
    text-decoration: line-through !important;
  }
  .product-table td.td-price .price-normal {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.2 !important;
  }

  /* Action (+) column */
  .product-table td.td-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin-left: 2px !important;
  }
  .product-table td.td-action .btn-add {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #ecfdf5 !important;
    border: 1.5px solid #059669 !important;
    color: #047857 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .product-table td.td-action .btn-add:active {
    background: #059669 !important;
    color: #ffffff !important;
    transform: scale(0.92) !important;
  }

  /* Stack product detail */
  .product-detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .sticky-cta { display: flex; }

  /* Stack cart/checkout */
  .cart-page-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }

  .auth-box { padding: 24px 18px; }

  .receipt-box { margin: 16px auto; }
  .site-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
    padding: 24px 16px 80px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .site-footer__copy {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }
  .footer-links {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .site-header { padding: 0 10px; }
  .header-logo-text { display: none; }
  .panel-toolbar { padding: 8px 10px; }
}

/* ── Utility ─────────────────────────────────────────────── */
.d-none { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.w-full { width: 100%; }

/* ── Combos Section ──────────────────────────────────────── */
.combos-section {
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  background: var(--surface);
}
.combos-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.combos-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.combos-sub {
  font-size: 12px;
  color: var(--text-secondary);
}
.combos-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.combos-row::-webkit-scrollbar { height: 4px; }
.combos-row::-webkit-scrollbar-track { background: transparent; }
.combos-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.combo-card {
  flex-shrink: 0;
  width: 240px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.combo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.combo-card-img {
  height: 110px;
  background-size: cover;
  background-position: center;
  background-color: var(--accent-light);
}
.combo-card-body {
  padding: 10px 12px;
}
.combo-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.combo-card-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.combo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.combo-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

/* Admin page header */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.admin-page-header h1 { font-size: 18px; font-weight: 700; }

/* ============================================================
   PWA POPUP MODAL (Prominent Install Experience)
   ============================================================ */
.pwa-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pwa-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 5, 35, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.pwa-popup-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 2px solid #d4af37;
  border-radius: 20px;
  padding: 26px 22px 22px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(43, 16, 85, 0.4), 0 0 25px rgba(212, 175, 55, 0.35);
  animation: pwaPopScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pwaPopScale {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.pwa-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #f1f3f4;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.pwa-popup-close:hover { background: #e5e7eb; color: #000; }
.pwa-popup-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 18px;
  padding: 4px;
  background: linear-gradient(135deg, #2b1055 0%, #481452 100%);
  border: 2px solid #d4af37;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-popup-app-icon {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}
.pwa-popup-title {
  font-size: 18px;
  font-weight: 700;
  color: #2b1055;
  margin: 0 0 8px;
}
.pwa-popup-desc {
  font-size: 13px;
  color: #555555;
  line-height: 1.45;
  margin: 0 0 16px;
}
.pwa-popup-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}
.pwa-feature-pill {
  background: #fbf8f2;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #2b1055;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.pwa-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pwa-btn-install {
  background: linear-gradient(135deg, #2b1055 0%, #481452 100%);
  color: #ffd700;
  border: 1.5px solid #d4af37;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(43, 16, 85, 0.35), 0 0 12px rgba(212, 175, 55, 0.3);
  transition: all 0.2s ease;
  width: 100%;
}
.pwa-btn-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5);
  border-color: #ffd700;
}
.pwa-btn-install:active { transform: scale(0.97); }
.pwa-btn-dismiss {
  background: transparent;
  border: none;
  color: #777;
  font-size: 13px;
  font-weight: 500;
  padding: 6px;
  cursor: pointer;
}
.pwa-btn-dismiss:hover { color: #222; }

