/* ===============================
   Global
   =============================== */
:root {
  --brand: #00a8b8;
  --brand-soft: #e0f7fa;
  --brand-dark: #007486;
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --text: #1a2833;
  --muted: #6b7a8a;
  --border: #dde3ec;
  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(15, 42, 70, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Inter", sans-serif;
  background: radial-gradient(circle at top left, #f0fbff 0, #f5f7fb 40%, #edf1f8 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===============================
   Layout helpers
   =============================== */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
  padding: 10px 0 50px;
}

.section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  flex-wrap: wrap;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-dark);
  font-weight: 600;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: #0c1721;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
}

.section-tag {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===============================
   Header / Navigation
   =============================== */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid rgba(221, 227, 236, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 38px;
}

.nav-logo img {
  height: 100%;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-brand-text span:first-child {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--brand-dark);
}

.nav-brand-text span:last-child {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--brand-dark);
  font-weight: 500;
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn,
.btn-ghost {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background-color 0.12s ease-out, border-color 0.12s ease-out,
    color 0.12s ease-out;
}

.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 2px 2px rgba(0, 168, 184, 0.35);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 2px rgba(0, 168, 184, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 168, 184, 0.18);
  color: var(--brand-dark);
}

.btn-ghost:hover {
  background: #ffffff;
  border-color: rgba(0, 168, 184, 0.35);
}

/* Mobile nav button */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  padding: 6px;
  border-radius: 999px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: inherit;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ===============================
   Hero variants
   =============================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 10px 20px 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.hero--simple {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 10px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 168, 184, 0.06);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw + 1.2rem, 2.8rem);
  line-height: 1.1;
  margin-bottom: 14px;
  color: #0c1721;
}

.hero-highlight {
  background: radial-gradient(circle at 0 0, #e0f7fa, transparent 65%);
  padding: 0 3px;
  border-radius: 6px;
  box-decoration-break: clone;
}

.hero-body {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-right {
  position: relative;
}

.hero-card {
  background: var(--bg-alt);
  border-radius: 26px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d5e0f0;

}

.hero-chip {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.metric {
  background: #f7fafc;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(221, 227, 236, 0.9);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.metric-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.metric-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card-footer {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===============================
   Cards & grids
   =============================== */

.card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px 22px;
  box-shadow: 0 12px 30px rgba(12, 23, 33, 0.04);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #0c1721;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 500;
}

.pillar-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 0 0 4px rgba(0, 168, 184, 0.12);
  flex-shrink: 0;
}

.pillar-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: #0c1721;
}

.pillar-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--muted);
}

/* Stats */
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-body {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===============================
   Careers section & job card
   =============================== */

.careers-section {
  background: #0b1722;
  color: #f5f7fb;
  position: relative;
  overflow: hidden;
  margin: 0 0 20px 0;
  padding: 40px 0 50px;
}

.careers-section::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 168, 184, 0.28), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(0, 168, 184, 0.22), transparent 50%),
    radial-gradient(circle at 50% 120%, rgba(0, 168, 184, 0.2), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.careers-inner {
  position: relative;
  z-index: 1;
}

.careers-header p {
  color: #d5e0f0;
}

.career-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 12px;
}

.career-intro {
  font-size: 0.96rem;
  color: #d5e0f0;
  max-width: 540px;
  margin-bottom: 16px;
}

.career-note {
  font-size: 0.85rem;
  color: #a9b9cf;
}

.job-card {
  background: rgba(9, 24, 36, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(109, 175, 190, 0.6);
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.job-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.job-meta {
  font-size: 0.8rem;
  color: #9cb6ce;
  margin-bottom: 10px;
}

.job-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.job-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 168, 184, 0.5);
  font-size: 0.78rem;
  color: #e0f7fa;
}

.job-body {
  font-size: 0.9rem;
  color: #d5e0f0;
  margin-bottom: 12px;
}

.job-list {
  font-size: 0.86rem;
  color: #b3c5da;
  margin-left: 16px;
  margin-bottom: 10px;
}

.job-list li {
  margin-bottom: 4px;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #9cb6ce;
}

.job-footer strong {
  color: #e0f7fa;
}

