/* ============================================================
   TrendBaku.shop — Modern Design System v2
   ------------------------------------------------------------
   ✦ Plus Jakarta Sans + maye tipografiya (clamp)
   ✦ Gündüz / Gecə rejimi ([data-theme="dark"])
   ✦ Glassmorphism başlıq, gradient aksentlər, mikro-animasiyalar
   ✦ Rəng: Primary #6c5ce7 | Accent #ff6b6b | Dark #1a1a2e | Light #f5f6fa
   ============================================================ */

/* ---------- Design token-ları ---------- */
:root {
  --primary: #6c5ce7;
  --primary-2: #8b7cf7;
  --primary-3: #a29bfe;
  --accent: #ff6b6b;
  --accent-2: #ff9f45;
  --ok: #12b886;
  --warn: #f59f00;
  --deep: #1a1a2e;

  /* İşıq rejimi */
  --bg: #f4f4fb;
  --surface: #ffffff;
  --surface-2: #f7f7fc;
  --ink: #12121c;
  --ink-2: #45455e;
  --muted: #71718a;
  --line: rgba(18, 18, 28, 0.08);
  --header-bg: rgba(255, 255, 255, 0.72);
  --field-bg: #f7f7fc;

  --grad-brand: linear-gradient(135deg, #6c5ce7, #a29bfe);
  --grad-cta: linear-gradient(120deg, #ff6b6b, #ff9f45);
  --grad-text: linear-gradient(110deg, #6c5ce7, #a29bfe 45%, #ff9f68);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(18, 18, 28, 0.05), 0 10px 26px -14px rgba(18, 18, 28, 0.16);
  --sh-2: 0 2px 6px rgba(18, 18, 28, 0.05), 0 26px 54px -24px rgba(18, 18, 28, 0.28);
  --sh-brand: 0 14px 30px -14px rgba(108, 92, 231, 0.75);

  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Gecə rejimi */
[data-theme='dark'] {
  --bg: #0b0b13;
  --surface: #13131d;
  --surface-2: #1a1a27;
  --ink: #f2f2f8;
  --ink-2: #c6c6da;
  --muted: #9a9ab5;
  --line: rgba(255, 255, 255, 0.09);
  --header-bg: rgba(11, 11, 19, 0.72);
  --field-bg: #161622;
  --grad-text: linear-gradient(110deg, #a29bfe, #c8c0ff 45%, #ffb187);
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 28px -14px rgba(0, 0, 0, 0.7);
  --sh-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 60px -26px rgba(0, 0, 0, 0.85);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.35s ease, color 0.35s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
}

main {
  flex: 1 0 auto;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(108, 92, 231, 0.25);
}

:focus-visible {
  outline: 3px solid rgba(108, 92, 231, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Util-lər ---------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  padding: 7px 15px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.eyebrow.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 46px;
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.section-sub {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.03rem;
}

/* Scroll-da görünürlük animasiyası (.in main.js tərəfindən əlavə olunur) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal:not(.in) {
  opacity: 0;
  transform: translateY(26px);
}

/* Səhifə yuxarı progress zolağı */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 300;
  pointer-events: none;
}

/* ---------- Düymələr ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--r-pill);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 9px 17px;
  font-size: 0.86rem;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(108, 92, 231, 0.9);
}

.btn-light {
  background: #fff;
  color: #16162a;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.55);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.65);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(108, 92, 231, 0.45);
}

.btn-outline:hover {
  background: rgba(108, 92, 231, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(255, 107, 107, 0.9);
}

.btn-danger:hover {
  background: #f05555;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(37, 211, 102, 0.9);
}

.btn-whatsapp:hover {
  background: #1fbe5c;
  transform: translateY(-3px);
}

.icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-brand);
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-name em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tag {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(108, 92, 231, 0.14);
  color: var(--primary);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  margin-left: 7px;
  vertical-align: middle;
}

/* ---------- Header (glass) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 14px 34px -22px rgba(18, 18, 28, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 72px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-2);
  transition: all 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.12);
}

.nav-cta {
  background: var(--ink);
  color: var(--bg);
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--primary);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger (mobil) */
.menu-toggle {
  display: none;
  position: relative;
  gap: 0;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: all 0.3s var(--ease);
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 24px; }

.menu-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(64px, 10vw, 124px) 0 clamp(58px, 8vw, 100px);
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(108, 92, 231, 0.55), transparent 60%),
    radial-gradient(760px 420px at 92% 110%, rgba(255, 107, 107, 0.32), transparent 60%),
    linear-gradient(155deg, #14142a 0%, #221d55 48%, #3b2f9e 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: blobFloat 14s ease-in-out infinite alternate;
}

.blob-1 {
  width: 340px;
  height: 340px;
  background: #6c5ce7;
  top: -90px;
  left: -70px;
}

.blob-2 {
  width: 280px;
  height: 280px;
  background: #ff6b6b;
  bottom: -110px;
  right: 8%;
  animation-delay: -5s;
}

.blob-3 {
  width: 220px;
  height: 220px;
  background: #00cec9;
  top: 30%;
  left: 42%;
  opacity: 0.3;
  animation-delay: -9s;
}

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -34px) scale(1.15); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 30%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  gap: clamp(22px, 4vw, 44px);
}

.stat {
  padding-left: clamp(16px, 2vw, 26px);
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}

.stat:first-child {
  padding-left: 0;
  border-left: none;
}

.stat dd {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* --- Hero vizual kompozisiya --- */
.hero-visual {
  position: relative;
  min-height: 420px;
}

.hv-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(360px, 82%);
  aspect-ratio: 1;
  border: 1.5px dashed rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 46s linear infinite;
}

.hv-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(162, 155, 254, 0.55), transparent 65%);
  filter: blur(28px);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hv-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 15px 19px;
  color: #fff;
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.75);
  animation: floatY 6.5s ease-in-out infinite;
}

