/* ───────────────────────────────────────────────
   Sanchez Cybernetics — Design system
   ─────────────────────────────────────────────── */

:root {
  --bg:        #f6f7fb;
  --surface:   #ffffff;
  --surface-2: #f1f3f9;
  --ink:       #0b1220;
  --ink-2:     #4a5878;
  --ink-3:     #8a96b1;
  --line:      #e6eaf2;
  --line-2:    #eef1f7;

  --brand:       #06b6d4;
  --brand-deep:  #0891b2;
  --brand-soft:  #ecfeff;
  --accent:      #8b5cf6;

  --success: #10b981;
  --danger:  #ef4444;
  --warning: #f59e0b;

  --dark:    #0a0e1a;
  --dark-2:  #111729;
  --dark-3:  #1c2540;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-sm: 0 1px 2px rgba(13,22,40,.05), 0 1px 1px rgba(13,22,40,.04);
  --sh-md: 0 4px 14px -2px rgba(13,22,40,.08), 0 2px 4px rgba(13,22,40,.04);
  --sh-lg: 0 24px 48px -12px rgba(13,22,40,.18), 0 6px 16px -4px rgba(13,22,40,.08);
  --ring:  0 0 0 4px rgba(6,182,212,.18);

  --ease: cubic-bezier(.2,.7,.2,1);
}

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

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-feature-settings: 'cv11','ss01';
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--ink);
}

a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }

.text-muted, .text-white-50 { color: var(--ink-2) !important; }
.text-mute-2 { color: var(--ink-3); }

hr { color: var(--line); opacity: 1; }

/* ───── Container width tweak ───── */
@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl { max-width: 1240px; }
}

/* ───── Navbar ───── */
.app-nav {
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1030;
}
.app-nav .nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--sh-md);
}
.brand-name b { color: var(--brand-deep); }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a, .nav-links button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 500; color: var(--ink-2);
  border: 1px solid transparent;
  background: transparent;
  transition: all .15s var(--ease);
}
.nav-links a:hover, .nav-links button:hover {
  color: var(--ink); background: var(--surface-2);
}
.nav-links a.is-active { color: var(--ink); background: var(--surface-2); }

.nav-search {
  position: relative; flex: 1; max-width: 360px;
}
.nav-search input {
  width: 100%; height: 40px; padding: 0 14px 0 40px;
  background: var(--surface-2); border: 1px solid transparent;
  border-radius: 999px; font-size: .92rem;
  transition: all .15s var(--ease);
}
.nav-search input:focus {
  outline: none; background: #fff;
  border-color: var(--brand);
  box-shadow: var(--ring);
}
.nav-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); pointer-events: none;
}

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); background: transparent; border: 1px solid transparent;
  transition: all .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .badge-dot {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff; font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink);
  font-weight: 500;
}
.avatar {
  width: 28px; height: 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-size: .78rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* mobile nav */
.nav-toggler {
  display: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2); border: 0;
  align-items: center; justify-content: center; color: var(--ink);
}
@media (max-width: 991px) {
  .nav-toggler { display: inline-flex; }
  .app-nav .nav-inner > .nav-collapse {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px; flex-direction: column; gap: 12px;
    box-shadow: var(--sh-lg);
  }
  .app-nav.is-open .nav-collapse { display: flex; }
  .app-nav.is-open .nav-collapse .nav-links { flex-direction: column; align-items: stretch; }
  .app-nav.is-open .nav-collapse .nav-search { max-width: none; }
}

/* dropdown */
.menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s var(--ease), transform .15s var(--ease);
  z-index: 100;
}
.menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px;
  font-size: .9rem; color: var(--ink-2);
  background: transparent; border: 0;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--ink); }
.menu hr { margin: 6px -4px; border: 0; border-top: 1px solid var(--line); }
.menu-anchor { position: relative; }

