:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --text-secondary: #475569;
  --surface: #ffffff;
  --border: #e2e8f0;
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #f5f3ff;
  --success: #059669;
  --success-bg: #ecfdf5;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --muted: #94a3b8;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08);
  --transition: 0.2s ease;
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

.container { width: min(1200px, 92vw); margin: 0 auto; }
main.container { flex: 1; padding-bottom: 2rem; }

/* ── Header ── */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 50px;
  width: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-active {
  color: var(--primary) !important;
  background: var(--primary-light);
  font-weight: 600 !important;
  border-bottom: 2px solid var(--primary);
  border-radius: 0.5rem 0.5rem 0 0;
}

.link-button {
  border: none;
  background: none;
  color: var(--danger);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  font-family: inherit;
}

.link-button:hover { background: var(--danger-bg); }

.search-icon {
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
}

/* ── Carousel ── */
.carousel {
  margin: 0 calc(50% - 50vw) 2.5rem;
  width: 100vw;
  height: 520px;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.88) 0%, rgba(124, 58, 237, 0.78) 50%, rgba(139, 92, 246, 0.72) 100%);
  background-size: cover;
  background-position: center;
}

.carousel-slide:nth-child(3n+2) {
  background-color: rgba(15, 23, 42, 0.9);
  background-blend-mode: overlay;
}

.carousel-slide:nth-child(3n+3) {
  background-color: rgba(6, 78, 59, 0.9);
  background-blend-mode: overlay;
}

.carousel-content {
  text-align: center;
  color: white;
  padding: 3rem 2rem;
  max-width: 700px;
}

.carousel-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.3rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.carousel-content h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.carousel-content p {
  margin: 1rem auto 2rem;
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.92;
  line-height: 1.65;
  max-width: 520px;
}

.carousel-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: white;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  color: var(--primary);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev { left: 1.5rem; }
.carousel-next { right: 1.5rem; }

.carousel-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-dot:hover { border-color: white; }

.carousel-dot.active {
  background: white;
  border-color: white;
  width: 30px;
  border-radius: 999px;
}

/* ── Category chips ── */
.home-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.chip {
  text-decoration: none;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.chip.clear { color: var(--danger); border-color: #fecaca; }
.chip.clear:hover { background: var(--danger-bg); }

/* ── Section titles ── */
.page-header { margin-bottom: 1.25rem; }
.page-header h1 { font-weight: 700; letter-spacing: -0.02em; }

.featured-title h2 {
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Flash messages ── */
.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.flash.notice { background: var(--success-bg); color: var(--success); border-color: #a7f3d0; }
.flash.alert { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; }

/* ── Product grid ── */
.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-bottom: 2rem;
}

/* ── Cards ── */
.card, .form-card, .table-card, .stat-card, .filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card { position: relative; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-images { margin: 0; overflow: hidden; background: #f1f5f9; display: block; text-decoration: none; }

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .product-image { transform: scale(1.03); }

.image-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: #f1f5f9;
}

.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }

.card-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-product-title { font-size: 1.1rem; }

.home-product-description {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
  min-height: 2.5em;
  line-height: 1.5;
}

.product-title-link { color: var(--text); text-decoration: none; }
.product-title-link:hover { color: var(--primary); }

/* ── Prices ── */
.price {
  font-weight: 700;
  color: var(--text);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.price-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
  margin-bottom: 1rem;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.discount-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--danger);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  z-index: 2;
}

/* ── Buttons ── */
.button, .small-button {
  border: none;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #6d28d9 100%);
  color: white;
  border-radius: 0.5rem;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  font-family: inherit;
  transition: all var(--transition);
  letter-spacing: -0.01em;
  background-size: 200% 200%;
  background-position: 0% 50%;
}

.button:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  color: #e9d5ff;
}
.small-button { padding: 0.35rem 0.65rem; font-size: 0.8rem; }

.button.ghost {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: var(--primary);
  border: 1px solid #ddd6fe;
  background-size: auto;
}

.button.ghost:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

.full-width { width: 100%; }

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all var(--transition);
  width: 100%;
}

.contact-link:hover {
  background: #d1fae5;
  color: #047857;
  border-color: #6ee7b7;
}

.contact-icon { font-size: 1rem; }

