@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --mars: #e85d2a;
  --mars-dark: #c94a1c;
  --mars-soft: rgba(232, 93, 42, 0.12);
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --panel: #ffffff;
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --success: #059669;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232, 93, 42, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(15, 23, 42, 0.04), transparent);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { transition: color var(--transition); }

/* ── Typography ── */
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mars);
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header .navbar {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--navy) !important;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mars) 0%, var(--mars-dark) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(232, 93, 42, 0.35);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--ink-secondary) !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--navy) !important;
  background: var(--line-soft);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--line-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.user-chip i { color: var(--mars); }

/* ── Buttons ── */
.text-mars { color: var(--mars) !important; }

.btn-mars {
  background: linear-gradient(135deg, var(--mars) 0%, var(--mars-dark) 100%);
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(232, 93, 42, 0.35);
  transition: all var(--transition);
}

.btn-mars:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 93, 42, 0.45);
  color: #fff !important;
}

.btn-mars:active { transform: translateY(0); }

.btn-outline-mars {
  border: 1.5px solid var(--line);
  color: var(--ink-secondary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--panel);
  transition: all var(--transition);
}

.btn-outline-mars:hover {
  border-color: var(--mars);
  color: var(--mars);
  background: var(--mars-soft);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-ghost:hover {
  background: var(--line-soft);
  color: var(--navy);
}

/* ── Alerts ── */
.alert {
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.alert-success {
  background: #ecfdf5;
  color: #047857;
}

.alert-danger {
  background: #fef2f2;
  color: #b91c1c;
}

/* ── Auth pages ── */
.auth-shell {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .auth-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
    max-width: 1040px;
  }
}

.auth-visual {
  display: none;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy) 0%, #1e3a5f 50%, var(--navy-soft) 100%);
  padding: 2.5rem;
  color: #fff;
}

@media (min-width: 992px) {
  .auth-visual { display: flex; flex-direction: column; justify-content: space-between; }
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(232, 93, 42, 0.25), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06), transparent 40%);
  pointer-events: none;
}

.auth-visual-content { position: relative; z-index: 1; }

.auth-visual h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.auth-visual p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

.auth-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.auth-features i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--mars);
  font-size: 0.85rem;
}

.auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem 2rem 2.25rem;
  box-shadow: var(--shadow-md);
}

.auth-panel h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.auth-panel .form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin-bottom: 0.35rem;
}

.auth-panel .form-control,
.auth-panel .form-select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-panel .form-control:focus,
.auth-panel .form-select:focus {
  border-color: var(--mars);
  box-shadow: 0 0 0 4px var(--mars-soft);
}

.input-group .input-group-text {
  border: 1.5px solid var(--line);
  border-right: none;
  background: var(--line-soft);
}

.input-group .form-control {
  border-left: none;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
  border-color: var(--mars);
}

.input-group:focus-within .form-control {
  box-shadow: 0 0 0 4px var(--mars-soft);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.88rem;
}

.auth-links a {
  color: var(--mars);
  font-weight: 600;
  text-decoration: none;
}

.auth-links a:hover { text-decoration: underline; }

/* ── Home / Carousel ── */
.hero-carousel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.announcement-slide {
  min-height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.announcement-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.45) 55%, transparent 100%);
}

.announcement-slide .slide-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  max-width: 560px;
}

@media (min-width: 768px) {
  .announcement-slide { min-height: 320px; }
  .announcement-slide .slide-content { padding: 3rem 3.5rem; }
}

.announcement-slide h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.announcement-slide p,
.announcement-slide li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  transition: all var(--transition);
}

.carousel-indicators .active {
  background: var(--mars);
  width: 24px;
  border-radius: 4px;
}

/* ── Category cards ── */
.category-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 93, 42, 0.25);
  color: inherit;
}

.category-card-image {
  aspect-ratio: 4/3;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.category-card-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.03), transparent);
}

.category-card-image img {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  transition: transform var(--transition);
  position: relative;
  z-index: 1;
}

.category-card:hover .category-card-image img {
  transform: scale(1.06);
}

.category-card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.category-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  line-height: 1.35;
}

.category-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--line-soft);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.category-card:hover .category-card-arrow {
  background: var(--mars-soft);
  color: var(--mars);
  transform: translateX(2px);
}

/* ── Product cards ── */
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(226, 232, 240, 0.8);
}

.product-card-media {
  display: block;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform var(--transition);
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

.product-card-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0.65rem;
  padding: 0.5rem 0;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  display: inline-block;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.color-swatch:hover,
.color-swatch.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--navy), 0 2px 8px rgba(15, 23, 42, 0.2);
}

.product-card-body .series-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.product-card-body .product-name {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-meta {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.product-card-meta .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.product-card-meta .meta-row:last-child { border-bottom: none; }

.product-card-meta .label {
  color: var(--muted-light);
  font-weight: 500;
}

.product-card-meta .value {
  font-weight: 600;
  color: var(--ink-secondary);
}

.product-card-meta .price-row .value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--mars);
}

/* ── Filter sidebar ── */
.filter-sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: sticky;
  top: 5.5rem;
  box-shadow: var(--shadow-xs);
}

.filter-block + .filter-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.filter-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.filter-title i { color: var(--mars); font-size: 0.9rem; }