/* ───── Buttons ───── */
.btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 10px 18px;
  border: 1px solid transparent;
  transition: transform .08s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
  letter-spacing: -0.005em;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--ring); outline: none; }
.btn-lg { padding: 14px 22px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: .82rem; border-radius: 10px; }

.btn-primary, .btn-primary:focus {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-color: var(--brand-deep);
  color: #fff; box-shadow: 0 4px 14px -4px rgba(6,182,212,.5);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #22c5dd 0%, #0a9ec1 100%);
  color: #fff;
  box-shadow: 0 8px 22px -6px rgba(6,182,212,.55);
}

.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #1a2238; border-color: #1a2238; color: #fff; }

.btn-outline-primary {
  color: var(--brand-deep); border-color: var(--brand);
  background: #fff;
}
.btn-outline-primary:hover {
  background: var(--brand-soft); color: var(--brand-deep);
  border-color: var(--brand);
}

.btn-ghost {
  background: var(--surface-2); border-color: transparent; color: var(--ink);
}
.btn-ghost:hover { background: #e7ebf3; }

.btn-soft-success { background: rgba(16,185,129,.12); color: #047857; border-color: transparent; }
.btn-soft-success:hover { background: rgba(16,185,129,.18); color: #047857; }

.btn-soft-danger { background: rgba(239,68,68,.1); color: #b91c1c; border-color: transparent; }
.btn-soft-danger:hover { background: rgba(239,68,68,.16); color: #991b1b; }

.btn-outline-light {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,.16); color: #fff; }

.btn-outline-secondary {
  color: var(--ink-2); border-color: var(--line);
  background: #fff;
}
.btn-outline-secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }

.btn-outline-danger { color: var(--danger); border-color: rgba(239,68,68,.4); background: #fff; }
.btn-outline-danger:hover { background: rgba(239,68,68,.08); color: var(--danger); }

/* ───── Forms ───── */
.form-control, .form-select {
  height: 44px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 12px; font-size: .95rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea.form-control { height: auto; padding: 12px 14px; line-height: 1.5; }
.form-control:focus, .form-select:focus {
  border-color: var(--brand); box-shadow: var(--ring); outline: none;
}
.form-control::placeholder { color: var(--ink-3); }
.form-control-sm, .form-select-sm { height: 36px; font-size: .85rem; border-radius: 10px; padding: 0 10px; }
.form-label { font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; letter-spacing: -.005em; }
.form-check-input {
  width: 1.1rem; height: 1.1rem; margin-top: .2rem;
  border: 1.5px solid var(--line);
}
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--brand); }
.form-check-label { color: var(--ink); font-weight: 500; }

/* ───── Cards & surfaces ───── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: none;
}
.card .card-header {
  background: transparent; border-bottom: 1px solid var(--line);
  padding: 14px 18px; font-weight: 600;
}
.card .card-body { padding: 18px; }
.surface-soft { background: var(--surface-2); border-radius: var(--r-md); padding: 18px; }

/* ───── Section heading ───── */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.section-head h2 {
  font-size: 1.6rem; margin: 0; font-weight: 700;
}
.section-head .section-sub { color: var(--ink-2); font-size: .92rem; margin-top: 4px; }
.section-head .section-more { font-weight: 500; color: var(--brand-deep); }
.section-head .section-more svg { transition: transform .15s var(--ease); }
.section-head .section-more:hover svg { transform: translateX(3px); }

/* ───── Hero ───── */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, rgba(139,92,246,.32), transparent 60%),
              radial-gradient(80% 60% at 0% 100%, rgba(6,182,212,.32), transparent 60%),
              linear-gradient(135deg, #0a0e1a 0%, #111729 60%, #1c2540 100%);
  color: #fff;
  border-radius: 0 0 32px 32px;
  margin-top: -1px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero .hero-inner { position: relative; padding: 88px 0 96px; }
.hero h1 {
  color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05; max-width: 16ch;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #67e8f9 0%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { color: rgba(255,255,255,.72); max-width: 52ch; font-size: 1.05rem; }
.hero .hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats .stat .n { font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stats .stat .l { color: rgba(255,255,255,.6); font-size: .82rem; margin-top: 4px; letter-spacing: .02em; text-transform: uppercase; }

.hero-art {
  position: relative; aspect-ratio: 1/1; max-width: 420px; margin-left: auto;
}
.hero-art .ring {
  position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
}
.hero-art .ring:nth-child(1) { inset: 0; }
.hero-art .ring:nth-child(2) { inset: 8%; }
.hero-art .ring:nth-child(3) { inset: 18%; border-color: rgba(6,182,212,.35); }
.hero-art .glow {
  position: absolute; inset: 24%; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.6), transparent 70%);
  filter: blur(20px);
}
.hero-art .chip {
  position: absolute; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-size: .82rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-art .chip.c1 { top: 6%; left: -4%; }
.hero-art .chip.c2 { top: 28%; right: -8%; }
.hero-art .chip.c3 { bottom: 14%; left: -2%; }

/* ───── Category tiles ───── */
.cat-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); font-weight: 600;
  transition: all .2s var(--ease);
}
.cat-tile:hover {
  border-color: transparent; color: var(--ink);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.cat-tile .cat-icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-deep);
}
.cat-tile .cat-meta { font-size: .78rem; color: var(--ink-3); font-weight: 500; margin-top: 2px; }

/* ───── Product card ───── */
.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); height: 100%;
  transition: all .2s var(--ease);
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: transparent;
}
.product-card .p-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-card .p-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.product-card:hover .p-thumb img { transform: scale(1.04); }
.product-card .p-placeholder {
  color: var(--ink-3); opacity: .6;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .78rem;
}
.product-card .p-body {
  display: flex; flex-direction: column;
  padding: 14px 16px 16px; gap: 6px; flex: 1;
}
.product-card .p-brand { font-size: .72rem; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.product-card .p-name {
  font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.product-card .p-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.product-card .p-price .now { font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.product-card .p-price .was { font-size: .82rem; color: var(--ink-3); text-decoration: line-through; }
.product-card .p-actions {
  display: flex; gap: 8px; margin-top: 12px;
}
.product-card .badge-pill {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--ink); color: #fff;
  letter-spacing: .02em;
}
.product-card .badge-pill.sale { background: var(--danger); }
.product-card .badge-pill.hot {
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.product-card .p-fav {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); opacity: 0; transform: translateY(-4px);
  transition: all .2s var(--ease);
}
.product-card:hover .p-fav { opacity: 1; transform: translateY(0); }
.product-card .p-fav:hover { color: var(--danger); }

/* ───── Catalog filters ───── */
.filter-card {
  position: sticky; top: 88px;
}
.filter-card h6 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); font-weight: 600; margin-bottom: 10px;
}
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; font-size: .92rem;
  transition: all .15s var(--ease);
}
.cat-list a:hover { background: var(--surface-2); color: var(--ink); }
.cat-list a.is-active {
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(139,92,246,.1));
  color: var(--brand-deep); font-weight: 600;
}

