/* ==========================================================================
   Stockfirmati Privé — Luxury TMA E-Commerce Stylesheet
   ========================================================================== */

:root {
  --bg: #0b0d11;
  --surface: #141720;
  --surface-2: #1e2230;
  --surface-3: #282d3f;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #d4af37;
  --accent-light: #f3e5ab;
  --accent-soft: rgba(212, 175, 55, 0.15);
  --accent-glow: rgba(212, 175, 55, 0.3);
  --danger: #e11d48;
  --danger-soft: rgba(225, 29, 72, 0.15);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.15);
  --border: #222736;
  --border-light: #2e354a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --nav-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: var(--text); }
input, textarea, select { font-family: inherit; }

.hidden { display: none !important; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-green { color: var(--green); }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* Sticky Top App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 17, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heex-logo {
  font-family: 'Signika', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--text);
  line-height: 1;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.brand-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4af37 0%, #85581a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #0b0d11;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.header-stat-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}

/* Quick Search Bar */
.search-bar-wrap {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 14px 9px 36px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 13px;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
  padding: 4px;
  cursor: pointer;
}

.tab-view {
  display: none;
  animation: fadeIn 0.18s ease;
}

.tab-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* View 1 Entry */
.view-entry { padding: 16px; display: flex; flex-direction: column; gap: 22px; }
.section-title-wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 2px; }
.section-title { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; }
.section-subtitle { font-size: 11px; color: var(--text-dim); text-align: right; margin-left: auto; line-height: 1.3; }
.gender-cards-grid { display: flex; flex-direction: column; gap: 14px; }
.gender-hero-card {
  position: relative; height: 150px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); cursor: pointer;
  background: var(--surface); transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
}
.gender-hero-card:active { transform: scale(0.985); border-color: var(--accent); }
.hero-img-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%; filter: brightness(0.5);
  transition: transform 0.3s ease;
}
.gender-hero-card:active .hero-img-bg { transform: scale(1.04); }
.hero-overlay {
  position: relative; z-index: 2; display: flex; flex-direction: column;
  justify-content: space-between; padding: 16px; width: 100%;
  background: linear-gradient(90deg, rgba(11, 13, 17, 0.85) 0%, rgba(11, 13, 17, 0.25) 100%);
}
.hero-top-badge {
  align-self: flex-start; font-size: 10px; font-weight: 700;
  color: var(--accent); background: rgba(11, 13, 17, 0.7);
  backdrop-filter: blur(8px); border: 1px solid var(--accent-glow);
  padding: 3px 9px; border-radius: var(--radius-full);
}
.hero-content { display: flex; justify-content: space-between; align-items: flex-end; }
.hero-gender-name { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.hero-cta { font-size: 11px; font-weight: 700; color: var(--accent-light); display: flex; align-items: center; gap: 4px; }

/* Carousel */
.brands-carousel {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 0 10px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
}
.brands-carousel::-webkit-scrollbar { display: none; }
.brand-card-item {
  flex: 0 0 120px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 10px; display: flex;
  flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.brand-card-item:active { transform: scale(0.96); border-color: var(--accent); }
.brand-thumb-circle {
  width: 54px; height: 54px; border-radius: 50%; background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--border-light);
}
.brand-thumb-circle img { width: 100%; height: 100%; object-fit: contain; }
.brand-card-name {
  font-size: 11px; font-weight: 700; text-align: center;
  color: var(--text); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 100px;
}
.brand-card-count { font-size: 10px; color: var(--text-muted); }

/* View 2 Category */
.category-nav-bar {
  position: sticky; top: 0; z-index: 30; background: rgba(11, 13, 17, 0.95);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
  padding: 12px 16px; display: flex; flex-direction: column; gap: 10px;
}
.cat-nav-top { display: flex; align-items: center; gap: 10px; }
.back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); font-size: 15px; cursor: pointer;
}
.gender-switch-select {
  background: var(--surface); color: var(--accent); border: 1px solid var(--accent-glow);
  border-radius: var(--radius-full); padding: 6px 12px; font-size: 12px;
  font-weight: 700; outline: none; cursor: pointer;
}
.macro-tabs-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.macro-tabs-scroll::-webkit-scrollbar { display: none; }
.macro-tab-btn {
  font-size: 1.15rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  border: 1.5px solid var(--border-light);
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.macro-tab-btn.active {
  background: var(--accent);
  color: #0b0d11;
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.subcategory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; }
.subcategory-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
}
.subcategory-tile:active { transform: scale(0.97); border-color: var(--accent); }
.subcat-img-box {
  position: relative; width: 100%; aspect-ratio: 1 / 1; background: #ffffff;
  display: flex; align-items: center; justify-content: center;
}
.subcat-img-box img { width: 100%; height: 100%; object-fit: contain; }
.subcat-badge {
  position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 700;
  background: rgba(11, 13, 17, 0.85); color: #fff; padding: 2px 7px;
  border-radius: var(--radius-full);
}
.subcat-meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.subcat-name { font-size: 12px; font-weight: 700; color: var(--text); }
.subcat-action { font-size: 10px; color: var(--accent); font-weight: 600; }

