:root {
  --bg: #09090b;
  --surface: #18181b;
  --surfaceLight: #27272a;
  --primary: #ffffff;
  --secondary: #a1a1aa;
  --accent: #3b82f6;
  --discountBg: #ef4444;
  --trustBg: #1f2937;
  --success: #22c55e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--primary);
  overflow-x: hidden;
}

/* ----------------------------------- */
/* Utilities                           */
/* ----------------------------------- */
.hidden { display: none !important; }
.active { display: block !important; }
.flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  text-align: center;
}
.mt-4 { margin-top: 24px; }
.success-text { color: var(--success); }

/* ----------------------------------- */
/* Navigation                          */
/* ----------------------------------- */
.icon-btn {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--surfaceLight);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

#cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--discountBg);
  color: white;
  font-size: 10px;
  font-weight: bold;
  border-radius: 10px;
  padding: 2px 6px;
}

/* ----------------------------------- */
/* Screens                             */
/* ----------------------------------- */
.screen { display: none; padding-bottom: 100px; }
.screen.active { display: block; }

/* ----------------------------------- */
/* Home Header                         */
/* ----------------------------------- */
.header-container { padding: 16px 20px; }
.header-subtitle {
  color: var(--secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.header-title { font-size: 32px; font-weight: 900; }

/* ----------------------------------- */
/* Promo Banner                        */
/* ----------------------------------- */
.promo-banner {
  background: #1e3a8a;
  margin: 0 20px 20px;
  padding: 24px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.promo-content { flex: 1; }
.promo-badge {
  background: var(--accent);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: inline-block;
}
.promo-banner h2 { font-weight: 900; font-size: 22px; margin-bottom: 6px; }
.promo-banner p  { font-size: 13px; color: rgba(255,255,255,0.7); }
.promo-icon {
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 90px;
  color: rgba(255,255,255,0.1);
}

/* ----------------------------------- */
/* Categories                          */
/* ----------------------------------- */
.categories-container {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 0 20px 20px;
  scrollbar-width: none;
}
.categories-container::-webkit-scrollbar { display: none; }
.category-pill {
  background: var(--surface);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--surfaceLight);
  cursor: pointer;
  transition: background 0.2s;
}
.category-pill:hover { background: var(--surfaceLight); }

/* ----------------------------------- */
/* Product Grid                        */
/* ----------------------------------- */
.section-header { padding: 0 20px 16px; font-size: 20px; font-weight: 800; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 20px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--surfaceLight);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-3px); }
.product-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--primary);
}
.product-info { padding: 14px; }
.product-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.product-price  { font-size: 16px; font-weight: 800; }
.original-price {
  font-size: 12px;
  color: var(--secondary);
  text-decoration: line-through;
}

/* ----------------------------------- */
/* About Section                       */
/* ----------------------------------- */
.about-section { padding: 40px 20px 20px; }
.about-card {
  background: linear-gradient(145deg, var(--surface), var(--bg));
  border: 1px solid var(--surfaceLight);
  border-radius: 24px;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.about-title { font-size: 28px; font-weight: 900; color: var(--primary); margin-bottom: 16px; }
.about-text  { color: var(--secondary); font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.about-tagline {
  background: var(--surfaceLight);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.about-tagline i { color: var(--accent); font-size: 20px; }
.about-tagline p { color: var(--primary); font-size: 14px; font-weight: 700; font-style: italic; margin: 0; }

/* ----------------------------------- */
/* Features Section                    */
/* ----------------------------------- */
.features-section { padding: 30px 20px 40px; background: transparent; margin-top: 10px; }
.feature-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature-block.card {
  background: var(--surface);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--surfaceLight);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-block.card:hover { transform: translateY(-5px); border-color: var(--accent); }
.feature-icon-wrapper {
  background: rgba(59, 130, 246, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon  { color: var(--accent); font-size: 20px; margin: 0; }
.feature-content { flex: 1; text-align: left; }
.feature-title { color: var(--primary); font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature-desc  { color: var(--secondary); font-size: 13px; line-height: 1.5; margin: 0; }

/* ----------------------------------- */
/* Footer                              */
/* ----------------------------------- */
.footer {
  background: var(--surface);
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--surfaceLight);
  margin-top: 0;
}
.footer-logo-wrap {
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.footer-logo-wrap .footer-logo {
  height: 20px;
  display: block;
  opacity: 1;
  filter: none;
  margin-bottom: 0;
}
.footer-text {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.8;
}
.footer-text strong { color: var(--primary); font-weight: 700; }

/* ----------------------------------- */
/* Buttons                             */
/* ----------------------------------- */
.primary-btn {
  background: var(--accent);
  color: white;
  width: 100%;
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.primary-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* ----------------------------------- */
/* Product Detail                      */
/* ----------------------------------- */
.detail-img    { width: 100%; height: 400px; object-fit: cover; }
.detail-content { padding: 24px; }
.trust-badges  { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.badge {
  background: var(--trustBg);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.fixed-bottom {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--bg);
  padding: 16px 20px;
  border-top: 1px solid var(--surfaceLight);
  z-index: 50;
}

/* ----------------------------------- */
/* Cart                                */
/* ----------------------------------- */
.cart-item {
  display: flex;
  align-items: center;
  background: var(--surface);
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--surfaceLight);
}
.cart-item img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}
.cart-info { flex: 1; padding-left: 14px; }
.qty-btn {
  background: var(--surfaceLight);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ----------------------------------- */
/* Checkout Form                       */
/* ----------------------------------- */
.checkout-container { padding: 20px; }
.payment-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(34,197,94,0.1);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,0.3);
  margin-bottom: 24px;
  font-weight: 700;
}
.field-row { display: flex; gap: 16px; }
input {
  width: 100%;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--surfaceLight);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
}
input::placeholder { color: var(--secondary); }
input:focus       { border-color: var(--accent); }

/* ----------------------------------- */
/* Spinner & Success                   */
/* ----------------------------------- */
.spinner {
  border: 4px solid var(--surfaceLight);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.success-circle {
  width: 96px;
  height: 96px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 8px 20px rgba(34,197,94,0.4);
  margin-bottom: 24px;
}