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

:root {
  --color-primary: #0071e3;
  --color-primary-hover: #0077ed;
  --color-bg-dark: #000000;
  --color-bg-secondary: #f5f5f7;
  --color-bg-tertiary: #e8f0fe;
  --color-text-main: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-light: #f5f5f7;
  --color-border: rgba(0,0,0,0.1);
  --color-success: #00875a;
  --color-sale-accent: #bf4800;
  --color-overlay: rgba(0,0,0,0.45);
  --radius-card: 12px;
  --radius-pill: 100px;
  --radius-small: 8px;
  --transition: all 0.2s ease;
  --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --container-width: 1100px;
  --container-large-width: 1200px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 100vw;
  overflow-x: hidden;
  color: var(--color-text-main);
  background: #fff;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Typography ===== */
.text-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}
.title-large { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.title-medium { font-size: 32px; font-weight: 600; line-height: 1.2; }
.title-small { font-size: 20px; font-weight: 600; line-height: 1.3; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-hover); transform: scale(1.02); }
.btn-secondary { background: var(--color-bg-secondary); color: var(--color-text-main); }
.btn-secondary:hover { background: #e8e8ed; }
.btn-danger { background: #ff3b30; color: white; }
.btn-danger:hover { background: #d63029; }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--color-primary); }
.btn-ghost:hover { background: var(--color-bg-tertiary); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 900;
  border-bottom: 1px solid var(--color-border);
}
.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.header-nav {
  display: flex;
  gap: 4px;
}
.header-nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition);
}
.header-nav-link:hover, .header-nav-link.active {
  color: var(--color-text-main);
  background: var(--color-bg-secondary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-action-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.header-action-btn:hover { background: var(--color-bg-secondary); }
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff3b30;
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-only { display: none; }

/* ===== Mobile Nav ===== */
.mobile-nav-drawer {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 20px;
  z-index: 899;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-link {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav-link:last-child { border-bottom: none; }

/* ===== Scroll Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Sections ===== */
.section {
  padding: 80px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}
.section-alt { background: var(--color-bg-secondary); }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

/* ===== Hero ===== */
.hero-section {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 60px 20px;
}
.hero-section.theme-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}
.hero-section.theme-light {
  background: var(--color-bg-secondary);
  color: var(--color-text-main);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.theme-dark .hero-bg-img { opacity: 0.5; }
.theme-light .hero-bg-img { opacity: 0.7; }
.hero-split {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-product-img {
  max-width: 320px;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  margin: 12px 0 8px;
}
.hero-content p {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 24px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-product-img {
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
}
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: var(--container-large-width);
  margin: 0 auto;
}

/* ===== Catalog Grid ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ===== Product Cards ===== */
.product-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.product-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.badge-new { background: rgba(0,135,90,0.1); color: var(--color-success); }
.badge-preowned { background: rgba(191,72,0,0.1); color: var(--color-sale-accent); }
.product-card-img-container {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.product-card-img {
  max-height: 100%;
  object-fit: contain;
}
.product-card-brand {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}
.product-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-card-specs {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  line-height: 1.4;
}
.product-card-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.price-original {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: line-through;
}
.price-current {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
}
.price-sale {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-sale-accent);
}
.product-card-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  flex-wrap: wrap;
}

/* ===== Catalog Page ===== */
.catalog-hero-banner {
  background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1e 50%, #2c2c2e 100%);
  padding: 40px 24px 32px;
  position: relative;
  overflow: hidden;
}
.catalog-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,113,227,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(130,80,255,0.12) 0%, transparent 60%);
}
.catalog-hero-banner h1 {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 32px;
}
.catalog-page-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 16px 60px;
}
.catalog-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.catalog-container {
  display: flex;
  gap: 24px;
}
.filters-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--color-bg-secondary);
  padding: 16px;
  height: fit-content;
  border-radius: var(--radius-card);
}
.filter-section { margin-bottom: 20px; }
.filter-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
}
.filter-sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ===== Category Tabs ===== */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex-wrap: nowrap;
}
.category-tab {
  background: var(--color-bg-secondary);
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.category-tab:hover { background: #e8e8ed; }
.category-tab.active {
  background: var(--color-text-main);
  color: white;
}
.category-tab svg { width: 16px; height: 16px; }

/* ===== Search ===== */
.search-container { position: relative; flex: 1; min-width: 200px; }
.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.search-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,113,227,0.15); }
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
}

