/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f8faf6;
  color: #1f2a24;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

html.hash-landing {
  scroll-behavior: auto !important;
}

html.hash-landing body {
  visibility: hidden;
}

body,
main {
  max-width: 100%;
}

:where(section, article, div, form, aside, nav, header, footer, ul, li) {
  min-width: 0;
}

:where(h1, h2, h3, p, a, span, strong, small, label, button) {
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

body::before {
  background: #ffffff;
  content: "";
  display: block;
  height: 64px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* HEADER */
.site-header {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 1px 0 rgba(31, 42, 36, 0.08);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.navbar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  margin: 0 auto;
  max-width: 1180px;
  padding: 10px 24px;
  position: relative;
}

.logo {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  overflow: hidden;
}

.logo img {
  height: 43px;
  object-fit: contain;
  width: 80px;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 4px;
}

.nav-search {
  align-items: center;
  display: flex;
  flex: 0 0 42px;
  margin-left: 0;
  max-width: 42px;
  min-width: 42px;
  position: relative;
  transition: max-width 0.2s ease, flex-basis 0.2s ease;
}

.nav-search input {
  border: 1px solid #d8ded9;
  border-radius: 12px 0 0 12px;
  border-right: none;
  display: none;
  font-size: 14px;
  height: 38px;
  min-width: 0;
  padding: 0 12px;
}

.nav-search input:focus {
  border-color: #2eace2;
  box-shadow: 0 0 0 3px rgba(46, 172, 226, 0.18);
  outline: none;
}

.nav-search button {
  background: transparent;
  border: none;
  border-radius: 999px;
  color: #1f2a24;
  cursor: pointer;
  flex: 0 0 38px;
  font-size: 0;
  font-weight: 800;
  height: 38px;
  padding: 0;
  position: relative;
  width: 38px;
}

.nav-search button::before {
  --search-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.1 15.1 21 21'/%3E%3C/svg%3E");
  -webkit-mask: var(--search-symbol) center / contain no-repeat;
  background: currentColor;
  content: "";
  height: 24px;
  left: 50%;
  mask: var(--search-symbol) center / contain no-repeat;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
}

.nav-search button:hover {
  background-color: #ebf7fd;
  color: #1f2a24;
}

.nav-search.search-open {
  flex-basis: 320px;
  max-width: 320px;
  min-width: 220px;
}

.nav-search.search-open input {
  display: block;
  flex: 1 1 auto;
}

.nav-search.search-open button {
  border-radius: 0 12px 12px 0;
  flex-basis: 38px;
}

.nav-search.search-open button::before,
.nav-search.search-open button::after {
  -webkit-mask: none;
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: calc(50% - 7px);
  mask: none;
  position: absolute;
  top: calc(50% - 1px);
  transform: rotate(-45deg);
  transform-origin: center;
  width: 14px;
}

.nav-search.search-open button::after {
  transform: rotate(45deg);
}

.nav-links {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: #1f2a24;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover {
  color: #2eace2;
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: none;
  color: #1f2a24;
  cursor: pointer;
  display: none;
  font-size: 0;
  justify-content: center;
}

.menu-toggle::before {
  background: #1f2a24;
  box-shadow: 0 -8px 0 #1f2a24, 0 8px 0 #1f2a24;
  content: "";
  display: inline-block;
  height: 2px;
  width: 24px;
}

/* CART ICON */
.cart-icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #1f2a24;
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
}

.cart-icon-button:hover {
  background: rgba(46, 172, 226, 0.08);
  border-color: rgba(46, 172, 226, 0.28);
  color: #2eace2;
}

.cart-icon {
  font-size: 20px;
  line-height: 1;
}

.cart-badge {
  background: #f06b5f;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  display: none;
  font-size: 13px;
  font-weight: 800;
  height: 22px;
  line-height: 22px;
  min-width: 22px;
  padding: 0 6px;
  position: absolute;
  right: -7px;
  text-align: center;
  top: -7px;
}

.cart-badge.show {
  display: block;
}

.language-switcher {
  flex: 0 0 auto;
  position: relative;
}

.language-switcher summary,
.language-options button {
  align-items: center;
  color: #1f2a24;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  min-height: 44px;
}

.language-switcher summary {
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  gap: 5px;
  justify-content: center;
  list-style: none;
  min-width: 44px;
  padding: 0 5px;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
  height: 5px;
  transform: rotate(45deg) translateY(-2px);
  width: 5px;
}

.language-switcher[open] summary,
.language-switcher summary:hover {
  background: #ebf7fd;
  border-color: #c2e8f7;
}

.language-options {
  background: #ffffff;
  border: 1px solid #d8ded9;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(31, 42, 36, 0.16);
  min-width: 144px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 140;
}

.language-options button {
  background: transparent;
  border: none;
  border-radius: 8px;
  justify-content: space-between;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.language-options button:hover,
.language-options button[aria-pressed="true"] {
  background: #ebf7fd;
}

.language-options button[aria-pressed="true"]::after {
  color: #2f7f39;
  content: "✓";
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
  align-items: center;
  appearance: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  hyphens: none;
  justify-content: center;
  line-height: 1.2;
  max-width: 100%;
  min-height: 52px;
  overflow-wrap: normal;
  padding: 14px 24px;
  text-align: center;
  white-space: normal;
  word-break: normal;
}

.btn-primary {
  background: #2eace2;
  border: 2px solid transparent;
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  border: 2px solid #2eace2;
  color: #2eace2;
}

.full-width {
  width: 100%;
}

.centered-button {
  margin-top: 26px;
}

/* HERO */
.hero {
  align-items: center;
  background: #07202b;
  color: #ffffff;
  display: flex;
  isolation: isolate;
  min-height: clamp(500px, 68vh, 660px);
  overflow: hidden;
  padding: 78px 24px;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(7, 32, 43, 0.8), rgba(7, 32, 43, 0.58) 48%, rgba(7, 32, 43, 0.12)),
    linear-gradient(180deg, rgba(7, 32, 43, 0.18), rgba(7, 32, 43, 0.46));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-slideshow {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero-slideshow span {
  animation: heroFade 18s ease-in-out infinite;
  filter: brightness(1.12) saturate(1.04);
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.04);
}

.hero-slideshow picture,
.products-hero-slideshow picture {
  display: block;
  height: 100%;
  width: 100%;
}

.hero-slideshow img,
.products-hero-slideshow img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-slideshow span:nth-child(1) {
  animation-delay: -0.7s;
}

.hero-slideshow span:nth-child(2) {
  animation-delay: 6s;
}

.hero-slideshow span:nth-child(3) {
  animation-delay: 12s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }

  8%,
  28% {
    opacity: 1;
  }

  38%,
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow span {
    animation: none;
  }

  .hero-slideshow span:not(:first-child) {
    display: none;
  }

  .hero-slideshow span:first-child {
    opacity: 1;
  }
}

.hero-content {
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero-content > * {
  max-width: 720px;
}

.eyebrow {
  color: #2f8f3a;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  margin-bottom: 20px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 24px;
}

.hero .eyebrow {
  color: #c9efff;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  min-height: 44px;
  padding: 10px 18px;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
}

/* SECTIONS */
.features,
.products-section,
.split-section,
.shipping-section,
.custom-solutions-section,
.location-section,
.contact-section,
.page-hero,
.products-list-heading,
.store-toolbar,
.store-grid,
.cart-page,
.checkout-layout,
.payment-layout {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
}

section[id] {
  scroll-margin-top: 96px;
}

#solution,
#about,
#contact,
#location {
  scroll-margin-top: 24px;
}

.features {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 24px;
  padding-top: 24px;
}

.feature-card,
.product-card,
.summary-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
  padding: 24px;
}

