:root {
  --bg: #0c0b10;
  --bg-elevated: #14121c;
  --bg-card: #1a1724;
  --text: #f4f0ff;
  --text-muted: #a89ec4;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --accent-2: #7b5cff;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(123, 92, 255, 0.18), transparent),
    radial-gradient(900px 500px at 90% 0%, rgba(201, 162, 39, 0.12), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--container, 1120px), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 56;
  backdrop-filter: blur(14px);
  background: rgba(12, 11, 16, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand-mark {
  color: var(--accent);
  font-size: 1.2rem;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-main a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.site-main {
  min-height: calc(100vh - 160px);
}

/* —— Hero slider (homepage) —— */
.hero-slider {
  position: relative;
  margin-bottom: 1rem;
  overflow: hidden;
}

.hero-slider__viewport {
  position: relative;
  min-height: clamp(420px, 72vh, 560px);
}

.hero-slider__track {
  position: relative;
  height: 100%;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.65s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide.is-leaving {
  z-index: 1;
  opacity: 0;
}

.hero-slide--slide.is-leaving {
  transform: translateX(-4%);
}

.hero-slide--slide.is-entering,
.hero-slide--enter-slide {
  transform: translateX(6%);
}

.hero-slide--slide.is-active {
  transform: translateX(0);
}

.hero-slide--zoom.is-leaving {
  transform: scale(1.04);
}

.hero-slide--zoom.is-entering,
.hero-slide--enter-zoom {
  transform: scale(0.94);
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: kenburns 18s ease-in-out infinite alternate;
}

@keyframes kenburns {
  to { transform: scale(1.12); }
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.hero-slide--overlay-gold .hero-slide__overlay {
  background: radial-gradient(ellipse 80% 70% at 20% 40%, rgba(201, 162, 39, 0.35), transparent),
    linear-gradient(135deg, rgba(12, 11, 16, 0.5) 0%, rgba(12, 11, 16, 0.92) 70%);
}

.hero-slide--overlay-purple .hero-slide__overlay {
  background: radial-gradient(ellipse 70% 60% at 80% 20%, rgba(123, 92, 255, 0.4), transparent),
    linear-gradient(160deg, rgba(12, 11, 16, 0.4), rgba(12, 11, 16, 0.9));
}

.hero-slide--overlay-ember .hero-slide__overlay {
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 120, 60, 0.25), transparent),
    linear-gradient(180deg, rgba(12, 11, 16, 0.3), rgba(12, 11, 16, 0.95));
}

.hero-slide--overlay-ocean .hero-slide__overlay {
  background: radial-gradient(ellipse 80% 60% at 0% 50%, rgba(40, 180, 200, 0.3), transparent),
    linear-gradient(120deg, rgba(12, 11, 16, 0.5), rgba(12, 11, 16, 0.92));
}

.hero-slide--overlay-none .hero-slide__overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(12, 11, 16, 0.75));
  opacity: 0.6;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  min-height: clamp(420px, 72vh, 560px);
  padding: 3.5rem 0 4rem;
}

.hero-slide__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 0.35rem 0 1rem;
}

.hero-slide__eyebrow {
  animation: slideUp 0.7s ease both;
}

.hero-slide__inner.is-animated .hero-slide__title {
  animation: slideUp 0.7s 0.08s ease both;
}

.hero-slide__inner.is-animated .hero-slide__desc {
  animation: slideUp 0.7s 0.16s ease both;
}

.hero-slide__inner.is-animated .hero-slide__cta {
  animation: slideUp 0.7s 0.24s ease both;
}

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

.hero-slide__visual {
  position: relative;
  min-height: 260px;
}

.hero-slider__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem;
  pointer-events: none;
}

.hero-slider__arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.hero-slider__arrow:hover {
  background: var(--accent-soft);
  border-color: rgba(201, 162, 39, 0.4);
  transform: scale(1.05);
}

