/* ============================================================
   ALTISNET GLOBAL — PREMIUM STYLESHEET
   Fonts: Sora (headings) · DM Sans (body) · JetBrains Mono (prices)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   GLOBAL KEYFRAMES
   ============================================================ */
@keyframes float {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-20px); }
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colours */
  --blue:          #1a8fe3;
  --blue-dark:     #1270b8;
  --blue-deeper:   #0d5a99;
  --blue-light:    #e6f4ff;
  --blue-mid:      #bde0fc;

  --orange:        #ff6b2b;
  --orange-dark:   #e5561f;
  --orange-light:  #fff0ea;

  /* Semantic */
  --success:       #10b981;
  --success-light: #ecfdf5;
  --warning:       #f59e0b;
  --warning-light: #fffbeb;
  --error:         #ef4444;
  --error-light:   #fef2f2;

  /* Neutrals */
  --bg:            #f8faff;
  --white:         #ffffff;
  --text:          #111827;
  --text-med:      #374151;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;
  --border:        #e5e7eb;
  --border-focus:  #1a8fe3;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.09), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:  0 20px 25px rgba(0,0,0,.10), 0 10px 10px rgba(0,0,0,.04);
  --shadow-card-hover: 0 16px 40px rgba(26,143,227,.14), 0 4px 12px rgba(0,0,0,.08);

  /* Radii */
  --radius-xs:  6px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Transition */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.2s var(--ease);

  /* Layout */
  --nav-height: 96px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