.feature-card h3 {
  color: #2f8f3a;
  margin-bottom: 8px;
}

.products-section,
.split-section,
.shipping-section,
.custom-solutions-section,
.location-section,
.contact-section {
  padding-bottom: 70px;
  padding-top: 70px;
}

.products-section h2,
.split-section h2,
.shipping-section h2,
.custom-solutions-section h2,
.location-section h2,
.contact-section h2,
.page-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 24px;
}

.page-hero {
  padding-bottom: 35px;
  padding-top: 70px;
  text-align: center;
}

.page-hero.compact {
  padding-bottom: 20px;
}

.products-hero {
  background: #07202b;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  justify-content: center;
  max-width: none;
  min-height: clamp(360px, 48vh, 520px);
  overflow: hidden;
  padding-bottom: 86px;
  padding-top: 86px;
  position: relative;
}

.products-hero::before {
  background:
    linear-gradient(90deg, rgba(7, 32, 43, 0.82), rgba(7, 32, 43, 0.52) 48%, rgba(7, 32, 43, 0.18)),
    linear-gradient(180deg, rgba(7, 32, 43, 0.2), rgba(7, 32, 43, 0.48));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.products-hero > :not(.products-hero-slideshow) {
  position: relative;
  z-index: 2;
}

.products-hero-slideshow {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.products-hero-slideshow span {
  filter: brightness(1.16) saturate(1.05);
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.04);
  animation: productsHeroFade 30s ease-in-out infinite;
}

.products-hero-slideshow span:nth-child(1) {
  animation-delay: -1.4s;
}

.products-hero-slideshow span:nth-child(2) {
  animation-delay: 3.6s;
}

.products-hero-slideshow span:nth-child(3) {
  animation-delay: 8.6s;
}

.products-hero-slideshow span:nth-child(4) {
  animation-delay: 13.6s;
}

.products-hero-slideshow span:nth-child(5) {
  animation-delay: 18.6s;
}

.products-hero-slideshow span:nth-child(6) {
  animation-delay: 23.6s;
}

@keyframes productsHeroFade {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }

  4%,
  14% {
    opacity: 1;
  }

  20%,
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-hero-slideshow span {
    animation: none;
  }

  .products-hero-slideshow span:not(:first-child) {
    display: none;
  }

  .products-hero-slideshow span:first-child {
    opacity: 1;
  }
}

.products-hero .eyebrow {
  color: #c9efff;
}

.products-hero h1,
.products-hero p {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.products-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.products-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 0;
}

.split-section {
  display: block;
  max-width: 1180px;
}

.split-section > div {
  max-width: 860px;
}

.services-list {
  margin-top: 26px;
}

.services-list h3 {
  color: #1f2a24;
  font-size: 22px;
  margin-bottom: 16px;
}