.hv-card strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hv-card span:not(.hv-emoji):not(.hv-discount) {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
}

.hv-emoji {
  font-size: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}

.hv-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.hv-icon .icon {
  width: 23px;
  height: 23px;
}

.hv-discount {
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--grad-cta);
  padding: 10px 12px;
  border-radius: 13px;
  box-shadow: 0 10px 22px -10px rgba(255, 107, 107, 0.9);
}

.hv-1 { top: 6%; left: 2%; }
.hv-2 { top: 39%; right: 0; animation-delay: -2.2s; }
.hv-3 { bottom: 8%; left: 14%; animation-delay: -4.4s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hv-pill {
  position: absolute;
  background: #fff;
  color: #16162a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.7);
  animation: floatY 5s ease-in-out infinite;
}

.hp-1 { top: 24%; right: 12%; animation-delay: -1.4s; }
.hp-2 { bottom: 26%; left: 0; animation-delay: -3.1s; }

/* ---------- Ticker (marquee) ---------- */
.ticker {
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}

.ticker-track span {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.ticker-track i {
  font-style: normal;
  color: var(--primary);
  font-size: 0.9rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   ÜSTÜNLÜKLƏR
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 52px;
}

.feature-card {
  position: relative;
  padding: 22px 0 24px 54px;
  border-top: 1px solid var(--line);
}

.feature-icon {
  position: absolute;
  top: 20px;
  left: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.11);
  color: var(--primary);
}

.feature-icon .icon {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}

.feature-card p {
  max-width: 430px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.features-section .section-head {
  max-width: none;
  margin: 0 0 30px;
  text-align: left;
}

.features-section .eyebrow {
  padding: 0;
  background: none;
  border-radius: 0;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.features-section .section-title {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.features-section .section-sub {
  max-width: 570px;
  margin-top: 10px;
  font-size: 0.98rem;
}

.features-section .text-grad {
  color: inherit;
  background: none;
}

/* ============================================================
   KATALOQ TOOLBAR (axtarış + sıralama + çiplər)
   ============================================================ */
.store {
  background: linear-gradient(180deg, transparent, rgba(108, 92, 231, 0.045) 30%, transparent);
}

.toolbar {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.search-bar {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 21px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 56px;
  padding: 0 92px 0 54px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  box-shadow: var(--sh-1);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.16);
}

.search-hint {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.11);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  pointer-events: none;
}

.select-wrap {
  position: relative;
}

.sort-select {
  height: 56px;
  padding: 0 46px 0 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'><path fill='%2371718a' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--sh-1);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.16);
}

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.chip {
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
  transition: all 0.28s var(--ease);
}

.chip:hover {
  border-color: rgba(108, 92, 231, 0.55);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--sh-1);
}

.chip.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-brand);
}