/* View 3 PLP */
.plp-header-bar {
  position: sticky; top: 0; z-index: 30; background: rgba(11, 13, 17, 0.95);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
  padding: 10px 16px; display: flex; flex-direction: column; gap: 10px;
}
.plp-top-row { display: flex; align-items: center; gap: 10px; }
.breadcrumbs {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: var(--text-dim); overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.breadcrumbs::-webkit-scrollbar { display: none; }
.crumb-link { color: var(--text-muted); cursor: pointer; font-weight: 500; }
.crumb-link:active { color: var(--accent); }
.crumb-current { color: var(--text); font-weight: 700; }
.sibling-pills-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  animation: fadeIn 0.2s ease;
}
.sibling-pills-scroll::-webkit-scrollbar { display: none; }
.sub-pill {
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  animation: fadeIn 0.2s ease;
}
.sub-pill.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.filter-sort-bar { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.filter-sort-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  padding: 6px 12px; border-radius: 10px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); white-space: nowrap; cursor: pointer;
}
.filter-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.filter-badge-count {
  background: var(--accent); color: #0b0d11; font-size: 9px; font-weight: 800;
  padding: 1px 5px; border-radius: var(--radius-full);
}
.sort-select-pill {
  background: var(--surface); color: var(--text-muted); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 10px; font-size: 11px; font-weight: 600;
  outline: none; cursor: pointer;
}
.active-chips-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 2px; }
.active-chip {
  display: flex; align-items: center; gap: 6px; font-size: 10px;
  padding: 3px 8px 3px 10px; border-radius: var(--radius-full);
  background: var(--surface-2); border: 1px solid var(--border-light); color: var(--text);
}
.chip-remove { cursor: pointer; color: var(--text-dim); font-weight: 700; }
.clear-all-link { font-size: 10px; color: var(--danger); font-weight: 600; cursor: pointer; padding: 2px 4px; }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px; }
@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 0 auto; width: 100%; }
}
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative; cursor: pointer;
}
.product-card:active { transform: scale(0.98); }
.product-img-wrap {
  position: relative; width: 100%; aspect-ratio: 1 / 1; background: #ffffff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.card-heart-btn {
  position: absolute; top: 8px; right: 8px; z-index: 5; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(11, 13, 17, 0.7); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center;
  justify-content: center; color: #ffffff; font-size: 15px; cursor: pointer;
  transition: all 0.15s ease;
}
.card-heart-btn.active { color: var(--danger); background: rgba(225, 29, 72, 0.2); border-color: var(--danger); }
.card-discount-tag {
  position: absolute; top: 8px; left: 8px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px;
}
.product-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-brand {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--accent);
}
.product-title {
  font-size: 11px; font-weight: 600; color: var(--text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 28px;
}
.product-prices { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.selling-price { font-size: 13px; font-weight: 800; color: var(--text); }
.rrp-price { font-size: 10px; color: var(--text-dim); text-decoration: line-through; }
.sizes-strip { display: flex; gap: 4px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.sizes-strip::-webkit-scrollbar { display: none; }
.size-mini-tag {
  font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--border-light); color: var(--text-muted);
}
.card-colors-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.card-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  padding: 0;
}
.card-color-dot.active {
  transform: scale(1.22);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}
.card-colors-more {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}
.empty-state {
  text-align: center; padding: 60px 20px; display: flex; flex-direction: column;
  align-items: center; gap: 12px; grid-column: 1 / -1;
}
.empty-icon { font-size: 38px; opacity: 0.5; }
.empty-text { font-size: 13px; color: var(--text-muted); max-width: 260px; }

/* Modals & Sheets */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-sheet {
  background: var(--surface); border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg); width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto; border-top: 1px solid var(--border-light);
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-close-handle {
  width: 36px; height: 4px; background: var(--text-dim); border-radius: 2px;
  margin: 10px auto 4px auto; cursor: pointer;
}
.modal-header-actions { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px; }
.modal-close-btn { font-size: 20px; color: var(--text-muted); cursor: pointer; padding: 4px; }

/* Product Detail */
.detail-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 340px;
  background: #ffffff;
  flex-shrink: 0;
}
.detail-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-thumbs-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  min-height: 80px;
  overflow-x: auto;
  flex-shrink: 0;
  z-index: 2;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.detail-thumbs-scroll::-webkit-scrollbar { display: none; }