a       { color: inherit; text-decoration: none; }
img     { display: block; max-width: 100%; height: auto; }
button  { cursor: pointer; font-family: inherit; background: none; border: none; }
input, select, textarea { font-family: inherit; }
ul, ol  { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar            { width: 6px; height: 6px; }
::-webkit-scrollbar-track      { background: var(--bg); }
::-webkit-scrollbar-thumb      { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover{ background: var(--text-light); }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section        { padding-block: 64px; }
.section-sm     { padding-block: 40px; }
.section-lg     { padding-block: 96px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section-title        { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 700; }
.section-title span   { color: var(--blue); }
.section-subtitle     { color: var(--text-muted); font-size: 1rem; margin-top: 6px; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Flex helpers */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }
.gap-4         { gap: 4px; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.gap-16        { gap: 16px; }
.gap-24        { gap: 24px; }

/* Spacing */
.mt-4   { margin-top: 4px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mb-0   { margin-bottom: 0px; }
.mb-4   { margin-bottom: 4px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }

/* Text helpers */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-sm      { font-size: 0.85rem; }
.text-xs      { font-size: 0.75rem; }
.text-lg      { font-size: 1.1rem; }
.text-muted   { color: var(--text-muted); }
.text-blue    { color: var(--blue); }
.text-orange  { color: var(--orange); }
.text-success { color: var(--success); }
.text-error   { color: var(--error); }
.font-mono    { font-family: 'JetBrains Mono', monospace; }
.font-sora    { font-family: 'Sora', sans-serif; }
.font-bold    { font-weight: 700; }
.font-600     { font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after   { background: rgba(255,255,255,0.1); }
.btn:active         { transform: scale(0.98); }
.btn:disabled       { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* Primary */
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover:not(:disabled) {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,143,227,.35);
}

/* Accent / orange */
.btn-accent, .btn-orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-accent:hover:not(:disabled),
.btn-orange:hover:not(:disabled) {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,43,.35);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover:not(:disabled) {
  background: var(--blue-light);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-med);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--text-light);
}

/* Sizes */
.btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.badge-blue   { background: var(--blue-light);    color: var(--blue-dark); }
.badge-orange { background: var(--orange-light);  color: var(--orange-dark); }
.badge-green  { background: var(--success-light); color: #065f46; }
.badge-red    { background: var(--error-light);   color: #991b1b; }
.badge-gray   { background: var(--bg);            color: var(--text-muted); border: 1px solid var(--border); }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce-bar {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 7px 48px;
  font-size: .8125rem;
  font-weight: 500;
  position: relative;
  transition: all .3s ease;
}
.announce-bar strong { font-weight: 700; }
.announce-bar.hidden { display: none; }
@media (max-width: 600px) {
  .announce-bar { font-size: .7rem; padding: 8px 38px 8px 12px; white-space: normal; line-height: 1.45; }
}

/* ============================================================
   NAVBAR  — two-row mega navbar
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
}

/* ── Row 1: Logo · Search · Icons (56px) ── */
.nav-top-row {
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { display: block; }
.nav-logo-text {
  display: none;
}

/* Search bar */
.nav-search {
  flex: 1;
  max-width: 500px;
  position: relative;
  margin-inline: auto;
}
.nav-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg);
  font-size: 0.875rem;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}
.nav-search input::placeholder { color: var(--text-light); }
.nav-search input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.nav-search .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  line-height: 1;
}

/* Nav action icons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-med);
  font-size: 1.05rem;
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-btn:hover { background: var(--bg); color: var(--blue); }

/* Cart badge */
.cart-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  background: var(--orange);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid #fff;
  animation: badge-pop 0.25s var(--ease);
}
@keyframes badge-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── Row 2: Navigation links (40px) ── */
.nav-bottom-row {
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.nav-bottom-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 24px;
  height: 40px;
  display: flex;
  align-items: center;
}
.nav-link {
  padding: 0 16px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav-link:hover { color: #1a8fe3; }
.nav-link--active { color: #1a8fe3; border-bottom-color: #1a8fe3; }

/* Categories hover dropdown */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-cat-wrap { position: relative; }
.nav-cat-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 600;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
  min-width: 210px;
  padding: 6px 0;
  animation: dropIn .16s ease;
}
.nav-cat-wrap:hover .nav-cat-dropdown { display: block; }
.nav-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 16px;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-cat-item:hover { background: #eff6ff; color: #1a8fe3; }

/* Hamburger — mobile only */
.hamburger { display: none; }

/* Visibility utilities */
.mobile-only { display: none !important; }
.desktop-only { display: flex; }
.mobile-search-panel { display: none; }
.mobile-menu { display: none; }
.mob-backdrop { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding-block: 80px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(26,143,227,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-light);
  color: var(--orange-dark);
  border: 1px solid rgba(255,107,43,.2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  margin-bottom: 18px;
}
.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--text);
}
.hero-content h1 span { color: var(--blue); }
.hero-content p  {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 460px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 340px;
}
.hero-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.hero-card-name  { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.hero-card-price { font-family: 'JetBrains Mono', monospace; color: var(--blue); font-size: 1.25rem; font-weight: 500; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.filter-chip {
  padding: 6px 15px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-med);
  cursor: pointer;
  transition: var(--transition);
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.filter-chip.active { border-color: var(--blue); background: var(--blue-light); color: var(--blue); font-weight: 600; }

.sort-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
}
.sort-select:focus { border-color: var(--blue); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 24px;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(26,143,227,.25);
}

/* Image area */
.product-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.product-card:hover .product-card-img { transform: scale(1.07); }

/* Badge overlay */
.product-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  background: #eff6ff;
  color: #1a8fe3;
  border: 1px solid #bfdbfe;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* Wishlist & action buttons — appear on hover */
.product-card-actions {
  position: absolute;
  top: 11px;
  right: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition);
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}
.product-action-btn {
  width: 34px;
  height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}
.product-action-btn:hover     { color: var(--blue); transform: scale(1.1); }
.product-action-btn.wishlisted{ color: var(--orange); }

/* Card body */
.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
  margin-bottom: 5px;
}
.product-name {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name:hover { color: var(--blue); }

/* Star rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}
.stars { color: #f59e0b; font-size: 0.78rem; letter-spacing: -0.5px; }
.review-count { font-size: 0.78rem; color: var(--text-muted); }

/* Footer row inside card */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  gap: 10px;
}
.product-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

/* Add to cart button on card */
.product-atc {
  padding: 8px 14px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  transition: var(--transition);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}
.product-atc:hover:not(:disabled) { background: var(--blue-dark); transform: scale(1.04); }
.product-atc.out-of-stock,
.product-atc:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   SKELETON LOADERS
   ============================================================ */
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--border);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.55) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
  to { transform: translateX(100%); }
}
.skeleton-img  { aspect-ratio: 1/1; }
.skeleton-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line {
  height: 13px;
  border-radius: 4px;
}
.w-30 { width: 30%; }
.w-40 { width: 40%; }
.w-60 { width: 60%; }
.w-80 { width: 80%; }
.w-100{ width: 100%; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(2px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--white);
  z-index: 1501;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  box-shadow: var(--shadow-xl);
}
.cart-drawer.open { transform: translateX(0); }

/* Suppress navbar stacking when cart drawer is open */
body.cart-open .navbar { z-index: 1 !important; }

.cart-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-header h2 { font-size: 1.05rem; font-weight: 700; }

.cart-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}
.cart-close:hover { background: var(--bg); color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px;
}

