/* Primogems — deep navy marketplace */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --bg-void: #030711;
  --bg-deep: #071018;
  --bg: #0a1628;
  --bg-elevated: #0f2744;
  --surface: rgba(18, 45, 78, 0.55);
  --surface-solid: #122a45;
  --border: rgba(120, 190, 255, 0.14);
  --border-strong: rgba(140, 210, 255, 0.28);
  --text: #eef5ff;
  --text-soft: #a8bdd9;
  --text-muted: #6b86a8;
  --accent: #4dd4ff;
  --accent-dim: #2aa8cc;
  --violet: #8b7cff;
  --violet-glow: rgba(139, 124, 255, 0.35);
  --cyan-glow: rgba(77, 212, 255, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border) inset;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-void);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(77, 212, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(139, 124, 255, 0.08), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(42, 168, 204, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-void) 45%, #020509 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #7fe8ff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
  gap: 24px;
}

@media (max-width: 720px) {
  .shell {
    padding: 0 16px 72px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 18px;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links a {
    padding: 10px 14px;
  }

  .hero {
    padding: 28px 18px 26px;
    margin-bottom: 34px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card-row-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .card-add {
    width: 100%;
    justify-content: space-between;
  }

  .card-add-qty {
    width: 72px;
  }

  .admin-shell {
    padding: 22px 16px 64px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--violet) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 32px var(--cyan-glow), 0 0 24px var(--violet-glow);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 0%, var(--accent) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-soft);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.nav-links a.is-active {
  color: var(--bg-void);
  background: linear-gradient(120deg, var(--accent), #6ae0ff);
  box-shadow: 0 0 24px var(--cyan-glow);
}

/* Category chips with avatars */
.chip-media {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chip-avatar {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.chip-avatar-ph {
  display: grid;
  place-items: center;
  background: rgba(77, 212, 255, 0.12);
  color: var(--accent);
}

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 44px;
}

@media (max-width: 960px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

.cat-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(10, 26, 44, 0.55);
  box-shadow: var(--shadow-card);
  min-height: 128px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.cat-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 50px var(--cyan-glow);
}

.cat-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  opacity: 0.65;
  transform: scale(1.03);
}

.cat-tile-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 8, 18, 0.75), rgba(10, 22, 40, 0.35));
}

.cat-tile-body {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px;
}

.cat-tile-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}

.cat-tile-desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  max-width: 50ch;
}

/* Admin thumbs */
.admin-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(4, 12, 24, 0.55);
}

