.product-box-image-zoom img {
  height: 250px !important;
  object-fit: cover!important;
}

.product-thumbnail img {
    height: 250px !important;
    object-fit: cover!important;
}

@media (max-width: 767px){
  .product-thumbnail img{
    height: 180px !important;
    object-fit: cover !important;
  }

  .product-box-image-zoom img {
  height: 180px !important;
  object-fit: cover!important;
}

.site-copyright{
  padding-bottom: 60px;
}
}


h2.product-title span {
  font-size: 20px;
}

/* ── Product carousel card fixes ── */
.product-carousel .product-inner {
  overflow: hidden;
}

.product-carousel .product-content-wrapper {
  padding: 8px 4px 4px;
}

.product-carousel h2.product-title {
  font-size: 13px;
  line-height: 1.3;
  margin: 0 0 4px;
  max-height: 5.6em;          /* 2 lines max */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-carousel .product-price-wrapper {
  margin-top: 2px;
}

.product-carousel .product-price-wrapper .price {
  font-size: 13px;
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
  max-width: 100%;
}

.product-carousel .product-price-wrapper .price del,
.product-carousel .product-price-wrapper .price ins {
  font-size: 13px;
}

.product-carousel .product-rating {
  display: none;             /* hide stars to save space in carousel */
}

/* Responsive tweaks for carousel cards */
@media (max-width: 767px) {
  .product-carousel h2.product-title {
    font-size: 12px;
  }
  .product-carousel .product-price-wrapper .price,
  .product-carousel .product-price-wrapper .price del,
  .product-carousel .product-price-wrapper .price ins {
    font-size: 12px;
  }
}

section.home-products {
  max-width: 1440px;
  margin: auto;
}
.tab-panels {
  padding: 0px 10px;
}
.product-tabs {
  padding: 0px 10px;
}

.product-tabs {
  display: flex;
  gap: 12px;
  align-items: center;
}
.tab-btn {
  padding: 10px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.7;
}
.tab-btn.active {
  opacity: 1;
  border-bottom: 2px solid currentColor;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
#cart-image img {
    height: 90px !important;
}

#cart-thumbnail img {
    height: 90px !important;
}

img#main-product-image {
    width: 100%;
    height: 550px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Main image viewport container */