.hero-slider__dots {
  pointer-events: auto;
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 14, 23, 0.52);
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.hero-slider__dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-slider__progress {
  height: 3px;
  background: var(--border);
  overflow: hidden;
}

.hero-slider__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0;
}

.lead,
.muted {
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  min-height: 280px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, var(--accent-2), transparent);
  top: 10%;
  left: 20%;
}

.orb-2 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent), transparent);
  bottom: 20%;
  right: 10%;
  animation-delay: -2s;
}

.orb-3 {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border);
  top: 50%;
  left: 55%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.products-section {
  padding: 2rem 0 4rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
}

.badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.35);
}

.product-media {
  display: block;
  aspect-ratio: 1;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.product-media img,
.product-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.product-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.5;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: #1a1200;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.product-body {
  padding: 1rem 1.1rem 1.2rem;
}

.product-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.product-body p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.product-price s {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e8c547);
  color: #1a1200;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.auth-section {
  padding: 3rem 0 4rem;
}

.auth-wrap {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(420px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-card fieldset {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
}

.auth-card fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.9rem;
}

.auth-card .form-row-2 {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.auth-card .form-stack input,
.auth-card .form-stack textarea,
.auth-card .form-stack select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
}

.form-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-stack label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.form-stack input {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form-stack input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.auth-footer {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ffb3b3;
}

.alert-success {
  background: rgba(80, 200, 120, 0.12);
  border: 1px solid rgba(80, 200, 120, 0.35);
  color: #b8f5d0;
}

.dashboard {
  padding: 2.5rem 0 4rem;
}

.dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.4rem;
  margin: 0.2rem 0 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.stat-card.accent {
  border-color: rgba(201, 162, 39, 0.4);
  background: linear-gradient(160deg, var(--accent-soft), var(--bg-card));
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stat-card strong {
  font-size: 1.6rem;
}

.dash-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.panel h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.action-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.extension-block {
  margin: 1.5rem 0;
}

.extension-newsletter {
  padding: 1.5rem 0;
}

.extension-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.inline-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-form input {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  min-width: 220px;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-tag {
  margin: 0;
}

code {
  font-size: 0.85em;
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* —— Admin: hero slides editor —— */
.dash-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slides-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.panel-highlight {
  border-color: rgba(201, 162, 39, 0.35);
  background: linear-gradient(160deg, var(--accent-soft), var(--bg-card));
}

.panel-form textarea,
.panel-form select {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  width: 100%;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.6rem;
}

.checkbox-label input {
  width: auto;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.slides-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.slides-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.slides-list__item.is-inactive {
  opacity: 0.55;
}

.slides-list__preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.slides-list__preview img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.slides-list__preview--gold { border-left: 3px solid var(--accent); padding-left: 0.5rem; }
.slides-list__preview--purple { border-left: 3px solid var(--accent-2); padding-left: 0.5rem; }
.slides-list__preview--ember { border-left: 3px solid #ff7840; padding-left: 0.5rem; }
.slides-list__preview--ocean { border-left: 3px solid #28b4c8; padding-left: 0.5rem; }

.slides-list__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.slides-list__text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slides-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.inline-form {
  display: inline;
}

.btn-danger-text {
  color: #ff8a8a;
}

/* —— Admin shell & sidebar —— */
.has-admin-shell .site-main {
  min-height: calc(100vh - 72px);
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 72px);
  max-width: 1400px;
  margin: 0 auto;
}

.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 57px;
  height: calc(100vh - 57px);
  overflow-y: auto;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.admin-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.65rem;
}

.admin-nav__group {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 1rem 0 0.35rem 0.6rem;
}

.admin-nav__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}

.admin-nav__link:hover {
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
}

.admin-nav__link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.admin-nav__icon {
  width: 1.25rem;
  text-align: center;
  opacity: 0.85;
}

.admin-sidebar__footer {
  padding: 1rem 0.65rem 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.admin-main {
  padding: 1.5rem 1.75rem 3rem;
  overflow-x: auto;
}

.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-page-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  margin: 0.15rem 0 0;
}

.admin-page-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-welcome {
  margin: -0.5rem 0 1.25rem;
}

.admin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.panel-wide {
  max-width: 720px;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.admin-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
}

.admin-card__icon {
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.admin-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.admin-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stat-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}

.stat-card-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.admin-table-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.admin-table-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-data-table th,
.admin-data-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.admin-data-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-editor {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

.theme-preview {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.theme-preview .btn {
  margin-right: 0.5rem;
  margin-top: 0.75rem;
}

.nav-admin-link {
  color: var(--accent) !important;
  font-weight: 600;
}

.login-admin-hint {
  font-size: 0.82rem;
  padding: 0.65rem 0.75rem;
  background: var(--accent-soft);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.extension-editor-panel {
  margin-bottom: 1.5rem;
}

.extension-editor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.extension-editor-head h2 {
  margin: 0;
}

.code-editor-lg {
  min-height: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  tab-size: 2;
}

.hook-picker {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0;
}

.hook-picker legend {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.hook-picker .checkbox-label {
  padding-top: 0.35rem;
}

.extension-admin-grid {
  margin-bottom: 1.25rem;
}

.extension-file-list .is-editing {
  border-color: rgba(201, 162, 39, 0.5);
  background: var(--accent-soft);
}

.extension-delete-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.badge-warn {
  background: rgba(255, 160, 60, 0.2);
  color: #ffc878;
}

.extension-help {
  margin-top: 1.25rem;
}

.extension-help summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}

.code-sample {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

/* Media field (upload + URL) */
.media-field {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.media-field__label {
  display: block;
  margin-bottom: 0.5rem;
}

.media-field__label span {
  font-weight: 600;
  display: block;
}

.media-field__row input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.media-field__upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}

.media-field__library {
  font-size: 0.85rem;
}

.media-field__preview {
  margin-top: 0.75rem;
}

.media-field__preview img {
  max-width: 200px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.media-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.media-card__icon {
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: var(--bg-elevated);
}

.media-card__body {
  padding: 0.75rem;
}

.media-card__body strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.media-card__url {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
}

.media-card__checkbox-label {
  display: block;
  margin-bottom: 0.35rem;
}

.media-card__checkbox-label input {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.media-bulk-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.media-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.media-filter-links a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.media-filter-links a.is-active,
.media-filter-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(201, 162, 39, 0.35);
}

.user-avatar-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-placeholder {
  opacity: 0.4;
  font-size: 1.25rem;
}

.admin-nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 auto 0.75rem;
  max-width: 1400px;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.admin-nav-toggle__icon {
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .has-admin-shell .admin-nav-toggle {
    display: flex;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
    position: static;
    height: auto;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
  }

  .admin-sidebar.is-open {
    display: flex;
  }

  .admin-nav {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .admin-nav__group {
    width: auto;
  }

  .admin-split,
  .slides-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-slide__content {
    grid-template-columns: 1fr;
    padding: 2.5rem 0 3.5rem;
  }

  .hero-slide__visual {
    min-height: 120px;
    order: -1;
  }

  .slides-layout {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ── Cart page ── */
.cart-section { padding: 3rem 0; }
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr 80px 80px 40px;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cart-item-image img,
.cart-item-image .product-placeholder {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 8px;
}
.cart-item-image .product-placeholder.small {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); font-size: 1.5rem;
}
.cart-item-body h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.cart-item-price { color: var(--accent); font-weight: 600; }
.qty-input {
  width: 60px; padding: 0.5rem; text-align: center;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text);
}
.cart-item-total { text-align: right; }
.cart-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; padding: 1rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.cart-total { font-size: 1.25rem; }
.cart-actions { display: flex; gap: 0.75rem; }
@media (max-width: 768px) {
  .cart-item { grid-template-columns: 60px 1fr 60px; }
  .cart-item-total, .cart-item-remove { display: none; }
}

/* ── Checkout page ── */
.checkout-section { padding: 3rem 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
.checkout-form fieldset {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.checkout-form legend {
  font-weight: 600; padding: 0 0.5rem; font-size: 1.1rem;
}
.payment-options { display: flex; flex-direction: column; gap: 0.75rem; }
.payment-option {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: border-color 0.2s;
}
.payment-option:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
}
.payment-option input[type="radio"] { margin-top: 0.15rem; }
.payment-option-body { display: flex; flex-direction: column; gap: 0.15rem; }
.checkout-summary .panel { padding: 1.5rem; position: sticky; top: 1rem; }
.checkout-items { list-style: none; padding: 0; margin: 0; }
.checkout-items li {
  display: flex; justify-content: space-between; padding: 0.5rem 0;
  border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.checkout-total {
  display: flex; justify-content: space-between; padding-top: 1rem;
  font-size: 1.15rem; border-top: 2px solid var(--accent);
}
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* ── Confirmation page ── */
.confirmation-section { padding: 3rem 0; }
.confirmation-card {
  max-width: 680px; margin: 0 auto; text-align: center;
  padding: 2.5rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.confirmation-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #000; font-size: 1.5rem;
  border-radius: 50%; font-weight: 700;
}
.confirmation-card .detail-list {
  text-align: left; max-width: 360px; margin: 1.5rem auto;
}
.bank-details {
  text-align: left; padding: 1.5rem; margin: 1.5rem 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.bank-info-table { width: 100%; }
.bank-info-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border); }
.bank-info-table td:first-child { color: var(--text-muted); width: 40%; }
.confirmation-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ── Payment gateway admin ── */
.payment-gateway-list { display: flex; flex-direction: column; gap: 1rem; }
.payment-gateway-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.payment-gateway-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; cursor: pointer; user-select: none;
}
.payment-gateway-title { display: flex; align-items: center; gap: 0.75rem; }
.gw-icon { font-size: 1.25rem; }
.payment-gateway-header::-webkit-details-marker { display: none; }
.payment-gateway-card[open] .payment-gateway-header {
  border-bottom: 1px solid var(--border);
}
.payment-gateway-body { padding: 1.25rem; }

/* ── Wallet admin ── */
.wallet-adjust-form { padding: 0.75rem; background: var(--bg); border-radius: 8px; margin-top: 0.5rem; }
.wallet-adjust-form .form-inline { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.wallet-adjust-form input[type="number"],
.wallet-adjust-form input[type="text"] {
  flex: 1; min-width: 120px; padding: 0.4rem 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text);
}
.inline-details { display: inline-block; vertical-align: top; }
.inline-details summary { cursor: pointer; }
.wallet-history { padding: 0.5rem; margin-top: 0.5rem; }
.mini-table th { font-size: 0.75rem; padding: 0.3rem 0.5rem; }
.mini-table td { font-size: 0.8rem; padding: 0.3rem 0.5rem; }

/* ── Dashboard customer enhancements ── */
.dash-links { list-style: none; padding: 0; margin: 0; }
.dash-links li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.dash-links li:last-child { border-bottom: none; }
.dash-links a { color: var(--accent); }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Detail list ── */
.detail-list { display: grid; grid-template-columns: 1fr 2fr; gap: 0.5rem; }
.detail-list dt { color: var(--text-muted); font-size: 0.85rem; }
.detail-list dd { margin: 0; font-weight: 500; }

/* ── Order status badges ── */
.badge-warn { background: rgba(255, 180, 0, 0.15); color: #ffb400; }

/* ── Sparkle particles background ── */
.sparkle-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  color: var(--accent);
  animation: sparkle-float 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
  user-select: none;
}

@keyframes sparkle-float {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.2; }
  33% { transform: translateY(-20px) rotate(120deg) scale(1.15); opacity: 0.6; }
  66% { transform: translateY(-10px) rotate(240deg) scale(0.9); opacity: 0.3; }
  100% { transform: translateY(-30px) rotate(360deg) scale(1.1); opacity: 0.5; }
}

/* ── Nav menu upgrades ── */
.nav-main a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-main a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.nav-main a:hover::after,
.nav-main a.is-current::after {
  width: 100%;
  left: 0;
}

.nav-main a.is-current {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 60;
  transition: transform 0.3s ease;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
  border-radius: 2px;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-main {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 60;
  }

  .nav-main {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(20, 18, 28, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    padding: 5rem 1.25rem 2rem;
    gap: 0.35rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    z-index: 55;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-main.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-main a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1.05rem;
    transition: background 0.2s ease;
  }

  .nav-main a.nav-admin-link {
    order: -1;
    font-weight: 600;
    border: 1px solid rgba(201, 162, 39, 0.45);
  }

  .nav-main a:hover {
    background: var(--accent-soft);
  }

  .nav-main a::after {
    display: none;
  }

  .nav-main .btn {
    margin-top: 0.5rem;
    text-align: center;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 54;
    animation: fade-in 0.3s ease;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }

  .admin-main { overflow-x: visible; min-width: 0; }

  .admin-table-list { overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; }

  .admin-table-list li { min-width: 0; flex-wrap: wrap; gap: 0.5rem; }

  .admin-content { min-width: 0; }

  .ae-results { grid-template-columns: 1fr 1fr; }

  .ae-search-row { flex-direction: column; align-items: stretch; }
  .ae-search-row .search-input,
  .ae-search-row .search-select { min-width: 0; }

  .ae-toolbar { flex-direction: column; align-items: stretch; }
  .ae-toolbar-actions { justify-content: stretch; }
  .ae-toolbar-actions .search-select { width: 100% !important; }

  .tab-bar { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tab-link { white-space: nowrap; }

  .admin-split { grid-template-columns: 1fr; }

  .form-row-2 { grid-template-columns: 1fr; }

  .form-stack label { flex-direction: column; align-items: stretch; }
  .form-stack label span { min-width: 0; margin-bottom: 0.25rem; }
  .form-stack input,
  .form-stack select,
  .form-stack textarea { width: 100%; }
}

/* ── Section scroll animations ── */
.section-animate {
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-ready .section-animate {
  opacity: 0;
  transform: translateY(30px);
}

.section-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-animate--slide {
  transform: translateX(-30px);
}

.anim-ready .section-animate--slide {
  transform: translateX(-30px);
}

.section-animate--slide.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.section-animate--zoom {
  transform: scale(0.92);
}

.anim-ready .section-animate--zoom {
  transform: scale(0.92);
}

.section-animate--zoom.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Section base styles ── */
.section {
  padding: 3.5rem 0;
  position: relative;
  z-index: 1;
}

.section-head--center {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.section-head--center h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0.5rem 0;
}

.section-desc {
  max-width: 600px;
  margin-bottom: 1.5rem;
}

/* ── Features section ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── CTA section ── */
.cta-card {
  text-align: center;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0.5rem 0;
}

.cta-card p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.cta-card .btn {
  position: relative;
  z-index: 1;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.testimonial-card p {
  font-style: italic;
  margin: 0 0 1rem;
  line-height: 1.6;
}

/* ── Product card hover polish ── */
.product-card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.product-media img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-badge {
  transition: transform 0.3s ease;
}

.product-card:hover .product-badge {
  transform: scale(1.1);
}

/* ── Admin UI polish — less square ── */
.admin-sidebar {
  border-radius: 0;
}

.admin-shell {
  gap: 0;
}

.admin-main {
  border-radius: 0;
}

.admin-data-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.admin-data-table th:first-child {
  border-radius: 10px 0 0 0;
}

.admin-data-table th:last-child {
  border-radius: 0 10px 0 0;
}

.admin-data-table tr:last-child td:first-child {
  border-radius: 0 0 0 10px;
}

.admin-data-table tr:last-child td:last-child {
  border-radius: 0 0 10px 0;
}

.admin-card {
  border-radius: 14px;
}

.panel {
  border-radius: 14px;
}

.slides-list__item {
  border-radius: 10px;
}

.admin-nav__link {
  border-radius: 8px;
}

.admin-page-header h1 {
  letter-spacing: -0.02em;
}

.input-sm {
  max-width: 120px;
}

.stat-card {
  border-radius: 14px;
}

@media (max-width: 768px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
}

/* ── Theme editor tabs ── */
.theme-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.theme-tab {
  padding: 0.65rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
  margin-bottom: -1px;
}

.theme-tab:hover {
  color: var(--text);
  text-decoration: none;
}

.theme-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  .theme-tabs {
  flex-wrap: wrap;
}

/* ── Shop page category dropdown + search ── */
.section-shop-categories {
  padding: 1.25rem 0;
}

.cat-browse__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.cat-browse__bar {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.cat-browse__select {
  flex: 0 0 auto;
  min-width: 200px;
  padding: 0.6rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.cat-browse__search {
  flex: 1;
  display: flex;
  gap: 0.5rem;
}

.cat-browse__input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
}

.cat-browse__submit {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cat-browse__bar {
    flex-direction: column;
  }
  .cat-browse__select {
    min-width: 0;
    width: 100%;
  }
  .cat-browse__search {
    width: 100%;
  }
  .cat-browse__input {
    flex: 1;
  }
}

/* ── Shop page products section ── */
.section-shop-products {
  padding: 4rem 0;
}

.section-shop-products .product-grid {
  margin-top: 1.5rem;
}

/* ── Shop page alt hero ── */
.shop-hero-alt {
  padding: 5rem 0;
  text-align: center;
}

.shop-hero-alt__inner h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), #a78bfa, var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Shop page CTA ── */
.section-shop-cta {
  padding: 4rem 0;
}

.cta-card--gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.cta-card--gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}

.cta-card--gradient h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}

.cta-card--gradient p {
  color: rgba(255,255,255,0.85);
  margin: 0 auto 1.5rem;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.cta-card--gradient .btn {
  position: relative;
  z-index: 1;
  background: #fff;
  color: #764ba2;
}

.cta-card--gradient .btn:hover {
  background: rgba(255,255,255,0.9);
  color: #667eea;
}

.cta-card--gradient h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-card--gradient p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.section-shop-cta {
  padding: 3rem 0;
}

/* ── Shop admin settings ── */
.shop-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.shop-setting-row:last-child {
  border-bottom: none;
}

.shop-setting-row label {
  flex: 1;
}

.shop-setting-row select,
.shop-setting-row input[type="number"] {
  max-width: 120px;
}

.shop-cat-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.shop-cat-checklist label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.shop-cat-checklist input[type="checkbox"] {
  accent-color: var(--accent);
}
}

/* ── Button polish ── */
.btn {
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-added {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #000 !important;
}

/* ── Hero slider polish ── */
.hero-slider {
  z-index: 1;
}

.hero-slide__title {
  font-family: var(--font-display);
}

.orb {
  transition: transform 0.15s ease-out;
}

/* ── Site header variants ── */
.site-header--static { position: relative; }
.site-header--fixed { position: fixed; }

/* ── Footer nav ── */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  min-height: 140px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  background: var(--bg-card);
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.site-footer {
  background: var(--footer-bg, var(--bg-elevated));
}

@media (max-width: 768px) {
  .footer-content { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; }
}

/* ── Menu admin ── */
.menu-item-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.menu-item-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.menu-item-title code {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.menu-item-actions {
  flex-shrink: 0;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.menu-item-row:last-child {
  border-bottom: none;
}

/* ── Section custom content ── */
.custom-content {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  text-align: center;
  line-height: 1.7;
}

/* ── Product card price alignment ── */
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body .btn {
  margin-top: auto;
}

/* ── Checkout payment option hover ── */
.payment-option {
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.payment-option:hover {
  transform: translateX(4px);
}

/* ── Order confirmation polish ── */
.confirmation-icon {
  animation: confirm-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes confirm-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Site footer tweak ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}

/* ── Front page admin card ── */
.slides-list__preview {
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease;
}

/* ── Alerts popup ── */
.alerts-popup {
  position: fixed;
  right: 18px;
  top: 74px;
  z-index: 70;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 320px;
  max-width: 420px;
  max-height: 60vh;
  overflow: auto;
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.alerts-popup[hidden] {
  display: none !important;
}

/* ── Search page ── */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 560px;
  margin-top: 0.5rem;
}

.search-form input[type="text"] {
  flex: 1 1 180px;
  min-width: 0;
}

.search-results {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.search-result-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.search-result-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  text-decoration: none;
  color: inherit;
}

.search-result-card__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.search-result-card__body {
  flex: 1;
  min-width: 0;
}

.search-result-card__body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.search-result-card__body p {
  font-size: 0.82rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-card__price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Mobile: storefront, account, checkout, admin ── */
@media (max-width: 768px) {
  .container {
    width: min(var(--container, 1120px), calc(100% - 1.25rem));
  }

  .header-inner {
    padding: 0.75rem 0;
    gap: 0.5rem;
  }

  .brand-text {
    font-size: 0.95rem;
    max-width: min(42vw, 160px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-logo {
    height: 28px;
    max-width: min(42vw, 140px);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-head h2 {
    font-size: 1.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
    gap: 1rem;
  }

  .hero-slider__viewport {
    min-height: min(72vh, 480px);
  }

  .hero-slide__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .confirmation-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .confirmation-actions .btn {
    width: 100%;
  }

  .cart-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .cart-actions {
    flex-direction: column;
  }

  .cart-actions .btn {
    width: 100%;
    text-align: center;
  }

  .alerts-popup {
    left: 1rem;
    right: 1rem;
    top: 4.5rem;
    min-width: 0;
    max-width: none;
  }

  .slides-list__item {
    flex-direction: column;
    align-items: stretch;
  }

  .slides-list__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .detail-list {
    grid-template-columns: 1fr;
    gap: 0.25rem 0;
  }

  .detail-list dt {
    margin-top: 0.5rem;
  }

  .auth-section {
    padding: 2rem 0 3rem;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .search-form {
    max-width: 100%;
  }

  .search-form .btn {
    width: 100%;
  }

  .admin-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-page-header .btn {
    width: 100%;
    text-align: center;
  }

  .payment-gateway-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .member-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid-4 {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-item-qty {
    grid-column: 2;
  }
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pagination__btn:hover {
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}

.pagination__btn.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.pagination__btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination__info {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0 0.5rem;
}

/* ── Items per page ── */
.per-page {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.per-page select {
  padding: 0.3rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.8rem;
}

/* ── Bulk action bar ── */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.bulk-bar__count {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.bulk-bar select {
  padding: 0.4rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.82rem;
}

.bulk-bar .btn {
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
}

/* ── Table header checkbox ── */
.th-checkbox {
  width: 40px;
  text-align: center;
}

.th-checkbox input,
.td-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.td-checkbox {
  text-align: center;
}

.admin-data-table .td-checkbox,
.admin-table-list .td-checkbox {
  padding: 0.5rem;
  text-align: center;
}

/* ── Toolbar (search + per-page + actions) ── */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.list-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Product detail page ── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.product-detail__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}

.product-detail__media img {
  width: 100%;
  display: block;
}

.product-detail__info h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.product-detail__price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.price-current {
  font-size: 1.75rem;
  color: var(--accent);
}

.price-old {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.product-detail__desc {
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.product-detail__actions {
  margin-top: 1.5rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
}

.badge-sale {
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