/* Empty cart state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  color: var(--text-muted);
  text-align: center;
  gap: 10px;
}
.cart-empty .empty-icon { font-size: 3rem; line-height: 1; }
.cart-empty p { font-size: 0.9rem; }

/* Cart items */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 3px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-remove {
  color: var(--text-light);
  font-size: 0.95rem;
  transition: color var(--transition);
  padding: 2px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}
.cart-item-remove:hover { color: var(--error); }

/* Qty stepper */
.qty-stepper { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-med);
  transition: var(--transition);
  background: var(--white);
  cursor: pointer;
}
.qty-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.qty-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

/* Cart footer */
.cart-footer {
  padding: 14px 22px 22px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.cart-subtotal-label  { font-weight: 600; font-size: 0.92rem; }
.cart-subtotal-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  pointer-events: all;
  animation: toast-slide 0.3s var(--ease);
  max-width: 320px;
  background: var(--text);
  color: #fff;
}
@keyframes toast-slide {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--error); }
.toast.warning { background: var(--warning); color: var(--text); }
.toast-icon    { font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #111827;
  color: rgba(255,255,255,.65);
  padding: 56px 0 24px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 10px;
}
.footer-brand-desc { font-size: 0.88rem; line-height: 1.75; max-width: 280px; }
.footer-col h4 {
  font-family: 'Sora', sans-serif;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
}
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Desktop large: explicit 4-col product grid ── */
@media (min-width: 1280px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Tablet: ≤ 1024px ── */
@media (max-width: 1024px) {
  .hero-inner   { grid-template-columns: 1fr; }
  .hero-visual  { display: none; }
  .products-grid{ grid-template-columns: repeat(3, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4       { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet: ≤ 768px ── */
@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  /* Navbar — mobile: show only top row, hide bottom nav row */
  .nav-top-row { padding: 0 16px; gap: 10px; }
  .nav-logo-text { display: none; }
  .nav-logo img { height: 28px !important; }
  .nav-search  { display: none; }
  .nav-bottom-row { display: none; }
  .hamburger   { display: flex; }
  .desktop-only { display: none !important; }

  /* Mobile search panel — fixed overlay directly below navbar */
  .mobile-search-panel {
    padding: 10px 16px 12px;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    animation: slideDown .18s ease;
  }
  .mobile-search-panel.open { display: block; }
  .mob-search-wrap { position: relative; }
  .mob-search-wrap input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg);
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
  }
  .mob-search-wrap input:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--blue-light);
  }
  .mob-search-icon {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex; align-items: center;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Visibility toggles */
  .mobile-only  { display: flex !important; }
  .desktop-only { display: none !important; }

  /* Search panel X close button */
  .mob-search-wrap input { padding-right: 42px; }
  .mob-search-clear {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; padding: 0; flex-shrink: 0;
    transition: background .15s, color .15s;
  }
  .mob-search-clear:hover { background: var(--bg); color: var(--text); }

  /* ── Backdrop ── */
  .mob-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .mob-backdrop.open {
    opacity: 1;
    pointer-events: all;
  }

  /* ── Full-screen menu panel ── */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu.open {
    transform: translateY(0);
  }

  /* Menu header row — logo + ✕ close button */
  .mob-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: var(--nav-height);
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .mob-menu-header-logo {
    height: 34px;
    width: auto;
    display: block;
    border-radius: 4px;
  }
  .mob-menu-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    transition: background 0.15s;
    flex-shrink: 0;
  }
  .mob-menu-close-btn:hover { background: #f3f4f6; }

  /* Inner column — all children stack vertically */
  .mob-menu-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    min-height: calc(100vh - var(--nav-height));
  }

  /* Search row */
  .mob-menu-search-row {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #f9fafb;
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
  }
  .mob-menu-search-icon {
    position: absolute;
    left: 28px; top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    display: flex; align-items: center;
  }
  .mob-menu-search-row input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    font-size: 0.9rem;
    color: #111827;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
  }
  .mob-menu-search-row input:focus {
    border-color: #1a8fe3;
    box-shadow: 0 0 0 3px #e6f4ff;
  }

  /* Nav items — each is a self-contained full-width row */
  .mob-menu-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    padding: 14px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
  }
  .mob-menu-item:last-child { border-bottom: none; }
  .mob-menu-item:hover,
  .mob-menu-item:active { background: #f9fafb; }
  .mob-menu-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #6b7280;
  }
  .mob-menu-item--admin {
    color: #1a8fe3 !important;
    font-weight: 600;
    background: rgba(26, 143, 227, 0.03) !important;
  }
  .mob-menu-item--admin:hover { background: rgba(26, 143, 227, 0.07) !important; }
  .mob-menu-item--admin svg { color: #1a8fe3 !important; }
  .mob-menu-item--danger { color: #ef4444 !important; }
  .mob-menu-item--danger svg { color: #ef4444 !important; }

  /* Thick divider between nav links and auth section */
  .mob-menu-divider {
    height: 8px;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
  }

  /* Auth section — explicit column so items can NEVER line up in a row */
  .mob-menu-auth-placeholder {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .mob-menu-auth-spinner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .mob-menu-auth-spinner {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    border-top-color: #1a8fe3;
    animation: spin 0.7s linear infinite;
  }

  /* User info row */
  .mob-menu-user {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .mob-menu-user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a8fe3, #0d5a99);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
  }
  .mob-menu-user-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .mob-menu-user-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mob-menu-user-email {
    font-size: 0.73rem;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Container: 16px edge padding on all mobile */
  .container { padding-inline: 16px; }

  /* Hero: natural height, no fixed min-height */
  .hero { padding: 40px 0; min-height: 0 !important; }
  .hero-content h1 { font-size: min(1.625rem, 7vw); }

  /* Typography caps */
  .section-title { font-size: 1.25rem !important; }
  .product-name  { font-size: 0.8125rem; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section       { padding-block: 44px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4          { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cart-drawer   { max-width: 100%; }
  .filters-bar   { gap: 10px; flex-wrap: wrap; }
  .sort-select   { margin-left: 0; width: 100%; }

  /* Touch targets — 44px minimum */
  .nav-btn       { width: 44px; height: 44px; }
  .filter-chip   { min-height: 44px; }
  .btn           { min-height: 44px; }
}

/* ── Small mobile: ≤ 600px ── */
@media (max-width: 600px) {
  .products-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card-body{ padding: 12px; }
  .product-footer   { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-atc      { width: 100%; text-align: center; justify-content: center; }
}

/* ── Mobile: ≤ 480px ── */
@media (max-width: 480px) {
  .container     { padding-inline: 16px; }

  .products-grid { grid-template-columns: 1fr; gap: 16px; }
  .grid-4, .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .hero-content h1  { font-size: 1.5rem; }
  .hero-actions     { flex-direction: column; }
  .hero-actions .btn{ width: 100%; justify-content: center; }

  .section       { padding-block: 32px; }

  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-badges { display: none; }
  .footer-col    { text-align: center; }
  .footer-brand-desc { max-width: 100%; margin-inline: auto; }

  .toast-container { right: 12px; left: 12px; bottom: 16px; }
  .toast           { max-width: 100%; }

  /* Cart items compact on mobile */
  .cart-item-img { width: 56px; height: 56px; }

  /* Auth card full width */
  .auth-card { padding: 28px 20px; border-radius: var(--radius); }
}

/* Print */
@media print {
  .navbar, .cart-overlay, .cart-drawer, .toast-container { display: none !important; }
  body { background: #fff; }
}

/* ── Account dropdown (shared across all pages) ── */
.nav-account-wrap {
  position: relative;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.97);
  transition: opacity .16s ease, transform .16s ease;
  z-index: 1000;
  overflow: hidden;
}
.account-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-med);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
  font-family: inherit;
}
.account-dropdown-item:hover {
  background: var(--bg);
  color: var(--blue);
}

/* Spinner used in auth pages */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-page {
  background: var(--bg);
  min-height: calc(100vh - var(--nav-height));
  padding-bottom: 60px;
}

/* Hero banner at top of profile */
.profile-hero {
  background: linear-gradient(135deg, #1a8fe3 0%, #1270b8 50%, #0d5a99 100%);
  padding: 36px 0 44px;
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 70% 50%, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.profile-hero-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deeper));
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 24px rgba(26,143,227,.4);
}
.profile-hero-info { flex: 1; min-width: 0; }
.profile-hero-name {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-hero-email {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-hero-since {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 0.76rem;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.profile-hero-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Layout container */
.profile-layout {
  max-width: 1240px;
  margin-inline: auto;
  padding: 28px 24px 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Sidebar ── */
.profile-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}
.profile-nav { padding: 8px 0; }
.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-med);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.profile-nav-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 70%;
  background: var(--blue);
  border-radius: 0 2px 2px 0;
  transition: transform 0.18s var(--ease);
}
.profile-nav-item:hover { background: var(--bg); color: var(--blue); }
.profile-nav-item.active {
  color: var(--blue);
  background: var(--blue-light);
  font-weight: 600;
}
.profile-nav-item.active::before { transform: translateY(-50%) scaleY(1); }
.profile-nav-item svg { flex-shrink: 0; color: inherit; opacity: 0.7; }
.profile-nav-item.active svg { opacity: 1; }
.profile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ── Mobile tab strip (hidden on desktop) ── */
.profile-tab-strip {
  display: none;
  overflow-x: auto;
  gap: 6px;
  padding: 16px 16px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.profile-tab-strip::-webkit-scrollbar { display: none; }
.profile-tab-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  white-space: nowrap;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-med);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.profile-tab-strip-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.profile-tab-strip-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Content area ── */
.profile-content { min-width: 0; }

.profile-tab { display: none; }
.profile-tab.active { display: block; }

/* Card wrapper */
.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.profile-card-header {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, rgba(26,143,227,.03), transparent);
}
.profile-card-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.profile-card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.profile-card-body { padding: 24px 28px; }

/* ── Profile form ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-med);
  margin-bottom: 6px;
  font-family: 'Sora', sans-serif;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.form-input:disabled {
  background: #f9fafb;
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.75;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 5px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  gap: 10px;
}

/* ── Order cards ── */
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
  background: var(--white);
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.order-meta { display: flex; align-items: center; gap: 12px; }
.order-id {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--blue);
  background: var(--blue-light);
  padding: 2px 9px;
  border-radius: var(--radius-full);
}
.order-date { font-size: 0.82rem; color: var(--text-muted); }
.order-right { display: flex; align-items: center; gap: 12px; }
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.order-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.order-status--success { background: var(--success-light); color: var(--success); }
.order-status--warning { background: var(--warning-light); color: #92400e; }
.order-status--error   { background: var(--error-light);   color: var(--error); }
.order-total {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.order-items { padding: 10px 18px; }
.order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.order-item:last-child { border-bottom: none; }
.order-item-name { flex: 1; color: var(--text-med); font-weight: 500; }
.order-item-qty  { color: var(--text-muted); font-size: 0.8rem; }
.order-item-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text);
}

/* ── Wishlist grid ── */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.wishlist-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.wishlist-item:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.wishlist-item-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.wishlist-item-body { padding: 13px; }
.wishlist-item-name {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  display: block;
  margin: 4px 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wishlist-item-name:hover { color: var(--blue); }
.wishlist-item-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 10px;
}
.wishlist-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wishlist-item-actions .btn { padding: 7px 12px; font-size: 0.78rem; min-height: 0; }

/* ── Profile loading / empty / error states ── */
.profile-loading {
  display: flex;
  justify-content: center;
  padding: 48px 24px;
}
.profile-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.profile-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.profile-empty svg {
  margin: 0 auto 16px;
  display: block;
  color: var(--border);
}
.profile-empty h4 { font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
.profile-empty p  { font-size: 0.88rem; margin-bottom: 18px; }
.profile-error {
  text-align: center;
  padding: 32px;
  color: var(--error);
  font-size: 0.88rem;
}

/* ── Password strength indicator ── */
.password-strength {
  height: 3px;
  border-radius: 2px;
  margin-top: 6px;
  background: var(--border);
  overflow: hidden;
}
.password-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s ease, background .3s ease;
}

/* ── Responsive profile ── */
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .profile-sidebar { display: none; }
  .profile-tab-strip { display: flex; }
  .profile-content { padding: 16px; }
  .profile-card-body { padding: 18px 16px; }
  .profile-card-header { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .profile-hero-inner { gap: 14px; }
  .profile-hero-avatar { width: 56px; height: 56px; font-size: 1.15rem; }
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
  .order-card-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .wishlist-grid { grid-template-columns: 1fr; }
}
@keyframes spin { to { transform: rotate(360deg); } }
