/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - NATRACARE INDONESIA
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary-color: #003B64;
  --primary-dark: #002844;
  --primary-light: #004b7f;
  --secondary-bg: #F9F9F9;
  --mint-bg: #E8F3EA;
  --mint-dark: #2c6e49;
  --mint-light: #f3faf5;
  --light-blue: #D6EAF8;
  --light-blue-dark: #a9d4f5;
  --accent-color: #e63946;
  --text-dark: #1b262c;
  --text-muted: #62757f;
  --text-light: #ffffff;
  --border-color: #e2e8f0;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transition */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--secondary-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
}

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

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

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

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HEADER NAVIGATION (FLOATING PILL)
   ========================================================================== */
.header-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none; /* Let clicks pass outside the menu */
}

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

.nav-bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.nav-bar:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-premium);
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  opacity: 0.8;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  position: relative;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background-color: var(--light-blue);
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--accent-color);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition-fast);
}

@media (max-width: 900px) {
  .global-search-input {
    width: 100px !important;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    padding-bottom: 56px;
    position: relative;
  }
  .search-box {
    position: absolute !important;
    bottom: 12px;
    left: 20px;
    right: 20px;
    width: auto !important;
  }
  .global-search-input {
    width: 100% !important;
    max-width: 100% !important;
  }
  .nav-actions {
    gap: 8px;
  }
  .action-btn {
    padding: 6px;
  }
  .logo {
    font-size: 20px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 110px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 59, 100, 0.2);
}

.btn-secondary {
  background-color: var(--light-blue);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--light-blue-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}

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

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.15;
  color: var(--text-light);
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 50px;
  }
  .hero-content h1 {
    font-size: 38px;
  }
  .hero-content {
    margin: 0 auto;
  }
}

/* ==========================================================================
   VALUE PROPOSITION / KEUNGGULAN
   ========================================================================== */
.value-section {
  background-color: var(--secondary-bg);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.value-card-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 40px;
}

.value-left {
  flex: 1.2;
}

.value-right {
  flex: 1;
}

.sad-pad-illust {
  background: var(--mint-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--mint-dark);
}

.sad-pad-illust img {
  max-height: 200px;
  margin: 0 auto 20px;
}

.value-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-icon {
  background-color: var(--mint-bg);
  color: var(--mint-dark);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.feature-text h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 992px) {
  .value-card-container {
    flex-direction: column;
  }
}

/* ==========================================================================
   BEST SELLER / FOCUS PRODUCT
   ========================================================================== */
.focus-product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: stretch;
}

.focus-img-left, .focus-img-right {
  background-size: cover;
  background-position: center;
}

.focus-center-content {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.focus-center-content h3 {
  font-size: 28px;
  margin: 15px 0 10px;
}

.rating-drops {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
  color: #0088cc;
}

.focus-features-list {
  list-style: none;
  text-align: left;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 250px;
}

.focus-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.focus-features-list li::before {
  content: '✓';
  color: var(--mint-dark);
  font-weight: bold;
}

@media (max-width: 992px) {
  .focus-product-card {
    grid-template-columns: 1fr;
  }
  .focus-img-left, .focus-img-right {
    height: 250px;
  }
}

/* ==========================================================================
   ABOUT US & CORPORATE INFO
   ========================================================================== */
.about-section {
  background: white;
}

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

.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

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

.about-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Carousel */
.carousel-wrapper {
  margin-top: 40px;
  position: relative;
}

.carousel-container {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.carousel-slide {
  min-width: calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--secondary-bg);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--light-blue);
  color: var(--primary-color);
}

.carousel-btn.prev {
  left: -20px;
}