.services-list ul {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.services-list li {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8f1fb;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(31, 42, 36, 0.05);
  color: #1f2a24;
  display: flex;
  font-weight: 700;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
}

.services-list li::before {
  align-items: center;
  background: #ebf7fd;
  border-radius: 999px;
  color: #2eace2;
  content: "✓";
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 15px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.custom-solutions-section {
  display: grid;
  gap: 26px;
}

.custom-solutions-header {
  max-width: 780px;
}

.custom-solutions-section:not(.products-custom-solutions) .custom-solutions-header {
  max-width: 1120px;
}

.custom-solutions-header p:not(.eyebrow) {
  color: #53635a;
  font-size: 17px;
}

.custom-solution-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-custom-grid {
  grid-template-columns: 1fr;
}

.custom-solution-side-stack {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.custom-solution-side-stack .custom-solution-card,
.custom-solution-main-card {
  align-items: start;
  column-gap: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
}

.custom-solution-side-stack .custom-solution-card {
  align-content: start;
}

.custom-solution-side-stack .custom-solution-number,
.custom-solution-main-card .custom-solution-number {
  margin-bottom: 0;
}

.custom-solution-side-stack .custom-solution-card h3,
.custom-solution-main-card h3 {
  margin-bottom: 0;
}

.custom-solution-side-stack .custom-solution-card p {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.custom-card-button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 14px;
}

.custom-solution-main-card .custom-service-columns {
  grid-column: 1 / -1;
}

.custom-solution-card {
  background: #ffffff;
  border: 1px solid #d8f1fb;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(31, 42, 36, 0.06);
  min-height: 210px;
  padding: 24px;
}

.custom-solution-number {
  align-items: center;
  background: #ebf7fd;
  border-radius: 999px;
  color: #2eace2;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin-bottom: 22px;
  width: 38px;
}

.custom-solution-card h3 {
  color: #1f2a24;
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.custom-solution-side-stack .custom-solution-card h3 {
  overflow-wrap: normal;
}

.custom-solution-card p {
  color: #53635a;
}

.custom-service-columns {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-cut-list-heading {
  align-items: flex-end;
  color: #1f2a24;
  display: flex;
  font-size: 15px;
  line-height: 1.25;
  margin-top: 16px;
  min-height: 38px;
}

.custom-cut-product-list {
  color: #1f2a24;
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 7px;
  grid-template-columns: 1fr;
  list-style: none;
  margin-top: 14px;
}

.custom-cut-product-list li {
  align-items: flex-start;
  display: flex;
  gap: 7px;
}

.custom-cut-product-list li::before {
  align-items: center;
  background: #ebf7fd;
  border: 1px solid #b9e4f6;
  border-radius: 4px;
  color: #2eace2;
  content: "✓";
  display: inline-flex;
  flex: 0 0 18px;
  font-size: 12px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.custom-solution-cta,
.custom-solution-actions {
  justify-self: start;
}

.custom-solution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.products-custom-solutions {
  align-items: center;
  gap: 18px;
  grid-template-columns: minmax(240px, 0.8fr) minmax(500px, 1.5fr);
  padding-bottom: 12px;
  padding-top: 32px;
}

.products-custom-solutions .custom-solutions-header {
  grid-row: 1 / span 2;
}

.products-custom-solutions .custom-solution-grid,
.products-custom-actions {
  grid-column: 2;
}

.products-list-heading {
  padding-bottom: 0;
  padding-top: 26px;
}

.products-list-title {
  color: #2f8f3a;
  margin-bottom: 0;
}

.products-list-heading + .store-toolbar {
  padding-top: 10px;
}

.products-custom-solutions h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 10px;
}

.products-custom-solutions .custom-solutions-header p:not(.eyebrow) {
  font-size: 15px;
  margin-bottom: 0;
}

.products-custom-solutions .custom-solution-grid {
  gap: 12px;
}

.products-custom-solutions .custom-solution-card {
  min-height: 0;
  padding: 16px;
}

.products-custom-solutions .custom-solution-number {
  font-size: 12px;
  height: 30px;
  margin-bottom: 10px;
  width: 30px;
}

.products-custom-solutions .custom-solution-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.products-custom-solutions .custom-solution-card p {
  font-size: 14px;
  line-height: 1.45;
}

.products-custom-solutions .custom-solution-cta {
  white-space: nowrap;
}

.products-custom-actions {
  justify-self: start;
}

.products-custom-solutions .products-custom-actions {
  white-space: nowrap;
}

.location-heading {
  margin-bottom: 28px;
  max-width: 760px;
}

.location-address {
  font-size: 18px;
  font-weight: 800;
  margin-top: 12px;
}

.location-address a {
  color: #1f2a24;
  text-decoration: underline;
  text-decoration-color: #2eace2;
  text-underline-offset: 4px;
}

.location-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.location-map-links a {
  background: #ebf7fd;
  border: 1px solid #b9e4f6;
  border-radius: 999px;
  color: #2d5d74;
  font-size: 14px;
  font-weight: 900;
  padding: 9px 14px;
}

.map-card {
  background: #ffffff;
  border: 1px solid #d8ded9;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.1);
  height: 520px;
  overflow: hidden;
  position: relative;
}

.map-card iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

/* PRODUCTS */
.product-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.store-category-heading {
  border-bottom: 2px solid #d8f1fb;
  color: #1f2a24;
  font-size: 26px;
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding-bottom: 10px;
  scroll-margin-top: 96px;
}

.store-category-heading:first-child {
  margin-top: 0;
}

.store-grid {
  padding-bottom: 80px;
  padding-left: 16px;
  padding-right: 16px;
}

.store-toolbar {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  padding-bottom: 24px;
  padding-top: 30px;
}

.store-toolbar input:focus,
.store-toolbar select:focus {
  border-color: #2eace2;
  box-shadow: 0 0 0 3px rgba(46, 172, 226, 0.18);
  outline: none;
}

.product-card-media {
  background: #f8faf6;
  border-radius: 14px;
  display: block;
  height: 210px;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.product-card-media::after {
  align-items: center;
  background: rgba(31, 42, 36, 0.62);
  border-radius: 14px;
  color: #ffffff;
  content: "View Product";
  display: flex;
  font-size: 15px;
  font-weight: 900;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transition: opacity 0.2s ease;
}

html[lang="es"] .product-card-media::after {
  content: "Ver producto";
}

.product-card:hover > .product-card-media::after,
.product-card:focus-within > .product-card-media::after {
  opacity: 1;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-media img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.product-card img.product-card-image-contain {
  padding: 8px;
}

.product-card img.product-card-image-top {
  object-position: center top;
}

@media (max-width: 650px) {
  .product-card-media {
    height: clamp(210px, 64vw, 300px);
  }
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-title-link:hover {
  color: #2eace2;
}

.product-card p {
  color: #53635a;
  margin-bottom: 12px;
}

.product-card-highlights {
  display: grid;
  gap: 7px;
  list-style: none;
  margin-bottom: 14px;
}

.product-card-highlights li {
  color: #53635a;
  font-size: 15px;
  line-height: 1.4;
  padding-left: 22px;
  position: relative;
}

.product-card-highlights li::before {
  color: #2eace2;
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
  top: 0;
}

.product-card .btn-primary,
.product-card .btn-secondary {
  width: 100%;
}

.product-card-action {
  margin-top: 0;
  text-align: center;
}

.product-card .product-card-action-compact {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 18px;
  width: auto;
}

.product-card.no-price .product-card-action {
  margin-top: auto;
}

.product-price {
  color: #1f2a24;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 14px;
}

.product-card.has-price .product-price {
  margin-top: auto;
}

.product-detail-section {
  margin: 0 auto;
  max-width: none;
  padding: 44px 0 90px;
}

.product-breadcrumb {
  align-items: center;
  color: #2eace2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 800;
  margin: 0 auto 26px;
  max-width: 1180px;
  padding: 0 24px;
}

.product-breadcrumb span:last-child {
  color: #53635a;
  font-weight: 700;
}

.cart-breadcrumb {
  padding-top: 36px;
}

.product-detail-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(320px, 1.1fr) minmax(260px, 0.8fr) minmax(330px, 1fr);
  margin: 0 auto;
  max-width: 1560px;
  padding: 0 24px;
}

.product-gallery {
  padding: 0;
  width: 100%;
}

.product-carousel-main {
  border-radius: 8px;
  display: grid;
  margin: 0 auto;
  max-width: none;
  min-height: 68px;
  overflow: hidden;
  place-items: center;
  position: relative;
}

.product-carousel-main img {
  background: #f8faf6;
  border-radius: 8px;
  height: auto;
  max-height: 640px;
  max-height: min(640px, 75svh);
  object-fit: contain;
}

.carousel-control {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 999px;
  color: #1f2a24;
  cursor: pointer;
  display: inline-flex;
  font-size: 36px;
  height: 46px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
}

.carousel-control:hover {
  background: #ebf7fd;
  color: #2eace2;
}

.carousel-control.previous {
  left: 16px;
}

.carousel-control.next {
  right: 16px;
}

.product-thumbnails {
  display: flex;
  gap: 12px;
  margin: 0 auto;
  max-width: none;
  overflow-x: auto;
  padding: 18px 0 0;
}

.product-detail-thumb {
  aspect-ratio: 1 / 1;
  background: #f8faf6;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 clamp(68px, 14vw, 92px);
  overflow: hidden;
  padding: 0;
  position: relative;
}

.product-detail-thumb:hover {
  border-color: #2eace2;
}

.product-detail-thumb.active {
  border-color: #2eace2;
}

.product-detail-thumb img {
  border-radius: 6px;
  height: auto;
  inset: 0;
  margin: auto;
  max-height: 100%;
  object-fit: contain;
  position: absolute;
}

.product-purchase-panel {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
  margin: 0;
  max-width: none;
  padding: 24px;
  width: 100%;
}

.product-purchase-panel h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  margin-bottom: 18px;
}

.product-shopping-panel h2 {
  color: #1f2a24;
  font-size: 24px;
  margin-bottom: 12px;
}

.product-shopping-panel .product-option-block,
.product-shopping-panel .plastic-configurator {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.product-shopping-panel .quantity-row {
  margin-bottom: 24px;
  margin-top: 0;
}

.product-shopping-panel .detail-actions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.product-detail-lede {
  color: #53635a;
  margin-bottom: 20px;
}

.product-highlights {
  display: grid;
  gap: 10px;
  list-style: none;
  margin-bottom: 22px;
}

.product-highlights li {
  color: #53635a;
  padding-left: 22px;
  position: relative;
}

.product-highlights li a {
  color: #2eace2;
  font-weight: 800;
}

.product-highlights li::before {
  color: #2eace2;
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.product-custom-note {
  background: #ebf7fd;
  border: 1px solid #d8f1fb;
  border-radius: 8px;
  color: #2d5d74;
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
}

.product-custom-note-row {
  display: grid;
  gap: 4px;
}

.product-custom-note strong {
  color: #1f2a24;
}

.product-custom-note p {
  margin: 0;
}

.product-custom-note a {
  color: #2eace2;
  font-weight: 900;
}

.product-custom-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-custom-contact a {
  color: #2eace2;
  font-weight: 800;
}

.product-option-block {
  border-top: 1px solid #e6ece8;
  margin-top: 24px;
  padding-top: 22px;
}

.plastic-configurator {
  border-top: 1px solid #e6ece8;
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding-top: 22px;
}

.plastic-configurator h2,
.plastic-configurator h3 {
  color: #1f2a24;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 0;
}

.plastic-config-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plastic-config-grid label {
  color: #1f2a24;
  display: grid;
  font-weight: 900;
  gap: 8px;
}

.field-label-text {
  align-items: baseline;
  display: inline-flex;
  gap: 3px;
  max-width: 100%;
  width: auto;
}

.plastic-length-error {
  color: #c0392b;
  font-size: 14px;
  font-weight: 700;
}

.plastic-length-error:empty {
  display: none;
}

.plastic-fixed-option {
  color: #1f2a24;
  font-weight: 900;
  margin: 0;
}

.plastic-thickness-grid {
  margin-top: 10px;
}

.plastic-length-options {
  border: none;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.plastic-length-options legend {
  color: #1f2a24;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 10px;
}

.plastic-choice-hint {
  color: #53635a;
  font-size: 14px;
  grid-column: 1 / -1;
  margin: -2px 0 2px;
}

.plastic-length-detail {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plastic-length-detail label {
  color: #1f2a24;
  display: grid;
  font-weight: 900;
  gap: 8px;
}

[id^="plastic-custom-length-label"] .field-label-text {
  white-space: nowrap;
}

.plastic-price-summary {
  background: #f8faf6;
  border: 1px solid #d8f1fb;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.plastic-price-summary div {
  align-items: center;
  border-bottom: 1px solid #e6ece8;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 10px;
}

.plastic-price-summary div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.plastic-price-summary span {
  color: #53635a;
  min-width: 0;
}

.plastic-price-summary strong {
  min-width: 0;
  text-align: right;
}

.product-option-block h2,
.quantity-row label {
  color: #1f2a24;
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 12px;
}

.option-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-tile {
  cursor: pointer;
  display: block;
  position: relative;
}

.option-tile input {
  opacity: 0;
  position: absolute;
}

.option-tile span {
  align-items: center;
  background: #f8faf6;
  border: 1px solid #d8ded9;
  border-radius: 8px;
  color: #1f2a24;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 10px;
  text-align: center;
}

.option-tile input:checked + span,
.option-tile:hover span {
  background: #ebf7fd;
  border-color: #2eace2;
  color: #1f2a24;
}

.quantity-row {
  margin-top: 24px;
}

.quantity-stepper {
  align-items: center;
  border: 1px solid #d8ded9;
  border-radius: 12px;
  display: inline-grid;
  grid-template-columns: 44px 72px 44px;
  overflow: hidden;
}

.quantity-stepper button {
  background: #ebf7fd;
  border: none;
  color: #2eace2;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  height: 46px;
}

.quantity-stepper input {
  border: none;
  border-left: 1px solid #d8ded9;
  border-radius: 0;
  border-right: 1px solid #d8ded9;
  height: 46px;
  padding: 0;
  text-align: center;
}

.detail-service-strip {
  background: #f8faf6;
  border: 1px solid #d8f1fb;
  border-radius: 8px;
  color: #53635a;
  display: grid;
  gap: 2px;
  margin: 24px 0;
  padding: 14px;
}

.detail-service-strip strong {
  color: #1f2a24;
}

.detail-service-strip a {
  color: #2eace2;
  font-weight: 800;
}

.detail-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  margin-top: 24px;
}

.detail-actions .btn-primary,
.detail-actions .btn-secondary {
  text-align: center;
}

.cart-action-message {
  border-radius: 10px;
  color: #53635a;
  font-size: 14px;
  margin-top: 12px;
  min-height: 0;
}

.cart-action-message:empty {
  display: none;
}

.cart-action-message.success {
  background: #ebf7fd;
  border: 1px solid #bde8f9;
  color: #2f8f3a;
  font-weight: 700;
  padding: 12px 14px;
}

.product-card select,
.product-card input {
  margin-bottom: 10px;
}

/* FORMS */
input,
select,
textarea {
  background: #ffffff;
  border: 1px solid #d8ded9;
  border-radius: 12px;
  font-size: 16px;
  padding: 16px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2eace2;
  box-shadow: 0 0 0 3px rgba(46, 172, 226, 0.18);
  outline: none;
}

textarea {
  min-height: 130px;
}

.contact-form,
.checkout-form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.contact-details {
  margin-bottom: 24px;
  max-width: 520px;
}

.contact-detail-card {
  background: #ffffff;
  border: 1px solid #d8f1fb;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
  padding: 18px;
}

.contact-detail-card h3 {
  font-size: 18px;
  margin: 16px 0 12px;
}

.contact-detail-card h3:first-child {
  margin-top: 0;
}

.contact-detail-card p {
  color: #53635a;
  margin-bottom: 8px;
}

.contact-detail-card p:last-child {
  margin-bottom: 0;
}

.contact-detail-card strong {
  color: #1f2a24;
  display: block;
}

.contact-detail-card a {
  color: #2eace2;
  font-weight: 800;
}

.contact-detail-card .phone-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-detail-card .phone-link:hover {
  color: #2399cb;
}

.contact-form {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  max-width: 680px;
}

.contact-form input[name="name"],
.contact-form input[name="email"] {
  max-width: 320px;
}

.contact-form input[name="email"] {
  grid-column: 1 / -1;
}

.contact-form input[name="phone"] {
  max-width: 320px;
}

.contact-form textarea,
.contact-form button,
.contact-form .form-message {
  grid-column: 1 / -1;
}

.contact-form button[type="submit"] {
  justify-self: start;
  min-height: 44px;
  padding: 10px 18px;
}

.contact-honeypot {
  height: 1px;
  left: -9999px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.form-message {
  border-radius: 10px;
  color: #53635a;
  min-height: 24px;
  padding: 0;
}

.form-message.success {
  background: #ebf7fd;
  border: 1px solid #bde8f9;
  color: #2f8f3a;
  font-weight: 700;
  padding: 12px 14px;
}

.form-message.error {
  background: #fff3f1;
  border: 1px solid #f2c0ba;
  color: #b53b2f;
  font-weight: 700;
  padding: 12px 14px;
}

.home-end-banner {
  border-top: 1px solid rgba(31, 42, 36, 0.08);
  height: clamp(190px, 34vw, 360px);
  overflow: hidden;
  width: 100%;
}

.home-end-banner img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.checkout-form {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
  max-width: none;
  padding: 24px;
}

.two-col {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

/* CART QUANTITY CONTROLS */
.cart-quantity-stepper {
  align-items: center;
  border: 1px solid #d8ded9;
  border-radius: 8px;
  display: inline-grid;
  grid-template-columns: 30px 52px 30px;
  margin-top: 8px;
  overflow: hidden;
  width: max-content;
}

.cart-quantity-stepper button {
  background: #ebf7fd;
  border: none;
  border-radius: 0;
  color: #2eace2;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  height: 32px;
  line-height: 1;
  padding: 0;
  width: 30px;
}

.cart-quantity-stepper input[type="number"],
.cart-quantity-stepper > span {
  border: none;
  border-left: 1px solid #d8ded9;
  border-radius: 0;
  border-right: 1px solid #d8ded9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  height: 32px;
  max-width: 52px;
  padding: 0;
  text-align: center;
  width: 52px;
}

/* CART PAGE */
.cart-page {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 360px;
  padding-bottom: 80px;
  padding-top: 30px;
}

.cart-page-row {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 16px;
  grid-template-columns: 100px 1fr;
  margin-bottom: 16px;
  padding: 18px;
}

.cart-page-row img {
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  background: #f8faf6;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.cart-page-image-link,
.cart-page-details-link {
  color: inherit;
  text-decoration: none;
}

.cart-page-image-link {
  border-radius: 12px;
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.cart-page-details-link {
  border-radius: 8px;
  display: block;
  margin: -8px;
  padding: 8px;
  transition: background 0.15s ease;
}

.cart-page-image-link:focus,
.cart-page-details-link:focus {
  box-shadow: 0 0 0 3px rgba(46, 172, 226, 0.2);
  outline: none;
}

.cart-page-details-link:hover,
.cart-page-details-link:focus {
  background: #f8faf6;
}

.cart-page-row input[type="number"] {
  max-width: 52px;
  padding: 0;
}

.cart-page-details {
  display: grid;
  gap: 14px;
}

.cart-page-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.cart-page-controls .cart-quantity-stepper {
  margin-top: 0;
}

.cart-page-row .btn-secondary {
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 12px;
}

.cart-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cart-page-actions .btn-primary,
.cart-page-actions .btn-secondary,
.order-complete-actions .btn-primary,
.order-complete-actions .btn-secondary {
  flex: 1 1 150px;
  min-width: min(100%, 150px);
}

.summary-line {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 10px 0;
}

.summary-line span,
.cart-total span {
  min-width: 0;
}

.summary-line strong,
.cart-total strong {
  min-width: 0;
  text-align: right;
}

.cart-item {
  align-items: start;
  border-bottom: 1px solid #edf0ed;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 0;
  text-decoration: none;
}

.cart-item strong {
  color: #1f2a24;
}

.cart-item small {
  color: #53635a;
  display: block;
  line-height: 1.4;
  margin-top: 4px;
}

.cart-item > strong {
  text-align: right;
}

.cart-item-link {
  border-radius: 8px;
  cursor: pointer;
  margin-left: -8px;
  margin-right: -8px;
  padding: 12px 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cart-item-link:hover,
.cart-item-link:focus {
  background: #f8faf6;
  outline: none;
}

.cart-item-link:focus {
  box-shadow: 0 0 0 3px rgba(46, 172, 226, 0.2);
}

.checkout-cart-item-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.checkout-remove-button {
  align-items: center;
  border-color: #e0b4b0;
  color: #c0392b;
  display: inline-flex;
  font-size: 0.8rem;
  justify-content: center;
  padding: 8px 10px;
}

.checkout-remove-button:hover {
  background: #fdf1ef;
  border-color: #c0392b;
}

.summary-item-number {
  color: #53635a;
  font-weight: 800;
  margin-right: 6px;
}

.checkout-hint a {
  color: #2eace2;
  font-weight: 900;
  text-decoration: none;
}

.checkout-hint a:hover {
  text-decoration: underline;
}

.summary-label-with-help {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  position: relative;
}

.summary-help {
  align-items: center;
  background: #ebf7fd;
  border: 1px solid #b9e4f6;
  border-radius: 999px;
  color: #2d5d74;
  cursor: help;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: relative;
  width: 18px;
}

.summary-help:focus {
  border-color: #2eace2;
  outline: 2px solid rgba(46, 172, 226, 0.22);
  outline-offset: 2px;
}

.summary-help-tooltip {
  background: #1f2a24;
  border-radius: 8px;
  bottom: calc(100% + 8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  left: 0;
  line-height: 1.4;
  max-width: min(270px, calc(100vw - 48px));
  opacity: 0;
  padding: 9px 10px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  visibility: hidden;
  width: max-content;
  z-index: 30;
}

.summary-help:hover .summary-help-tooltip,
.summary-help:focus .summary-help-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.summary-total {
  border-top: 1px solid #d8ded9;
  font-size: 22px;
  font-weight: 900;
  margin-top: 14px;
  padding-top: 14px;
}

.summary-note {
  background: #ebf7fd;
  border-radius: 10px;
  color: #2d5d74;
  font-size: 14px;
  margin-top: 12px;
  padding: 10px 12px;
}

.secure-checkout-note {
  margin-bottom: 0;
  text-align: left;
}

.lead-time-note {
  display: grid;
  gap: 6px;
  margin-bottom: 0;
}

.lead-time-note p {
  margin: 0;
}

/* CHECKOUT */
.checkout-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  max-width: 1180px;
  padding-bottom: 80px;
  padding-top: 30px;
}

.checkout-summary-column {
  align-self: start;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  position: sticky;
  top: 82px;
}

.checkout-field-full {
  color: #1f2a24;
  display: grid;
  font-weight: 700;
  gap: 8px;
}

.checkout-field {
  color: #1f2a24;
  display: grid;
  font-weight: 700;
  gap: 8px;
}

.shipping-address-section {
  display: grid;
  gap: 14px;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  font-weight: 400;
}

.fulfillment-field {
  max-width: 360px;
}

.required-star {
  color: #f06b5f;
  font-weight: 900;
}

.checkout-instruction {
  background: #ebf7fd;
  border: 1px solid #bde8f9;
  border-radius: 10px;
  color: #2d5d74;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 6px;
  padding: 12px 14px;
}

.billing-section {
  display: grid;
  gap: 14px;
}

.checkbox-row {
  align-items: center;
  border: 1px solid #d8f1fb;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}

.checkbox-row input {
  flex: 0 0 auto;
  width: auto;
}

.billing-fields {
  display: grid;
  gap: 14px;
}

.checkout-action-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-action-row .btn-primary,
.checkout-action-row .btn-secondary {
  min-height: 58px;
  min-width: 0;
  padding-inline: 12px;
  width: 100%;
}

.checkout-notes {
  display: grid;
  gap: 0;
}

.checkout-notes #checkoutDynamicNotes:empty {
  display: none;
}

.payment-notes {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.payment-notes:empty {
  display: none;
}

.payment-section {
  display: grid;
  gap: 14px;
}

.payment-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 390px;
  padding-bottom: 80px;
  padding-top: 30px;
}

.payment-panel {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 16px;
  padding: 24px;
}

.payment-panel h2 {
  font-size: 28px;
}

.payment-panel .complete-payment-button {
  justify-self: start;
  min-height: 44px;
  padding: 10px 20px;
}

.payment-status {
  color: #53635a;
}

.payment-status strong {
  color: #2f8f3a;
}

.payment-card-name-field {
  max-width: 420px;
}

.stripe-card-box {
  background: #ffffff;
  border: 1px solid #d8ded9;
  border-radius: 12px;
  padding: 16px;
}

.payment-message,
.muted {
  color: #53635a;
  font-size: 14px;
}

.payment-message.success {
  background: #ebf7fd;
  border: 1px solid #bde8f9;
  border-radius: 10px;
  color: #2f8f3a;
  font-weight: 700;
  padding: 12px 14px;
}

.order-complete-layout {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 900px;
  padding: 30px 24px 80px;
}

.order-complete-summary-card {
  width: 100%;
}

.order-complete-actions {
  display: flex;
  justify-content: flex-start;
}

.order-complete-actions .btn-primary {
  min-width: 210px;
}

.order-complete-panel h1 {
  font-size: 34px;
}

.order-complete-details {
  border: 1px solid #d8ded9;
  border-radius: 12px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.order-complete-details div {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.order-complete-details div + div {
  border-top: 1px solid #d8ded9;
}

.order-complete-details span {
  color: #53635a;
  font-size: 14px;
  font-weight: 800;
}

.order-complete-details strong {
  color: #1f2a24;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.payment-message.error,
.cart-action-message.error {
  background: #fff3f1;
  border: 1px solid #f2c0ba;
  border-radius: 10px;
  color: #b53b2f;
  font-weight: 700;
  padding: 12px 14px;
}

.payment-address-block {
  border-top: 1px solid #edf0ed;
  margin-top: 12px;
  padding-top: 14px;
}

.payment-address-block p {
  color: #53635a;
  margin: 4px 0;
}

.checkout-hint {
  color: #53635a;
  font-size: 14px;
  margin-top: -8px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1200px) {
  .product-detail-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-gallery {
    grid-column: 1 / -1;
  }

}

/* TABLET */
@media (max-width: 900px) {
  .cart-page,
  .checkout-layout,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary-column {
    max-height: none;
    overflow: visible;
    position: static;
  }

  .product-gallery {
    position: static;
  }

  .features,
  .product-grid,
  .custom-solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-custom-grid {
    grid-template-columns: 1fr;
  }

  .products-custom-solutions {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .products-custom-solutions .custom-solutions-header,
  .products-custom-solutions .custom-solution-grid,
  .products-custom-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .products-custom-solutions .custom-solution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    min-height: 520px;
    padding: 56px 20px;
  }

  .payment-layout .summary-card {
    order: -1;
  }
}

@media (max-width: 1100px) {
  .nav-search.search-open {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
    display: flex;
    max-width: calc(100% - 28px);
    min-width: 0;
    padding: 10px;
    position: absolute;
    right: 24px;
    top: calc(100% + 6px);
    width: max(200px, 33.333%);
    z-index: 130;
  }

  .nav-search.search-open input {
    display: block;
    flex: 1 1 auto;
  }

  .nav-search.search-open button {
    border-radius: 0 12px 12px 0;
    flex: 0 0 42px;
  }
}

/* Compact navigation */
@media (max-width: 840px) {
  body::before {
    height: 62px;
  }

  .navbar {
    padding: 9px 18px;
  }

  section[id] {
    scroll-margin-top: 84px;
  }

  #solution,
  #about,
  #contact,
  #location {
    scroll-margin-top: 24px;
  }

  .logo img {
    height: 38px;
    width: 71px;
  }

  .nav-actions {
    margin-left: auto;
    order: 2;
  }

  .nav-search {
    flex: 0 0 38px;
    max-width: 38px;
    min-width: 38px;
  }

  .nav-search input {
    display: none;
    font-size: 16px;
    height: 38px;
    padding: 0 10px;
  }

  .nav-search button {
    height: 38px;
    width: 38px;
    border-radius: 12px;
  }

  .nav-search.search-open {
    right: 18px;
    top: calc(100% + 8px);
  }

  .nav-search.search-open button {
    border-radius: 0 12px 12px 0;
    flex: 0 0 38px;
  }

  .menu-toggle {
    height: 44px;
    display: inline-flex;
    line-height: 1;
    order: 3;
    width: 44px;
  }

  .nav-links {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 18px;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    position: absolute;
    right: 18px;
    top: calc(100% + 8px);
  }

  .nav-links a {
    color: #1f2a24;
    text-shadow: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid #edf0ed;
    padding: 12px 0;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

}

/* MOBILE */
@media (max-width: 650px) {
  .hero {
    min-height: 480px;
    padding: 60px 20px;
  }

  .hero-content > * {
    max-width: 100%;
  }

  .hero .eyebrow,
  .products-hero .eyebrow {
    font-size: 14px;
    letter-spacing: 0.5px;
    max-width: 340px;
  }

  .hero h1 {
    font-size: 34px;
    max-width: 340px;
  }

  .products-hero {
    min-height: 380px;
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .products-hero h1 {
    font-size: 34px;
  }

  .features,
  .product-grid,
  .custom-solution-grid,
  .plastic-length-options,
  .plastic-config-grid,
  .store-toolbar,
  .two-col {
    grid-template-columns: 1fr;
  }

  .home-custom-grid {
    grid-template-columns: 1fr;
  }

  .custom-solution-side-stack {
    display: contents;
  }

  .custom-solution-consultation-card {
    order: 1;
  }

  .custom-solution-reliable-card {
    order: 2;
  }

  .custom-solution-bulk-card {
    order: 3;
  }

  .custom-solution-main-card {
    order: 4;
  }

  .custom-service-columns {
    grid-template-columns: 1fr;
  }

  .custom-cut-list-heading {
    min-height: 0;
  }

  .products-custom-solutions .custom-solution-grid {
    grid-template-columns: 1fr;
  }

  .products-section,
  .split-section,
  .shipping-section,
  .custom-solutions-section,
  .location-section,
  .contact-section,
  .page-hero,
  .products-list-heading,
  .store-toolbar,
  .cart-page,
  .checkout-layout,
  .payment-layout {
    padding-left: 20px;
    padding-right: 20px;
  }

  .store-toolbar {
    padding-top: 24px;
  }

  .product-breadcrumb {
    padding-left: 20px;
    padding-right: 20px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }

  .product-gallery {
    grid-column: auto;
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
  }

  .product-thumbnails {
    padding-left: 0;
    padding-right: 0;
  }

  .product-purchase-panel {
    padding: 22px;
    width: 100%;
  }

  .option-grid,
  .detail-actions,
  .product-shopping-panel .detail-actions {
    grid-template-columns: 1fr;
  }

  .carousel-control {
    height: 40px;
    width: 40px;
  }

  .services-list ul {
    grid-template-columns: 1fr;
  }

  .map-card {
    height: clamp(280px, 78vw, 430px);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-form input[name="phone"] {
    max-width: none;
  }

  .home-end-banner {
    height: 180px;
  }

  .cart-page-row {
    grid-template-columns: 80px 1fr;
  }

  .cart-page-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .navbar {
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-search.search-open,
  .nav-links {
    right: 14px;
  }

  .nav-links {
    left: 14px;
  }

  .products-section,
  .split-section,
  .shipping-section,
  .custom-solutions-section,
  .location-section,
  .contact-section,
  .page-hero,
  .products-list-heading,
  .store-toolbar,
  .store-grid,
  .cart-page,
  .checkout-layout,
  .payment-layout,
  .product-breadcrumb,
  .product-gallery {
    padding-left: 16px;
    padding-right: 16px;
  }

  .feature-card,
  .product-card,
  .summary-card,
  .checkout-form,
  .payment-panel,
  .custom-solution-card,
  .contact-detail-card {
    padding: 18px;
  }

  .product-purchase-panel {
    padding: 18px;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fulfillment-field {
    max-width: none;
  }

  .cart-page-row {
    gap: 12px;
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 14px;
  }

  .cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

}

.address-flag {
  background: #fff4f2;
  border: 1px solid #f1b9b0;
  border-radius: 8px;
  color: #b3261e;
  font-size: 14px;
  font-weight: 700;
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 14px;
}

.address-flag.is-hidden {
  display: none;
}

.plastic-price-summary .pdp-discount-note {
  border-bottom: 1px solid #e6ece8;
  justify-content: flex-start;
}

.pdp-discount-note span {
  color: #53635a;
}

.pdp-discount-note strong {
  color: #1f2a24;
  text-align: left;
}

.pdp-discount-tooltip {
  background: #ffffff;
  border: 1px solid #2eace2;
  box-shadow: 0 6px 18px rgba(31, 42, 36, 0.12);
  color: #1f2a24;
  left: 50%;
  text-align: center;
  transform: translate(-50%, 4px);
}

.summary-help:hover .pdp-discount-tooltip,
.summary-help:focus .pdp-discount-tooltip {
  transform: translate(-50%, 0);
}

.pdp-discount-tooltip .tooltip-line {
  display: block;
  font-size: 13px;
}

.plastic-price-summary .pdp-delivery-estimate {
  border-bottom: 1px solid #e6ece8;
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
}

.pdp-delivery-prompt {
  align-items: center;
  color: #53635a;
  display: flex;
  gap: 8px;
  margin: 0;
}

.pdp-delivery-prompt svg {
  color: #53635a;
}

.pdp-delivery-form {
  display: flex;
  gap: 10px;
}

.pdp-delivery-form input {
  background: #ffffff;
  border: 1px solid #d8ded9;
  border-radius: 12px;
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  min-width: 0;
  padding: 12px 16px;
}

.pdp-delivery-form button {
  align-items: center;
  background: #2eace2;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  padding: 0 16px;
}

.pdp-delivery-form button:hover {
  background: #1d96cb;
}

.pdp-delivery-result {
  background: #ffffff;
  border: 1px solid #e6ece8;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.pdp-delivery-result.is-hidden {
  display: none;
}

.pdp-delivery-heading {
  color: #53635a;
  font-size: 16px;
  margin: 0;
}

.pdp-delivery-heading strong {
  color: #1f2a24;
  text-align: left;
}

.pdp-delivery-card {
  background: #f8faf6;
  border: 1px solid #d8ded9;
  border-radius: 12px;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
}

.pdp-delivery-card strong {
  color: #1f2a24;
  font-size: 16px;
  text-align: left;
}

.pdp-delivery-card small {
  color: #53635a;
  font-size: 14px;
}

.pdp-delivery-card b {
  color: #1f2a24;
  font-size: 18px;
  margin-top: 4px;
}

.pdp-delivery-note {
  color: #53635a;
  font-size: 14px;
  margin: 0;
}

.plastic-price-summary .pdp-subtotal-row span,
.plastic-price-summary .pdp-subtotal-row strong,
.plastic-price-summary .plastic-price-total span,
.plastic-price-summary .plastic-price-total strong {
  color: #1f2a24;
  font-size: 20px;
  font-weight: 900;
}

.plastic-price-summary .pdp-delivery-row {
  border-bottom: none;
  padding-bottom: 0;
}

.payment-footnote {
  color: #53635a;
  font-size: 14px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px 48px;
}

.pdp-contact-note {
  color: #53635a;
  font-size: 14px;
  line-height: 1.5;
  margin: 18px 0 0;
}

.pdp-contact-note a {
  color: #2eace2;
  font-weight: 800;
}

.checkout-field-zip {
  max-width: 180px;
}

.checkout-field-phone {
  max-width: 260px;
}

/* ---- Responsive refinements (phones, tablets, laptops, desktops) ---- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video {
  max-width: 100%;
}

@media (max-width: 560px) {
  /* Price box: keep "Total" readable and let long messages wrap instead of overflowing */
  .plastic-price-summary div {
    flex-wrap: wrap;
  }

  .plastic-price-total span {
    flex: 0 0 auto;
  }

  .plastic-price-total strong {
    flex: 1 1 auto;
  }

  .pdp-delivery-form button {
    min-height: 48px;
    min-width: 52px;
  }

  /* Order summary rows: details on top, quantity / price / trash underneath */
  .checkout-cart-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-cart-item .cart-item-link {
    margin-inline: 0;
    padding-inline: 0;
  }

  .checkout-cart-item-actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: space-between;
    text-align: left;
    width: 100%;
  }

  .checkout-cart-item-actions > strong {
    margin-left: auto;
  }
}

/* Comfortable touch targets on touch devices */
@media (pointer: coarse) {
  .checkout-remove-button,
  .carousel-control,
  .cart-icon-button,
  .menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  .cart-quantity-stepper {
    grid-template-columns: 44px 42px 44px;
  }

  .cart-quantity-stepper button {
    height: 44px;
    width: 44px;
  }
}

@media (max-width: 330px) {
  .navbar {
    gap: 4px;
    padding-inline: 8px;
  }

  .logo img {
    width: 58px;
  }
}
