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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
}

.modal-header {
  text-align: center;
  padding: 30px 20px 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin-bottom: 8px;
  color: #2c7da0;
}

.form-group {
  margin-bottom: 20px;
  padding: 0 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.btn-primary {
  width: calc(100% - 40px);
  margin: 10px 20px 20px;
  padding: 14px;
  background: #2c7da0;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #1b5e7a;
}

.divider {
  text-align: center;
  padding: 20px;
  color: #999;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ddd;
}

.divider::before {
  left: 5%;
}
.divider::after {
  right: 5%;
}

.btn-google {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #eee;
}

.modal-footer a {
  color: #2c7da0;
  text-decoration: none;
  font-weight: 500;
}

/* Header */
.main-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.logo h1 {
  font-size: 24px;
  color: #2c7da0;
}

.logo span {
  font-size: 10px;
  color: #999;
}

.search-bar {
  flex: 1;
  max-width: 500px;
  display: flex;
}

.search-bar input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 25px 0 0 25px;
  outline: none;
}

.search-bar button {
  padding: 10px 20px;
  background: #2c7da0;
  color: white;
  border: none;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-icon i {
  font-size: 24px;
  color: #555;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-trigger {
  padding: 8px 20px;
  background: #2c7da0;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #2c7da0 0%, #1b5e7a 100%);
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.hero-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero-content .highlight {
  position: relative;
  display: inline-block;
}

.btn-cta {
  margin-top: 25px;
  padding: 12px 30px;
  background: white;
  color: #2c7da0;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
}

.btn-cta:hover {
  transform: translateX(5px);
}

/* Products Section */
.products-section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 24px;
  color: #333;
}

.view-all {
  color: #2c7da0;
  text-decoration: none;
}

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

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

.product-image {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: #f9f9f9;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

/* Skeleton loading untuk gambar */
.product-image.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.product-info {
  padding: 15px;
}

.product-info h3 {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
}

.category-tag {
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
}

.prices {
  margin: 10px 0;
}

.price-regular {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  display: block;
}

.price-member {
  font-size: 16px;
  font-weight: bold;
  color: #2c7da0;
  display: block;
}

.member-price-badge {
  background: #fff3e0;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  color: #e67e22;
  margin: 8px 0;
}

.btn-add-to-cart {
  width: 100%;
  padding: 10px;
  background: #2c7da0;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s;
}

.btn-add-to-cart:hover {
  background: #1b5e7a;
}

/* Coupons Section */
.coupons-section {
  padding: 40px 0;
  background: white;
}

.coupons-wrapper {
  position: relative;
  overflow: hidden;
}

.coupons-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  scrollbar-width: none;
}

.coupons-slider::-webkit-scrollbar {
  display: none;
}

.coupon-card {
  min-width: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 20px;
  color: white;
  flex-shrink: 0;
}

.coupon-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.coupon-code {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.coupon-term {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 10px;
}

.btn-copy-code {
  margin-top: 15px;
  padding: 8px 16px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.coupon-nav {
  display: flex;
  gap: 10px;
}

.coupon-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
}

/* Footer */
.main-footer {
  background: #1a1a2e;
  color: white;
  padding: 50px 0 20px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 15px;
}

.payment-methods {
  display: flex;
  gap: 15px;
  font-size: 30px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
  }

  .search-bar {
    max-width: 100%;
    width: 100%;
  }

  .hero-content h2 {
    font-size: 24px;
  }

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

  .coupon-card {
    min-width: 250px;
  }
}
