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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
}

.logo span {
  color: #ff6b35;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ff6b35;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 24px;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -12px;
  background: #ff6b35;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: #ff6b35;
}

.hero-content p {
  color: #666;
  margin-bottom: 30px;
}

.btn-primary {
  background: #ff6b35;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #e55a2b;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
}

/* Products Section */
.products {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
}

.section-title span {
  color: #ff6b35;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

/* Category Filter - RESPONSIVE */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 28px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
  font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Gambar Produk */
.product-img {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff6b35;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
}

/* Info Produk */
.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.category {
  font-size: 12px;
  color: #ff6b35;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: #ff6b35;
  margin: 10px 0;
}

.old-price {
  font-size: 14px;
  text-decoration: line-through;
  color: #999;
  margin-left: 8px;
  font-weight: normal;
}

.add-btn {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.add-btn:hover {
  background: #ff6b35;
}

/* About Section */
.about {
  padding: 80px 0;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  font-size: 36px;
  margin-bottom: 30px;
}

.about-content h2 span {
  color: #ff6b35;
}

.about-content ul {
  list-style: none;
}

.about-content li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-content li i {
  color: #ff6b35;
  font-size: 20px;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: #f8f9fa;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.contact-info p {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: #ff6b35;
  font-size: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
}

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  z-index: 200;
}

.cart-overlay.active {
  visibility: visible;
  opacity: 1;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: white;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 201;
}

.cart-overlay.active .cart-sidebar {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.close-cart {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin: 20px 0;
}

.cart-item {
  display: flex;
  gap: 15px;
  background: #f8f8f8;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
}

.cart-item-price {
  color: #ff6b35;
}

.cart-item-qty {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.remove-item {
  color: red;
  background: none;
  border: none;
  cursor: pointer;
}

.empty-cart {
  text-align: center;
  color: #999;
  padding: 40px;
}

.cart-footer {
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.cart-total {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 30px 0;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  z-index: 300;
  animation: slideIn 0.3s;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .hero .container,
  .about .container,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .category-filter {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 8px 18px;
    font-size: 12px;
  }
}
