/* ============================================================
   ESFIL Design System - Orange / Gray Commerce Theme
   ============================================================ */

:root {
  --primary: #f37021;
  --primary-dark: #d85c12;
  --primary-soft: #fff1e8;
  --secondary: #6b7280;
  --gray-900: #202938;
  --gray-800: #374151;
  --gray-700: #4b5563;
  --gray-600: #6b7280;
  --gray-500: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f6f7f9;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --cyan: var(--primary);
  --cyan-dim: var(--primary-soft);
  --purple: var(--secondary);
  --purple-dim: #eef0f3;
  --font-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 8px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-card: 0 10px 24px rgba(17, 24, 39, 0.08);
  --shadow-glow: 0 12px 28px rgba(243, 112, 33, 0.18);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

main {
  background: var(--bg);
}

.site-shell,
.section-container,
.footer-container {
  width: min(1232px, calc(100% - 32px));
  margin: 0 auto;
}

.section-container > *,
.admin-content > *,
.cart-layout > *,
.checkout-layout > *,
.profile-grid > *,
.product-detail-grid > *,
.contact-grid > *,
.about-grid > *,
.home-product-layout > * {
  min-width: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border);
}

.announcement-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gray-900);
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.announcement-icon {
  color: var(--primary);
  font-size: 0.95rem;
}

.utility-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}

.utility-inner,
.header-inner,
.category-inner {
  display: flex;
  align-items: center;
}

.utility-inner {
  min-height: 48px;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.86rem;
  font-weight: 600;
}

.utility-links,
.utility-contact,
.header-actions,
.category-inner {
  display: flex;
  align-items: center;
}

.utility-links {
  gap: 22px;
}

.utility-contact {
  gap: 18px;
  color: var(--text);
}

.utility-contact a + a {
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.header-main {
  background: var(--surface);
}

.header-inner {
  min-height: 92px;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  color: var(--text);
}

.brand-logo:hover {
  color: var(--text);
  opacity: 0.86;
}

.brand-bars {
  width: 30px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--primary);
}

.brand-bars span {
  display: block;
  width: 4px;
  height: 25px;
  border-radius: 4px;
  background: currentColor;
}

.brand-bars span:nth-child(2) {
  height: 31px;
}

.brand-bars span:nth-child(3) {
  height: 22px;
}

.brand-bars span:nth-child(4) {
  height: 29px;
}

.brand-word {
  font-size: clamp(2rem, 3.1vw, 2.55rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-sub {
  align-self: flex-end;
  margin: 0 0 4px 0;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.brand-es,
.brand-fil {
  color: var(--primary);
}

.site-search {
  position: relative;
  flex: 1 1 420px;
  max-width: 420px;
}

.site-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--text);
  padding: 0 48px 0 16px;
  outline: none;
}

.site-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.12);
}

.site-search button {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0;
}

.site-search button::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.site-search button::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 25px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.header-actions {
  justify-content: flex-end;
  gap: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.header-action-icon {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
}

.header-count {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
}

.category-nav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.category-inner {
  min-height: 54px;
  gap: 28px;
  font-weight: 800;
}

.category-inner a {
  display: inline-flex;
  align-items: center;
  height: 54px;
  color: var(--text);
  white-space: nowrap;
}

.category-inner a:hover {
  color: var(--primary);
}

.category-trigger {
  gap: 9px;
}

.category-trigger span,
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span + span {
  display: none;
}

.site-header.is-compact .announcement-bar,
.site-header.is-compact .utility-bar,
.site-header.is-compact .category-nav:not(.open) {
  display: none;
}

.site-header.is-compact .header-inner {
  min-height: 72px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: var(--primary);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide.active {
  pointer-events: auto;
}

.hero-bg-glow {
  display: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(139, 46, 0, 0.22), transparent 44%),
    repeating-linear-gradient(35deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 42px);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 40px));
  min-height: 340px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 26px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(80, 31, 0, 0.22);
}