.show-contact { width: auto; margin-top: 0.75rem; }

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ── Forms ── */
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.field label {
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

input, textarea, select {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

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

.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.image-preview-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; }
th { font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 0.75rem 0.5rem; vertical-align: top; }
td { font-size: 0.9rem; }
tbody tr:hover { background: #f8fafc; }

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-card h2 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.stat-card p {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.03em;
}

/* ── Empty state ── */
.empty-state { text-align: center; color: var(--muted); }

.empty-state-card {
  grid-column: 1 / -1;
  text-align: center;
  background: white;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
}

.empty-state-card h3 { margin: 0 0 0.5rem; color: var(--text); font-weight: 700; }
.empty-state-card p { margin: 0 0 1.25rem; color: var(--text-secondary); }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--muted); }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/* ── Product Detail Page ── */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.pdp-gallery { position: relative; }

.pdp-main-image {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pdp-hero-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pdp-placeholder { height: 400px; }

.pdp-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.pdp-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition);
  flex-shrink: 0;
}

.pdp-thumb:hover { opacity: 1; border-color: var(--border); }
.pdp-thumb-active { opacity: 1; border-color: var(--primary) !important; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15); }

/* ── PDP Info ── */
.pdp-info { padding-top: 0.25rem; }

.pdp-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.pdp-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.pdp-rating-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.pdp-rating-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.pdp-rating-count:hover { color: var(--primary); text-decoration: underline; }

.pdp-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: #faf5ff;
  border: 1px solid #ede9fe;
  border-radius: var(--radius);
}

.pdp-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.pdp-save {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.pdp-description {
  margin-bottom: 1.5rem;
}

.pdp-description p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pdp-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.pdp-book-btn {
  flex: 1;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.6rem;
}

.pdp-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: 0.6rem;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.pdp-call-btn:hover {
  background: #d1fae5;
  color: #047857;
  border-color: #6ee7b7;
}

.pdp-meta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  margin-bottom: 1.25rem;
}

.pdp-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.88rem;
}

.pdp-meta-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.pdp-in-stock {
  color: var(--success);
  font-weight: 600;
}

.pdp-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pdp-share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pdp-share-icons {
  display: flex;
  gap: 0.5rem;
}

