:root {
  --primary: #111827;
  --primary-dark: #0b1220;
  --body-bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 12px;

  --bs-primary: var(--primary);
  --bs-primary-rgb: 17, 24, 39;
}

* { box-sizing: border-box; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--body-bg);
}

.site-logo {
  height: 80px;
  width: auto;
  display: block;
}

.navbar .navbar-brand { padding-top: 0; padding-bottom: 0; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.text-primary { color: var(--primary) !important; }

.page-header {
  background: linear-gradient(135deg, #f3f4f6 0%, #fff 100%);
  padding: 2.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.hero-section { margin-top: -1px; }

.hero-slide {
  min-height: 420px;
  background: linear-gradient(135deg, #0b1220 0%, #111827 55%, #334155 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-slide.hero-default { background: linear-gradient(135deg, #0b1220, #111827); }

.hero-content { padding: 3rem 0; }

@media (max-width: 767px) {
  .hero-slide { min-height: 320px; }
  .hero-content h1 { font-size: 1.75rem; }
}

.cta-section {
  background: linear-gradient(135deg, #111827, #334155);
}

.product-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: var(--radius);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12) !important;
}

.product-img-wrap { overflow: hidden; background: #f1f5f9; }

.product-img,
.product-img-placeholder {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.product-img-placeholder { background: #e2e8f0; }

.product-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover .product-actions { opacity: 1; }

@media (max-width: 767px) {
  .product-actions { opacity: 1; }
  .product-img, .product-img-placeholder { height: 160px; }
}

.category-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.category-img-placeholder {
  height: 140px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

.category-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-weight: 600;
}

.shop-filter-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.shop-filter-list a:hover,
.shop-filter-list a.active {
  background: #f1f5f9;
  color: var(--primary);
  font-weight: 600;
}

.stock-in_stock { background: #dcfce7; color: #166534; }
.stock-low_stock { background: #fef9c3; color: #854d0e; }
.stock-out_of_stock { background: #fee2e2; color: #991b1b; }
.stock-made_to_order { background: #e0e7ff; color: #3730a3; }

.product-detail-img { max-height: 480px; object-fit: contain; background: #f8fafc; }

.product-detail-placeholder { min-height: 320px; background: #f1f5f9; }

.product-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}

.product-thumb:hover { border-color: var(--primary); }

.qty-input { width: 80px; }

.cart-item-img { width: 64px; height: 64px; object-fit: cover; }

.footer-link {
  color: #94a3b8;
  text-decoration: none;
}

.footer-link:hover { color: #fff; }

.social-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-right: 8px;
  text-decoration: none;
}

.social-icon:hover { background: var(--primary); color: #fff; }

.cart-badge { font-size: 0.65rem; }

@media (max-width: 991px) {
  .shop-sidebar { position: static !important; }
}

.cart-table td { vertical-align: middle; }