.detail-thumb-item {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #ffffff;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  padding: 2px;
}
.detail-thumb-item.active {
  border-color: var(--accent);
}
.detail-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
  flex-shrink: 0;
}
.detail-brand { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }
.detail-title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.detail-prices-box { display: flex; align-items: baseline; gap: 10px; }
.detail-selling-price { font-size: 20px; font-weight: 800; color: var(--text); }
.detail-rrp { font-size: 12px; color: var(--text-dim); text-decoration: line-through; }
.detail-discount-pill {
  font-size: 10px; font-weight: 800; background: var(--danger-soft);
  color: var(--danger); padding: 2px 7px; border-radius: var(--radius-full);
}
.selector-group-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted); display: flex; justify-content: space-between;
}
.selector-pills-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.color-select-pill {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: var(--radius-full); background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); font-size: 12px;
  font-weight: 600; cursor: pointer;
}
.color-select-pill.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.color-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); }
.size-select-pill {
  min-width: 42px; text-align: center; padding: 8px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.size-select-pill.active { border-color: var(--accent); background: var(--accent); color: #0b0d11; }
.size-select-pill.disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.stock-indicator-text { font-size: 11px; color: var(--green); font-weight: 600; margin-top: 4px; }
.detail-footer-actions {
  display: flex; gap: 10px; padding: 12px 18px 22px 18px; border-top: 1px solid var(--border);
  background: var(--surface); position: sticky; bottom: 0;
}
.detail-wishlist-btn {
  width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.detail-wishlist-btn.active { color: var(--danger); border-color: var(--danger); }
.detail-add-cart-btn {
  flex: 1; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
  color: #0b0d11; font-size: 13px; font-weight: 800; display: flex;
  align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px var(--accent-glow); cursor: pointer;
}
.detail-add-cart-btn:disabled { background: var(--surface-3); color: var(--text-dim); box-shadow: none; cursor: not-allowed; }

/* View 5 Cart */
.view-cart { padding: 16px; display: flex; flex-direction: column; gap: 18px; max-width: 600px; margin: 0 auto; }
.cart-items-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; display: flex; gap: 12px;
}
.cart-item-thumb { width: 68px; height: 68px; background: #fff; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-details { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item-brand { font-size: 10px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.cart-item-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.2; }
.cart-item-spec { font-size: 11px; color: var(--text-muted); }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.cart-item-price { font-size: 13px; font-weight: 800; color: var(--text); }
.qty-control-wrap {
  display: flex; align-items: center; gap: 8px; background: var(--surface-2);
  border-radius: var(--radius-sm); padding: 2px 6px;
}
.qty-btn { font-size: 14px; color: var(--text); padding: 2px 6px; cursor: pointer; }
.qty-value { font-size: 12px; font-weight: 700; min-width: 16px; text-align: center; }
.checkout-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px;
}
.card-heading {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted);
}
.gift-card-row { display: flex; gap: 8px; }
.gift-card-input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 12px; color: var(--text);
  font-size: 12px; text-transform: uppercase; font-weight: 700;
}
.gift-card-apply-btn {
  background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 700;
  padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-light); cursor: pointer;
}
.referral-credit-row { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; }
.referral-label-wrap { display: flex; flex-direction: column; gap: 2px; }
.referral-label { font-size: 12px; font-weight: 600; }
.referral-avail-sub { font-size: 11px; color: var(--green); }
.switch { position: relative; display: inline-block; width: 42px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0; background-color: var(--surface-3);
  transition: 0.2s; border-radius: 22px; border: 1px solid var(--border-light);
}
.slider:before {
  position: absolute; content: ''; height: 16px; width: 16px; left: 2px; bottom: 2px;
  background-color: white; transition: 0.2s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--green); }