.chip b {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(18, 18, 28, 0.09);
  color: inherit;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.chip.active b {
  background: rgba(255, 255, 255, 0.24);
}

.results-info {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 24px;
  margin-bottom: 26px;
}

/* ============================================================
   MƏHSUL KARTLARI
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 26px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: cardIn 0.55s var(--ease) both;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-2);
  border-color: rgba(108, 92, 231, 0.35);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .card-img {
  transform: scale(1.08);
}

.badge-discount {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: var(--grad-cta);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 20px -8px rgba(255, 107, 107, 0.95);
}

.card-hover {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(16, 16, 28, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 15px;
  opacity: 0;
  transform: translateY(130%);
  transition: all 0.4s var(--ease);
}

.product-card:hover .card-hover {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.card-cat {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.11);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  transition: color 0.25s ease;
}

.product-card:hover .card-title {
  color: var(--primary);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 11px;
  flex-wrap: wrap;
}

.price {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.old-price {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: line-through;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--muted);
}

.stock-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(113, 113, 138, 0.15);
}

.stock-pill.in {
  color: var(--ok);
}

.stock-pill.in::before {
  box-shadow: 0 0 0 3px rgba(18, 184, 134, 0.18);
}

.stock-pill.out {
  color: var(--accent);
}

.stock-pill.out::before {
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}

.card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.11);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  transition: all 0.35s var(--ease);
}

.product-card:hover .card-arrow {
  background: var(--grad-brand);
  color: #fff;
  transform: rotate(-45deg);
}

/* ---------- Skeleton loader ---------- */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding-bottom: 20px;
}

.sk-media {
  aspect-ratio: 4 / 3;
}

.sk-media,
.sk-line {
  background: linear-gradient(90deg, var(--surface-2) 25%, rgba(108, 92, 231, 0.09) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.sk-line {
  height: 13px;
  margin: 15px 18px 0;
  border-radius: 8px;
}

.w-40 { width: calc(40% - 18px); }
.w-70 { width: calc(70% - 18px); }
.w-90 { width: calc(90% - 18px); }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- Boş nəticə ---------- */
.empty-state {
  text-align: center;
  padding: 66px 24px;
  background: var(--surface);
  border: 1px dashed rgba(108, 92, 231, 0.4);
  border-radius: var(--r-xl);
}

.empty-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 22px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
}

.empty-icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.7;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--muted);
}

/* ============================================================
   CTA BAND + FOOTER + TO-TOP
   ============================================================ */
.cta-wrap {
  padding-top: 20px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 54px);
  background:
    radial-gradient(500px 260px at 90% -30%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(120deg, #6c5ce7 0%, #8b7cf7 52%, #a78bfa 100%);
  box-shadow: 0 30px 60px -30px rgba(108, 92, 231, 0.85);
}

.cta-band::before {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  pointer-events: none;
}

.cta-copy {
  position: relative;
  max-width: 640px;
}

.cta-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.99rem;
  line-height: 1.65;
}

.cta-band .btn {
  position: relative;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0c0c15;
  color: #fff;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 38px;
  padding: 58px 0 38px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  transition: color 0.25s ease, transform 0.25s var(--ease);
  width: fit-content;
}

.footer-links a:hover {
  color: var(--primary-3);
  transform: translateX(5px);
}

.footer-note {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer-bottom .brand-name {
  color: #fff;
}

.copyright {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.footer-tech {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
}

/* ---------- Yuxarı qayıt ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 1.2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.35s var(--ease);
  box-shadow: var(--sh-2);
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-4px);
}

/* ---------- Bulgular (breadcrumbs) ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 26px;
  min-width: 0;
}

.breadcrumbs a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.25s ease;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .sep {
  color: var(--muted);
  opacity: 0.5;
}

.breadcrumbs b {
  color: var(--ink);
  font-weight: 700;
  max-width: 46vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ============================================================
   MƏHSUL SƏHİFƏSİ
   ============================================================ */
.page {
  padding-top: 34px;
  padding-bottom: clamp(56px, 8vw, 90px);
}

.product-loading {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 4vw, 34px);
}

.pl-media {
  border-radius: var(--r-lg);
  margin-bottom: 18px;
}

.product-view {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--sh-1);
  animation: cardIn 0.55s var(--ease) both;
}

/* --- Qalereya --- */
.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-main:hover .main-image {
  transform: scale(1.05);
}

.gallery-main .badge-discount {
  top: 18px;
  left: 18px;
  font-size: 0.88rem;
  padding: 9px 17px;
}

.thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.thumb {
  width: 78px;
  height: 78px;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-2);
  padding: 0;
  transition: all 0.28s var(--ease);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb:hover {
  transform: translateY(-4px);
}

.thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.22);
}

/* --- Məhsul məlumatları --- */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chip-cat {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.11);
  padding: 7px 14px;
  border-radius: var(--r-pill);
}