/* ===== Product Detail ===== */
.detail-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.detail-gallery {
  position: sticky;
  top: 80px;
}
.detail-gallery img {
  width: 100%;
  border-radius: var(--radius-card);
  background: var(--color-bg-secondary);
}
.detail-info { padding: 8px 0; }
.detail-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.detail-price-current { font-size: 28px; font-weight: 700; }
.detail-price-sale { font-size: 28px; font-weight: 700; color: var(--color-sale-accent); }
.detail-price-original {
  font-size: 18px;
  color: var(--color-text-secondary);
  text-decoration: line-through;
}
.detail-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-bg-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.qty-btn:hover { background: #e0e0e5; }
.qty-input {
  width: 50px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.detail-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.detail-specs-table th,
.detail-specs-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border);
}
.detail-specs-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  width: 40%;
}

/* ===== Cart Drawer ===== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.cart-drawer.is-open { right: 0; }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer-header h2 { font-size: 18px; font-weight: 600; }
.cart-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}
.cart-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-small);
  object-fit: contain;
  background: var(--color-bg-secondary);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.cart-item-info p { font-size: 13px; color: var(--color-text-secondary); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: white;
  font-size: 14px;
  cursor: pointer;
}
.cart-item-remove {
  color: #ff3b30;
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
}
.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.cart-drawer-footer .btn { width: 100%; }

/* ===== Trust Section ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  text-align: center;
  padding: 32px 20px;
  background: white;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}
.trust-card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.trust-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.trust-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ===== Admin ===== */
.admin-login-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: var(--radius-card);
  padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.admin-login-card h1 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.admin-login-card p {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== Form Controls ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,113,227,0.15); }
.checkbox-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.checkbox-control input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

/* ===== Admin Dashboard ===== */
.admin-dashboard-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.admin-stat-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-main);
}
.stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}
.badge-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: white;
  cursor: pointer;
  transition: var(--transition);
}
.badge-active { background: rgba(0,135,90,0.1); color: var(--color-success); border-color: var(--color-success); }
.badge-inactive { background: var(--color-bg-secondary); color: var(--color-text-secondary); }

/* ===== Admin Product Cards ===== */
.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.admin-product-card {
  display: flex;
  gap: 12px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 14px;
  align-items: flex-start;
}
.admin-card-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-small);
  object-fit: contain;
  background: var(--color-bg-secondary);
  flex-shrink: 0;
}
.admin-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-card-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 6px;
}
.admin-card-info { flex: 1; min-width: 0; }
.admin-card-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-card-meta {
  font-size: 12px;
  color: var(--color-text-secondary);
}
.admin-card-price {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.admin-card-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 8px;
  gap: 8px;
  width: 100%;
}
.admin-card-toggles {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.admin-card-actions {
  display: flex;
  gap: 6px;
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-overlay);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
  overflow-y: auto;
}
.modal-card {
  background: white;
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  margin: auto;
  max-height: 90vh;
  overflow: hidden;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modal-header h2 { font-size: 18px; font-weight: 600; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* ===== Specs Grid ===== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.image-preview-container { margin-top: 8px; }
.image-preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--radius-small);
  background: var(--color-bg-secondary);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--color-text-secondary); font-size: 14px; margin-bottom: 20px; }

/* ===== Alerts ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-small);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ===== Spinner ===== */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Shimmer Skeleton ===== */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-small);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-only { display: block; }
  .title-large { font-size: 32px; }
  .title-medium { font-size: 24px; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .detail-gallery { position: static; }
  .catalog-container { flex-direction: column; }
  .filters-sidebar { width: 100%; }
  .hero-section { min-height: 400px; }
  .hero-content h1 { font-size: 32px; }
  .hero-split { flex-direction: column; text-align: center; align-items: center; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-buttons { justify-content: center; }
  .trust-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-product-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card { padding: 10px; }
  .product-card-title { font-size: 13px; }
  .product-card-specs { font-size: 11px; }
  .price-current { font-size: 14px; }
  .specs-grid { grid-template-columns: 1fr; }
}
