:root {
  --orange: #ff7e00;
  --orange-dark: #e56f00;
  --navy: #001e3c;
  --teal: #00a8a8;
  --sky: #ebf4ff;
  --sky-deep: #d6e8ff;
  --peach: #ffe8d6;
  --mint: #e8f7ef;
  --text: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --footer-bg: #f4f6f8;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 30, 60, 0.08);
  --font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo-link img {
  height: 44px;
  width: auto;
}

.header-search {
  display: flex;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #f8fafc;
}

.header-search select {
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 140px;
}

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  min-width: 0;
}

.header-search button {
  border: none;
  background: var(--orange);
  color: var(--white);
  padding: 0 1.25rem;
  cursor: pointer;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.header-action strong {
  font-size: 0.95rem;
  color: var(--navy);
}

.badge-count {
  background: var(--orange);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.65rem;
  padding: 0.1rem 0.45rem;
  margin-left: 0.25rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.main-nav {
  border-top: 1px solid var(--border);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a.active {
  color: var(--orange);
}

/* Hero */
.hero {
  background: linear-gradient(105deg, var(--sky) 0%, var(--sky-deep) 55%, #f0f7ff 100%);
  padding: 3rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  max-height: 400px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: #00325f;
  color: var(--white);
}

.btn-accent {
  background: var(--orange);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-cart {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cart:hover {
  background: var(--orange);
}

.btn-block {
  width: 100%;
}

/* Features */
.features-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sky);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Promo cards */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 2.5rem 0;
}

.promo-card {
  border-radius: var(--radius);
  padding: 1.75rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.promo-card.blue {
  background: var(--sky);
}
.promo-card.peach {
  background: var(--peach);
}
.promo-card.mint {
  background: var(--mint);
}

.promo-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  max-width: 55%;
}

.promo-card img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  max-height: 140px;
  object-fit: contain;
  object-position: bottom right;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--navy);
}

.section-deal {
  background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1rem 0 2rem;
}

.countdown {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.product-card.highlight-product {
  outline: 2px solid var(--orange);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  z-index: 1;
}

.product-img-wrap {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 0.75rem;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.product-stars {
  color: var(--orange);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.product-title {
  font-size: 0.95rem;
  margin: 0.35rem 0;
  line-height: 1.35;
  min-height: 2.7em;
}

.product-title a {
  color: var(--navy);
}

.product-price {
  margin-bottom: 0.5rem;
}

.price-current {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.stock-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0 0.25rem;
}

.stock-bar span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.stock-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Banners */
.banner-full {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.banner-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.banner-split .banner {
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--white);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.banner-split .banner.teal {
  background: linear-gradient(135deg, #007a7a, var(--teal));
}

.banner-split .banner.blue {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

/* Category layout */
.category-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.category-banner {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky);
  min-height: 420px;
}

.category-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
}

/* Page hero */
.page-hero {
  background: var(--sky);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}

.page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: 2.25rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Content pages */
.content-prose {
  max-width: 800px;
}

.content-prose h2 {
  color: var(--navy);
  margin-top: 2rem;
}

.content-wide {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.content-legal {
  max-width: 900px;
  margin: 0 auto 4rem;
  font-size: 0.98rem;
}

.content-legal h2 {
  color: var(--navy);
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.content-legal h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--sky-deep);
  border-color: var(--teal);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #dc2626;
}

.field-error {
  display: block;
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.checkbox-field input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--orange);
}

.checkbox-field label {
  font-weight: 500;
  line-height: 1.45;
}

.form-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.form-success[hidden] {
  display: none;
}

/* Newsletter strip */
.newsletter-strip {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-inner h3 {
  margin: 0;
  font-size: 1.35rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 480px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-grid h4 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1rem;
}

.footer-grid p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.payment-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 1rem 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom img {
  height: 32px;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 60, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}

.cart-drawer.is-open .cart-drawer-backdrop {
  opacity: 1;
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--white);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open .cart-drawer-panel {
  transform: translateX(0);
}

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

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-drawer-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-item img {
  border-radius: 8px;
  object-fit: cover;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
}

.link-btn {
  background: none;
  border: none;
  color: var(--orange);
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: auto;
}

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

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cart-table th,
.cart-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.cart-table img {
  border-radius: 8px;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 30, 60, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
}

.thank-you-msg {
  text-align: center;
  padding: 1rem 0;
}

.thank-you-msg h2 {
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-card {
  background: var(--sky);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .category-layout {
    grid-template-columns: 1fr;
  }
  .category-banner {
    min-height: 240px;
  }
  .category-banner img {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .header-main {
    grid-template-columns: 1fr auto;
  }
  .header-search {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav ul {
    display: none;
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }
  .main-nav.is-open ul {
    display: flex;
  }
  .hero-grid,
  .banner-split,
  .about-grid,
  .features-grid,
  .promo-grid,
  .team-values {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