.hero-copy {
  padding-left: clamp(12px, 4vw, 44px);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.hero-title {
  max-width: 560px;
  font-family: var(--font-head);
  font-size: clamp(2.35rem, 4.3vw, 3.9rem);
  font-weight: 900;
  line-height: 0.98;
  color: var(--primary);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-title span {
  color: var(--gray-900);
}

.hero-sub {
  max-width: 520px;
  color: var(--gray-700);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  min-height: 246px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
    var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-link {
  width: 100%;
  height: 100%;
  display: block;
}

.home-category-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.home-category-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.home-category-card:hover {
  border-color: #f2c3a6;
  box-shadow: var(--shadow-card);
}

.home-category-media {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: repeating-linear-gradient(90deg, #2f170d 0 10px, #8a4a23 10px 20px, #e9a15d 20px 30px);
}

.home-category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-category-card h3 {
  font-size: 1rem;
  font-weight: 900;
}

.home-category-card p {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  margin-top: 3px;
}

.filament-display {
  position: relative;
  width: min(340px, 90%);
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.spool {
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 17%, #222 18% 22%, transparent 23%),
    conic-gradient(#ed4337, #f5d142, #37b24d, #228be6, #8a5cf6, #ed4337);
  border: 10px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 24px rgba(17, 24, 39, 0.22);
}

.spool.second {
  transform: translateY(-18px);
  background:
    radial-gradient(circle at center, #fff 0 17%, #222 18% 22%, transparent 23%),
    conic-gradient(#111827, #4b5563, #d1d5db, #111827);
}

.shipping-box {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 150px;
  height: 82px;
  background: #c98a49;
  border: 4px solid #9a652f;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #281200;
  font-weight: 900;
  box-shadow: 0 18px 28px rgba(17, 24, 39, 0.22);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.category-showcase {
  background: var(--surface);
  padding: 18px 0 54px;
}

.category-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: thin;
}

.category-bubble {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.bubble-art {
  width: 90px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: inset 0 0 0 4px #fff, 0 3px 12px rgba(243, 112, 33, 0.16);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  background: repeating-linear-gradient(90deg, #2f170d 0 10px, #8a4a23 10px 20px, #e9a15d 20px 30px);
}

.bubble-art.abs { background: repeating-linear-gradient(90deg, #1f2937 0 12px, #6b7280 12px 24px); }
.bubble-art.petg { background: repeating-linear-gradient(90deg, #5b1914 0 12px, #9b2c1f 12px 24px, #de6b34 24px 36px); }
.bubble-art.asa { background: repeating-linear-gradient(90deg, #0d335d 0 12px, #2563eb 12px 24px, #93c5fd 24px 36px); }
.bubble-art.tpu { background: repeating-linear-gradient(90deg, #4d2d16 0 12px, #a16207 12px 24px, #facc15 24px 36px); }
.bubble-art.wood { background: repeating-linear-gradient(90deg, #4a2f1a 0 12px, #8b5a2b 12px 24px, #c0844d 24px 36px); }
.bubble-art.silk { background: linear-gradient(135deg, #fef3c7, #f59e0b, #7c2d12); }

/* Sections */
.section {
  padding: 76px 0;
}

.section.compact {
  padding: 44px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-header.centered {
  display: block;
  text-align: center;
}

.section-header.centered .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
}

.section-lead {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 10px;
}

.page-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  padding: 66px 0;
  text-align: center;
}

.page-hero p {
  max-width: 680px;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(243, 112, 33, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
}

/* Products */
.home-product-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.promo-card {
  min-height: 100%;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.34)),
    conic-gradient(from 200deg, #2dd4bf, #60a5fa, #f0abfc, #fb7185, #facc15, #2dd4bf);
}

.promo-card h3 {
  max-width: 220px;
  font-size: 1.65rem;
  line-height: 1.12;
  font-weight: 900;
}

.promo-card p {
  max-width: 210px;
  margin-top: 8px;
  font-weight: 700;
}

.promo-card span {
  align-self: flex-start;
  margin-top: 30px;
  background: var(--primary);
  border-radius: 6px;
  padding: 9px 14px;
  font-weight: 900;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}

.product-link {
  display: block;
  height: 100%;
}

.product-card-shell {
  position: relative;
  height: 100%;
}

.product-card {
  height: 100%;
  min-height: 378px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #f2c3a6;
  box-shadow: var(--shadow-card);
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.placeholder-icon {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.3rem;
  background:
    radial-gradient(circle at center, #fff 0 17%, #1f2937 18% 22%, transparent 23%),
    conic-gradient(#ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7, #ef4444);
  box-shadow: inset 0 0 0 9px rgba(255,255,255,0.85), 0 8px 24px rgba(17, 24, 39, 0.12);
}

.product-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gray-50);
  color: var(--text);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  z-index: 2;
}

.product-fav:hover,
.product-fav.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.product-fav-form {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 9px;
}

.product-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-category {
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-name {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.35;
}

.product-desc {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.product-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.product-meta::before,
.product-meta::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.product-meta::before {
  background: #53d9c2;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.product-price {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 900;
}

.product-price span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

/* Blog and feature cards */
.blog-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.blog-card,
.feature-card,
.stat-card,
.contact-item,
.form-card,
.table-card,
.admin-form-card,
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.blog-card,
.feature-card {
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.blog-card:hover,
.feature-card:hover {
  transform: translateY(-3px);
  border-color: #f2c3a6;
  box-shadow: var(--shadow-card);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gray-50);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 22px;
}

.blog-date {
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.blog-card-title {
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 900;
  margin-bottom: 10px;
}

.blog-card-summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.blog-read-more {
  color: var(--primary);
  font-weight: 900;
}

.blog-list-hero {
  padding-bottom: 64px;
}

.blog-card-title {
  margin-top: 0;
}

.blog-detail-container {
  max-width: 920px;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.87rem;
  font-weight: 800;
}

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

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

.blog-detail-header {
  margin-bottom: 30px;
}

.blog-detail-header h1 {
  max-width: 820px;
  margin: 10px 0 18px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
  font-weight: 900;
}

.blog-detail-header p {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.75;
}

.blog-cover {
  margin: 0 0 34px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.blog-cover img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.blog-prose {
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  line-height: 1.85;
  box-shadow: var(--shadow-sm);
}

.blog-prose h2,
.blog-prose h3 {
  color: var(--text);
  line-height: 1.25;
  font-weight: 900;
}

.blog-prose h2 {
  margin: 38px 0 14px;
  font-size: 1.65rem;
}

.blog-prose h3 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.blog-prose p,
.blog-prose li {
  color: var(--text-muted);
  font-weight: 650;
}

.blog-prose p {
  margin: 0 0 18px;
}

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

.blog-prose a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prose blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 800;
}

.blog-prose figure {
  margin: 30px 0;
}

.blog-prose figure img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--gray-50);
}

.blog-prose figcaption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.blog-prose table {
  margin: 28px 0;
  border: 1px solid var(--border);
}

.blog-prose th,
.blog-prose td {
  border: 1px solid var(--border);
}

.blog-detail-footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-ai-card {
  margin-bottom: 22px;
}

.blog-ai-card h2,
.inline-image-box h2 {
  margin-bottom: 18px;
}

.blog-ai-form .admin-form-actions {
  margin-top: 12px;
}

.inline-image-box {
  max-width: none;
  margin: 12px 0 24px;
  padding: 22px;
}

.feature-card {
  padding: 26px 22px;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.45rem;
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta-band {
  padding: 72px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-band p {
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--text-muted);
}

/* Filters and details */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
}

.detail-image-panel,
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.detail-image-panel {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
}

.detail-panel {
  padding: 32px;
}

.detail-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.16;
  margin: 8px 0 16px;
}

.detail-desc {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

.detail-price {
  color: var(--primary);
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 22px;
}

.detail-price span {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.detail-cart-form {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.quantity-input {
  min-height: 42px;
  text-align: center;
}

.favorite-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.favorite-cart-button {
  width: 100%;
}

.empty-state {
  padding: 64px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--gray-50);
  text-align: center;
}

.empty-state h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin: 0 auto 20px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 110px 34px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cart-product {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.cart-product h2 {
  margin: 3px 0 6px;
  font-size: 0.98rem;
  font-weight: 900;
}

.cart-thumb {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-thumb .placeholder-icon {
  width: 52px;
}

.cart-quantity-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-quantity-form .quantity-input {
  width: 70px;
}

.cart-line-total {
  color: var(--primary);
  font-weight: 900;
  text-align: right;
}

.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
  font-size: 1.25rem;
}

.cart-summary {
  position: sticky;
  top: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cart-summary h2 {
  margin-bottom: 14px;
  font-size: 1.12rem;
  font-weight: 900;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.cart-summary .cart-total {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.08rem;
}

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

.cart-summary-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.checkout-form {
  width: 100%;
  margin: 0;
}

.checkout-summary-item {
  align-items: flex-start;
}

.checkout-summary-item span {
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.order-success {
  width: min(100%, 720px);
  margin: 0 auto;
}

.order-success > h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 900;
}

.order-success > p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.65;
}

.payment-shell {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.payment-heading {
  margin-bottom: 18px;
}

.payment-heading h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 900;
}

.payment-heading p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.55;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.badge-active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.badge-inactive {
  background: var(--gray-100);
  color: var(--secondary);
}

.content-box {
  margin-top: 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}

.content-box h2 {
  font-size: 1.28rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.content-box .rich-text {
  color: var(--text-muted);
  line-height: 1.85;
}

/* About and contact */
.about-grid,
.contact-grid {
  display: grid;
  gap: 48px;
}

.about-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.contact-grid {
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.stat-card {
  padding: 20px;
  text-align: center;
}

.stat-card .stat-num {
  display: block;
  color: var(--primary);
  font-size: 1.65rem;
  font-weight: 900;
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.about-img {
  min-height: 360px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(243, 112, 33, 0.18), rgba(255,255,255,0.75)),
    repeating-linear-gradient(90deg, #fff 0 18px, #f7f7f7 18px 36px);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 6rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  padding: 20px;
  display: flex;
  gap: 14px;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.contact-item h4 {
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text);
  font-weight: 600;
}

.form-card {
  padding: 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  color: var(--secondary);
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--text);
  padding: 10px 14px;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.12);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

textarea.form-control.short {
  min-height: 86px;
}

textarea.form-control.medium {
  min-height: 128px;
}

textarea.form-control.tall {
  min-height: 210px;
}

textarea.form-control.code {
  min-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-weight: 800;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.field-error {
  display: block;
  color: #b91c1c;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 6px;
}

.validation-summary-valid {
  display: none;
}

.auth-section {
  padding-top: 36px;
}

.auth-card {
  width: min(100% - 32px, 520px);
  margin: 0 auto;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.auth-switch,
.auth-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 900;
}

.auth-inline-link {
  margin: -6px 0 14px;
  text-align: right;
}

.auth-inline-link a {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 900;
}

.auth-message {
  text-align: center;
}

.auth-message h2 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.auth-message p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-weight: 800;
  margin: -4px 0 18px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.code-input {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.resend-form {
  margin-top: 12px;
}

.header-logout-form {
  margin: 0;
}

.header-action-button {
  font: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.header-exit-button {
  color: var(--secondary);
  font-size: 1.15rem;
}

.profile-section {
  padding-top: 38px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.profile-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.profile-card-heading {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.profile-card-heading h2 {
  margin-top: 6px;
  font-size: 1.12rem;
  font-weight: 900;
}

.profile-card-heading p {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.profile-divider {
  height: 1px;
  margin: 4px 0 18px;
  background: var(--border);
}

.profile-address-row {
  grid-template-columns: 1fr 1fr 1fr;
}

.profile-postal-input {
  max-width: 180px;
}

.profile-submit {
  width: 100%;
}

.map-embed {
  height: 400px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer {
  background: #252c37;
  color: #fff;
  padding: 58px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 46px;
  padding-bottom: 46px;
}

.footer .brand-logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer .brand-word {
  font-size: 2rem;
}

.footer-brand p,
.footer-contact p,
.footer-links a {
  color: #d1d5db;
}

.footer-brand p {
  max-width: 360px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li,
.footer-contact p {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #d1d5db;
  text-align: center;
  padding: 18px 0;
  font-size: 0.84rem;
}

/* Admin */
.admin-wrap {
  display: flex;
  min-height: 100vh;
  background: #f5f6f8;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: 268px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  border-right: 1px solid var(--border);
}

.admin-logo {
  min-height: 92px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
}

.admin-sidebar .brand-logo {
  color: var(--text);
}

.admin-sidebar .brand-word {
  font-size: 2.05rem;
}

.admin-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--gray-700);
  font-weight: 800;
  border: 1px solid transparent;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: #ffd9c1;
}

.admin-nav-link .nav-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.admin-nav-link:hover .nav-icon,
.admin-nav-link.active .nav-icon {
  background: var(--primary);
  color: #fff;
}

.admin-nav-divider {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.admin-main {
  flex: 1;
  margin-left: 268px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  padding: 0 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar h1 {
  font-size: 1.35rem;
  font-weight: 900;
}

.admin-user-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--gray-50);
  color: var(--text-muted);
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-content {
  padding: 32px;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-page-title {
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 900;
}

.admin-page-subtitle {
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.45fr);
  gap: 24px;
  align-items: start;
}

.admin-card-body {
  padding: 24px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

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

.admin-muted {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-title-cell {
  font-weight: 900;
}

.admin-media-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--gray-50);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--primary);
  font-weight: 900;
}

.admin-media-thumb.wide {
  width: 72px;
  height: 46px;
}

.admin-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.admin-price {
  color: var(--primary);
  font-weight: 900;
}

.admin-preview-image {
  margin-top: 10px;
  height: 82px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--gray-50);
}

.admin-check-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.admin-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.admin-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.admin-status-list {
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.admin-status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.admin-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.stock-stats .stat-box .num {
  font-size: 1.85rem;
}

.stock-table-card {
  margin-bottom: 24px;
}

.stock-table-card table {
  min-width: 1180px;
}

.stock-movement-card table {
  min-width: 1040px;
}

.stock-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.stock-count {
  display: inline-flex;
  align-items: center;
  min-width: 46px;
  min-height: 34px;
  justify-content: center;
  border-radius: 6px;
  background: var(--gray-50);
  color: var(--text);
  font-weight: 900;
}

.stock-count.low {
  background: #fef2f2;
  color: #b91c1c;
}

.stock-positive,
.stock-negative {
  font-weight: 900;
}

.stock-positive {
  color: #047857;
}

.stock-negative {
  color: #b91c1c;
}

.stock-quick-form,
.stock-mini-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stock-quick-form {
  min-width: 360px;
}

.stock-adjust-actions {
  display: grid;
  gap: 8px;
}

.stock-input {
  width: 82px;
  min-width: 82px;
}

.stock-note-input {
  width: 150px;
  min-width: 150px;
}

.message-box {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-box {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.stat-box::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.stat-box .num {
  color: var(--primary);
  font-size: 2.1rem;
  font-weight: 900;
}

.stat-box .lbl {
  color: var(--text-muted);
  font-weight: 800;
}

.table-card {
  overflow-x: auto;
  overflow-y: hidden;
}

.table-card table {
  min-width: 920px;
}

.table-head {
  min-height: 66px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.table-head h2 {
  font-size: 1rem;
  font-weight: 900;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--gray-50);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 13px 18px;
  text-align: left;
}

td {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

tr:hover td {
  background: #fffaf7;
}

.admin-form-card {
  max-width: 820px;
  padding: 32px;
}

.admin-form-card.full {
  max-width: none;
}

.admin-form-card h2 {
  font-size: 1.25rem;
  font-weight: 900;
  padding-bottom: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.45s forwards;
}

/* Responsive */
@media (max-width: 1120px) {
  .header-actions {
    gap: 14px;
  }

  .header-action {
    font-size: 0.9rem;
  }

  .category-inner {
    gap: 18px;
    overflow-x: auto;
  }

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

@media (max-width: 920px) {
  .utility-inner {
    justify-content: center;
  }

  .utility-links {
    display: none;
  }

  .header-inner {
    min-height: 84px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    order: 1;
  }

  .brand-logo {
    order: 2;
  }

  .header-actions {
    order: 3;
    margin-left: auto;
  }

  .site-search {
    order: 4;
    flex-basis: 100%;
    max-width: none;
    margin-bottom: 14px;
  }

  .category-nav {
    display: none;
  }

  .category-nav.open {
    display: block;
  }

  .category-inner {
    min-height: 0;
    padding: 10px 0;
    display: grid;
    gap: 4px;
  }

  .category-inner a {
    height: 42px;
  }

  .hero {
    min-height: 630px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 530px;
    padding: 22px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-visual {
    min-height: 220px;
  }

  .section-header {
    display: block;
  }

  .about-grid,
  .contact-grid,
  .product-detail-grid,
  .cart-layout,
  .checkout-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-shell,
  .section-container,
  .footer-container {
    width: min(100% - 24px, 1232px);
  }

  .announcement-bar {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: auto;
    padding-top: 10px;
    align-items: center;
  }

  .nav-toggle {
    order: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .brand-logo {
    order: 0;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
  }

  .brand-bars {
    width: 24px;
    min-width: 24px;
  }

  .brand-bars span {
    width: 3px;
  }

  .utility-bar {
    display: none;
  }

  .header-actions {
    order: 0;
    grid-column: 3;
    grid-row: 1;
    width: auto;
    justify-content: flex-end;
    padding-bottom: 0;
    gap: 6px;
    font-size: 0;
    margin-left: 0;
    white-space: nowrap;
  }

  .header-action {
    width: 34px;
    height: 34px;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--gray-50);
    gap: 0;
  }

  .header-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .header-action-icon {
    font-size: 1.05rem;
  }

  .header-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 17px;
    height: 17px;
    font-size: 0.66rem;
  }

  .header-logout-form {
    display: none;
  }

  .site-search {
    order: 0;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-basis: auto;
    max-width: none;
    margin: 0 0 10px;
  }

  .site-search input {
    height: 40px;
    padding-left: 12px;
  }

  .site-search button {
    height: 40px;
  }

  .category-inner {
    width: min(100% - 24px, 1232px);
  }

  .category-inner a {
    width: 100%;
    height: 40px;
  }

  .brand-word {
    font-size: 1.82rem;
    white-space: nowrap;
  }

  .brand-sub {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .page-hero {
    padding: 44px 0;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    width: min(100% - 24px, 960px);
    min-height: 500px;
    padding: 18px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 13vw, 3.25rem);
  }

  .category-bubble .bubble-art {
    width: 78px;
  }

  .products-grid,
  .blog-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .profile-address-row,
  .about-stats,
  .footer-container,
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .admin-wrap {
    display: block;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-content,
  .admin-topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .table-card {
    overflow-x: auto;
  }

  .cart-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .cart-product {
    grid-column: 1 / -1;
  }

  .cart-line-total {
    text-align: left;
  }

  .blog-prose,
  .auth-card,
  .admin-form-card {
    padding: 22px;
  }

  .blog-detail-header h1 {
    font-size: clamp(1.8rem, 10vw, 2.45rem);
  }

  .product-detail-actions,
  .detail-cart-form,
  .stock-quick-form,
  .stock-mini-form {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .site-shell,
  .section-container,
  .footer-container {
    width: min(100% - 18px, 1232px);
  }

  .header-inner {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-action {
    width: 31px;
    height: 31px;
  }

  .brand-word {
    font-size: 1.55rem;
  }

  .brand-bars {
    display: none;
  }

  .announcement-bar {
    font-size: 0.8rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    width: min(100% - 18px, 960px);
    min-height: 480px;
  }

  .hero-title {
    font-size: 2rem;
  }
}

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