@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap');

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:           #f8fafc;
  --bg-subtle:    #f1f5f9;
  --surface:      #ffffff;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --accent:       #8b5cf6;
  --accent-soft:  #ede9fe;
  --accent-hover: #7c3aed;
  --accent-light: rgba(139, 92, 246, 0.25);
  --success:      #10b981;
  --border:       #e2e8f0;
  --border-bold:  #cbd5e1;

  --shadow-sm:    0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow-md:    0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg:    0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-xl:    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --radius:       12px;
  --radius-lg:    24px;
  --transition:   0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Sora', 'Plus Jakarta Sans', sans-serif;
  --max-w:        1200px;
}

[data-theme="dark"] {
  --bg:           #0d1117;
  --bg-subtle:    #161b27;
  --surface:      #1a2033;
  --text:         #f0f4ff;
  --text-muted:   #8b95b0;
  --accent:       #a78bfa;
  --accent-soft:  rgba(139, 92, 246, 0.15);
  --accent-hover: #c4b5fd;
  --accent-light: rgba(167, 139, 250, 0.2);
  --success:      #34d399;
  --border:       #252e47;
  --border-bold:  #334155;
  --shadow-sm:    0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3);
  --shadow-md:    0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg:    0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl:    0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}

/* Dark mode overrides for hardcoded colours */
[data-theme="dark"] .form-control:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px var(--bg) inset !important;
  -webkit-text-fill-color: var(--text) !important;
}
[data-theme="dark"] body {
  background-image:
    radial-gradient(at 80% 0%, hsla(263,60%,25%,0.1) 0, transparent 50%),
    radial-gradient(at 0% 100%, hsla(225,60%,15%,0.08) 0, transparent 50%);
}
[data-theme="dark"] .site-header {
  background: rgba(13, 17, 23, 0.88);
  border-bottom-color: rgba(37, 46, 71, 0.8);
}
[data-theme="dark"] .search-overlay { background: var(--surface); }
[data-theme="dark"] .tag-pill { background: var(--bg-subtle); }
[data-theme="dark"] .tag-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
[data-theme="dark"] .card { box-shadow: 0 2px 12px rgba(0,0,0,0.35); }
[data-theme="dark"] .card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.6); }
[data-theme="dark"] .badge-featured { background: var(--accent); }

/* ── Global ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  background-image:
    radial-gradient(at 100% 0%, hsla(253,60%,90%,0.4) 0, transparent 50%),
    radial-gradient(at 0% 80%, hsla(225,60%,90%,0.2) 0, transparent 50%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; height: auto; border-radius: inherit; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  height: 72px;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
}
.header-nav { display: flex; gap: 8px; align-items: center; }
.search-btn {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  padding: 8px; border-radius: 50%; transition: all 0.2s ease;
}
.search-btn:hover { background: var(--bg-subtle); color: var(--text); }
.back-link { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Search Overlay ── */
.search-overlay {
  height: 0; overflow: hidden; background: var(--surface); border-bottom: 0px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-overlay.active { height: 72px; border-bottom-width: 1px; }
.search-overlay form {
  height: 72px; display: flex; align-items: center; gap: 20px;
}
.search-overlay input {
  flex: 1; border: none; background: none; font-size: 1.2rem; font-family: var(--font-display);
  font-weight: 600; color: var(--text); outline: none;
}
.close-search {
  background: none; border: none; font-size: 1.8rem; color: var(--text-muted); cursor: pointer; padding: 0 10px; line-height: 1;
}
.close-search:hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  padding: 48px 0 40px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.65;
}

/* ── Tags / Filters ─────────────────────────────────────────────────────────── */
.tag-bar {
  padding: 16px 0 0;
  margin-bottom: 48px;
}
.tag-bar .container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.tag-pill {
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tag-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-md);
}

/* ── Grid ───────────────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding-bottom: 80px;
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Card ── */
.card-wrapper {
  position: relative;
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.card-wrapper:nth-child(2n) { animation-delay: 0.06s; }
.card-wrapper:nth-child(3n) { animation-delay: 0.12s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--transition), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-subtle);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: transform 0.5s var(--transition);
  flex-shrink: 0;
}
.card:hover .card-img-wrap { transform: scale(1.04); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: contain; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.card-tag {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 5px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-view {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  letter-spacing: -0.01em;
}
.btn-view::after {
  content: '→';
  transition: transform 0.25s ease;
}
.btn-view:hover::after { transform: translateX(4px); }

.badge-featured {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px var(--accent-light);
}

.badge-expired {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  background: var(--text-muted);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ── Expired States ── */
.card.is-expired {
  opacity: 0.8;
}
.card.is-expired .card-img-wrap img,
.is-expired-img {
  filter: grayscale(100%);
  opacity: 0.6;
}

/* ── Product View (ficha única) ─────────────────────────────────────────────── */
.product-page .site-header {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.product-view { padding-top: 0; padding-bottom: 0; }

/* Editorial split layout */
.product-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 72px);
}
@media (max-width: 960px) {
  .product-grid { grid-template-columns: 1fr; min-height: auto; }
}

/* LEFT: Image panel — Gallery */
.product-media {
  position: relative;
  background: #eef0f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px 40px;
  min-height: 70vh;
  gap: 28px;
}
[data-theme="dark"] .product-media {
  background: #0f1420;
}

/* Gallery main image container — sticky so it stays on scroll */
.product-gallery-main {
  position: sticky;
  top: 92px;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Crossfade animation on image change */
.product-gallery-main.is-animating .gallery-main-img {
  opacity: 0;
  transform: scale(0.97);
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient glow */
.gallery-img-wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}
.gallery-img-wrap:hover::before { opacity: 1; }

.gallery-main-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.1));
  transition: opacity 0.18s ease, transform 0.18s ease, filter 0.5s ease;
  will-change: opacity, transform;
}
.gallery-img-wrap:hover .gallery-main-img {
  transform: translateY(-6px) scale(1.015);
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.14));
}
[data-theme="dark"] .gallery-main-img {
  filter: drop-shadow(0 20px 48px rgba(0,0,0,0.55));
}
[data-theme="dark"] .gallery-img-wrap:hover .gallery-main-img {
  filter: drop-shadow(0 32px 72px rgba(0,0,0,0.7));
}