input:checked + .slider:before { transform: translateX(20px); }
.customer-note-input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; color: var(--text); font-size: 12px;
  resize: vertical; min-height: 54px; outline: none;
}
.pricing-breakdown { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px dashed var(--border-light); }
.price-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.price-line.total { font-size: 15px; font-weight: 800; color: var(--text); padding-top: 4px; }
.legal-footer-note { font-size: 10px; color: var(--text-dim); text-align: center; line-height: 1.4; font-style: italic; padding: 0 10px; }
.checkout-submit-btn {
  width: 100%; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
  color: #0b0d11; font-size: 14px; font-weight: 800; display: flex;
  align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px var(--accent-glow); cursor: pointer;
}

/* View 6 Profile */
.view-profile { padding: 16px; display: flex; flex-direction: column; gap: 18px; max-width: 600px; margin: 0 auto; }
.profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 14px;
}
.profile-avatar-circle {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, #222631 0%, #141720 100%);
  border: 2px solid var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 22px; color: var(--accent);
}
.profile-info { display: flex; flex-direction: column; gap: 2px; }
.profile-name { font-size: 15px; font-weight: 700; color: var(--text); }
.profile-handle { font-size: 11px; color: var(--text-muted); }
.referral-card {
  background: linear-gradient(135deg, #181c26 0%, #12141a 100%);
  border: 1px solid var(--accent-glow); border-radius: var(--radius-lg);
  padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
}
.ref-stats-row { display: flex; gap: 18px; }
.ref-stat-box { display: flex; flex-direction: column; }
.ref-stat-val { font-size: 20px; font-weight: 800; color: var(--accent); }
.ref-stat-lbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.ref-link-box {
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 8px 12px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}
.ref-link-text {
  font-size: 11px; color: var(--text-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.ref-actions-row { display: flex; gap: 8px; }
.ref-share-btn {
  flex: 1; height: 38px; background: var(--accent); color: #0b0d11;
  font-weight: 800; font-size: 12px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.ref-copy-btn {
  height: 38px; padding: 0 14px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-light); font-weight: 700; font-size: 11px;
  border-radius: 10px; cursor: pointer;
}
.gift-cards-stack { display: flex; flex-direction: column; gap: 10px; }
.gift-voucher-card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.voucher-code { font-size: 13px; font-weight: 800; color: var(--accent); }
.voucher-balance { font-size: 11px; color: var(--text-muted); }
.voucher-apply-btn {
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border-light); color: var(--text); cursor: pointer;
}
.orders-list { display: flex; flex-direction: column; gap: 8px; }
.order-history-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px; display: flex;
  justify-content: space-between; align-items: center;
}
.order-num { font-size: 12px; font-weight: 700; color: var(--text); }
.order-meta-sub { font-size: 10px; color: var(--text-dim); }
.order-status-badge {
  font-size: 9px; font-weight: 800; padding: 2px 7px;
  border-radius: var(--radius-full); background: var(--accent-soft);
  color: var(--accent); text-transform: uppercase;
}

/* Filter Sheet */
.filter-sheet-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 20px; }
.filter-section { display: flex; flex-direction: column; gap: 10px; }
.filter-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); }
.size-chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.facet-chip {
  padding: 7px 12px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); font-size: 12px;
  font-weight: 700; display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.facet-chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.facet-chip .count { font-size: 10px; color: var(--text-dim); }
.color-swatches-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.color-swatch-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; font-size: 11px; font-weight: 600;
}
.color-swatch-item.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.swatch-circle { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); }
.brand-checkboxes-list { display: flex; flex-direction: column; gap: 8px; max-height: 160px; overflow-y: auto; }
.brand-check-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-radius: 8px; background: var(--surface-2);
  border: 1px solid var(--border); cursor: pointer; font-size: 11px; font-weight: 600;
}
.brand-check-row.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.price-inputs-row { display: flex; gap: 10px; align-items: center; }
.price-box {
  flex: 1; display: flex; align-items: center; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; gap: 6px;
}
.price-box span { color: var(--text-dim); font-size: 11px; }
.price-box input { width: 100%; background: none; border: none; outline: none; color: var(--text); font-size: 12px; font-weight: 700; }
.filter-sheet-footer {
  position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 20px 20px 20px;
  background: var(--surface); border-top: 1px solid var(--border);
}
.filter-reset-btn {
  height: 44px; padding: 0 16px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer;
}
.filter-apply-btn {
  flex: 1; height: 44px; border-radius: 12px; background: var(--accent);
  color: #0b0d11; font-size: 13px; font-weight: 800; cursor: pointer;
}