.main-image-viewport {
    height: 550px !important;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Thumbnail images - uniform height */
.flex-control-thumbs li {
    height: 80px !important;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.flex-control-thumbs li:hover {
    border-color: #0d6efd;
}

.flex-control-thumbs img.ab-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.flex-control-thumbs img.ab-thumb:hover {
    opacity: 0.85;
}

.flex-control-thumbs img.ab-thumb.active-thumb {
    outline: none;
}

.flex-control-thumbs li:has(.active-thumb) {
    border-color: #0d6efd;
}

/* Mobile responsive - detail gallery */
@media (max-width: 768px) {
    img#main-product-image,
    .main-image-viewport {
        height: 350px !important;
    }

    .flex-control-thumbs li {
        height: 60px !important;
    }
}

/* ── Listings: keep price, discount lines, and badges inside the card (no bleed into next column) ──
   Avoid overflow-x: hidden on the whole card: when only the x-axis is hidden, overflow-y becomes
   `auto` per spec, and the theme’s absolute .product-content-fade (visible on laptop) can trigger
   a vertical scrollbar on every product tile. Thumbnail + price rules below still contain content. ── */
.home-products .product,
.shop-products-wrapper .product,
.products.product-grid-style .product {
  min-width: 0;
  box-sizing: border-box;
}

.home-products .product .product-thumbnail-wrapper,
.shop-products-wrapper .product .product-thumbnail-wrapper,
.products.product-grid-style .product .product-thumbnail-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.home-products .product .product-title a,
.home-products .product .product-title span,
.shop-products-wrapper .product .product-title a,
.shop-products-wrapper .product .product-title span,
.products.product-grid-style .product .product-title a,
.products.product-grid-style .product .product-title span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-products .product .product-price-wrapper,
.shop-products-wrapper .product .product-price-wrapper,
.products.product-grid-style .product .product-price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.home-products .product .product-price-wrapper .price,
.shop-products-wrapper .product .product-price-wrapper .price,
.products.product-grid-style .product .product-price-wrapper .price {
  max-width: 100%;
  min-width: 0;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-products .product .product-price-wrapper .price del,
.home-products .product .product-price-wrapper .price ins,
.shop-products-wrapper .product .product-price-wrapper .price del,
.shop-products-wrapper .product .product-price-wrapper .price ins,
.products.product-grid-style .product .product-price-wrapper .price del,
.products.product-grid-style .product .product-price-wrapper .price ins {
  display: inline;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-products .product .product-price-wrapper .thumbnail-badges.product-badges,
.shop-products-wrapper .product .product-price-wrapper .thumbnail-badges.product-badges,
.products.product-grid-style .product .product-price-wrapper .thumbnail-badges.product-badges {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-items: flex-start;
}

.home-products .product .thumbnail-badges .badge,
.shop-products-wrapper .product .thumbnail-badges .badge,
.products.product-grid-style .product .thumbnail-badges .badge {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Stock visibility on product grid (variable OOS / partial OOS) */
.shop-products-wrapper .listing-stock-ribbon,
.home-products .listing-stock-ribbon,
.products.product-grid-style .listing-stock-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.shop-products-wrapper .listing-stock-ribbon--all_out,
.home-products .listing-stock-ribbon--all_out,
.products.product-grid-style .listing-stock-ribbon--all_out {
  background: #1f2937;
  color: #f9fafb;
}

.shop-products-wrapper .listing-stock-ribbon--partial,
.home-products .listing-stock-ribbon--partial,
.products.product-grid-style .listing-stock-ribbon--partial {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* PDP variant stock banners */
.lyn-pdp-stock-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 8px;
}
.lyn-pdp-stock-banner--out {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.lyn-pdp-stock-banner--partial {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.lyn-pdp-stock-banner--selection {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.shop-products-wrapper .lyn-vs-card,
.home-products .lyn-vs-card,
.products.product-grid-style .lyn-vs-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.shop-products-wrapper .lyn-vs-card__line,
.home-products .lyn-vs-card__line,
.products.product-grid-style .lyn-vs-card__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  width: 100%;
  min-width: 0;
  row-gap: 2px;
}

.shop-products-wrapper .lyn-vs-card__cluster,
.home-products .lyn-vs-card__cluster,
.products.product-grid-style .lyn-vs-card__cluster {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  min-width: 0;
}

.shop-products-wrapper .lyn-vs-card__from,
.home-products .lyn-vs-card__from,
.products.product-grid-style .lyn-vs-card__from {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--lyn-sale-accent, #e62e04);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-right: 0;
}

.shop-products-wrapper .lyn-vs-card__sale,
.home-products .lyn-vs-card__sale,
.products.product-grid-style .lyn-vs-card__sale {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 1px;
  font-weight: 700;
  color: var(--lyn-sale-accent, #e62e04);
  font-size: 1.125rem;
  line-height: 1.15;
}

.shop-products-wrapper .lyn-vs-card__sale .lyn-vs-card__sym,
.home-products .lyn-vs-card__sale .lyn-vs-card__sym,
.products.product-grid-style .lyn-vs-card__sale .lyn-vs-card__sym {
  font-size: 0.75em;
  font-weight: 700;
}

.shop-products-wrapper .lyn-vs-card__was,
.home-products .lyn-vs-card__was,
.products.product-grid-style .lyn-vs-card__was {
  margin-left: auto;
  padding-left: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #999;
  opacity: 0.95;
  text-decoration-thickness: 1px;
}

.shop-products-wrapper .lyn-vs-card__was .lyn-vs-card__sym,
.home-products .lyn-vs-card__was .lyn-vs-card__sym,
.products.product-grid-style .lyn-vs-card__was .lyn-vs-card__sym {
  font-size: 0.85em;
  margin-right: 1px;
}

.shop-products-wrapper .lyn-vs-card__hint,
.home-products .lyn-vs-card__hint,
.products.product-grid-style .lyn-vs-card__hint {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: #888;
  max-width: 100%;
}

.price.price--variant-sale {
  display: block;
  width: 100%;
}

/* Carousel / compact tiles: match scale */
.product-carousel .lyn-vs-card__sale {
  font-size: 1rem;
}
.product-carousel .lyn-vs-card__from {
  font-size: 0.625rem;
}
.product-carousel .lyn-vs-card__was {
  font-size: 0.75rem;
}
.product-carousel .lyn-vs-card__hint {
  font-size: 0.625rem;
}

@media (max-width: 767px) {
  .shop-products-wrapper .lyn-vs-card__sale,
  .home-products .lyn-vs-card__sale,
  .products.product-grid-style .lyn-vs-card__sale {
    font-size: 1.0625rem;
  }
  .shop-products-wrapper .lyn-vs-card__was,
  .home-products .lyn-vs-card__was,
  .products.product-grid-style .lyn-vs-card__was {
    margin-left: 0;
    flex-basis: 100%;
    padding-left: 0;
  }
  .shop-products-wrapper .lyn-vs-card__line,
  .home-products .lyn-vs-card__line,
  .products.product-grid-style .lyn-vs-card__line {
    column-gap: 6px;
  }
}

/* Footer: two columns on small screens (widgets + contact strip) */
@media (max-width: 575.98px) {
  #footer-widgets .site-footer-inner.widgets-column-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem 0.75rem;
  }
  #footer-contact .site-footer-inner ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.5rem;
    align-items: start;
    justify-content: stretch;
  }
  #footer-contact .site-footer-inner ul li {
    min-width: 0;
  }
  #footer-contact .site-footer-inner ul li a {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  #footer-contact .site-footer-inner ul li a p {
    text-align: center;
  }
}