:root {
  --primary: #d53a3d;
  --primary-dark: #b82e30;
  --primary-light: #fff0f0;
  --primary-rgb: 213 58 61;
  --secondary: #1a1a2e;
  --secondary-rgb: 26 26 46;
  --button: #d53a3d;
  --button-rgb: 213 58 61;
  --textGray: #6b7280;
  --brandOrange: #d53a3d;
  --btnGreen: #2ecc71;
}

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.hover\:text-primary:hover { color: var(--primary) !important; }
.hover\:bg-primary:hover { background-color: var(--primary) !important; }

.top-bar {
  background: var(--secondary);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.cat-mega {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.cat-mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  border-radius: 8px;
  transition: all 0.15s;
}
.cat-mega-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
}
.mobile-overlay.open { display: block; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  z-index: 101;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 4px 0 30px rgba(0,0,0,0.1);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  border-radius: 10px;
  transition: all 0.15s;
}
.mobile-nav-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-action {
  position: relative;
}
.cart-badge {
  box-shadow: 0 2px 6px rgba(213,58,61,0.4);
}

.hero-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #16213e 50%, #1a1a2e 100%);
  color: #fff;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(213,58,61,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,107,53,0.08) 0%, transparent 50%);
}
.hero-section > * { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.9;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  transition: all 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(213,58,61,0.4);
  color: #fff;
}

.features-strip {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.feature-item {
  text-align: center;
  padding: 24px 16px;
}
.feature-item i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 8px;
}
.feature-item h4 {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 2px;
}
.feature-item p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: var(--secondary);
}
.section-subtitle {
  font-size: 15px;
  color: #6b7280;
}

.cat-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.2s;
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(213,58,61,0.1);
  transform: translateY(-3px);
}
.cat-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 8px;
}
.cat-card .cat-name {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  display: block;
  line-height: 1.3;
}

.product-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: #e5e7eb;
}
.product-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(180deg, #fafafa, #f5f5f5);
  overflow: hidden;
}
.product-card-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.product-card:hover .product-card-image img {
  transform: scale(1.08);
}
.product-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  line-height: 1.35;
  margin: 0 0 8px;
}
.product-card-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.product-card-original {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}
.product-card-discount {
  font-size: 11px;
  font-weight: 800;
  color: #2ecc71;
  background: #e8f8f0;
  padding: 2px 8px;
  border-radius: 4px;
}
.product-card-btn {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--primary);
  background: var(--white, #fff);
  color: var(--primary);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}
.product-card-btn:hover {
  background: var(--primary);
  color: #fff;
}

.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.75);
}
.site-footer h4 {
  color: #fff;
}
.site-footer a {
  color: rgba(255,255,255,0.65);
}
.site-footer a:hover {
  color: var(--primary) !important;
}

.info-section {
  background: #fff;
  padding: 60px 24px;
}
.info-stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--primary-light);
  border-radius: 16px;
}
.info-stat h3 {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  margin: 0;
}
.info-stat p {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0;
}

@media (max-width: 768px) {
  .hero-section { padding: 40px 20px; }
  .hero-cta { padding: 12px 24px; font-size: 14px; }
  .feature-item { padding: 16px 12px; }
  .feature-item i { font-size: 24px; }
  .product-card-image { height: 140px; padding: 12px; }
  .product-card-body { padding: 10px; }
  .product-card-title { font-size: 12px; min-height: 32px; }
  .product-card-price { font-size: 17px; }
  .product-card-original { font-size: 11px; }
  .info-stat h3 { font-size: 24px; }
  .cat-card { padding: 12px 8px; }
  .cat-card img { width: 40px; height: 40px; }
  .cat-card .cat-name { font-size: 10px; }
}

@media (max-width: 480px) {
  .product-card-image { height: 120px; padding: 10px; }
  .product-card-body { padding: 8px; }
  .product-card-title { font-size: 11px; min-height: 28px; }
  .product-card-price { font-size: 15px; }
  .product-card-btn { padding: 8px; font-size: 12px; }
}