.product-title {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
}

.price-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 24px;
}

.price-box .price {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.price-box .old-price {
  font-size: 1.12rem;
}

.discount-percent {
  background: var(--grad-cta);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 20px -10px rgba(255, 107, 107, 0.95);
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stock-status {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: var(--r-pill);
}

.stock-status.in {
  background: rgba(18, 184, 134, 0.14);
  color: var(--ok);
}

.stock-status.out {
  background: rgba(255, 107, 107, 0.14);
  color: var(--accent);
}

.product-slug {
  font-family: ui-monospace, 'Cascadia Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 10px;
}

.desc-title {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 9px;
}

.product-description p {
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-line;
}

.perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 19px 22px;
}

.perks li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-2);
}

.perks li span {
  font-size: 1.1rem;
}

.action-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.action-buttons .btn {
  flex: 1;
  min-width: 210px;
}

/* --- 404 (məhsul tapılmadı) --- */
.not-found {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(46px, 8vw, 76px) 26px;
  box-shadow: var(--sh-1);
}

.not-found-code {
  display: block;
  font-size: clamp(3.6rem, 9vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.not-found h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.not-found .action-buttons {
  justify-content: center;
}

.not-found .action-buttons .btn {
  flex: 0 1 auto;
  min-width: 0;
}

/* ============================================================
   404 SƏHİFƏSİ
   ============================================================ */
.error-body {
  background:
    radial-gradient(760px 420px at 80% -10%, rgba(255, 107, 107, 0.35), transparent 60%),
    linear-gradient(155deg, #14142a 0%, #2b2470 55%, #4b3fbf 100%);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.error-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #12121c;
  max-width: 470px;
  text-align: center;
  padding: clamp(40px, 7vw, 60px) clamp(26px, 5vw, 44px);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  animation: cardIn 0.6s var(--ease) both;
}

.error-orb {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.25), rgba(255, 107, 107, 0.25));
  filter: blur(12px);
}

.error-card h1 {
  position: relative;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #12121c;
  margin-bottom: 10px;
}

.error-card p {
  position: relative;
  color: #71718a;
  margin-bottom: 28px;
  line-height: 1.7;
}

.error-card .not-found-code {
  position: relative;
}

.error-card .action-buttons {
  position: relative;
  justify-content: center;
}

.error-card .btn-outline {
  color: #6c5ce7;
}

/* ============================================================
   ADMİN — GİRİŞ EKRANI
   ============================================================ */
.login-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 44px 20px;
  background: var(--bg);
}

.login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.32;
  pointer-events: none;
}

.lb-1 {
  width: 420px;
  height: 420px;
  background: #6c5ce7;
  top: -130px;
  left: -100px;
}

.lb-2 {
  width: 380px;
  height: 380px;
  background: #ff6b6b;
  bottom: -140px;
  right: -90px;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(30px, 6vw, 44px);
  box-shadow: var(--sh-2);
  animation: cardIn 0.55s var(--ease) both;
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.login-card h1 {
  text-align: center;
  font-size: clamp(1.4rem, 4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}

.login-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 28px;
}

.login-card .btn {
  margin-top: 4px;
}

.login-hint {
  margin-top: 20px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  text-align: center;
}

.login-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  transition: opacity 0.25s ease;
}

.login-back:hover {
  opacity: 0.75;
}

/* ============================================================
   ADMİN — PANEL
   ============================================================ */
.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-brand);
  flex-shrink: 0;
}

.admin-email {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 190px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-main {
  padding-top: 36px;
  padding-bottom: clamp(50px, 7vw, 84px);
}

.page-head {
  margin-bottom: 26px;
}

.page-title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
}

.page-sub {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.98rem;
  max-width: 620px;
}

/* --- Dashboard statistik kartları --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 19px 21px;
  box-shadow: var(--sh-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-2);
}

.sc-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.sc-primary .sc-icon { background: rgba(108, 92, 231, 0.15); }
.sc-warn .sc-icon { background: rgba(245, 159, 0, 0.17); }
.sc-accent .sc-icon { background: rgba(255, 107, 107, 0.15); }
.sc-dark .sc-icon { background: rgba(113, 113, 138, 0.16); }

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.stat-card span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

/* --- Panellər --- */
.admin-grid {
  display: grid;
  grid-template-columns: minmax(340px, 480px) 1fr;
  gap: 26px;
  align-items: start;
}

.card-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--sh-1);
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.panel-head .panel-title {
  margin: 0;
  padding: 0;
  border: none;
}

