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

/* ── Base ──────────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0e1a;
  min-height: 100vh;
  color: #000;
}

/* ── Background canvas ─────────────────────────────────── */
#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
#cursor-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  background: rgba(0,0,0,0.7);
  border-bottom: 0.5px solid rgba(255,255,255,0.15);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 500;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 34px; height: 34px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-size: 16px; font-weight: 500; color: #fff; letter-spacing: 0.5px; }
.logo-sub  { font-size: 9px; font-weight: 400; color: #85B7EB; letter-spacing: 3px; text-transform: uppercase; margin-top: 2px; }

.cart-btn {
  background: none;
  border: 0.5px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
}
.cart-btn:hover { background: rgba(255,255,255,0.08); }
.cart-count {
  background: #378ADD; color: #fff; border-radius: 50%;
  width: 18px; height: 18px; font-size: 11px;
  display: flex; align-items: center; justify-content: center; font-weight: 500;
}
.back-btn {
  background: none; border: 0.5px solid rgba(255,255,255,0.4);
  border-radius: 8px; padding: 6px 14px; font-size: 14px;
  cursor: pointer; color: #fff; text-decoration: none;
}
.back-btn:hover { background: rgba(255,255,255,0.08); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { padding: 4rem 2rem 3rem; text-align: center; }
.hero-logo { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 1.5rem; }
.hero-logo-icon { width: 56px; height: 56px; }
.hero-logo-text { text-align: left; }
.hero-logo-main { font-size: 36px; font-weight: 500; color: #fff; letter-spacing: 0.5px; line-height: 1; }
.hero-logo-sub  { font-size: 11px; font-weight: 400; color: #85B7EB; letter-spacing: 4px; text-transform: uppercase; margin-top: 4px; }
.hero p { font-size: 16px; color: rgba(255,255,255,0.65); max-width: 400px; margin: 0 auto; }

/* ── Product grid ──────────────────────────────────────── */
.products {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.card {
  background: linear-gradient(170deg, #021a35 0%, #042C53 30%, #0C447C 60%, #fff 100%);
  border: 0.5px solid rgba(4,44,83,0.5);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.card:hover { border-color: #378ADD; }
.best-value { border: 2px solid #85B7EB; }
.card-img {
  width: 100%; aspect-ratio: 1.4;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}
.card-body { padding: 1rem; }
.badge      { background: rgba(255,255,255,0.12); color: #B5D4F4; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 8px; display: inline-block; margin-bottom: 8px; }
.best-badge { background: #85B7EB; color: #021a35; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 8px; display: inline-block; margin-bottom: 8px; }
.card-name  { font-size: 16px; font-weight: 500; margin-bottom: 4px; color: #E6F1FB; }
.card-desc  { font-size: 13px; color: #85B7EB; margin-bottom: 4px; line-height: 1.5; }
.per-unit   { font-size: 12px; color: #B5D4F4; margin-bottom: 12px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 18px; font-weight: 500; color: #fff; }
.add-btn {
  background: #1a1a1a; color: #fff;
  border: none; border-radius: 8px;
  padding: 7px 16px; font-size: 13px;
  cursor: pointer; font-weight: 500; letter-spacing: 0.3px;
}
.add-btn:hover { background: #2e2e2e; }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: #fff; border: 0.5px solid #c5dff8;
  border-left: 3px solid #378ADD; border-radius: 12px;
  padding: 0.75rem 1.25rem; font-size: 14px;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ── Page layout ───────────────────────────────────────── */
.page { max-width: 700px; margin: 0 auto; padding: 2rem; }
.page-title { font-size: 24px; font-weight: 500; color: #fff; margin-bottom: 1.5rem; }
.empty { text-align: center; padding: 3rem; color: rgba(255,255,255,0.5); font-size: 15px; }
.empty a { color: #85B7EB; }

/* ── Cart items ────────────────────────────────────────── */
.cart-item {
  background: linear-gradient(170deg, #021a35 0%, #042C53 30%, #0C447C 60%, #fff 100%);
  border: 0.5px solid rgba(4,44,83,0.5);
  border-radius: 12px; padding: 1rem 1.25rem;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem;
}
.item-emoji { width: 48px; height: 48px; display:flex; align-items:center; justify-content:center; }
.item-info  { flex: 1; }
.item-name  { font-size: 15px; font-weight: 500; color: #E6F1FB; margin-bottom: 2px; }
.item-price { font-size: 13px; color: #85B7EB; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  background: #1a1a1a; color: #fff; border: none; border-radius: 8px;
  width: 28px; height: 28px; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: #2e2e2e; }
.qty-num    { font-size: 15px; font-weight: 500; color: #fff; min-width: 20px; text-align: center; }
.item-total { font-size: 15px; font-weight: 500; color: #fff; min-width: 52px; text-align: right; }
.remove-btn { background: none; border: none; color: rgba(255,255,255,0.3); font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; }
.remove-btn:hover { color: #f09595; }

/* ── Cart summary ──────────────────────────────────────── */
.summary {
  background: #ffffff;
  border: 0.5px solid rgba(4,44,83,0.2);
  border-radius: 12px; padding: 1.25rem; margin-top: 1.5rem;
}
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #444; padding: 5px 0; }
.summary-row.total { font-size: 16px; font-weight: 500; color: #000; border-top: 0.5px solid #ddd; margin-top: 8px; padding-top: 12px; }
.discount-text { color: #185FA5; }
.discount-row  { display: flex; gap: 8px; margin: 1rem 0 0.5rem; }
.discount-input {
  flex: 1; padding: 7px 12px;
  border: 0.5px solid #ccc; border-radius: 8px;
  font-size: 14px; outline: none; background: #fff; color: #000;
}
.discount-input:focus { border-color: #378ADD; }
.apply-btn { background: #1a1a1a; color: #fff; border: none; border-radius: 8px; padding: 7px 16px; font-size: 13px; cursor: pointer; font-weight: 500; }
.apply-btn:hover { background: #333; }
.discount-msg { font-size: 12px; margin-bottom: 8px; min-height: 16px; }
.discount-msg.success { color: #185FA5; }
.discount-msg.error   { color: #A32D2D; }

/* ── Checkout / place order button ────────────────────── */
.checkout-btn {
  display: block; width: 100%;
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border: 1.5px solid #1a1a1a;
  border-radius: 8px; padding: 14px;
  font-size: 15px; cursor: pointer; font-weight: 500;
  margin-top: 1.25rem; letter-spacing: 0.4px;
  text-align: center; text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.checkout-btn:hover {
  border-color: #378ADD;
  box-shadow: 0 0 0 1px #0C447C, 0 0 0 2px rgba(55,138,221,0.5);
}

/* ── Checkout page layout ──────────────────────────────── */
.checkout-grid {
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.checkout-grid .page-title { grid-column: 1 / -1; }
.checkout-left  { display: flex; flex-direction: column; gap: 1.5rem; }
.checkout-right { position: sticky; top: 80px; }

.section {
  background: #ffffff;
  border: 0.5px solid rgba(4,44,83,0.2);
  border-radius: 12px; padding: 1.25rem;
}
.section-title {
  font-size: 11px; font-weight: 500; color: #888;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem;
}
.field { margin-bottom: 0.85rem; }
.field label { display: block; font-size: 13px; color: #444; margin-bottom: 4px; }
.field input {
  width: 100%; padding: 8px 12px;
  border: 0.5px solid #ccc; border-radius: 8px;
  font-size: 14px; outline: none; background: #fff; color: #000;
}
.field input:focus { border-color: #378ADD; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.payment-tabs { display: flex; gap: 8px; margin-bottom: 1rem; }
.tab {
  flex: 1; padding: 9px; border: 1.5px solid #ddd; border-radius: 8px;
  font-size: 13px; cursor: pointer; background: #fff; color: #444; text-align: center;
  transition: border-color 0.15s, color 0.15s;
}
.tab.active { border-color: #1a1a1a; color: #000; font-weight: 500; }

.paypal-msg {
  text-align: center; padding: 1.5rem; color: #555;
  font-size: 14px; background: #f9f9f9; border-radius: 8px;
}
.paypal-logo { font-size: 22px; font-weight: 500; margin-bottom: 6px; color: #003087; }

.order-item {
  display: flex; justify-content: space-between;
  font-size: 14px; color: #444;
  padding: 5px 0; border-bottom: 0.5px solid #f0f0f0;
}
.order-item:last-of-type { border-bottom: none; }

.secure { text-align: center; font-size: 12px; color: #aaa; margin-top: 10px; }

/* ── Hamburger ──────────────────────────────────────────── */
.hamburger {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 9998;
}
.menu-overlay.open { display: block; }

.menu-drawer {
  position: fixed; top: 0; right: -260px; width: 240px; height: 100vh;
  background: #0a0a0a; border-left: 0.5px solid rgba(255,255,255,0.1);
  z-index: 9999; display: flex; flex-direction: column;
  padding: 80px 0 2rem; gap: 4px;
  transition: right 0.25s ease;
}
.menu-drawer.open { right: 0; }
.menu-link {
  padding: 14px 2rem; font-size: 15px; color: rgba(255,255,255,0.7);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  transition: color 0.15s, background 0.15s;
}
.menu-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.menu-link.active { color: #85B7EB; }
.menu-cart-count {
  background: #378ADD; color: #fff; border-radius: 50%;
  width: 18px; height: 18px; font-size: 11px;
  display: flex; align-items: center; justify-content: center; font-weight: 500;
}

/* ── Home page ──────────────────────────────────────────── */
.home-hero {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 2rem;
}
.home-hero-inner { max-width: 560px; }
.home-hero-logo { margin-bottom: 2rem; display: flex; justify-content: center; }
.home-title {
  font-size: clamp(32px, 6vw, 52px); font-weight: 500;
  color: #fff; line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -0.5px;
}
.home-subtitle {
  font-size: 17px; color: rgba(255,255,255,0.6);
  line-height: 1.7; margin-bottom: 2rem; max-width: 420px; margin-left: auto; margin-right: auto;
}
.home-cta {
  display: inline-block; background: #1a1a1a; color: #fff;
  border: 1.5px solid #1a1a1a; border-radius: 8px;
  padding: 14px 36px; font-size: 15px; font-weight: 500;
  text-decoration: none; letter-spacing: 0.4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.home-cta:hover {
  border-color: #378ADD;
  box-shadow: 0 0 0 1px #0C447C, 0 0 0 2px rgba(55,138,221,0.5);
}
.featured-section { padding: 0 0 4rem; }
.featured-label {
  text-align: center; font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.4); letter-spacing: 3px;
  text-transform: uppercase; padding: 2rem 0 0;
}

/* ── About page ─────────────────────────────────────────── */
.about-hero {
  padding: 5rem 2rem 4rem; text-align: center;
}
.about-hero h1 {
  font-size: clamp(28px, 5vw, 44px); font-weight: 500;
  color: #fff; line-height: 1.2; margin-bottom: 1rem;
}
.about-hero p { font-size: 17px; color: rgba(255,255,255,0.6); max-width: 400px; margin: 0 auto; }
.about-content {
  max-width: 860px; margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.about-card {
  background: linear-gradient(170deg, #021a35 0%, #042C53 30%, #0C447C 60%, #fff 100%);
  border: 0.5px solid rgba(4,44,83,0.5); border-radius: 12px; padding: 1.5rem;
}
.about-icon { margin-bottom: 1rem; }
.about-card h2 { font-size: 17px; font-weight: 500; color: #E6F1FB; margin-bottom: 0.75rem; }
.about-card p { font-size: 14px; color: #85B7EB; line-height: 1.7; }
.about-cta-section {
  text-align: center; padding: 2rem 2rem 5rem;
  color: rgba(255,255,255,0.6); font-size: 16px;
}
.about-cta-section p { margin-bottom: 1.25rem; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  text-align: center; padding: 2rem;
  font-size: 13px; color: rgba(255,255,255,0.25);
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

@media (max-width: 540px) {
  .about-content { grid-template-columns: 1fr; }
}

/* ── Contact page ────────────────────────────────────────── */
.contact-wrap {
  max-width: 700px; margin: 0 auto;
  padding: 0 2rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.contact-card {
  background: linear-gradient(170deg, #021a35 0%, #042C53 30%, #0C447C 60%, #fff 100%);
  border: 0.5px solid rgba(4,44,83,0.5); border-radius: 12px;
  padding: 1.5rem; text-align: center;
}
.contact-icon { margin-bottom: 1rem; display: flex; justify-content: center; }
.contact-label { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.4); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.5rem; }
.contact-email { font-size: 16px; font-weight: 500; color: #fff; text-decoration: none; display: block; margin-bottom: 0.5rem; }
.contact-email:hover { color: #85B7EB; }
.contact-note { font-size: 13px; color: #85B7EB; line-height: 1.6; }
.contact-form-wrap { max-width: 700px; margin: 0 auto; padding: 0 2rem 4rem; }
.contact-form-card { background: #ffffff; }

@media (max-width: 540px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

/* ── Single product listing ──────────────────────────────── */
.products:has(.listing-card) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 860px;
  padding: 2rem;
}
.listing-card {
  background: linear-gradient(170deg, #021a35 0%, #042C53 30%, #0C447C 60%, #fff 100%);
  border: 0.5px solid rgba(4,44,83,0.5);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer; transition: border-color 0.2s;
}
.listing-card:hover { border-color: #378ADD; }
.listing-img {
  width: 100%; padding: 1.5rem 0;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
}
.listing-img svg { width: 56px; height: 56px; }
.listing-body { padding: 1rem; }
.listing-tag {
  font-size: 10px; font-weight: 500; color: #85B7EB;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.3rem;
}
.listing-name {
  font-size: 16px; font-weight: 500; color: #fff;
  margin-bottom: 0.5rem; letter-spacing: -0.3px;
}
.listing-desc {
  font-size: 12px; color: rgba(133,183,235,0.85);
  line-height: 1.65; margin-bottom: 1rem;
}
.listing-options { margin-bottom: 0.85rem; }
.listing-options-label {
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.45);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.4rem;
}
.listing-select-wrap {
  position: relative; display: inline-block; width: 100%;
}
.listing-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(133,183,235,0.4);
  border-radius: 8px; padding: 8px 30px 8px 10px;
  font-size: 12px; color: #fff; cursor: pointer; outline: none;
  transition: border-color 0.15s;
}
.listing-select:hover, .listing-select:focus { border-color: #378ADD; }
.listing-select option { background: #042C53; color: #fff; }
.listing-select-arrow {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: #85B7EB; font-size: 11px; pointer-events: none;
}
.listing-details {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(133,183,235,0.15);
  border-radius: 8px; padding: 0.65rem 0.75rem; margin-bottom: 0.85rem;
}
.listing-detail-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 4px 0; border-bottom: 0.5px solid rgba(255,255,255,0.06);
  gap: 0.5rem;
}
.listing-detail-row:last-child { border-bottom: none; }
.listing-detail-label { font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.listing-detail-val   { font-size: 11px; color: #E6F1FB; text-align: right; line-height: 1.5; }
.listing-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.listing-price { font-size: 20px; font-weight: 500; color: #fff; }
.listing-add-btn { padding: 8px 18px; font-size: 12px; }

@media (max-width: 600px) {
  .products:has(.listing-card) { grid-template-columns: 1fr; }
}