.admin-thumb-ph {
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

/* Footer (modern) */
.site-footer {
  margin-top: 72px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr;
  gap: 22px;
  padding: 26px 0 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(15, 39, 68, 0.72), rgba(5, 12, 22, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding-left: 22px;
  padding-right: 22px;
}

.footer-logo {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-note {
  margin: 0;
  color: var(--text-soft);
  max-width: 70ch;
}

.footer-h {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-a {
  display: block;
  color: var(--text-soft);
  padding: 6px 0;
}

.footer-a:hover {
  color: var(--accent);
}

.footer-muted {
  color: var(--text-muted);
  padding: 4px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6px 0;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

.btn-admin {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.btn-admin:hover {
  color: var(--accent);
  border-color: var(--border-strong);
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 40px 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(15, 39, 68, 0.9) 0%, rgba(8, 20, 38, 0.95) 100%),
    radial-gradient(ellipse 80% 120% at 80% 20%, rgba(77, 212, 255, 0.15), transparent 50%);
  box-shadow: var(--shadow-card);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 200deg at 50% 50%, transparent, rgba(77, 212, 255, 0.04), transparent 40%);
  animation: drift 28s linear infinite;
  pointer-events: none;
}

@keyframes drift {
  to {
    transform: rotate(360deg);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: var(--text);
}

.hero p {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #021018;
  background: linear-gradient(120deg, var(--accent), #8aefff);
  box-shadow: 0 8px 32px var(--cyan-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(77, 212, 255, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(25, 55, 90, 0.6);
}

.btn-danger {
  color: #ffc9c9;
  background: rgba(180, 40, 40, 0.35);
  border: 1px solid rgba(255, 120, 120, 0.35);
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-danger:hover {
  background: rgba(200, 50, 50, 0.5);
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Sections */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.link-all {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(77, 212, 255, 0.2) inset, 0 0 40px var(--cyan-glow);
}

.card-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--bg-elevated), #061220);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.06);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  opacity: 0.35;
}

.card-body {
  padding: 18px 20px 22px;
}

.card-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.35;
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--accent);
}

.card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.card-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Chips / filters */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chip {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: rgba(10, 28, 48, 0.5);
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.chip.is-on {
  color: var(--bg-void);
  background: linear-gradient(120deg, var(--accent), #9aefff);
  border-color: transparent;
}

/* Product detail */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

.product-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  aspect-ratio: 1;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.product-info .lead {
  color: var(--text-soft);
  margin: 0 0 24px;
  font-size: 1.05rem;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(77, 212, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(77, 212, 255, 0.25);
}

/* Footer */
.site-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

/* Admin */
.admin-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.admin-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(15, 39, 68, 0.85), rgba(5, 12, 22, 0.95));
  box-shadow: var(--shadow-card);
}

.admin-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.admin-card .sub {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.form-stack label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(4, 12, 24, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-stack textarea {
  min-height: 88px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.flash.ok {
  background: rgba(40, 160, 100, 0.2);
  border: 1px solid rgba(80, 220, 140, 0.35);
  color: #9cf0c4;
}

.flash.error {
  background: rgba(180, 60, 60, 0.2);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffc9c9;
}

.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.admin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.admin-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .admin-panels {
    grid-template-columns: 1fr;
  }
}

.panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 20px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* —— Storefront: hero split, about, cart —— */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 400px);
  gap: 36px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
}

.hero-split .hero-inner {
  max-width: none;
}

.hero-lead {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 560px;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--bg-elevated), #061220);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(77, 212, 255, 0.12) inset, 0 0 48px var(--cyan-glow);
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 14px 18px 16px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(4, 12, 24, 0.65);
  border-top: 1px solid var(--border);
}

.about-block {
  margin: 40px 0;
  padding: 28px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(10, 26, 44, 0.45);
  backdrop-filter: blur(8px);
}

.about-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.about-block p {
  margin: 0 0 14px;
  color: var(--text-soft);
  max-width: 78ch;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.about-block-accent {
  background: linear-gradient(125deg, rgba(77, 212, 255, 0.08), rgba(139, 124, 255, 0.06));
}

.about-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.about-list li {
  margin-bottom: 12px;
}

.about-list li:last-child {
  margin-bottom: 0;
}

.flash-bar {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin: -8px 0 24px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.flash-bar.ok {
  background: rgba(40, 160, 100, 0.18);
  border-color: rgba(80, 220, 140, 0.35);
  color: #9cf0c4;
}

.flash-bar.error {
  background: rgba(180, 60, 60, 0.18);
  border-color: rgba(255, 120, 120, 0.35);
  color: #ffc9c9;
}

.nav-links a.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.nav-cart {
  position: relative;
}

.nav-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 6px;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), #9aefff);
  color: #021018;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-soft);
}

.badge-warn {
  border-color: rgba(255, 180, 100, 0.4);
  color: #ffd4a8;
  background: rgba(255, 160, 80, 0.1);
}

.card-row-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.card-add {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-add-qty {
  width: 52px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(4, 12, 24, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
}

.product-buy-panel {
  margin: 24px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.product-buy-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.product-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.product-qty-input {
  width: 88px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(4, 12, 24, 0.55);
  color: var(--text);
  font-size: 1rem;
}

.product-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-panel,
.checkout-panel {
  margin: 0;
}

.cart-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-row:last-of-type {
  border-bottom: none;
}

@media (max-width: 720px) {
  .cart-row {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-row-qty,
  .cart-row-sum,
  .cart-row-del {
    grid-column: 2;
  }

  .cart-row-qty {
    justify-self: start;
  }

  .cart-row-sum {
    font-weight: 700;
  }
}

.cart-row-media img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.cart-row-ph {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  font-size: 1.5rem;
  opacity: 0.45;
}

.cart-row-info a {
  color: var(--text);
}

.cart-row-info a:hover {
  color: var(--accent);
}

.cart-row-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.cart-row-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-row-qty input {
  width: 56px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(4, 12, 24, 0.55);
  color: var(--text);
}

.cart-row-sum {
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border-strong);
  font-size: 1.1rem;
}

.checkout-lead {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.opt {
  color: var(--text-muted);
  font-weight: 400;
}

.empty-cart {
  padding: 40px 28px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  text-align: center;
  color: var(--text-soft);
}

.empty-cart .btn {
  margin-top: 18px;
}

.thanks-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.thanks-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #021018;
  background: linear-gradient(120deg, var(--accent), #9aefff);
  box-shadow: 0 0 32px var(--cyan-glow);
}

.thanks-lead {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.thanks-note {
  color: var(--text-soft);
  margin-top: 12px;
}

.mini-table {
  width: 100%;
  font-size: 0.92rem;
}

.mini-table th,
.mini-table td {
  padding: 10px 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
