
:root {
  --primary: #004CFF;
  --primary-dark: #0037B3;
  --primary-light: #EDF3FF;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --surface: #F9FAFB;
  --border: #E5E7EB;
  --accent: #FF3B30;
  --success: #10B981;
  --radius: 16px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font);
  background: #FFFFFF;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-logo span {
  color: var(--primary);
}

.badge-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

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

.search-box input {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  width: 240px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--primary);
}

.cart-trigger {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  color: var(--text-primary);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1240px;
  margin: 40px auto;
  padding: 0 24px;
  gap: 48px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--text-primary);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

.btn-dark {
  background: var(--text-primary);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.hero-floating-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 18px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.hero-floating-card .tag {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.hero-floating-card h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 6px 0 2px;
}

.hero-floating-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Stories */
.stories-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.section-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.stories-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.story-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
  flex-shrink: 0;
}

.story-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary), #00D2FF);
  margin-bottom: 8px;
}

.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.story-bubble span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Flash Banner */
.flash-banner {
  background: linear-gradient(135deg, #004CFF 0%, #002BB8 100%);
  color: #fff;
  padding: 36px 0;
  border-radius: 20px;
  margin: 20px auto;
  max-width: 1240px;
}

.flash-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.flash-icon {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 8px;
}

.flash-info h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}

.flash-info p {
  opacity: 0.9;
  font-size: 14px;
}

.flash-timer-boxes {
  display: flex;
  gap: 12px;
}

.timer-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
  min-width: 70px;
}

.timer-box span {
  font-size: 26px;
  font-weight: 900;
  display: block;
  line-height: 1;
}

.timer-box label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* Catalog */
.shop-section {
  padding: 60px 0;
}

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.catalog-header h2 {
  font-size: 32px;
  font-weight: 900;
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.pill {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.pill.active, .pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.product-card-img-wrap {
  position: relative;
  background: #F4F4F6;
  height: 280px;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

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

.product-rating {
  font-size: 12px;
  font-weight: 700;
  color: #FFA800;
  margin-bottom: 12px;
}

.product-rating span {
  color: var(--text-secondary);
  font-weight: 500;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-main {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
}

.price-orig {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Ecosystem Section */
.app-ecosystem-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

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

.ecosystem-text h2 {
  font-size: 38px;
  font-weight: 900;
  margin: 10px 0 16px;
}

.ecosystem-text p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--text-primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.store-badge:hover {
  opacity: 0.9;
}

.store-badge small {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
}

.store-badge strong {
  font-size: 14px;
}

.ecosystem-portals {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.portal-link {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 200px;
}

.portal-link span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.portal-link strong {
  color: var(--primary);
  margin-top: 4px;
}

.phone-frame {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 36px;
  border: 8px solid #111;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  position: relative;
}

.phone-screen-img {
  width: 100%;
  display: block;
}

.phone-overlay-badge {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.phone-overlay-badge strong {
  display: block;
  font-size: 13px;
}

.phone-overlay-badge span {
  font-size: 11px;
  opacity: 0.7;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  z-index: 201;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.cart-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.close-btn {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

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

.cart-item-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-item-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

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

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.voucher-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.voucher-input-row input {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  text-transform: uppercase;
}

.voucher-msg {
  font-size: 11px;
  margin-bottom: 10px;
  font-weight: 600;
}

.voucher-msg.success { color: var(--success); }
.voucher-msg.error { color: var(--accent); }

.cart-totals {
  margin-bottom: 16px;
}

.tot-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.tot-row.discount { color: var(--accent); font-weight: 700; }

.tot-row.grand-total {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

/* Footer */
.footer {
  background: #111827;
  color: #fff;
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-brand h3 span { color: var(--primary); }

.footer-brand p {
  color: #9CA3AF;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.copyright {
  font-size: 12px;
  color: #6B7280;
  display: block;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: #9CA3AF;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .flash-flex { flex-direction: column; align-items: flex-start; }
}
