:root {
  --navy: #00204a;
  --navy-dark: #001433;
  --orange: #ff8a00;
  --orange-hover: #e67a00;
  --sky: #e8f4fc;
  --sky-alt: #d6ecfa;
  --pink-banner: #fde8f0;
  --green-banner: #e5f6ef;
  --blue-banner: #e3f0ff;
  --text: #4a5568;
  --text-dark: #1a202c;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(0, 32, 74, 0.08);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, 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;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.container-wide {
  width: min(1320px, 96vw);
  margin: 0 auto;
}

/* Top bar */
.topbar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.topbar-links a {
  color: rgba(255, 255, 255, 0.85);
}

.topbar-links a:hover {
  color: var(--orange);
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 0;
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.logo-link img {
  height: 48px;
  width: auto;
  min-width: 180px;
  max-width: 240px;
  object-fit: contain;
  object-position: left center;
  display: block;
}


.search-form {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.search-form select {
  border: none;
  background: #f7fafc;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-dark);
  max-width: 140px;
}

.search-form input[type="search"] {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  min-width: 0;
}

.search-form button {
  background: var(--orange);
  border: none;
  color: var(--white);
  padding: 0 20px;
  cursor: pointer;
  font-weight: 600;
}

.search-form button:hover {
  background: var(--orange-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  font-size: 0.75rem;
  gap: 4px;
  position: relative;
}

.header-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.icon-badge[hidden] {
  display: none;
}

/* Category nav */
.cat-nav {
  background: #003366;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px 0;
}

.cat-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.cat-nav a:hover,
.cat-nav a.active {
  background: rgba(255, 138, 0, 0.2);
  color: var(--orange);
}

.mobile-only {
  display: none;
}

.nav-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Main nav (primary pages) */
.primary-nav {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}

.primary-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-nav a {
  display: block;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--orange);
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.hero-main {
  position: relative;
  background: var(--sky);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.hero-main img {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  max-width: 52%;
}

.hero-content h1 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 12px;
  line-height: 1.2;
}

.hero-content p {
  margin: 0 0 20px;
  max-width: 420px;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mini-banner {
  border-radius: var(--radius);
  padding: 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.mini-banner img {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 45%;
  max-height: 85%;
  object-fit: contain;
}

.mini-banner h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
  max-width: 55%;
}

.mini-banner.bg-pink { background: var(--pink-banner); }
.mini-banner.bg-blue { background: var(--blue-banner); }
.mini-banner.bg-green { background: var(--green-banner); }
.mini-banner.bg-sky { background: var(--sky-alt); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}

.btn-orange:hover {
  background: var(--orange-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Section */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.75rem;
}

.section-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.section-tabs button {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.section-tabs button.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.bg-sky-section {
  background: var(--sky);
}

/* Categories circle */
.cat-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 20px;
  text-align: center;
}

.cat-icon {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.cat-icon:hover {
  box-shadow: var(--shadow);
  border-color: var(--orange);
}

.cat-icon .icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  background: var(--sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cat-icon span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-thumb {
  position: relative;
  background: #f8fafc;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-thumb img {
  max-height: 180px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.badge-product {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 32, 74, 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  text-align: center;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-body {
  padding: 14px 16px 18px;
}

.product-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-title a {
  color: #2b6cb0;
}

.product-rating .star {
  color: #cbd5e0;
  font-size: 0.85rem;
}

.product-rating .star.filled {
  color: var(--orange);
}

.product-price {
  margin-top: 8px;
}

.price-current {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
}

.price-old {
  color: #a0aec0;
  text-decoration: line-through;
  margin-left: 8px;
  font-size: 0.9rem;
}

.sold-bar {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text);
}

.sold-bar .bar {
  height: 6px;
  background: #edf2f7;
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
}

.sold-bar .bar span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
}

/* Promo row */
.promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.promo-card {
  border-radius: var(--radius);
  padding: 28px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promo-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.promo-card img {
  width: 120px;
  object-fit: contain;
}

/* Tab panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card-body {
  padding: 18px;
}

.blog-card .meta {
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--navy);
}

/* Service bar */
.service-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.service-item h4 {
  margin: 8px 0 4px;
  color: var(--navy);
  font-size: 1rem;
}

.service-item p {
  margin: 0;
  font-size: 0.85rem;
}

.service-icon {
  font-size: 2rem;
}

/* Newsletter strip in footer area */
.newsletter-strip {
  background: var(--navy);
  color: var(--white);
  padding: 36px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.newsletter-inner h3 {
  margin: 0;
  font-size: 1.4rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 480px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  min-width: 0;
}

.newsletter-form button {
  border-radius: 0 var(--radius) var(--radius) 0;
  border: none;
  padding: 12px 24px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}

.footer-grid h4 {
  color: var(--white);
  margin: 0 0 16px;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-about img {
  height: 48px;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.social-links a:hover {
  background: var(--orange);
}

.payment-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.payment-icons span {
  background: var(--white);
  color: var(--navy);
  padding: 4px 8px;
  border-radius: 3px;
}

.footer-bottom {
  margin-top: 40px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #003d7a 100%);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 2.2rem;
}

.breadcrumb {
  font-size: 0.9rem;
  opacity: 0.9;
}

.breadcrumb a {
  color: var(--orange);
}

/* Forms */
.form-page {
  padding: 48px 0 64px;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--orange);
  border-color: var(--orange);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #e53e3e;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.form-check label {
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
}

.field-error {
  display: block;
  color: #c53030;
  font-size: 0.85rem;
  margin-top: 6px;
}

.form-success {
  background: #e6ffed;
  border: 1px solid #9ae6b4;
  color: #22543d;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-top: 20px;
  display: none;
}

.form-success.visible {
  display: block;
}

/* Legal content */
.legal-content {
  padding: 48px 0 72px;
}

.legal-content .container-narrow {
  width: min(860px, 92vw);
  margin: 0 auto;
}

.legal-content h2 {
  color: var(--navy);
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  color: var(--text-dark);
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.98rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

/* Cart drawer */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  padding: 20px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.cart-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f7fafc;
  border-radius: var(--radius);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  border-radius: 4px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-rich p {
  margin-bottom: 1rem;
}

/* Shop sidebar */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 32px 0 64px;
}

.shop-filters h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-top: 24px;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.filter-list a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
}

.mobile-nav-drawer {
  display: none;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-main img {
    width: 100%;
    opacity: 0.25;
  }

  .hero-content {
    max-width: 100%;
  }

  .promo-row {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-card {
    grid-template-columns: 1fr !important;
  }
  .header-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .logo-link {
    grid-column: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .search-form {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }

  .cat-nav ul {
    display: none;
  }

  .cat-nav ul.open {
    display: flex;
    flex-direction: column;
  }

  .mobile-only {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    display: none;
  }

  .primary-nav ul.open {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}