.carousel-btn.next {
  right: -20px;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .carousel-slide {
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    min-width: 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   PRODUCT CATALOG (PAGE-2 DESIGN)
   ========================================================================== */
.catalog-body {
  background-color: var(--mint-bg);
}

.catalog-section {
  padding-top: 140px;
}

.catalog-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.catalog-nav-btn {
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.catalog-nav-btn:hover, .catalog-nav-btn.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.catalog-category-title {
  font-size: 24px;
  margin: 40px 0 20px;
  border-bottom: 2px solid rgba(0, 59, 100, 0.1);
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255,255,255,0.8);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.product-badge-qty {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--mint-bg);
  color: var(--mint-dark);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.product-img-holder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #fafdfa;
}

.product-img-holder img {
  max-height: 180px;
  object-fit: contain;
}

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc ul { margin-left: 15px; margin-top: 5px; margin-bottom: 5px; list-style-type: disc; }
.product-desc p { margin-bottom: 5px; }
.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-desc.closed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-toggle {
  display: inline-block;
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
}

.read-more-toggle:hover {
  text-decoration: underline;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  margin-top: auto;
  margin-bottom: 16px;
}

.product-card .btn {
  width: 100%;
}

/* Infographic Card */
.info-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card h3 {
  color: white;
  font-size: 24px;
  margin-bottom: 16px;
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.info-card li::before {
  content: '✓';
  color: #38bdf8;
  font-weight: bold;
}

/* ==========================================================================
   CHECKOUT PAGE (PAGE-3 DESIGN)
   ========================================================================== */
.checkout-section {
  padding-top: 140px;
  padding-bottom: 100px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-step-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.checkout-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.checkout-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.checkout-card h3 {
  font-size: 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  background-color: var(--primary-color);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: var(--transition-fast);
  background: #fdfdfd;
}

.form-control:focus {
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 59, 100, 0.08);
}

/* Shipping Grid */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.shipping-option {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-fast);
}

.shipping-option:hover {
  background-color: var(--secondary-bg);
}

.shipping-option.selected {
  border-color: var(--primary-color);
  background-color: var(--light-blue);
}

.shipping-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shipping-info h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.shipping-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.shipping-price {
  font-weight: 700;
  color: var(--primary-color);
}

/* Payment Selector */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.payment-option {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.payment-option:hover {
  background-color: var(--secondary-bg);
}

.payment-option.selected {
  border-color: var(--primary-color);
  background-color: var(--light-blue);
}

.payment-option svg {
  margin-bottom: 8px;
}

.payment-details {
  background-color: var(--secondary-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 15px;
  display: none;
}

.payment-details.active {
  display: block;
}

/* Map Widget */
.map-widget-container {
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 15px;
  border: 1.5px solid var(--border-color);
  position: relative;
  z-index: 1;
}

/* Order Summary (Right Sidebar) */
.summary-sticky {
  position: sticky;
  top: 120px;
}

.summary-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.summary-title {
  font-size: 20px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.summary-items {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}

.summary-item-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: var(--secondary-bg);
  padding: 4px;
  object-fit: contain;
}

.summary-item-info {
  flex-grow: 1;
}

.summary-item-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
}

.summary-item-qty {
  font-size: 12px;
  color: var(--text-muted);
}

.summary-item-price {
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  color: var(--primary-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.summary-total {
  border-top: 1.5px solid var(--border-color);
  padding-top: 15px;
  margin-top: 15px;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
}

/* ==========================================================================
   TRANSACTION COUNTDOWN & RECEIPT SCREENS
   ========================================================================== */
.status-screen {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.countdown-timer {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-color);
  font-family: monospace;
  margin: 20px 0;
  letter-spacing: 2px;
}

.payment-instructions {
  background-color: var(--secondary-bg);
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 25px 0;
  text-align: left;
}

.bank-account-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1.5px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

.qris-qr-box {
  text-align: center;
  margin: 20px 0;
}

.qris-qr-box img {
  max-width: 200px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: var(--radius-md);
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 24px;
}

.receipt-box {
  background-color: var(--mint-light);
  border: 1.5px dashed var(--mint-dark);
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 25px 0;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

/* ==========================================================================
   SHOPPING CART DRAWER (OVERLAY)
   ========================================================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: white;
  z-index: 1100;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.cart-drawer.open {
  right: 0;
}

.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 59, 100, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1090;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  padding: 24px;
  border-bottom: 1.5px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--secondary-bg);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background-color: var(--secondary-bg);
  padding: 6px;
  object-fit: contain;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.cart-item-price {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 15px;
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.qty-btn:hover {
  background-color: var(--light-blue);
  color: var(--primary-color);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 13px;
  margin-left: auto;
  font-weight: 600;
}

.cart-footer {
  padding: 24px;
  border-top: 1.5px solid var(--border-color);
  background-color: var(--secondary-bg);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.cart-drawer .btn {
  width: 100%;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--light-blue);
  color: var(--text-dark);
  padding: 80px 0 0;
  border-top: 1px solid rgba(0, 59, 100, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--primary-color);
  font-size: 18px;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--primary-color);
  font-weight: 700;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  /*gap: 12px;*/
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.contact-item span {
  font-weight: 600;
}

.office-address {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-bottom {
  background-color: #0b1a24;
  color: #a0aec0;
  padding: 20px 0;
  font-size: 12px;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom-flex {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   USER AUTHENTICATION MODAL (LOGIN & REGISTRATION)
   ========================================================================== */
.auth-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 59, 100, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.auth-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 440px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1210;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
  gap: 16px;
}

.auth-tab-btn {
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  font-family: 'Outfit', sans-serif;
}

.auth-tab-btn.active {
  color: var(--primary-color);
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.auth-alert {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 500;
  display: none;
  text-align: center;
}

.auth-alert-error {
  background-color: #f8d7da;
  color: #721c24;
}

.auth-alert-success {
  background-color: #d4edda;
  color: #155724;
}

.user-profile-panel {
  text-align: center;
  padding: 10px 0;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 32px;
  line-height: 70px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Autocomplete Search Dropdown Styling */
.autocomplete-container {
  position: relative;
  width: 100%;
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 10000;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 2px;
}

.autocomplete-suggestion {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-dark);
  transition: var(--transition-fast);
  border-bottom: 1px solid #f1f5f9;
}

.autocomplete-suggestion:last-child {
  border-bottom: none;
}

.autocomplete-suggestion:hover {
  background-color: var(--mint-light);
  color: var(--mint-dark);
}

/* Cart Badge / Button Pulse Animation */
@keyframes cartPulse {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.2) rotate(-5deg);
  }
  40% {
    transform: scale(0.9) rotate(5deg);
  }
  60% {
    transform: scale(1.1) rotate(-3deg);
  }
  80% {
    transform: scale(0.95) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.pulse {
  animation: cartPulse 0.6s ease-in-out !important;
}


/* E-Commerce Dropdown */
.dropdown-wrapper { position: relative; }
.dropdown-wrapper:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-radius: 8px; padding: 10px 0; min-width: 180px; list-style: none; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; }
.dropdown-menu li { margin: 0; padding: 0; }
.dropdown-menu li a { display: block; padding: 10px 20px; color: #11002a; text-decoration: none; font-size: 14px; transition: background 0.2s; font-weight: normal; }
.dropdown-menu li a:hover { background: #f4f8f4; color: #054577; }