/* ===============================
   Contact / Forms
   =============================== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.9rem;
  background: #ffffff;
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out,
    background-color 0.12s ease-out;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(0, 168, 184, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 168, 184, 0.12);
  background: #fbfeff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-list {
  font-size: 0.9rem;
  color: var(--muted);
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.contact-list span {
  font-weight: 500;
  color: var(--text);
}

.small-text {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===============================
   Footer
   =============================== */

footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px 22px;
  background: rgba(255, 255, 255, 0.92);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-right a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 34px;
  }

  .hero-right {
    order: -1;
  }

  .grid-3,
  .grid-2,
  .career-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav {
    padding-inline: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-open .nav-links,
  .nav-open .nav-cta {
    display: flex;
  }

  .nav-open {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  main {
    padding-top: 30px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 16px;
  }

  .card,
  .hero-card {
    padding-inline: 16px;
  }
}

/* Dark hero variant for any page using the careers background */
.home-hero .hero-title,
.dark-hero .hero-title {
  color: #ffffff;
}

.home-hero .hero-body,
.home-hero .hero-note,
.dark-hero .hero-body,
.dark-hero .hero-note {
  color: #d5e0f0;
}

.home-hero .hero-eyebrow,
.dark-hero .hero-eyebrow {
  background: rgba(0, 168, 184, 0.24);
  color: #e0f7fa;
}

/* Make the hero info card match the dark theme nicely */
.home-hero .hero-card,
.dark-hero .hero-card {
  background: rgba(9, 24, 36, 0.96);
  border-color: rgba(109, 175, 190, 0.6);
}

.home-hero .metric,
.dark-hero .metric {
  background: rgba(8, 20, 32, 0.96);
  border-color: rgba(109, 175, 190, 0.6);
}

.home-hero .metric-label,
.home-hero .metric-tagline,
.home-hero .hero-card-footer,
.dark-hero .metric-label,
.dark-hero .metric-tagline,
.dark-hero .hero-card-footer {
  color: #9cb6ce;
}

.home-hero .metric-value,
.dark-hero .metric-value {
  color: #e0f7fa;
}

/* Ensure the inner hero stays centered inside the dark band */
.hero.home-hero,
.hero.dark-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}

.cart-items-list {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  max-height: 180px;
  overflow-y: auto;
}

.cart-items-list em {
  color: var(--muted);
}

/* ===============================
   Store / eCommerce layout
   =============================== */

/* Make the store section a bit wider */
.store-section .container {
  max-width: 1480px;
}

/* Main layout panel */
.store-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 2.4fr) 260px;
  grid-template-areas: "filters products cart";
  gap: 24px;
  align-items: flex-start;

  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 20px 22px 24px;
  box-shadow: 0 18px 40px rgba(12, 23, 33, 0.08);
  border: 1px solid var(--border);
}

/* Map children into grid areas */
.store-filters {
  grid-area: filters;
}

.store-products {
  grid-area: products;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-summary {
  grid-area: cart;
}

/* Filters */

.store-filters h3 {
  margin-bottom: 10px;
}

.store-filter-group {
  margin-bottom: 10px;
}

.store-filter-group label {
  display: block;
  margin-bottom: 4px;
}

.store-filter-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* Product headings & sections */

.store-section-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0c1721;
  margin-bottom: 6px;
}

/* Subtle divider between product sections */
.store-products .store-section-heading + .product-grid {
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  margin-top: 6px;
}

.store-products .store-section-heading:first-of-type + .product-grid {
  border-top: none;
  padding-top: 4px;
}

/* Product grid:
   - 2 columns by default
   - 3 columns only on large desktops */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Product card */

.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(12, 23, 33, 0.04);
  overflow: hidden;
}

.product-image {
  position: relative;
  padding: 14px 16px 0;
}

.product-image-placeholder,
.product-image img {
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2433, #004c57);
  color: #e0f7fa;
  font-size: 0.8rem;
  font-weight: 500;

  min-height: 110px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-image img {
  object-fit: cover;
}

/* Highlight pills */

.product-pill {
  position: absolute;
  top: 16px;
  right: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 168, 184, 0.18);
  color: #e0f7fa;
  font-size: 0.75rem;
  font-weight: 500;
}

.product-pill--subtle {
  top: auto;
  bottom: 16px;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.35);
}

/* Card body */

.product-body {
  padding: 10px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: #0c1721;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 500;
}