/* Image counter badge */
.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 2;
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  user-select: none;
}
.gallery-counter-sep {
  opacity: 0.5;
  margin: 0 1px;
}

/* No image placeholder */
.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Thumbnail strip ─────── */
.gallery-strip {
  width: 100%;
  max-width: 440px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  flex-wrap: nowrap;
}
.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  cursor: pointer;
  border: 1.5px solid var(--border);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  opacity: 0.65;
  border-radius: inherit;
}
.gallery-thumb:hover {
  border-color: var(--border-bold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.gallery-thumb:hover img {
  opacity: 0.9;
  transform: scale(1.06);
}

/* Active thumbnail */
.gallery-thumb.active {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}
.gallery-thumb.active img {
  opacity: 1;
}

/* Accent underline indicator at bottom of active thumb */
.gallery-thumb-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.gallery-thumb.active .gallery-thumb-indicator {
  transform: translateX(-50%) scaleX(1);
}

/* Dark mode thumb */
[data-theme="dark"] .gallery-thumb {
  background: var(--bg);
  border-color: var(--border);
}
[data-theme="dark"] .gallery-thumb.active {
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}

/* Mobile */
@media (max-width: 960px) {
  .product-media {
    padding: 40px 24px 28px;
    min-height: auto;
    gap: 20px;
  }
  .product-gallery-main {
    position: relative;
    top: 0;
    max-width: 320px;
  }
  .gallery-strip {
    max-width: 100%;
    justify-content: flex-start;
  }
  .gallery-thumb { flex: 0 0 60px; height: 60px; }
}

/* RIGHT: Info panel */
.product-info {
  background: var(--surface);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
  overflow-y: auto;
}
@media (max-width: 960px) {
  .product-media { min-height: 50vw; padding: 40px; }
  .product-info { border-left: none; border-top: 1px solid var(--border); padding: 40px 24px 60px; }
}

.info-card { max-width: 460px; }

/* Product Tags */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.product-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.product-tag.featured {
  background: var(--accent);
  color: #fff;
}

/* Title */
.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  color: var(--text);
}

/* Accent divider */
.product-divider {
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 24px;
  border: none;
  opacity: 0.8;
}

/* Description */
.description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0;
}

/* CTA */
.product-actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff !important;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  align-self: flex-start;
}
.btn-buy:hover {
  background: var(--accent-hover);
  color: #fff !important;
  transform: translateX(4px);
  box-shadow: 0 8px 20px var(--accent-light);
}
[data-theme="dark"] .btn-buy {
  background: #ffffff;
  color: #0d1117 !important;
}
[data-theme="dark"] .btn-buy:hover {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 8px 24px var(--accent-light);
}
.btn-buy svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.btn-buy:hover svg { transform: translateX(4px); }

/* Share row */
.share-minimal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.share-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}
.s-icon {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
}
.s-icon:hover { color: var(--text) !important; transform: translateY(-2px); }
.btn-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.btn-copy:hover { color: var(--text); }
.section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.share-box {
  margin-top: 60px;
  padding: 32px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* ── Footer ── */
.site-footer {
  padding: 32px 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
@media (max-width: 600px) {
  .footer-main { flex-direction: column; gap: 12px; text-align: center; }
}
.site-footer span {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: -0.04em;
}
.site-footer-nav {
  display: flex;
  gap: 24px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.site-footer-nav a:hover { color: var(--text); }
.site-footer-legal {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0.45;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.site-footer-copy {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
  text-align: center;
}

/* ── Admin ─────────────────────────────────────────────────────────────────── */
.admin-wrap { background: var(--bg-subtle); min-height: 100vh; }
.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
}
.admin-header .logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  flex: 1;
  color: var(--text);
  letter-spacing: -0.04em;
}
.admin-nav { display: flex; align-items: center; gap: 4px; }
.admin-nav a {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.admin-nav a:hover, .admin-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.admin-nav .btn-logout {
  background: var(--text);
  color: var(--bg) !important;
  margin-left: 8px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  transition: all 0.25s ease;
}
.admin-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-bold);
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: left;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-subtle);
  font-size: 0.88rem;
  vertical-align: middle;
}
.admin-table tr:hover td { background: var(--accent-soft); }