.count-pill {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-brand);
}

.form-panel {
  position: sticky;
  top: 88px;
}

/* --- Admin form sahələri --- */
.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-group label .req {
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--field-bg);
  color: var(--ink);
  font-size: 0.96rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-control::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

textarea.form-control {
  min-height: 112px;
  resize: vertical;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-hint {
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 7px;
}

/* Şəkil URL + canlı önizləmə */
.image-field {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.image-field .image-input-wrap {
  flex: 1;
  min-width: 0;
}

.image-preview {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px dashed var(--line);
  background: var(--field-bg);
  flex-shrink: 0;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.image-preview:hover {
  transform: scale(1.04);
}

.image-preview.invalid {
  border-color: var(--accent);
}

/* Əlavə şəkil sətirləri */
.adv-images-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adv-image-row {
  display: flex;
  gap: 10px;
  align-items: center;
  animation: cardIn 0.35s var(--ease) both;
}

.adv-image-row .form-control {
  flex: 1;
  min-width: 0;
}

.adv-preview {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  flex-shrink: 0;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: none;
  background: rgba(255, 107, 107, 0.13);
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

.btn-add-image {
  width: 100%;
  margin-top: 11px;
  padding: 12px;
  border-radius: 14px;
  border: 1.5px dashed rgba(108, 92, 231, 0.5);
  background: rgba(108, 92, 231, 0.07);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.25s var(--ease);
}

.btn-add-image:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Featured checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  background: var(--field-bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
}

.checkbox-group input {
  width: 19px;
  height: 19px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group label {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-actions .btn {
  flex: 1;
}

/* --- Admin məhsul siyahısı --- */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 74vh;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 92, 231, 0.5) transparent;
}

.admin-list::-webkit-scrollbar {
  width: 7px;
}

.admin-list::-webkit-scrollbar-thumb {
  background: rgba(108, 92, 231, 0.45);
  border-radius: 10px;
}

.admin-product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  transition: all 0.3s var(--ease);
  animation: cardIn 0.4s var(--ease) both;
}

.admin-product-item:hover {
  border-color: rgba(108, 92, 231, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--sh-1);
}

.admin-product-item img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 3px;
}

.item-meta .item-price {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.86rem;
}

.tag-featured {
  background: rgba(245, 159, 0, 0.2);
  color: var(--warn);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: var(--r-pill);
}

.item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.list-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 48px 14px;
  background: var(--surface-2);
  border: 1.5px dashed var(--line);
  border-radius: 18px;
}

/* ---------- Toast bildirişləri ---------- */
.toast-container {
  position: fixed;
  top: 88px;
  right: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 355px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  border-radius: 16px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.55);
  animation: toastIn 0.4s var(--ease) both;
}

.toast.success { background: linear-gradient(135deg, #12b886, #0ca678); }
.toast.error { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); }
.toast.info { background: linear-gradient(135deg, #6c5ce7, #8b7cf7); }

.toast.hide {
  animation: toastOut 0.32s var(--ease) both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(70px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(70px) scale(0.95);
  }
}

/* ============================================================
   ADMİN — TABLAR + SƏHİFƏ YAZILARI (CMS) FORMU
   ============================================================ */
.panel-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 15px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 700;
  transition: all 0.25s var(--ease);
}

.panel-tab:hover {
  border-color: rgba(108, 92, 231, 0.5);
  color: var(--primary);
  transform: translateY(-2px);
}

.panel-tab.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-brand);
}

.tab-count {
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: rgba(108, 92, 231, 0.16);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.panel-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.tab-view {
  animation: cardIn 0.35s var(--ease) both;
}

.form-section {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin: 26px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}

.form-section:first-of-type {
  margin-top: 4px;
}

.sub-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 9px;
}

.cms-hint {
  background: rgba(108, 92, 231, 0.07);
  border: 1px dashed rgba(108, 92, 231, 0.4);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink-2);
}

.cms-hint b {
  color: var(--primary);
}

.feat-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.feat-row {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  animation: cardIn 0.35s var(--ease) both;
}

.feat-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.feat-row-idx {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.feat-row .btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1rem;
}

.feat-row .form-group {
  margin-bottom: 0;
}

.feat-row .form-row {
  margin-bottom: 12px;
}

/* Kart silmə düyməsi (.btn-icon ilə birlikdə işləyir) */
.btn-remove-feat {
  color: var(--accent);
  font-weight: 800;
}