/* Price / SKU stack */

.product-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 0.86rem;
  margin-top: 4px;
}

.product-price {
  font-weight: 700;
  color: var(--brand-dark);
}

.product-sku {
  color: var(--muted);
  font-size: 0.8rem;
}

.product-btn {
  margin-top: 6px;
  justify-content: center;
  width: 100%;
}

/* Cart summary sidebar */

.cart-summary h3 {
  margin-bottom: 8px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-top: 6px;
  color: var(--text);
}

.cart-summary-row + .cart-summary-row {
  border-top: 1px dashed var(--border);
  padding-top: 6px;
}

.cart-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.cart-items-list {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  max-height: 180px;
  overflow-y: auto;
}

.cart-items-list em {
  color: var(--muted);
}

/* Lines inside the small cart summary */

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
}

.cart-line-main {
  font-size: 0.8rem;
}

.cart-remove {
  border: none;
  background: none;
  color: var(--brand-dark);
  text-decoration: underline;
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0;
}

/* ===============================
   Modal (Review order)
   =============================== */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 15, 24, 0.55);
}

.modal-dialog {
  position: relative;
  max-width: 900px;
  width: min(900px, 100% - 32px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(12, 23, 33, 0.35);
  padding: 18px 20px 16px;
  z-index: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.modal-body {
  max-height: 60vh;
  overflow: auto;
}

/* Table in modal */

.modal-cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.modal-cart-table th,
.modal-cart-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.modal-cart-img img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
}

.modal-sku {
  font-size: 0.78rem;
  color: var(--muted);
}

.empty-cell {
  text-align: center;
  color: var(--muted);
}

/* Modal footer */

.modal-cart-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.modal-total {
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

/* Quantity buttons in modal */

.qty-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  width: 24px;
  height: 24px;
  font-size: 0.9rem;
  background: #f5f7fb;
  cursor: pointer;
}

.qty-value {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.modal-remove {
  border: none;
  background: none;
  color: var(--brand-dark);
  text-decoration: underline;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
}

body.modal-open {
  overflow: hidden;
}

/* ===============================
   Responsive behavior
   =============================== */

/* Large desktop: more roomy middle column + 3-card rows */
@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-layout {
    grid-template-columns: 240px minmax(0, 2.8fr) 260px;
  }
}

/* Medium screens: 2 columns (filters + products), cart below */
@media (max-width: 1100px) {
  .store-layout {
    grid-template-columns: 240px minmax(0, 1.8fr);
    grid-template-areas:
      "filters products"
      "cart cart";
  }
}

/* Mobile: single column stack: filters → products → cart */
@media (max-width: 768px) {
  .store-section .container {
    padding-inline: 0;
  }

  .store-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "filters"
      "products"
      "cart";
    padding: 16px 16px 20px;
    border-radius: 0;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-dialog {
    width: 100%;
    max-width: none;
    border-radius: 0;
    max-height: 100%;
  }

  .modal-body {
    max-height: calc(100vh - 140px);
  }
}


.modal-contact {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.modal-contact h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.modal-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-bottom: 8px;
}

.modal-contact-grid label {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-contact-grid input {
  font-size: 0.9rem;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.modal-notes-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.modal-notes-label textarea {
  font-size: 0.9rem;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  resize: vertical;
}

@media (max-width: 768px) {
  .modal-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================
   MOBILE NAV — Vertical + slide-down
   ============================*/
@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  /* Base layout for links/CTA in mobile */
  .nav-links,
  .nav-cta {
    width: 100%;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;

    /* Slide-down animation setup */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition:
      max-height 0.5s ease,
      opacity 0.2s ease,
      transform 0.5s ease;
    pointer-events: none;
  }

  /* Links and CTAs as flex containers in mobile */
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: flex;
    gap: 10px;
    margin-top: 8px;
  }

  /* When nav is open: expand + fade/slide in */
  .nav.nav-open .nav-links,
  .nav.nav-open .nav-cta {
    max-height: 400px; /* big enough to show all items */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Hamburger button visible on mobile */
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links a,
  .nav-cta a {
    font-size: 1.05rem;
    text-align: center;
    padding: 10px 0;
  }
}

.card-media {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #e9eef7;
}

.card-media img {
  display: block;
  width: 100%;
  height: auto;
}




