/* Global layout */
:root {
  color-scheme: light;
  --bg: #f3f5ee;
  --bg-soft: #eef5ec;
  --bg-panel: rgba(255,255,255,0.74);
  --bg-card: #ffffff;
  --border: rgba(17, 49, 38, 0.12);
  --text: #18332d;
  --muted: #536a63;
  --brand: #1f7f63;
  --brand-deep: #0e4c3d;
  --brand-soft: #cfead9;
  --accent: #f2b866;
  --accent-soft: #fff1d9;
  --shadow: 0 18px 48px rgba(18, 46, 40, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(140deg, #eef5ec 0%, #f6f1e7 42%, #edf5f1 100%);
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 18px;
}
button,
.button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  appearance: none;
  border: none;
  cursor: pointer;
}
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 51, 45, 0.08);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.site-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s ease;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-deep);
  background: rgba(31, 127, 99, 0.08);
}
.nav-button {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 0.72rem;
  font-weight: 700;
}
.main-content {
  flex: 1;
}
.page-hero {
  padding: 4rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}
.hero-copy {
  max-width: 620px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  margin: 0 0 1rem;
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}
.button,
.hero-actions .button,
.card-cta a,
.product-actions a,
.form-submit,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-actions .button,
.product-actions a,
.form-submit,
.primary-button {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 14px 24px rgba(31, 127, 99, 0.18);
}
.hero-actions .secondary,
.secondary-button {
  background: rgba(24, 51, 45, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.button:hover,
.card-cta a:hover,
.product-actions a:hover,
.form-submit:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}
.hero-panel {
  position: relative;
  min-height: 360px;
  background: linear-gradient(180deg, rgba(31,127,99,0.2), rgba(17,41,36,0.45)), url('images/industrialmegaarray.jpeg') center/cover no-repeat;
  border-radius: 32px;
  border: 1px solid rgba(17,49,38,0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel-card {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  background: rgba(255,255,255,0.82);
  color: var(--text);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  max-width: 220px;
}
.hero-panel-card p,
.hero-panel-card span {
  margin: 0;
  color: var(--muted);
}
.hero-panel-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}
.stats-bar {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0 2rem;
}
.stat-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.stat-card strong {
  display: block;
  font-size: 1.7rem;
  color: var(--brand-deep);
  margin-bottom: 0.25rem;
}
.stat-card span {
  color: var(--muted);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 127, 99, 0.28);
}
.card-image-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
}
.card-image-link img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.25s ease;
}
.card-image-link:hover img {
  transform: scale(1.03);
}
.card-body {
  padding: 1.5rem;
}
.card-title {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}
.card-price {
  margin: 0.5rem 0 1rem;
  color: var(--brand);
  font-weight: 800;
}
.card-text,
.spec-list,
.summary-copy,
.empty-state,
.checkout-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.card-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.card-cta a,
.card-cta button,
.product-actions a,
.product-actions button,
.mini-button {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(31, 127, 99, 0.08);
  color: var(--brand-deep);
  border: 1px solid rgba(31, 127, 99, 0.12);
}
.card-cta a:last-child,
.card-cta button:last-child,
.product-actions a:last-child,
.product-actions button:last-child {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  border-color: transparent;
}
.confirmation-box .product-actions a.secondary-button {
  background: rgba(24, 51, 45, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.section-title {
  font-size: clamp(1.75rem, 2.2vw, 2.5rem);
  margin: 0 0 1rem;
}
.section-subtitle {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 760px;
}
.panel {
  background: var(--bg-panel);
  border: 1px solid rgba(24, 51, 45, 0.08);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 1.5rem;
}
.feature-block {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem;
}
.feature-block h3 {
  margin-top: 0;
}
.product-detail {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
}
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.spec-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.spec-list li {
  background: rgba(31, 127, 99, 0.06);
  padding: 0.95rem 1rem;
  border-radius: 14px;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}
.similar-card {
  padding: 1.15rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(24, 51, 45, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.similar-card h4 {
  margin: 0;
  font-size: 1rem;
}
.similar-card p {
  margin: 0;
  color: var(--muted);
}
.similar-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(31, 127, 99, 0.08);
  color: var(--brand-deep);
  border: 1px solid rgba(31, 127, 99, 0.12);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.similar-card a:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 24px rgba(31, 127, 99, 0.18);
}
.tag {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.tag.reduced {
  background: #e8f8ef;
  color: #1a6e55;
}
.tag.premium {
  background: #fff1d7;
  color: #905a10;
}
.checkout-layout,
.checkout-box,
.confirmation-box {
  max-width: 1200px;
  margin: 2rem auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr;
}
.checkout-box,
.confirmation-box,
.summary-box {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(24, 51, 45, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.75rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-group label {
  font-weight: 700;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
}
.payment-options {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.payment-options label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(31, 127, 99, 0.04);
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 127, 99, 0.08);
}
.payment-method-note {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(12, 84, 70, 0.06);
  border: 1px solid rgba(31, 127, 99, 0.15);
  color: var(--brand-deep);
  font-size: 0.95rem;
  line-height: 1.55;
}
.summary-list,
.order-items {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.75rem;
}
.summary-list li,
.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(24, 51, 45, 0.08);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(24, 51, 45, 0.08);
}
.summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-deep);
}
.table-shell {
  overflow-x: auto;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th,
.cart-table td {
  padding: 0.9rem 0.7rem;
  border-bottom: 1px solid rgba(24, 51, 45, 0.08);
  text-align: left;
}
.cart-table th {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
}
.qty-control button {
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--brand-deep);
  font-size: 1.2rem;
  cursor: pointer;
}
.qty-control span {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
}
.remove-item {
  background: transparent;
  border: 1px solid rgba(24, 51, 45, 0.12);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.cart-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.empty-state {
  padding: 1rem 0;
  font-style: italic;
}
.success-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}
.order-status h2 {
  text-align: center;
}
.confirmation-details {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  margin: 1.5rem 0;
}
.detail-box {
  background: rgba(31, 127, 99, 0.05);
  border: 1px solid rgba(31, 127, 99, 0.08);
  border-radius: 18px;
  padding: 1rem;
}
.detail-box span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.detail-box strong {
  font-size: 1.02rem;
}
.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  background: var(--brand-deep);
  color: white;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 50;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.footer {
  padding: 2rem 2rem 1rem;
  background: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(24, 51, 45, 0.08);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.footer p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 900px) {
  .page-hero,
  .checkout-layout,
  .checkout-box,
  .confirmation-box,
  .feature-grid,
  .confirmation-details {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    min-height: 260px;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding: 2rem 1.5rem;
  }
  .stats-bar {
    padding: 0 1.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .site-header {
    padding: 1rem 1rem;
  }
  .hero-copy h1 {
    font-size: 2.5rem;
  }
  .card-cta,
  .product-actions,
  .cart-footer {
    justify-content: center;
  }
  .site-nav {
    gap: 0.4rem;
  }
}