@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --navy: #0d1f3c;
  --navy-mid: #1a3460;
  --blue: #1d6fa4;
  --blue-light: #3b9fd1;
  --sky: #a8d8f0;
  --sky-pale: #e4f3fb;
  --white: #ffffff;
  --off-white: #f7fafd;
  --gray-100: #eef2f7;
  --gray-200: #dce4ee;
  --gray-500: #7a8fa8;
  --gray-700: #3d5068;
  --text: #0d1f3c;
  --text-muted: #5a7289;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1120px;
  --shadow: 0 2px 16px rgba(13,31,60,0.08);
  --shadow-hover: 0 6px 28px rgba(29,111,164,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -20%, #f1f7fd 0, rgba(241, 247, 253, 0) 40%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }

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

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 clamp(1rem, 3vw, 2rem);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--blue-light);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-cart {
  position: relative;
  background: var(--navy);
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-cart:hover { background: var(--navy-mid); }

.cart-count {
  background: var(--blue-light);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* BTN */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }

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

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--blue) 100%);
  color: white;
  padding: clamp(4.5rem, 8vw, 7rem) 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(59,159,209,0.2) 0%, transparent 60%);
}

.hero-content { position: relative; max-width: 700px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(168,216,240,0.2);
  border: 1px solid rgba(168,216,240,0.4);
  color: var(--sky);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero h1 span { color: var(--sky); }

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-btns .btn-primary { background: white; color: var(--navy); }
.hero-btns .btn-primary:hover { background: var(--sky-pale); }
.hero-btns .btn-outline { border-color: rgba(255,255,255,0.4); color: white; }
.hero-btns .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* SECTION */
section { padding: clamp(3.5rem, 7vw, 5.25rem) 2rem; }

.section-inner { max-width: var(--container); margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* FEATURES */
.features { background: var(--off-white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.4rem;
  text-align: center;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--sky-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon svg { width: 26px; height: 26px; color: var(--blue); }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--navy); }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); }

/* PRODUCTS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.75rem;
}

.product-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.product-img {
  background: var(--sky-pale);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.product-img-placeholder {
  width: 80px;
  height: 80px;
  opacity: 0.3;
  color: var(--blue);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.product-body h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--navy); }
.product-body p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 0.5rem;
}

.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}

.add-to-cart-btn {
  background: var(--navy);
  color: white;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}

.add-to-cart-btn:hover { background: var(--blue); }

/* ABOUT STRIP */
.about-strip {
  background: var(--navy);
  color: white;
  padding: 4rem 2rem;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-inner h2 { font-size: 2rem; margin-bottom: 1rem; }
.about-inner p { color: rgba(255,255,255,0.7); margin-bottom: 1.25rem; line-height: 1.7; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--sky);
}

.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* CONTACT */
.contact { background: var(--off-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 { font-size: 1.75rem; margin-bottom: 1rem; color: var(--navy); }
.contact-info p { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-item-icon {
  width: 38px;
  height: 38px;
  background: var(--sky-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg { width: 18px; height: 18px; color: var(--blue); }
.contact-item p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }
.contact-item strong { font-size: 0.9rem; color: var(--navy); }

/* FORM */
.form-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-light);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* CART SIDEBAR */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,31,60,0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 95vw;
  height: 100vh;
  background: white;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 32px rgba(13,31,60,0.15);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 { font-size: 1.1rem; color: var(--navy); }

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px;
}

.cart-items { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }

.cart-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  background: var(--sky-pale);
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.875rem; color: var(--navy); margin-bottom: 2px; }
.cart-item-info p { font-size: 0.8rem; color: var(--text-muted); }

.cart-item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 4px;
  transition: color 0.2s;
}

.cart-item-remove:hover { color: #e24b4a; }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-total span { font-size: 0.9rem; color: var(--text-muted); }

.cart-total strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  color: var(--navy);
}

.cart-footer .btn { width: 100%; justify-content: center; }

/* FOOTER */
footer {
  background: var(--navy);
  color: white;
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* CHECKOUT PAGE */
.checkout-page { background: var(--off-white); min-height: 100vh; padding: 3rem 2rem; }

.checkout-inner { max-width: 960px; margin: 0 auto; }

.checkout-inner h1 { font-size: 1.75rem; margin-bottom: 2rem; color: var(--navy); }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.checkout-form-card,
.order-summary-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.checkout-form-card h2,
.order-summary-card h2 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--navy);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.order-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.order-item-img {
  width: 52px;
  height: 52px;
  background: var(--sky-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-item-info { flex: 1; }
.order-item-info h4 { font-size: 0.875rem; color: var(--navy); }
.order-item-info p { font-size: 0.8rem; color: var(--text-muted); }
.order-item-price { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem; }

.order-totals { margin-top: 1.25rem; }
.order-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  border-top: 1.5px solid var(--gray-200);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.payment-section { margin-top: 1.5rem; }
.payment-section h3 { font-size: 0.95rem; color: var(--navy); margin-bottom: 1rem; }

.paypal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #ffc439;
  color: #003087;
  padding: 0.85rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  margin-bottom: 0.75rem;
}

.paypal-btn:hover { background: #f0b429; }

.paypal-btn svg { width: 20px; height: 20px; }

.secure-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show { transform: translateY(0); opacity: 1; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.section-header,
.feature-card,
.product-card,
.form-card,
.checkout-form-card,
.order-summary-card {
  animation: fadeUp 0.5s ease both;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .nav-links {
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  nav.has-mobile-menu .nav-links { display: none; }
  nav.has-mobile-menu .nav-links.open {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 0.35rem;
    border-top: 1px solid var(--gray-200);
  }
  nav.has-mobile-menu .nav-hamburger { display: flex; }

  .about-inner,
  .contact-grid,
  .checkout-grid,
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }

  .form-row { grid-template-columns: 1fr; }

  section { padding: 3.5rem 1.25rem; }
  .hero { padding: 4rem 1.25rem; }
  .product-footer { flex-direction: column; align-items: flex-start; }
  .add-to-cart-btn { width: 100%; text-align: center; }
}