.form-control {
  border: 1.5px solid var(--border);
  padding: 14px;
  border-radius: 10px;
  width: 100%;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: var(--bg);
  color: var(--text);
}
.form-control:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.btn-primary-admin {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary-admin:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.bulk-actions-bar {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.3s ease both;
}
.bulk-actions-bar.hidden { display: none; }

/* Drag and drop */
.sortable-ghost {
  opacity: 0.35;
  background: var(--accent-soft);
  border: 2px dashed var(--accent);
  border-radius: 10px;
}
.drag-handle {
  cursor: grab !important;
  user-select: none;
  -webkit-user-drag: none;
}
.drag-handle:active { cursor: grabbing !important; }

/* Skeleton Loading */
.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 460px;
  position: relative;
}
.skeleton-shimmer {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(148,163,184,0.06) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
[data-theme="dark"] .skeleton-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Infinite Scroll / Load More */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 48px 0 80px;
  animation: fadeIn 0.5s ease;
}
.btn-load-more {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 40px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.btn-load-more:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-load-more.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Modals */
.admin-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.admin-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  animation: fadeUp 0.25s ease both;
}

/* ── UI Polish (Alpine.js Features) ────────────────────────────────────────── */

/* Theme Transitions */
body, .site-header, .card, .admin-card, .search-overlay, .tag-pill, .btn-secondary, .form-input, .surface {
  transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toasts Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: var(--bg) !important;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 20px #00000030;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

/* Scroll-to-Top Button */
.btn-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--accent);
  border-color: var(--accent-light);
}

/* Grid Transition Opacity */
.products-wrapper {
  transition: opacity 0.3s ease;
}
.products-wrapper.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* -- Inmersive Global Search -------------------------------------------------- */
.search-overlay-pro { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 10000; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 20px 40px; }
.search-container-pro { width: 100%; max-width: 650px; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: 0 40px 100px rgba(0,0,0,0.25); overflow: hidden; animation: searchEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes searchEnter { from { opacity: 0; transform: scale(0.95) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.search-input-wrap { padding: 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.search-input-wrap input { flex: 1; border: none; background: transparent; font-size: 1.5rem; font-weight: 700; color: var(--text); outline: none; letter-spacing: -0.02em; }
.search-results-pro { max-height: 60vh; overflow-y: auto; padding: 12px; }
.search-item-pro { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 18px; text-decoration: none; transition: 0.2s; margin-bottom: 4px; }
.search-item-pro:hover { background: var(--bg-subtle); transform: translateX(8px); }
.search-img-pro { width: 56px; height: 56px; border-radius: 12px; background: var(--bg); object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.search-info-pro { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.search-title-pro { font-weight: 700; color: var(--text); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-tag-pro { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--accent); letter-spacing: 0.05em; }
.search-empty-pro { padding: 60px 40px; text-align: center; color: var(--text-muted); font-weight: 600; }
.search-hint-pro { padding: 12px 24px; background: var(--bg-subtle); border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-muted); display: flex; justify-content: space-between; font-weight: 600; }


[x-cloak] { display: none !important; }


/* -- Subtle Theme Toggle in Footer ------------------------------------------- */
.theme-footer-toggle { background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text); padding: 8px 16px; border-radius: 100px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; }
.theme-footer-toggle:hover { background: var(--surface); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }


/* -- Floating Subtle Theme Toggle ------------------------------------------ */
.theme-fab { position: fixed; bottom: 30px; left: 30px; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 999; box-shadow: 0 10px 25px rgba(0,0,0,0.1); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); color: var(--text); }
.theme-fab:hover { transform: scale(1.1) rotate(12deg); border-color: var(--accent); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.theme-fab svg { width: 18px; height: 18px; stroke-width: 2.5px; }

/* -- Refined Affiliate Disclaimer ------------------------------------------ */
.affiliate-disclaimer { margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-muted); font-style: italic; line-height: 1.6; max-width: 600px; }


/* -- Integrated Footer Redesign ------------------------------------------ */
.site-footer { padding: 80px 0 40px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: flex-start; margin-bottom: 60px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand span { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; display: flex; flex-direction: column; gap: 16px; opacity: 0.6; }
.affiliate-note { font-size: 0.72rem; line-height: 1.6; font-weight: 500; max-width: 800px; color: var(--text); }
.footer-copy-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }


/* -- Ultra Compact Footer -------------------------------------------------- */
.site-footer { padding: 40px 0 30px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-main-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.footer-bottom-info { border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.affiliate-note { font-size: 0.72rem; line-height: 1.5; font-weight: 500; color: var(--text-muted); width: 100%; max-width: none; }
.footer-copy-row { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); opacity: 0.8; }

