/* ==========================================================================
   Pempek Palembang Ayuk Nina - Modern & Aesthetic Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600&display=swap');

:root {
  /* Color Palette */
  --primary: #991b1b;
  --primary-dark: #7f1d1d;
  --primary-light: #ef4444;
  --primary-gradient: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
  
  --gold: #d97706;
  --gold-dark: #b45309;
  --gold-light: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
  
  --cuko-dark: #271003;
  --cuko-deep: #160801;
  --cuko-amber: #451a03;
  
  --bg-page: #faf7f2;
  --bg-card: #ffffff;
  --bg-card-subtle: #fffbeb;
  --bg-dark-section: #1c110b;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-light: #f1ede4;
  --border-card: #e5dfd5;
  --border-accent: #fde68a;
  
  --success: #16a34a;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(39, 16, 3, 0.04);
  --shadow-md: 0 8px 24px rgba(39, 16, 3, 0.08);
  --shadow-lg: 0 16px 40px rgba(39, 16, 3, 0.12);
  --shadow-xl: 0 24px 60px rgba(39, 16, 3, 0.16);
  --shadow-glow: 0 0 30px rgba(217, 119, 6, 0.25);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Global Form Controls */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-card);
  background: #ffffff;
  font-size: 0.95rem;
  color: var(--text-main);
  box-sizing: border-box;
  transition: var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
  background: #fffdfa;
}

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

/* Top Announcement Ticker */
.announcement-bar {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.825rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 101;
  letter-spacing: 0.3px;
}
.announcement-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
}
.announcement-inner span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  transition: var(--transition-fast);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

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

.btn-cart-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-accent);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-cart-nav:hover {
  background: #fef3c7;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.cart-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-wa-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}
.btn-wa-header:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 60px 0 80px;
  background: radial-gradient(circle at 80% 20%, #fef3c7 0%, #faf7f2 70%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid #fecaca;
}
.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-title span.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.hero-title span.highlight::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 12px;
  background: #fde68a;
  z-index: -1;
  border-radius: 4px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(153, 27, 27, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(153, 27, 27, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: var(--text-main);
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  border: 1.5px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.trust-text h5 {
  font-size: 0.875rem;
  font-weight: 800;
  font-family: inherit;
}
.trust-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero Media Card */
.hero-media-wrap {
  position: relative;
}
.hero-main-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: perspective(1000px) rotateY(-4deg);
  transition: var(--transition-smooth);
}
.hero-main-card:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}
.hero-img-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #fffbeb;
}
.hero-float-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border-accent);
  animation: floatAnim 4s ease-in-out infinite;
}
.hero-float-qris {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #fecaca;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Section Common Styling */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-badge {
  display: inline-block;
  background: #fff1f2;
  color: var(--primary);
  font-size: 0.825rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Filter Bar & Category Tabs */
.menu-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tab-btn {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-card);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(153, 27, 27, 0.25);
}

.menu-search-bar {
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}
.menu-search-bar input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.menu-search-bar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}
.menu-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Product Catalog Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* Product Card */
.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}
.product-card.in-cart {
  border-color: var(--gold);
  background: #fffdfa;
}

.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #fefce8;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  z-index: 2;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.product-badge.popular {
  background: #e11d48;
}
.product-badge.best {
  background: #d97706;
}
.product-badge.gift {
  background: #059669;
}
.product-badge.info {
  background: #0284c7;
}
.product-badge.accent {
  background: #78350f;
}

/* Checklist Checkbox Select */
.product-select-check {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}
.custom-checkbox {
  width: 28px;
  height: 28px;
  background: #ffffff;
  border: 2px solid var(--border-card);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.custom-checkbox:hover {
  border-color: var(--gold);
}
.custom-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold-dark);
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.product-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  gap: 12px;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-dark);
}
.product-price span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Quantity Control Stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.qty-btn {
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.qty-btn:hover {
  background: #fee2e2;
  color: var(--primary);
}
.qty-val {
  width: 34px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-add-cart {
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.btn-add-cart:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Sticky Mobile Bottom Bar */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid var(--border-light);
  padding: 12px 16px;
  z-index: 99;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}
.mobile-cart-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}
.mobile-cart-summary {
  display: flex;
  flex-direction: column;
}
.mobile-cart-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.mobile-cart-total {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-dark);
}
.btn-mobile-checkout {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.3);
}