.filter-tree a,
.filter-block > ul a {
  color: var(--ink-secondary);
  text-decoration: none;
  display: block;
  padding: 0.45rem 0.65rem;
  margin: 0.1rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.filter-tree a:hover,
.filter-block > ul a:hover {
  background: var(--line-soft);
  color: var(--navy);
}

.filter-tree a.active,
.filter-block > ul a.active {
  background: var(--mars-soft);
  color: var(--mars-dark);
  font-weight: 700;
}

.filter-tree ul { margin-top: 0.15rem; }

.filter-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.filter-clear {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mars);
  text-decoration: none;
  margin-top: 0.5rem;
  display: inline-block;
}

.filter-clear:hover { text-decoration: underline; }

.stock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stock-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--line-soft);
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}

.stock-chip:hover {
  background: var(--panel);
  border-color: var(--line);
  color: var(--navy);
}

.stock-chip.active {
  background: var(--mars-soft);
  border-color: rgba(232, 93, 42, 0.3);
  color: var(--mars-dark);
}

/* ── Catalog header ── */
.catalog-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--line-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.list-toolbar-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}

.list-toolbar-search > i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.list-toolbar-search .form-control {
  padding-left: 2.25rem;
}

.list-toolbar-sort {
  display: flex;
  gap: 0.5rem;
  flex: 0 1 auto;
}

.list-toolbar .form-select {
  width: auto;
  min-width: 120px;
}

.admin-list-toolbar .form-select {
  min-width: 140px;
}

.sort-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.sort-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.sort-chip:hover,
.sort-chip.active {
  border-color: var(--mars);
  color: var(--mars);
  background: color-mix(in srgb, var(--mars) 8%, #fff);
}

.th-sort {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.th-sort:hover,
.th-sort.active {
  color: var(--mars);
}

.admin-thumb {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  background: #fff;
}

.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--muted-light);
  margin-bottom: 1rem;
}

/* ── Product detail ── */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.breadcrumb-item a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover { color: var(--mars); }

.breadcrumb-item.active { color: var(--ink-secondary); font-weight: 600; }

.product-gallery {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-xs);
}

.main-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  border-radius: var(--radius-md);
  border: none;
}

.thumb-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.thumb-btn {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.thumb-btn:hover,
.thumb-btn:focus {
  border-color: var(--mars);
  box-shadow: 0 0 0 3px var(--mars-soft);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  color: #fff !important;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all var(--transition);
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  color: #fff !important;
}

.product-info-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
}

.product-brand {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mars);
  margin-bottom: 0.5rem;
}

.product-series {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.product-info-panel h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.product-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--line-soft);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 1.25rem;
}

.product-desc {
  color: var(--ink-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.product-desc ul { padding-left: 1.1rem; }

.stock-table {
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stock-table thead th {
  background: var(--line-soft);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: none;
  padding: 0.75rem 1rem;
}

.stock-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-color: var(--line-soft);
}

.stock-table .table-active {
  background: var(--mars-soft) !important;
}

.price-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border: none !important;
  border-radius: var(--radius-md) !important;
  color: #fff;
  padding: 1.35rem 1.5rem !important;
}

.price-box .text-muted { color: rgba(255, 255, 255, 0.65) !important; }

.price-box .fs-4 {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #fff !important;
}

.price-box strong { color: #fff; }

.logo-placements {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.logo-placements h2 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.logo-diagram-wrap {
  background: var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: all var(--transition);
}

.logo-diagram-wrap:hover {
  background: var(--mars-soft);
}

.logo-diagram {
  width: 100%;
  max-width: 100px;
  height: auto;
}

.note-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-top: 1rem;
}

.note-box h2 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b45309;
  margin-bottom: 0.35rem;
}

/* ── Admin ── */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 900px;
}

.admin-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.admin-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 93, 42, 0.2);
  color: inherit;
}

.admin-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mars-soft);
  color: var(--mars);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.admin-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.admin-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.data-table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.data-table-wrap .table {
  margin: 0;
  font-size: 0.88rem;
}

.data-table-wrap thead th {
  background: var(--line-soft);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: none;
  padding: 0.9rem 1rem;
  white-space: nowrap;
}

.data-table-wrap tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-color: var(--line-soft);
}

/* ── Admin product form ── */
.admin-product-form {
  display: grid;
  gap: 1.25rem;
  max-width: 1100px;
}

.admin-form-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-xs);
}

.admin-form-section-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}

.admin-form-section-head > i {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--mars) 12%, transparent);
  color: var(--mars);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admin-form-section-head h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.2rem;
}

.admin-form-section-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-photo-card {
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--line-soft);
  height: 100%;
}

.admin-photo-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.admin-photo-preview {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 0.75rem;
}

.admin-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.25rem 0 1rem;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 0;
}

.admin-pagination-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-pagination .pagination {
  gap: 0.25rem;
}

.admin-pagination .page-link {
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
}

.admin-pagination .page-item.active .page-link {
  background: var(--mars);
  border-color: var(--mars);
  color: #fff;
}

.admin-pagination .page-item.disabled .page-link {
  opacity: 0.45;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.site-footer a:hover { color: var(--mars); }

.footer-brand {
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
}

/* ── Floating WhatsApp ── */
.fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 1020;
  transition: all var(--transition);
  text-decoration: none;
}

.fab-whatsapp:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

/* ── Legal ── */
.legal-content {
  max-width: 720px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xs);
}

/* ── Form controls global ── */
.form-control,
.form-select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--mars);
  box-shadow: 0 0 0 4px var(--mars-soft);
}

.form-check-input:checked {
  background-color: var(--mars);
  border-color: var(--mars);
}
