/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(64px, 8vw, 80px);
  z-index: 800;
  display: flex;
  align-items: center;
  padding: 0 var(--container-pad);
  background: white; /* Default background */
  transition:
    all var(--transition-normal),
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.nav.nav-hidden {
  transform: translateY(-110%) !important;
}
.nav.transparent {
  background: transparent;
}
.nav.scrolled,
.nav.nav-solid {
  background: white;
}
.nav.transparent .nav-link {
  color: white;
  opacity: 0.9;
}
.nav.transparent .nav-brand {
  color: white;
}

.nav.scrolled {
  background: transparent;
  padding-top: 16px;
}
.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  padding: 10px 24px;
  width: auto;
  min-width: 800px;
  max-width: fit-content;
  margin: 0 auto;
}
.nav.scrolled .nav-link,
.nav.nav-solid .nav-link {
  color: var(--color-text);
}
.nav.scrolled .nav-brand,
.nav.nav-solid .nav-brand {
  color: var(--color-green-deep);
}
.nav.scrolled .nav-global,
.nav.nav-solid .nav-global {
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--color-text);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  gap: var(--space-6);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand img {
  height: 36px;
  width: auto;
}
.nav-brand-text span {
  font-weight: 800;
  background: linear-gradient(to right, #6dbf3e, #10b981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2px;
}
.nav.transparent .nav-brand img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-link {
  font-family: var(--font-display);
  font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  font-weight: 500;
  color: white;
  transition: all var(--transition-fast);
  padding: 8px 18px;
  border-radius: 100px;
  text-decoration: none;
  background: transparent;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}
.nav:not(.scrolled) .nav-link:hover,
.nav:not(.scrolled) .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}
.nav-link::after {
  display: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cta {
  background: #022c22; /* Darkest Emerald from variables as navy-replacement */
  color: white;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-cta:hover {
  background: #064e3b;
  transform: translateY(-1px);
  color: white;
}

.nav-global {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-global svg {
  opacity: 0.85;
}
.nav-global:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  color: currentColor;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--color-navy);
  z-index: 799;
  padding: 96px 32px 32px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
}
.nav-drawer.open {
  right: 0;
}
.nav-drawer .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
}
.nav-drawer .nav-link::after {
  display: none;
}
.nav-drawer .nav-cta {
  margin-top: var(--space-4);
  text-align: center;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 798;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.show {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 1023px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: clamp(12px, 1.5vw, 20px);
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-teal-mid);
}

.product-card-image {
  aspect-ratio: 1 / 1;
  background: var(--color-offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-image-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.product-card:hover .product-card-image img {
  transform: scale(1.08);
}
.overlay-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.product-placeholder-icon {
  font-size: 3rem;
  opacity: 0.4;
}
.product-new-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-lime);
  color: white;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card-body {
  padding: var(--space-xs) var(--space-sm) var(--space-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px; /* Denser vertical spacing */
  border-top: 1px solid var(--color-border);
}

.product-name {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 2px;
}
.product-name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.product-name a:hover {
  color: var(--color-teal-mid);
}
.product-tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.4;
  margin-bottom: 4px;
}
.product-data-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.product-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}
.product-actions .btn-secondary,
.product-actions .btn-primary {
  flex: 1;
  min-width: 0; /* Allow shrinking */
  text-align: center;
  font-size: 10px !important; /* Smaller font for dense grids */
  padding: 8px 4px !important; /* Minimal padding */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Skeleton */
.product-card.skeleton {
  pointer-events: none;
}
.skeleton-block {
  background: linear-gradient(90deg, #edf2f4 25%, #e0eaf0 50%, #edf2f4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-img {
  height: 160px;
  border-radius: 0;
}
.skeleton-line {
  height: 13px;
  margin: 6px 0;
}
.skeleton-line.s {
  width: 35%;
}
.skeleton-line.m {
  width: 65%;
}
.skeleton-line.l {
  width: 90%;
}

/* ── DIAGONAL CUTS ── */
.diagonal-down {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
  padding-bottom: calc(var(--space-section) + 56px);
}
.diagonal-up {
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--space-section) + 56px);
  margin-top: -56px;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--color-navy);
  padding: clamp(32px, 5vw, 64px) 0;
  position: relative;
  overflow: hidden;
}
.stats-bar.diagonal-up {
  padding-top: 80px; /* Reduced from default diagonal-up to fit content better */
}
.stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(109, 191, 62, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 191, 62, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: 0 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.stat-item:last-child {
  border-right: none;
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--color-lime);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
  display: block;
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 24px;
  }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }
}

/* ── ORDER MODAL ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.open {
  display: flex;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 30, 38, 0.7);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-radius: clamp(12px, 1.5vw, 20px);
  padding: var(--space-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 16px;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.modal-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-text);
}
.modal-close {
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-subtext);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.modal-close:hover {
  background: var(--color-ice);
}

.selected-product-panel {
  background: var(--color-ice);
  border: 1px solid var(--color-frost);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-teal-mid);
}

.form-group {
  margin-bottom: var(--space-4);
}
.form-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-teal-mid);
  box-shadow: 0 0 0 3px rgba(23, 122, 138, 0.12);
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.form-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

@media (max-width: 479px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-box {
    padding: 24px 20px;
  }
}

/* ── FOOTER ── */
.footer {
  background: var(--color-navy);
  padding: var(--space-xl) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand img {
  height: 40px;
  margin-bottom: var(--space-4);
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin-bottom: var(--space-5);
  line-height: 1.4;
}
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  background: var(--color-lime);
  border-color: var(--color-lime);
  color: white;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-4);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--color-lime);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.footer-contact-item .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-item .value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}
.footer-contact-item .value a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact-item .value a:hover {
  color: var(--color-lime);
}

.footer-bottom {
  padding: var(--space-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
}
.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}
.footer-bottom-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition-fast);
}
.footer-bottom-links a:hover {
  color: var(--color-lime);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}
@media (max-width: 639px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ── FILTER TABS ── */
.filter-bar {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.filter-tab {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-subtext);
  background: var(--color-offwhite);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.filter-tab:hover {
  border-color: var(--color-teal-mid);
  color: var(--color-teal-mid);
}
.filter-tab.active {
  background: var(--color-teal-mid);
  border-color: var(--color-teal-mid);
  color: white;
}
.filter-count {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
}
.filter-tab:not(.active) .filter-count {
  background: var(--color-frost);
  color: var(--color-teal-mid);
}

/* ── USP STRIP ── */
.usp-strip {
  background: var(--color-offwhite);
  border-top: 2px solid var(--color-lime);
  padding: var(--space-xl) 0;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}
.usp-item {
  padding: var(--space-md);
  border-right: 1px solid var(--color-border);
}
.usp-item:last-child {
  border-right: none;
}
.usp-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-3);
}
.usp-title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.usp-desc {
  font-size: var(--fs-sm);
  color: var(--color-subtext);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .usp-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .usp-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}
@media (max-width: 479px) {
  .usp-grid {
    grid-template-columns: 1fr;
  }
  .usp-item:last-child {
    border-bottom: none;
  }
}