/* ============================================================
   RESPONSIVE — Tablet, Mobil
   ============================================================ */
@media (max-width: 1100px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .form-panel {
    position: static;
  }

  .product-view {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  /* Mobil menyu (dropdown) */
  .menu-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--sh-2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all 0.3s var(--ease);
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-link {
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .toolbar {
    flex-direction: column;
  }

  .search-input {
    height: 52px;
  }

  .sort-select {
    width: 100%;
    height: 52px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 16px;
  }

  .card-body {
    padding: 14px;
    gap: 9px;
  }

  .card-title {
    font-size: 0.96rem;
  }

  .price {
    font-size: 1.14rem;
  }

  .card-hover {
    display: none;
  }

  .stats-row {
    gap: 12px;
  }

  .stat-card {
    padding: 15px;
    gap: 12px;
  }

  .stat-card strong {
    font-size: 1.3rem;
  }

  .admin-email {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-user {
    gap: 8px;
  }

  .action-buttons .btn {
    min-width: 100%;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    top: 76px;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 54px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 10vw, 2.7rem);
  }

  .hero-stats {
    gap: 18px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }

  .card-media {
    aspect-ratio: 1 / 1;
  }

  .badge-discount {
    top: 9px;
    left: 9px;
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .card-arrow {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-field {
    flex-direction: column;
  }

  .image-preview {
    width: 96px;
    height: 96px;
  }

  .admin-product-item {
    flex-wrap: wrap;
  }

  .item-actions {
    width: 100%;
  }

  .item-actions .btn {
    flex: 1;
  }

  .form-actions {
    flex-direction: column;
  }

  .thumb {
    width: 64px;
    height: 64px;
  }

  .breadcrumbs b {
    max-width: 34vw;
  }
}

@media (max-width: 400px) {
  .header-inner {
    gap: 12px;
  }

  .header-inner .brand-name {
    display: none;
  }
}

/* Hərəkətə həssaslıq azaldıldıqda (əlçatanlıq) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal:not(.in) {
    opacity: 1;
    transform: none;
  }
}












/* Boş nəticə linkləri */
.list-empty a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* ============================================================
   BAŞLIQ — SƏBƏT VƏ HESAB DÜYMƏLƏRİ
   ============================================================ */
.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--grad-cta);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 6px 14px -6px rgba(255, 107, 107, 0.95);
  border: 2px solid var(--surface);
  pointer-events: none;
}

.account-btn .account-ico {
  font-size: 1rem;
  line-height: 1;
}

/* Daxil olmuş istifadəçi — hesab düyməsi vurğulanır */
.icon-btn.is-on,
.account-btn.is-on {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--sh-brand);
}

.icon-btn.is-on:hover,
.account-btn.is-on:hover {
  transform: translateY(-2px);
  color: #fff;
}

/* Dar kartda stok pilli ilə səbət düyməsi yan-yana sığmasın */
.product-card .card-foot {
  flex-wrap: wrap;
  gap: 7px;
}

/* ============================================================
   MƏHSUL KARTI — stretched-link + "Səbətə" düyməsi
   (kart <div>-dir, .card-link bütün kartı kliklənən edir)
   ============================================================ */
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.card-title a {
  color: inherit;
}

.card-add {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid rgba(108, 92, 231, 0.4);
  border-radius: var(--r-pill);
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  transition: all 0.25s var(--ease);
}

.card-add:hover {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.card-add.added {
  background: linear-gradient(135deg, #12b886, #0ca678);
  border-color: transparent;
  color: #fff;
}

.card-add.is-out,
.card-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dekorativ qatlar kart klikini "yeməməlidir" */
.card-hover,
.badge-discount {
  pointer-events: none;
}

.order-hint {
  margin-top: 14px;
}

.order-hint b {
  color: var(--primary);
}

/* ============================================================
   STATUS PILL — SİFARİŞ (admin + hesab səhifəsi ortaq)
   ============================================================ */
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.order-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.st-yeni {
  background: rgba(245, 159, 0, 0.16);
  color: var(--warn);
}

.st-tesdiqlenib {
  background: rgba(108, 92, 231, 0.16);
  color: var(--primary);
}

.st-yolda {
  background: rgba(52, 152, 219, 0.16);
  color: #2980b9;
}

.st-catdirilib {
  background: rgba(18, 184, 134, 0.16);
  color: var(--ok);
}

.st-legv {
  background: rgba(255, 107, 107, 0.16);
  color: var(--accent);
}

/* ============================================================
   SƏBƏT SƏHİFƏSİ
   ============================================================ */
.cart-loading {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 10px 0 26px;
}

.cart-loading .sk-line {
  margin: 18px 24px 0;
  height: 17px;
}

.cart-empty-actions {
  justify-content: center;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 400px);
  gap: 26px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 13px 15px;
  transition: all 0.3s var(--ease);
  animation: cardIn 0.4s var(--ease) both;
}

.cart-item:hover {
  border-color: rgba(108, 92, 231, 0.45);
  box-shadow: var(--sh-1);
}

.ci-media {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.ci-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ci-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ci-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-title:hover {
  color: var(--primary);
}

.ci-unit {
  font-size: 0.82rem;
  color: var(--muted);
}

.ci-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Miqdar stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  font-size: 1.05rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  transition: all 0.2s var(--ease);
}

.qty-btn:hover {
  background: rgba(108, 92, 231, 0.14);
  color: var(--primary);
}

.qty-val {
  min-width: 30px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.ci-remove {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.ci-remove:hover {
  background: rgba(255, 107, 107, 0.12);
}

.ci-subtotal {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  align-self: center;
}

.cart-foot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* --- Sifariş xülasəsi --- */
.cart-summary {
  position: sticky;
  top: 88px;
}

.sum-rows {
  margin: 6px 0 18px;
  padding: 15px 17px;
  background: var(--field-bg);
  border: 1.5px solid var(--line);
  border-radius: 16px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--muted);
  padding: 5px 0;
}

.sum-row b {
  color: var(--ink);
  font-weight: 700;
}

.sum-row.sum-total {
  border-top: 1px dashed var(--line);
  margin-top: 6px;
  padding-top: 11px;
  font-size: 1.05rem;
}

.sum-row.sum-total b {
  color: var(--primary);
  font-size: 1.28rem;
  font-weight: 800;
}

.checkout-hint {
  margin-top: 14px;
}

.checkout-hint a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* ============================================================
   HESAB SƏHİFƏSİ — GİRİŞ / QEYDİYYAT
   ============================================================ */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(24px, 5vw, 56px) 0;
}

.auth-card {
  width: 100%;
  max-width: 640px;
}

.auth-head {
  text-align: center;
  margin-bottom: 22px;
}

.auth-head .page-title {
  margin-top: 8px;
}

.auth-head .page-sub {
  margin-left: auto;
  margin-right: auto;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  flex: 1;
  padding: 12px 16px;
  border-radius: 15px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.25s var(--ease);
}

.auth-tab:hover {
  border-color: rgba(108, 92, 231, 0.5);
  color: var(--primary);
}

.auth-tab.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-brand);
}