.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 16px;
  margin-bottom: 18px;
}
.toolbar .count { color: var(--ink-2); font-size: .92rem; }
.toolbar .count b { color: var(--ink); }

/* ───── Pagination ───── */
.pagination { gap: 4px; }
.page-link {
  border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 10px !important; margin: 0;
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.page-link:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.page-item.active .page-link {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* ───── Badges ───── */
.badge {
  font-weight: 600; padding: 5px 10px; border-radius: 999px;
  letter-spacing: .005em;
}
.badge.bg-secondary { background: var(--surface-2) !important; color: var(--ink-2) !important; }
.badge.bg-success { background: rgba(16,185,129,.14) !important; color: #047857 !important; }
.badge.bg-info { background: var(--brand-soft) !important; color: var(--brand-deep) !important; }
.badge.bg-warning { background: rgba(245,158,11,.15) !important; color: #b45309 !important; }
.badge.bg-danger { background: rgba(239,68,68,.12) !important; color: #b91c1c !important; }

/* ───── Alerts ───── */
.alert {
  border: 1px solid transparent; border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.alert-success { background: rgba(16,185,129,.08); color: #047857; border-color: rgba(16,185,129,.2); }
.alert-danger { background: rgba(239,68,68,.06); color: #991b1b; border-color: rgba(239,68,68,.18); }
.alert-info { background: var(--brand-soft); color: var(--brand-deep); border-color: rgba(6,182,212,.2); }

/* ───── Product page ───── */
.product-gallery {
  display: grid; gap: 12px;
  grid-template-columns: 80px 1fr;
}
.product-gallery .thumbs { display: flex; flex-direction: column; gap: 8px; }
.product-gallery .thumbs img {
  width: 80px; height: 80px; object-fit: cover; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer;
}
.product-gallery .thumbs img.is-active { border-color: var(--brand); }
.product-gallery .main {
  background: var(--surface-2); border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575px) { .product-gallery { grid-template-columns: 1fr; } .product-gallery .thumbs { flex-direction: row; } }

.price-now { font-size: 2.2rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.price-was { font-size: 1rem; color: var(--ink-3); text-decoration: line-through; }
.price-save { color: #047857; font-weight: 600; font-size: .9rem; }

.rating-stars { color: #f59e0b; letter-spacing: .05em; }

.tabs-modern {
  display: flex; gap: 4px; padding: 6px;
  background: var(--surface-2); border-radius: 14px;
  margin-bottom: 18px;
}
.tabs-modern button {
  flex: 1; padding: 10px 14px; border: 0; background: transparent;
  border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .92rem;
  transition: all .15s var(--ease);
}
.tabs-modern button.is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.tabs-modern button:hover { color: var(--ink); }

.review-item {
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.review-item:last-child { border-bottom: 0; }
.review-author {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}

/* ───── Cart ───── */
.cart-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row .thumb {
  width: 78px; height: 78px; flex: 0 0 78px;
  border-radius: 12px; overflow: hidden; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
}
.cart-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button {
  width: 36px; border: 0; background: #fff; color: var(--ink-2); font-weight: 700;
}
.qty-stepper button:hover { background: var(--surface-2); color: var(--ink); }
.qty-stepper input {
  width: 50px; border: 0; text-align: center; height: 38px;
  font-weight: 600; background: #fff;
}
.qty-stepper input:focus { outline: none; }

.summary {
  background: linear-gradient(180deg, #fff, #fafbff);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px;
}
.summary .line {
  display: flex; justify-content: space-between; padding: 8px 0;
  color: var(--ink-2);
}
.summary .total {
  display: flex; justify-content: space-between; align-items: end;
  padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line);
}
.summary .total .lbl { color: var(--ink-2); font-size: .92rem; }
.summary .total .val { font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }

/* ───── Auth / centered cards ───── */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
}
.auth-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px;
  box-shadow: var(--sh-md); width: 100%; max-width: 440px;
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--ink-2); margin-bottom: 24px; font-size: .92rem; }

/* ───── Services ───── */
.service-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; height: 100%;
  transition: all .2s var(--ease);
}
.service-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.service-card .s-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.service-card .s-points { color: var(--ink-2); margin-bottom: 18px; padding-left: 1.1rem; }
.service-card .s-points li { margin-bottom: 6px; }

.steps {
  counter-reset: step;
  display: flex; flex-direction: column; gap: 14px;
}
.steps li {
  list-style: none; counter-increment: step;
  display: flex; gap: 14px; align-items: flex-start;
  padding-left: 0;
}
.steps li::before {
  content: counter(step);
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}

/* ───── Account / list-group ───── */
.side-nav {
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 8px;
}
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; font-size: .92rem;
  transition: all .15s var(--ease);
}
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.is-active {
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(139,92,246,.1));
  color: var(--brand-deep); font-weight: 600;
}

/* ───── Tables ───── */
.table {
  --bs-table-bg: transparent;
  color: var(--ink); margin: 0;
}
.table thead th {
  background: var(--surface-2); color: var(--ink-3);
  font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  border: 0; padding: 12px 16px;
}
.table tbody td { padding: 14px 16px; vertical-align: middle; border-color: var(--line); }
.table tbody tr:last-child td { border-bottom: 0; }

/* ───── Footer ───── */
.app-footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  margin-top: 80px; padding: 56px 0 28px;
  border-radius: 32px 32px 0 0;
}
.app-footer h6 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.app-footer a { color: rgba(255,255,255,.66); display: inline-block; padding: 4px 0; }
.app-footer a:hover { color: #fff; }
.app-footer .footer-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: rgba(255,255,255,.5); font-size: .85rem;
}

/* ───── Modal ───── */
.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.modal-header { border-bottom: 1px solid var(--line); padding: 18px 22px; }
.modal-title { font-weight: 700; font-size: 1.15rem; }
.modal-body { padding: 22px; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 22px; }

/* ───── Breadcrumbs ───── */
.breadcrumb {
  background: transparent; padding: 0; margin: 0 0 20px;
  font-size: .88rem; color: var(--ink-3);
}
.breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--ink-3); }
.breadcrumb-item a { color: var(--ink-2); }
.breadcrumb-item.active { color: var(--ink); }

/* ───── Toast ───── */
.toast-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 1080;
  display: flex; flex-direction: column; gap: 10px;
  max-width: calc(100vw - 36px);
}
.toast-item {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--sh-lg);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  min-width: 280px;
  animation: toast-in .25s var(--ease);
}
.toast-item .toast-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 32px;
}
.toast-item.success .toast-icon { background: rgba(16,185,129,.14); color: #047857; }
.toast-item.error   .toast-icon { background: rgba(239,68,68,.12); color: #b91c1c; }
.toast-item.info    .toast-icon { background: var(--brand-soft); color: var(--brand-deep); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ───── Empty state ───── */
.empty-state {
  text-align: center; padding: 64px 24px;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty-state .icon-wrap {
  width: 72px; height: 72px; border-radius: 18px;
  background: var(--surface-2); color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ───── 404 ───── */
.err-404 {
  text-align: center; padding: 100px 20px;
}
.err-404 .num {
  font-size: clamp(6rem, 18vw, 12rem); line-height: 1;
  font-weight: 800; letter-spacing: -.05em;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ───── Admin layout ───── */
body.is-admin { background: var(--surface-2); }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--dark); color: rgba(255,255,255,.8);
  padding: 22px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand { color: #fff; margin-bottom: 26px; }
.admin-sidebar .brand:hover { color: #fff; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  color: rgba(255,255,255,.7); font-weight: 500; font-size: .92rem;
}
.admin-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-nav a.is-active { background: rgba(6,182,212,.15); color: #67e8f9; }
.admin-nav .section-label {
  color: rgba(255,255,255,.4); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  margin: 18px 14px 6px;
}
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 5;
}
.admin-main { padding: 28px; }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 18px; }
@media (max-width: 991px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
}

/* ───── List group neutralizer (legacy Bootstrap usage) ───── */
.list-group { border-radius: var(--r-md); overflow: hidden; }
.list-group-item { border-color: var(--line); padding: 14px 16px; }
.list-group-item.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ───── Misc ───── */
.dropdown-toggle::after { display: none; }
::selection { background: rgba(6,182,212,.25); }
.hidden-vis { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* legacy compat with bootstrap inline usages still in code */
.bg-light { background: var(--surface-2) !important; }
.fs-2 { letter-spacing: -.02em; }
.text-primary { color: var(--brand-deep) !important; }