.pdp-share-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pdp-share-icon svg { width: 18px; height: 18px; }
.pdp-share-icon:hover { transform: translateY(-2px); color: white; }
.pdp-share-icon.whatsapp { background: #25d366; }
.pdp-share-icon.whatsapp:hover { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
.pdp-share-icon.facebook { background: #1877f2; }
.pdp-share-icon.facebook:hover { box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4); }
.pdp-share-icon.twitter { background: #0f172a; }
.pdp-share-icon.twitter:hover { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4); }
.pdp-share-icon.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.pdp-share-icon.instagram:hover { box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4); }
.pdp-share-icon.copy-link { background: #6366f1; border: none; cursor: pointer; color: white; }
.pdp-share-icon.copy-link:hover { box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); }
.pdp-share-icon.copy-link.copied { background: #25d366; }

/* ── PDP Reviews ── */
.pdp-reviews {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.pdp-latest-products {
  margin-top: 2.5rem;
}

.pdp-latest-products h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.pdp-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pdp-reviews-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.pdp-reviews-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
}

.pdp-reviews-avg {
  font-size: 2rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1;
}

.pdp-reviews-summary-detail {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pdp-reviews-total {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pdp-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pdp-review {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.pdp-review:last-child { border-bottom: none; }

.pdp-review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.pdp-review-content { flex: 1; min-width: 0; }

.pdp-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.pdp-review-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.pdp-review-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.pdp-review-text {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* ── Footer ── */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: auto;
  padding: 2.5rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}

.footer-col { min-width: 0; }

.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.footer-copy {
  margin-top: 0.6rem;
  max-width: 300px;
  line-height: 1.55;
  font-size: 0.88rem;
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.site-footer a:hover { color: #ffffff; }

.footer-social { display: flex; gap: 0.5rem; margin-top: 0.25rem; }

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.footer-social a svg { width: 18px; height: 18px; }

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 1rem;
}

.footer-bottom p { margin: 0; font-size: 0.85rem; color: #64748b; }

/* ── Admin filters ── */
.admin-filters {
  margin-bottom: 1.25rem;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
}

.filter-field { flex: 1; min-width: 160px; }

.filter-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* ── Status pills ── */
.status-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-pill.active {
  background: var(--success-bg);
  color: var(--success);
}

.status-pill.inactive {
  background: #f1f5f9;
  color: var(--muted);
}

.inline-form {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.inline-form select {
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
}

/* ── Kaminari pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span,
.pagination em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  font-style: normal;
}

.pagination a {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: white;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.pagination span.current,
.pagination em.current {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border: 1px solid transparent;
  font-weight: 700;
}

.pagination span.gap {
  color: var(--muted);
  border: none;
}

.pagination span.prev,
.pagination span.next,
.pagination span.first,
.pagination span.last {
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ── Stars & Reviews ── */
.stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.stars-lg { font-size: 1.3rem; }

.stars-inline {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
}

.rating-count {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.rating-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.show-rating-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.reviews-section {
  margin-top: 2rem;
}

.reviews-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.review-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.review-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
}

.review-body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Action links ── */
.action-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

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

.danger-btn {
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  border: none;
  color: white;
}

.danger-btn:hover {
  background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.detail-grid { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.detail-row { display: flex; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.detail-label { font-weight: 600; min-width: 140px; color: var(--text-secondary); }
.detail-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

.text-secondary { color: var(--text-secondary); font-size: 0.88rem; }

/* ── Hamburger menu ── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text);
}

.menu-toggle svg { width: 24px; height: 24px; display: block; }

/* ── Responsive tables ── */
.table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Responsive ── */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pdp-title { font-size: 1.4rem; }
  .pdp-price { font-size: 1.4rem; }
  .pdp-actions { flex-direction: column; }
  .pdp-reviews-header { flex-direction: column; align-items: flex-start; }
  .pdp-review-top { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .split { gap: 0.75rem; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-form { flex-direction: column; }
  .filter-field { min-width: 100%; }
  .header-actions { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links a, .nav-links .link-button {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border-radius: 0;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child, .nav-links .link-button:last-child {
    border-bottom: none;
  }

  .nav-active {
    border-bottom: 1px solid var(--border) !important;
    border-left: 3px solid var(--primary);
    border-radius: 0;
  }

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

@media (max-width: 640px) {
  .container { width: 94vw; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-copy { max-width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .carousel { height: 380px; }
  .carousel-arrow { width: 32px; height: 32px; font-size: 0.85rem; }
  .carousel-prev { left: 0.4rem; }
  .carousel-next { right: 0.4rem; }
  .carousel-content { padding: 1.75rem 3rem; }
  .carousel-content h1 { font-size: 1.4rem; }
  .carousel-content p { font-size: 0.85rem; margin: 0.75rem auto 1.25rem; max-width: 85%; }
  .carousel-btn { padding: 0.7rem 1.8rem; font-size: 0.88rem; }
  .carousel-tag { font-size: 0.65rem; padding: 0.25rem 0.8rem; }
  .breadcrumb { font-size: 0.78rem; flex-wrap: wrap; }
  .pdp-thumbnails { gap: 0.35rem; }
  .pdp-thumb { width: 56px; height: 56px; }
  .pdp-price-block { padding: 0.75rem 1rem; }
  .pdp-share-icon { width: 34px; height: 34px; }
  .pdp-share-icon svg { width: 16px; height: 16px; }
  .stat-card { padding: 1rem; }
  .stat-card p { font-size: 1.5rem; }
  .page-header h1 { font-size: 1.3rem; }
  .featured-title h2 { font-size: 1.35rem; }
  .card-body { padding: 1rem; }
  .form-card { padding: 1rem; }
  .table-card { padding: 0.75rem; }
  table { font-size: 0.82rem; }
  th, td { padding: 0.55rem 0.4rem; }
  .inline-form { flex-wrap: wrap; }
  .action-links { flex-wrap: wrap; }
  .footer-social a { width: 34px; height: 34px; }
  .footer-social a svg { width: 16px; height: 16px; }
}

@media (max-width: 380px) {
  .product-grid { gap: 0.75rem; }
  .card-body h2 { font-size: 1rem; }
  .price { font-size: 1.05rem; }
  .button { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  .carousel { height: 320px; }
}