/* ============================================================
   HESAB SƏHİFƏSİ — NAVİQASİYA + BÖLMƏLƏR
   ============================================================ */
.account-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.acc-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 15px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 700;
  transition: all 0.25s var(--ease);
}

.acc-tab:hover {
  border-color: rgba(108, 92, 231, 0.5);
  color: var(--primary);
  transform: translateY(-2px);
}

.acc-tab.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-brand);
}

.acc-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.acc-logout {
  margin-left: auto;
}

.acc-section {
  animation: cardIn 0.35s var(--ease) both;
}

.acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  align-items: start;
}

.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.orders-title {
  margin: 0;
  padding: 0;
  border: none;
}

/* ============================================================
   SİFARİŞLƏRİM (hesab səhifəsi)
   ============================================================ */
.my-orders {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.my-order {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 26px);
  box-shadow: var(--sh-1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: cardIn 0.4s var(--ease) both;
}

.my-order:hover {
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: var(--sh-2);
}

.mo-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.mo-code {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.mo-code strong {
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mo-src {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: var(--r-pill);
}

.mo-date {
  margin-left: auto;
  font-size: 0.83rem;
  color: var(--muted);
}

.mo-status-hint {
  margin-top: 12px;
  font-size: 0.87rem;
  color: var(--muted);
}

.mo-note {
  margin-top: 10px;
  padding: 11px 14px;
  background: rgba(108, 92, 231, 0.07);
  border: 1px dashed rgba(108, 92, 231, 0.4);
  border-radius: 13px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.mo-items {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 14px;
}

.mo-qty {
  font-weight: 800;
  color: var(--primary);
  min-width: 34px;
}

.mo-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mo-item b {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.mo-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}

.mo-count {
  font-size: 0.87rem;
  color: var(--muted);
}

.mo-total {
  font-size: 0.95rem;
  color: var(--muted);
}

.mo-total b {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  margin-left: 6px;
}

/* --- Sifariş tarixçəsi --- */
.mo-history-title {
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.mo-history {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid rgba(108, 92, 231, 0.25);
  padding-left: 18px;
}

.mo-h-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 0;
  font-size: 0.87rem;
  color: var(--ink-2);
}

.mo-h-dot {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.18);
}

.mo-h-label {
  font-weight: 700;
}

.mo-h-item time {
  color: var(--muted);
  font-size: 0.8rem;
}

.mo-h-item em {
  flex-basis: 100%;
  font-style: normal;
  color: var(--muted);
  font-size: 0.83rem;
}

/* ============================================================
   ADMİN — SİFARİŞLƏR TABI
   ============================================================ */
.order-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.order-filters .chip {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.admin-order-item {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  transition: all 0.3s var(--ease);
  animation: cardIn 0.4s var(--ease) both;
}

.admin-order-item:hover {
  border-color: rgba(108, 92, 231, 0.45);
}

.ao-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ao-code {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.ao-date {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

.ao-customer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 11px;
  font-size: 0.86rem;
  color: var(--muted);
}

.ao-customer strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.ao-customer a {
  color: var(--primary);
  font-weight: 600;
}

.ao-miss {
  color: var(--accent);
  font-weight: 600;
}

.ao-note {
  margin-top: 10px;
  padding: 9px 13px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.ao-note.status-note {
  background: rgba(108, 92, 231, 0.07);
  border-color: rgba(108, 92, 231, 0.4);
}

.ao-items {
  list-style: none;
  margin-top: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ao-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 12px;
}

.ao-qty {
  font-weight: 800;
  color: var(--primary);
}

.ao-item span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ao-item b {
  color: var(--ink);
  white-space: nowrap;
}

.ao-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

.ao-total b {
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 800;
}

.admin-order-item .item-actions {
  margin-top: 13px;
}

/* --- Redaktə formu --- */
.order-edit {
  margin-top: 14px;
  padding: 15px;
  background: var(--surface);
  border: 1.5px dashed rgba(108, 92, 231, 0.45);
  border-radius: 15px;
  animation: cardIn 0.3s var(--ease) both;
}

.order-edit-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 13px;
}

.order-edit .form-group {
  margin-bottom: 13px;
}

.order-edit label {
  font-size: 0.83rem;
}

.order-edit .item-actions {
  margin-top: 4px;
}

/* ============================================================
   RESPONSIVE — yeni komponentlər
   ============================================================ */
@media (max-width: 992px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 70px 1fr;
    grid-template-areas:
      'media info'
      'sub sub';
  }

  .ci-media {
    grid-area: media;
    width: 70px;
    height: 70px;
  }

  .ci-info {
    grid-area: info;
  }

  .ci-subtotal {
    grid-area: sub;
    justify-self: start;
  }

  .acc-logout {
    margin-left: 0;
    width: 100%;
  }

  .mo-date {
    margin-left: 0;
  }

  .ao-date {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .card-add {
    padding: 7px 11px;
    font-size: 0.74rem;
  }

  .auth-tabs {
    flex-direction: column;
  }

  .account-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .acc-tab {
    justify-content: center;
  }

  .order-filters {
    gap: 6px;
  }

  .order-filters .chip {
    padding: 7px 13px;
    font-size: 0.8rem;
  }

  .cart-foot-row .btn {
    flex: 1;
  }
}

/* Minimal storefront product cards */
.product-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transition: none;
}
.product-card:hover {
  transform: none;
  box-shadow: none;
}
.product-card .card-media {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
}
.product-card .card-img {
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .card-img { transform: scale(1.025); }
.product-card .badge-discount {
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.7rem;
  font-weight: 500;
  box-shadow: none;
}
.product-card .card-body {
  padding: 12px 0 0;
  gap: 6px;
}
.product-card .card-title {
  min-height: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}
.product-card:hover .card-title { color: var(--ink); }
.product-card .price-row { gap: 8px; }
.product-card .price {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
}
.product-card .old-price { font-size: 0.8rem; }
.product-card .card-foot {
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding-top: 3px;
  margin-top: auto;
}
.product-card .stock-pill {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
}
.product-card .stock-pill::before { display: none; }
.product-card .card-add {
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.product-card .card-add:hover,
.product-card .card-add.added {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
  transform: none;
}
.product-card .card-link:focus-visible,
.product-card .card-add:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .product-card { animation: none; }
  .product-card .card-img { transition: none; }
}