/* Cart Drawer / Slide-Over Modal */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}
.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: #ffffff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #ffffff;
  z-index: 2;
}
.cart-drawer-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-close-drawer {
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-close-drawer:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.cart-drawer-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Empty cart state */
.cart-empty-state {
  text-align: center;
  padding: 40px 20px;
}
.cart-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 14px;
  opacity: 0.7;
}

/* Cart Item Row */
.cart-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: #fefce8;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}
.cart-item-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 4px;
}
.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 800;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-remove-item {
  color: #94a3b8;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  padding: 4px;
}
.btn-remove-item:hover {
  color: var(--primary);
}

/* Cart Options Box (Condition & Cuko) */
.cart-options-card {
  background: #fffbeb;
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 6px;
}
.cart-options-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cuko-amber);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.option-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-card);
  transition: var(--transition-fast);
}
.radio-label:hover {
  border-color: var(--gold);
}
.radio-label input[type="radio"]:checked + span {
  font-weight: 800;
  color: var(--primary-dark);
}

.cart-drawer-footer {
  padding: 14px 20px;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
  border-top: 1.5px solid var(--border-light);
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  z-index: 2;
}
.cart-calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.cart-calc-row.total-row {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1.5px dashed var(--border-card);
}
.cart-calc-row.total-row .val {
  color: var(--primary-dark);
}

.btn-proceed-checkout {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(153, 27, 27, 0.25);
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-proceed-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(153, 27, 27, 0.35);
}

/* QRIS Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 28px;
  position: relative;
  border: 1px solid var(--border-light);
  transform: scale(0.95);
  transition: var(--transition-smooth);
}
.modal-overlay.active .modal-card {
  transform: scale(1);
}

.qris-modal-header {
  text-align: center;
  margin-bottom: 20px;
}
.qris-preview-img-box {
  background: #ffffff;
  border: 2px dashed var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}
.qris-preview-img-box img {
  max-height: 380px;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

.qris-info-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.qris-info-badge .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.qris-info-badge .val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: monospace;
}
.btn-copy-code {
  background: #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-copy-code:hover {
  background: var(--gold);
  color: #fff;
}

/* Feature & Story Cards */
.story-section {
  background: var(--bg-dark-section);
  color: #ffffff;
  padding: 100px 0;
  position: relative;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story-title {
  color: #ffffff;
  font-size: 2.75rem;
  margin-bottom: 20px;
}
.story-text {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 30px;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.feature-card h4 {
  color: #fef08a;
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.feature-card p {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Testimonial Cards */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.review-comment {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reviewer-meta h5 {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
}
.reviewer-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  padding: 20px 24px;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}
.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.main-footer {
  background: #110904;
  color: #cbd5e1;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  color: #94a3b8;
  max-width: 320px;
}
.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  font-family: inherit;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #f59e0b;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-msg {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gold);
  animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Prevent background scroll when modal/drawer is open */
html.drawer-opened, body.drawer-opened {
  overflow: hidden !important;
  touch-action: none;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .btn-wa-header {
    display: none;
  }
  
  /* Compact Announcement Bar */
  .announcement-bar {
    padding: 6px 10px;
    font-size: 0.725rem;
    overflow: hidden;
  }
  .announcement-inner {
    display: flex;
    gap: 8px;
    font-size: 0.725rem;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .announcement-inner::-webkit-scrollbar {
    display: none;
  }

  /* Compact Navbar Header */
  .header-inner {
    height: 58px;
    padding: 0 4px;
  }
  .brand-logo img {
    height: 38px;
    max-width: 145px;
  }
  .btn-cart-nav {
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }
  .cart-badge {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }

  /* Full height scrollable cart drawer */
  .cart-drawer {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .cart-drawer-header {
    padding: 14px 16px;
  }
  .cart-drawer-title {
    font-size: 1.15rem;
  }
  .cart-drawer-body {
    padding: 14px 16px 20px;
    gap: 12px;
  }
  .cart-drawer-footer {
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }

  /* Mobile bottom sticky bar */
  .mobile-cart-bar {
    display: block;
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  }
  body {
    padding-bottom: 76px;
  }

  /* Typography & Layout */
  .hero-section {
    padding: 30px 0 40px;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-cta-group a, .hero-cta-group button {
    width: 100%;
    text-align: center;
  }
  .hero-badges-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .brand-logo img {
    height: 34px;
    max-width: 130px;
  }
}
