/* Eskosong – Toko Es Kristal Online */
:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --ice: #7dd3fc;
  --ice-dark: #0ea5e9;
  --secondary: #0f172a;
  --success: #10b981;
  --danger: #ef4444;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 40px -10px rgb(0 0 0 / 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.section-subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--ice-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}
.btn-secondary {
  background: white;
  color: var(--gray-800);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.15rem;
}
.nav { display: flex; gap: 2rem; }
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-600);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: none; background: transparent;
  cursor: pointer; color: var(--gray-600);
  transition: var(--transition);
}
.icon-btn:hover { background: var(--gray-100); color: var(--primary); }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: var(--danger); color: white;
  font-size: 0.7rem; font-weight: 700;
  border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}
.mobile-menu-btn {
  display: none; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer; color: var(--gray-700);
}
.mobile-nav {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--gray-200);
  padding: 1rem; flex-direction: column; gap: 0.4rem;
  box-shadow: var(--shadow-lg); z-index: 999;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--gray-700);
}
.mobile-nav a:hover { background: var(--primary-light); color: var(--primary); }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 40%, #f8fafc 100%);
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
  top: -80px; right: -60px;
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  border: 1px solid var(--gray-200);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  letter-spacing: -0.035em;
  margin-bottom: 1.2rem;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 460px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.25rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gray-200);
}
.stat-item strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gray-900);
}
.stat-item span { font-size: 0.85rem; color: var(--gray-500); }
.hero-image { position: relative; }
.hero-image-main {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 1;
  background: linear-gradient(135deg, #bae6fd, #e0f2fe);
}
.hero-image-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-float {
  position: absolute;
  background: white;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-float-1 { bottom: 24px; left: -16px; }
.hero-float-2 { top: 28px; right: -12px; }
.float-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.float-icon.blue { background: var(--primary-light); }
.float-icon.green { background: #ecfdf5; }

/* ========== PRODUCTS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--ice);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.product-image {
  position: relative;
  aspect-ratio: 1.1;
  background: linear-gradient(160deg, #e0f2fe, #f0f9ff);
  overflow: hidden;
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}
.product-badge.sale { background: var(--danger); }
.product-info { padding: 1.35rem; }
.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}
.product-price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-400);
}
.add-cart {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.add-cart:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
}

/* ========== FEATURES ========== */
.features { background: white; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.feature-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.feature-card:hover { background: var(--gray-50); }
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.15rem;
  background: linear-gradient(135deg, var(--primary-light), #bae6fd);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--gray-900);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========== ABOUT / WHY ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-content h2 { margin-bottom: 1.1rem; }
.about-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.about-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.about-list li::before {
  content: '✓';
  width: 24px; height: 24px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* ========== HOW TO ORDER ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem 1.35rem;
  border: 1.5px solid var(--gray-100);
  text-align: center;
  position: relative;
}
.step-num {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--ice-dark));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1.1rem;
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1.5px solid var(--gray-100);
}
.testimonial-stars { color: #fbbf24; margin-bottom: 0.9rem; letter-spacing: 1px; }
.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.testimonial-author {
  display: flex; align-items: center; gap: 0.75rem;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #bae6fd);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--primary-dark);
}
.author-info strong { display: block; font-size: 0.95rem; color: var(--gray-900); }
.author-info span { font-size: 0.8rem; color: var(--gray-400); }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
  border-radius: 20px;
  padding: 3.5rem 3rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  top: -80px; right: -40px;
  border-radius: 50%;
}
.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.cta-banner .btn-primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: none;
}
.cta-banner .btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.35rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.contact-item p { font-size: 0.9rem; color: var(--gray-500); }
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-100);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--gray-50);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ========== FOOTER ========== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: white; margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  max-width: 280px;
}
.social-links { display: flex; gap: 0.65rem; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300);
  font-size: 0.85rem; font-weight: 600;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: white; }
.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.9rem; color: var(--gray-400); }
.footer-col a:hover { color: var(--ice); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.payment-methods { display: flex; gap: 0.6rem; }
.payment-badge {
  background: rgba(255,255,255,0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-300);
}

/* ========== CART SIDEBAR ========== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1100;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: 0;
  width: 100%; max-width: 400px;
  height: 100%;
  background: white;
  z-index: 1101;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.cart-sidebar.active { transform: translateX(0); }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--gray-100);
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.cart-close {
  width: 36px; height: 36px;
  border: none; background: var(--gray-100);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
}
.cart-items { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.cart-empty {
  text-align: center; padding: 3rem 1rem; color: var(--gray-400);
}
.cart-item {
  display: flex; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.cart-item-img {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--primary-light);
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.cart-item-price { font-size: 0.9rem; font-weight: 700; color: var(--primary); }
.cart-item-qty {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 0.45rem;
}
.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--gray-200);
  background: white; border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.cart-footer {
  padding: 1.2rem 1.4rem;
  border-top: 1px solid var(--gray-100);
}
.cart-total {
  display: flex; justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.1rem; font-weight: 700;
}

/* ========== TOAST ========== */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--gray-900); color: white;
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transform: translateY(100px); opacity: 0;
  transition: var(--transition);
  font-size: 0.95rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-float { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .features-grid, .steps-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.65rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .cta-banner h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-lg { width: 100%; }
}
