/*
Mục đích: Đồng bộ card sản phẩm WooCommerce với nhận diện EKO nhưng giữ nguyên loop native.
Scope: project
Namespace: eko-site
*/
.eko-site .product-small .box-image {
  overflow: hidden;
  border-radius: 10px;
  background: var(--eko-color-mist);
}

.eko-site .product-small .box-text {
  padding: 1rem 0.25rem 1.4rem;
}

.eko-site .product-title {
  font-weight: 600;
  line-height: 1.35;
}

.eko-site .price {
  color: var(--eko-color-charcoal);
}

.eko-site .product-small .price,
.eko-site.single-product .product-info .price {
  display: block;
}

.eko-site .badge-inner {
  border-radius: 999px;
}

.eko-site .out-of-stock-label {
  padding: 0.55rem 0.9rem;
  color: var(--eko-color-charcoal);
  background: rgb(209 213 69 / 94%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eko-site .product-small .box-image img {
  transition: transform 280ms ease;
}

.eko-site .product-small:hover .box-image img {
  transform: scale(1.025);
}

.eko-site .quick-view {
  min-height: 44px;
  border-radius: 0;
  color: var(--eko-color-white);
  background: rgb(52 48 45 / 92%);
  font-weight: 600;
}

.eko-site .eko-shop-intro {
  margin-bottom: 2.5rem;
  padding: 2rem 0 1.5rem;
}

.eko-site .eko-shop-intro h1 {
  max-width: 820px;
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.eko-site .eko-shop-category-nav {
  display: flex;
  overflow-x: auto;
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.eko-site .eko-shop-category-nav a {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--eko-color-border);
  border-radius: 999px;
  color: var(--eko-color-charcoal);
  background: var(--eko-color-white);
  font-size: 0.86rem;
  font-weight: 600;
}

.eko-site .eko-shop-category-nav a:hover,
.eko-site .eko-shop-category-nav a:focus-visible {
  border-color: var(--eko-color-lime);
  background: #f7f8e8;
}

.eko-site .shop-container .products {
  row-gap: 1rem;
}

.eko-site .eko-product-filters {
  padding: 1.25rem;
  border: 1px solid var(--eko-color-border);
  border-radius: 10px;
  background: var(--eko-color-white);
}

.eko-site .eko-product-filters__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--eko-color-border);
}

.eko-site .eko-product-filters__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.eko-site .eko-product-filters__reset {
  color: var(--eko-color-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eko-site .eko-product-filter-group {
  padding-top: 1.1rem;
}

.eko-site .eko-product-filter-search {
  padding-top: 1rem;
}

.eko-site .eko-product-filter-search > label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--eko-color-charcoal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eko-site .eko-product-filter-search .facetwp-input-wrap,
.eko-site .eko-product-filter-search input {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

.eko-site .eko-product-filter-search .facetwp-input-wrap {
  display: block;
}

.eko-site .eko-product-filter-search .facetwp-facet input.facetwp-search {
  height: 48px;
  min-width: 0;
  margin: 0;
  padding: 0 48px 0 16px;
  border: 1px solid var(--eko-color-border);
  border-radius: 999px;
  background: var(--eko-color-white);
  color: var(--eko-color-charcoal);
  font-size: 0.92rem;
  line-height: 48px;
  box-shadow: none;
  appearance: none;
}

.eko-site .eko-product-filter-search input::placeholder {
  color: #77736f;
  opacity: 1;
}

.eko-site .eko-product-filter-search input:hover {
  border-color: #a9aaa1;
}

.eko-site .eko-product-filter-search input:focus {
  border-color: var(--eko-color-lime-dark);
  outline: 3px solid rgb(209 213 69 / 24%);
  outline-offset: 1px;
}

.eko-site .eko-product-filter-search .facetwp-icon {
  display: grid;
  width: 48px;
  height: 48px;
  right: 0;
  place-items: center;
  border-radius: 0 999px 999px 0;
  opacity: 0.72;
}

.eko-site .eko-product-filter-search .facetwp-icon::before {
  width: 48px;
  height: 48px;
  background-position: 50% 50%;
  background-size: 18px 18px;
}

.eko-site .eko-product-filter-search .facetwp-icon:hover {
  opacity: 1;
}

.eko-site .eko-product-filter-group + .eko-product-filter-group {
  margin-top: 1.1rem;
  border-top: 1px solid var(--eko-color-border);
}

.eko-site .eko-product-filter-group h3 {
  margin-bottom: 0.8rem;
  font-size: 0.86rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.eko-site .facetwp-facet {
  margin-bottom: 0;
}

.eko-site .facetwp-checkbox {
  position: relative;
  min-height: 36px;
  padding: 0.42rem 2.25rem 0.42rem 1.75rem;
  background-position: 0 0.62rem;
  color: var(--eko-color-charcoal);
  font-size: 0.86rem;
  line-height: 1.45;
}

.eko-site .facetwp-checkbox .facetwp-counter {
  position: absolute;
  right: 0;
  color: var(--eko-color-muted);
  font-size: 0.72rem;
}

.eko-site .facetwp-checkbox.checked {
  font-weight: 700;
}

.eko-site .eko-product-filter-more {
  margin-top: 1.1rem;
  border-top: 1px solid var(--eko-color-border);
}

.eko-site .eko-product-filter-more summary {
  min-height: 44px;
  padding: 0.9rem 0;
  cursor: pointer;
  color: var(--eko-color-charcoal);
  font-size: 0.86rem;
  font-weight: 700;
}

.eko-site .eko-mobile-filter-button {
  width: 100%;
  min-height: 46px;
  margin: 0 0 1rem;
}

.eko-site .facetwp-flyout {
  color: var(--eko-color-charcoal);
  background: var(--eko-color-white);
}

.eko-site .facetwp-flyout .facetwp-flyout-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  font-size: 1.5rem;
}

.eko-site .facetwp-flyout h3 {
  font-size: 0.86rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.eko-site .facetwp-template {
  transition: opacity 180ms ease;
}

.eko-site .facetwp-template.facetwp-template-loading {
  opacity: 0.5;
}

.eko-site.single-product .product-main {
  padding-top: 56px;
  padding-bottom: 56px;
}

.eko-site.single-product .product-gallery .woocommerce-product-gallery__image,
.eko-site.single-product .product-gallery .product-thumbnails img {
  overflow: hidden;
  border-radius: 10px;
  background: var(--eko-color-mist);
}

.eko-site.single-product .product-info h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.eko-site.single-product .product-short-description {
  color: var(--eko-color-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.eko-site .eko-product-inquiry {
  margin: 1.75rem 0 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid #e4e6bd;
  border-radius: 10px;
  background: linear-gradient(135deg, #fafbe9 0%, var(--eko-color-mist) 100%);
}

.eko-site .eko-product-inquiry__status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--eko-color-charcoal);
  background: var(--eko-color-lime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.eko-site .eko-product-inquiry h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.eko-site .eko-product-inquiry p {
  margin-bottom: 0.9rem;
  color: var(--eko-color-muted);
}

.eko-site .eko-product-inquiry .button {
  min-height: 46px;
  margin-bottom: 0;
}

.eko-site .eko-inquiry-stock {
  margin: 0 0 0.75rem;
  color: var(--eko-color-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.eko-site .eko-product-assurances {
  display: grid;
  gap: 0;
  margin-top: 1.75rem;
  border-top: 1px solid var(--eko-color-border);
  border-bottom: 1px solid var(--eko-color-border);
}

.eko-site .eko-product-assurances > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 0;
}

.eko-site .eko-product-assurances > div + div {
  border-top: 1px solid var(--eko-color-border);
}

.eko-site .eko-product-assurances strong {
  color: var(--eko-color-charcoal);
  font-size: 0.9rem;
}

.eko-site .eko-product-assurances span {
  color: var(--eko-color-muted);
  font-size: 0.78rem;
}

.eko-site.single-product .product-footer .woocommerce-tabs {
  padding: 4rem 0;
}

.eko-site.single-product .product-footer .tabbed-content .nav {
  border-bottom: 1px solid var(--eko-color-border);
}

.eko-site.single-product .product-footer .tabbed-content .nav > li > a {
  min-height: 44px;
  font-size: 0.92rem;
  text-transform: none;
}

.eko-site.single-product .product-footer .tab-panels {
  max-width: 900px;
  font-size: 1rem;
  line-height: 1.75;
}

@media (max-width: 849px) {
  .eko-site .eko-shop-intro {
    padding-top: 1rem;
  }

  .eko-site.single-product .product-main {
    padding-top: 32px;
  }

  .eko-site .eko-product-filters {
    padding: 1rem;
  }
}

/* Product detail UX — price and inventory are the source of truth. */
.eko-site.single-product .product-main {
  padding-top: clamp(88px, 7vw, 124px);
  padding-bottom: clamp(64px, 7vw, 104px);
}

.eko-site.single-product .product-main > .row {
  width: min(100% - 48px, 1360px);
  max-width: 1360px;
  align-items: flex-start;
}

.eko-site.single-product .product-gallery {
  align-self: flex-start;
}

.eko-site.single-product .product-info {
  padding-left: clamp(2rem, 4vw, 5.5rem);
}

.eko-site.single-product .eko-product-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: #726d69;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eko-site.single-product .eko-product-eyebrow > * {
  display: inline-flex;
  align-items: center;
}

.eko-site.single-product .eko-product-eyebrow > * + *::before {
  width: 4px;
  height: 4px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--eko-color-lime-dark);
  content: "";
}

.eko-site.single-product .eko-product-eyebrow a {
  color: #536d8c;
  text-decoration: none;
}

.eko-site.single-product .eko-product-eyebrow a:hover,
.eko-site.single-product .eko-product-eyebrow a:focus-visible {
  color: var(--eko-color-charcoal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eko-site.single-product .product-info h1 {
  max-width: 700px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.45rem, 3.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
}

.eko-site.single-product .product-info .is-divider {
  width: 42px;
  height: 3px;
  margin: 0 0 1.25rem;
  background: var(--eko-color-lime);
}

.eko-site.single-product .product-info .price {
  margin: 0 0 0.7rem;
  color: var(--eko-color-charcoal);
  font-size: clamp(1.75rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.eko-site.single-product .product-info .price del {
  margin-right: 0.55rem;
  color: #8b8783;
  font-size: 0.64em;
  font-weight: 500;
  opacity: 1;
}

.eko-site.single-product .product-info .price ins {
  color: #536d8c;
  text-decoration: none;
}

.eko-site.single-product .eko-product-purchase-status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.3rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.eko-site.single-product .eko-product-purchase-status svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.eko-site.single-product .eko-product-purchase-status.is-available {
  color: #355f46;
  background: #e7f4e8;
}

.eko-site.single-product .eko-product-purchase-status.is-outofstock {
  color: #7a532c;
  background: #f8eee0;
}

.eko-site.single-product .product-short-description {
  max-width: 650px;
  margin-bottom: 1.5rem;
  color: #625d59;
  font-size: 1rem;
  line-height: 1.75;
}

.eko-site.single-product .product-short-description p:last-child {
  margin-bottom: 0;
}

.eko-site.single-product form.cart {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin: 1.6rem 0 1.4rem;
  padding: 1rem;
  border: 1px solid rgb(52 48 45 / 9%);
  border-radius: 8px;
  background: #f7f7f3;
}

.eko-site.single-product form.cart .quantity {
  margin: 0;
}

.eko-site.single-product form.cart .quantity input,
.eko-site.single-product form.cart .quantity .button {
  min-height: 52px;
}

.eko-site.single-product form.cart .single_add_to_cart_button {
  min-height: 52px;
  flex: 1 1 auto;
  margin: 0;
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.045em;
}

.eko-site.single-product form.cart .single_add_to_cart_button:hover,
.eko-site.single-product form.cart .single_add_to_cart_button:focus-visible {
  box-shadow: 0 8px 22px rgb(52 48 45 / 16%);
  transform: translateY(-1px);
}

.eko-site.single-product form.cart .single_add_to_cart_button:focus-visible {
  outline: 3px solid rgb(200 214 45 / 45%);
  outline-offset: 3px;
}

.eko-site.single-product .eko-product-inquiry {
  margin-top: 1.5rem;
  border-radius: 8px;
  box-shadow: none;
}

.eko-site.single-product.eko-sales-state-inquiry .product-info .price {
  display: none;
}

.eko-site.single-product.eko-sales-state-inquiry .product-info .price-wrapper {
  display: none;
}

.eko-site.single-product .eko-product-assurances {
  margin-top: 1.6rem;
}

.eko-site.single-product .eko-product-assurances > div {
  position: relative;
  padding: 0.95rem 0 0.95rem 1.65rem;
}

.eko-site.single-product .eko-product-assurances > div::before {
  position: absolute;
  top: 1.18rem;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid var(--eko-color-lime-dark);
  border-radius: 50%;
  content: "";
}

.eko-site.single-product .product_meta {
  margin-top: 1.5rem;
  color: #77716d;
  font-size: 0.78rem;
  line-height: 1.7;
}

.eko-site.single-product .product-gallery .woocommerce-product-gallery__image {
  background: #f5f5f0;
}

.eko-site.single-product .product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  object-fit: contain;
}

.eko-site.single-product .product-thumbnails a {
  min-width: 88px;
  padding: 4px;
}

.eko-site.single-product .product-thumbnails a:hover img,
.eko-site.single-product .product-thumbnails .is-nav-selected img {
  border-color: var(--eko-color-lime-dark);
}

@media (min-width: 850px) {
  .eko-site.single-product .product-main .product-gallery {
    max-width: 56%;
    flex-basis: 56%;
  }

  .eko-site.single-product .product-main .product-info {
    max-width: 44%;
    flex-basis: 44%;
  }
}

@media (max-width: 849px) {
  .eko-site.single-product .product-main {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .eko-site.single-product .product-main > .row {
    width: min(100% - 28px, 680px);
  }

  .eko-site.single-product .product-info {
    padding: 2rem 0 0;
  }

  .eko-site.single-product .product-info h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.25rem);
  }

  .eko-site.single-product form.cart {
    flex-wrap: wrap;
  }

  .eko-site.single-product form.cart .single_add_to_cart_button {
    min-width: min(100%, 230px);
  }
}

@media (max-width: 420px) {
  .eko-site.single-product form.cart .single_add_to_cart_button {
    width: 100%;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eko-site.single-product form.cart .single_add_to_cart_button {
    transition: none;
  }
}

/* Product conversion actions. */
.eko-site.single-product form.cart {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
}

.eko-site.single-product form.cart .single_add_to_cart_button,
.eko-site.single-product form.cart .eko-buy-now {
  width: 100%;
  min-height: 52px;
  margin: 0;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eko-site.single-product form.cart .eko-buy-now {
  border-color: #ef233c;
  background: #ef233c;
  color: var(--eko-color-white);
}

.eko-site.single-product form.cart .eko-buy-now:hover,
.eko-site.single-product form.cart .eko-buy-now:focus-visible {
  border-color: #c9182d;
  background: #c9182d;
  color: var(--eko-color-white);
  box-shadow: 0 8px 22px rgb(52 48 45 / 16%);
  transform: translateY(-1px);
}

.eko-site.single-product form.cart .eko-buy-now:focus-visible {
  outline: 3px solid rgb(200 214 45 / 45%);
  outline-offset: 3px;
}

.eko-site.single-product .eko-product-lead-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.eko-site.single-product .eko-product-inquiry + .eko-product-lead-actions {
  margin-top: -0.55rem;
}

.eko-site.single-product .eko-product-lead-actions__button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--eko-color-charcoal);
  border-radius: 4px;
  color: var(--eko-color-charcoal);
  background: var(--eko-color-white);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eko-site.single-product .eko-product-lead-actions__button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.eko-site.single-product .eko-product-lead-actions__button--consultation:hover,
.eko-site.single-product .eko-product-lead-actions__button--consultation:focus-visible {
  border-color: var(--eko-color-lime-dark);
  background: #f7f8e8;
  color: var(--eko-color-charcoal);
}

.eko-site.single-product .eko-product-lead-actions__button--project {
  border-color: #536d8c;
  color: #425b77;
  background: #f4f7fa;
}

.eko-site.single-product .eko-product-lead-actions__button--project:hover,
.eko-site.single-product .eko-product-lead-actions__button--project:focus-visible {
  border-color: #425b77;
  color: var(--eko-color-white);
  background: #425b77;
}

.eko-site.single-product .eko-product-lead-actions__button:focus-visible {
  outline: 3px solid rgb(200 214 45 / 40%);
  outline-offset: 3px;
}

.eko-site.single-product .eko-product-lead-note {
  margin: 0.65rem 0 0;
  color: #77716d;
  font-size: 0.78rem;
  line-height: 1.5;
}

.eko-product-modal[hidden] {
  display: none;
}

.eko-product-modal {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.eko-product-modal.is-open {
  opacity: 1;
}

.eko-product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(20 20 19 / 58%);
  backdrop-filter: blur(3px);
}

.eko-product-modal__dialog {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  width: min(100%, 580px);
  max-height: min(90vh, 820px);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 12px;
  background: var(--eko-color-white);
  box-shadow: 0 28px 90px rgb(0 0 0 / 24%);
  opacity: 0;
  outline: none;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.eko-product-modal.is-open .eko-product-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.eko-product-modal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(52 48 45 / 12%);
  border-radius: 50%;
  background: #f4f4ef;
  color: var(--eko-color-charcoal);
  cursor: pointer;
}

.eko-product-modal__close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.eko-product-modal__close:hover,
.eko-product-modal__close:focus-visible {
  border-color: var(--eko-color-charcoal);
  background: var(--eko-color-charcoal);
  color: var(--eko-color-white);
}

.eko-product-modal__close:focus-visible {
  outline: 3px solid rgb(200 214 45 / 45%);
  outline-offset: 2px;
}

.eko-product-modal__header {
  padding-right: 2.5rem;
}

.eko-product-modal__header .eko-kicker {
  margin-bottom: 0.55rem;
}

.eko-product-modal__header h2 {
  max-width: 470px;
  margin-bottom: 0.65rem;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.eko-product-modal__header > p:last-child {
  margin-bottom: 1.25rem;
  color: var(--eko-color-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.eko-product-modal__product {
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  color: #425b77;
  background: #f1f5f8;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

body.eko-product-modal-open {
  overflow: hidden;
}

@media (max-width: 849px) {
  .eko-site.single-product form.cart {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .eko-site.single-product form.cart {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .eko-site.single-product form.cart .eko-buy-now {
    grid-column: 1 / -1;
  }

  .eko-site.single-product .eko-product-lead-actions {
    grid-template-columns: 1fr;
  }

  .eko-product-modal {
    align-items: end;
    padding: 0;
  }

  .eko-product-modal__dialog {
    width: 100%;
    max-height: 92vh;
    padding: 1.5rem 1.15rem calc(1.35rem + env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
    transform: translateY(22px);
  }

  .eko-product-modal__header {
    padding-right: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eko-product-modal,
  .eko-product-modal__dialog,
  .eko-site.single-product form.cart .eko-buy-now {
    transition: none;
  }
}

/* COD cart and checkout. */
.eko-site.woocommerce-cart .page-wrapper,
.eko-site.woocommerce-checkout .page-wrapper {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(64px, 7vw, 104px);
}

.eko-site.woocommerce-cart .page-wrapper > .row,
.eko-site.woocommerce-checkout .page-wrapper > .row {
  width: min(100% - 40px, 1180px);
  max-width: 1180px;
}

.eko-checkout-intro {
  max-width: 780px;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}

.eko-checkout-intro h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.eko-checkout-intro > p:last-child {
  max-width: 680px;
  color: var(--eko-color-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.eko-checkout-intro__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.eko-checkout-intro__benefits span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border: 1px solid #dfe3b0;
  border-radius: 999px;
  color: var(--eko-color-charcoal);
  background: #fafbe9;
  font-size: 0.78rem;
  font-weight: 700;
}

.eko-shipping-progress {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--eko-color-lime-dark);
  border-radius: 4px;
  background: #f7f8e8;
}

.eko-shipping-progress strong {
  color: var(--eko-color-charcoal);
  font-size: 0.92rem;
}

.eko-shipping-progress span {
  color: var(--eko-color-muted);
  font-size: 0.8rem;
}

.eko-site.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.eko-site.woocommerce-checkout #customer_details,
.eko-site.woocommerce-checkout #order_review {
  width: 100%;
  float: none;
}

.eko-site.woocommerce-checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.eko-site.woocommerce-checkout #customer_details .col-1,
.eko-site.woocommerce-checkout #customer_details .col-2 {
  width: 100%;
  max-width: none;
  float: none;
}

.eko-site.woocommerce-checkout #customer_details .col-2 {
  margin-top: 1rem;
}

.eko-site.woocommerce-checkout .woocommerce-billing-fields,
.eko-site.woocommerce-checkout .woocommerce-additional-fields {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--eko-color-border);
  border-radius: 10px;
  background: var(--eko-color-white);
}

.eko-site.woocommerce-checkout .woocommerce-billing-fields > h3,
.eko-site.woocommerce-checkout #order_review_heading {
  margin-bottom: 1.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  text-transform: none;
}

.eko-site.woocommerce-checkout .form-row {
  width: 100%;
  margin-bottom: 1rem;
}

.eko-site.woocommerce-checkout .form-row label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--eko-color-charcoal);
  font-size: 0.84rem;
  font-weight: 700;
}

.eko-site.woocommerce-checkout .form-row .required {
  color: #c9182d;
}

.eko-site.woocommerce-checkout .form-row input.input-text,
.eko-site.woocommerce-checkout .form-row textarea,
.eko-site.woocommerce-checkout .form-row select,
.eko-site.woocommerce-checkout .select2-container .select2-selection {
  min-height: 52px;
  margin: 0;
  border: 1px solid #c9c9c2;
  border-radius: 4px;
  background: var(--eko-color-white);
  box-shadow: none;
  font-size: 1rem;
}

.eko-site.woocommerce-checkout .form-row input.input-text,
.eko-site.woocommerce-checkout .form-row textarea {
  padding: 0.8rem 0.9rem;
}

.eko-site.woocommerce-checkout .form-row textarea {
  min-height: 110px;
}

.eko-site.woocommerce-checkout .form-row input:focus,
.eko-site.woocommerce-checkout .form-row textarea:focus,
.eko-site.woocommerce-checkout .form-row select:focus,
.eko-site.woocommerce-checkout .select2-container--focus .select2-selection {
  border-color: var(--eko-color-lime-dark);
  outline: 3px solid rgb(209 213 69 / 24%);
  outline-offset: 1px;
}

.eko-site.woocommerce-checkout #order_review {
  grid-column: 2;
  grid-row: 3;
  position: sticky;
  top: 108px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--eko-color-border);
  border-radius: 10px;
  background: #f7f7f3;
}

.eko-site.woocommerce-checkout #order_review_heading {
  width: 100%;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  align-self: end;
}

.eko-site.woocommerce-checkout form.checkout > .eko-shipping-progress {
  grid-column: 2;
  grid-row: 2;
  margin-bottom: 0;
}

.eko-site.woocommerce-checkout #payment {
  border-radius: 6px;
  background: var(--eko-color-white);
}

.eko-site.woocommerce-checkout #payment .payment_method_cod label {
  font-weight: 800;
}

.eko-site.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 54px;
  margin-top: 0.75rem;
  border-color: #ef233c;
  border-radius: 4px;
  background: #ef233c;
  color: var(--eko-color-white);
  font-size: 0.95rem;
  font-weight: 800;
}

.eko-site.woocommerce-checkout #place_order:hover,
.eko-site.woocommerce-checkout #place_order:focus-visible {
  border-color: #c9182d;
  background: #c9182d;
}

.eko-site.woocommerce-checkout #place_order:focus-visible {
  outline: 3px solid rgb(200 214 45 / 45%);
  outline-offset: 3px;
}

.eko-site.woocommerce-checkout .woocommerce-privacy-policy-text {
  color: var(--eko-color-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 849px) {
  .eko-site.woocommerce-cart .page-wrapper > .row,
  .eko-site.woocommerce-checkout .page-wrapper > .row {
    width: min(100% - 28px, 680px);
  }

  .eko-site.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .eko-site.woocommerce-checkout #order_review_heading {
    width: 100%;
    grid-column: 1;
    grid-row: 2;
  }

  .eko-site.woocommerce-checkout form.checkout > .eko-shipping-progress {
    grid-column: 1;
    grid-row: 3;
  }

  .eko-site.woocommerce-checkout #order_review {
    grid-column: 1;
    grid-row: 4;
    position: static;
  }

  .eko-site.woocommerce-checkout #customer_details {
    grid-column: 1;
    grid-row: 1;
  }
}