/* Order Confirmation Modal */
.order-modal-content { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.order-success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft);
  color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.order-summary-pre {
  background: var(--surface-2); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 10px; font-size: 11px; color: var(--text-muted);
  text-align: left; white-space: pre-wrap; width: 100%; max-height: 160px; overflow-y: auto;
}
.order-manager-link-btn {
  width: 100%; height: 46px; background: #2563eb; color: #ffffff;
  border-radius: 12px; font-weight: 800; font-size: 13px; display: flex;
  align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--nav-height) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: rgba(11, 13, 17, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around;
}
.nav-tab-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; height: 100%; color: var(--text-dim);
  cursor: pointer; position: relative; transition: color 0.15s ease;
}
.nav-tab-btn.active { color: var(--accent); }
.nav-icon-wrap { position: relative; font-size: 17px; line-height: 1; }
.nav-label { font-size: 10px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; }
.nav-badge {
  position: absolute; top: -6px; right: -10px; background: var(--danger);
  color: #ffffff; font-size: 9px; font-weight: 800; padding: 1px 5px;
  border-radius: var(--radius-full); min-width: 14px; text-align: center;
}
.nav-badge.hidden { display: none; }


/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  z-index: 100;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Header Language & Currency Pill Switchers */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill-switch-group {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.pill-switch-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent) !important;
  opacity: 0.72;
  background: transparent;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.pill-switch-btn.active {
  opacity: 1;
  color: var(--accent) !important;
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Profile Preferences */
.profile-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-pref-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* Free Delivery Included Notice */
.free-delivery-note {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: -4px;
}

.cart-delivery-note {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* PDP Size Guide Trigger */
.selector-label-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pdp-size-guide-btn {
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.pdp-size-guide-btn:active {
  transform: scale(0.96);
}

/* Native Context-Aware Size Guide Modal */
.size-guide-sheet {
  max-height: 88vh;
  padding-bottom: 18px;
}

.sg-header-row {
  padding-bottom: 6px;
}

.sg-modal-heading {
  font-family: 'Signika', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.sg-close-btn {
  margin-left: auto;
  line-height: 1;
}

.sg-controls-bar {
  padding: 6px 18px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.sg-top-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
}

.sg-gender-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.sg-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sg-unit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 2px;
}

.sg-tab-btn,
.sg-subtab-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  color: var(--accent) !important;
  opacity: 0.72;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sg-tab-btn {
  padding: 5px 9px;
  font-size: 11px;
}

.sg-tab-btn.active,
.sg-subtab-btn.active {
  opacity: 1;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  color: var(--accent) !important;
  box-shadow: 0 0 8px var(--accent-glow);
}

.sg-unit-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted) !important;
  opacity: 0.85;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sg-unit-btn.active {
  opacity: 1;
  background: rgba(243, 229, 171, 0.14);
  border: 1px solid var(--accent-light);
  color: var(--accent-light) !important;
  box-shadow: none;
}

.sg-instock-hint {
  margin: 8px 18px 0 18px;
  padding: 0;
  background: none;
  border: none;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(16, 185, 129, 0.8);
}

.sg-table-wrap {
  margin: 8px 14px 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg);
}

.sg-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.sg-table th,
.sg-table td {
  text-align: center !important;
  vertical-align: middle;
  padding: 8px 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-th-lbl {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.15;
}

.sg-th-unit {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: lowercase;
  line-height: 1.1;
  margin-top: 1px;
}

.sg-table th {
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border);
}

.sg-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.sg-table tbody tr:last-child td {
  border-bottom: none;
}

.sg-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

.sg-sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #141720;
  font-weight: 800;
  border-right: 1px solid var(--border-light);
}

.sg-table tbody tr:nth-child(even) td.sg-sticky-col {
  background: #191d28;
}

.sg-table th.sg-sticky-col {
  background: var(--surface-2);
  z-index: 3;
}

.sg-table tbody tr.sg-row-instock td {
  background: rgba(16, 185, 129, 0.08);
  color: var(--green) !important;
  font-weight: 700;
}

.sg-table tbody tr.sg-row-instock td.sg-sticky-col {
  background: #11221c;
  color: var(--green) !important;
  font-weight: 700;
}

.sg-disclaimer {
  padding: 8px 18px 4px 18px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-dim);
  font-style: italic;
}

