/* ==========================================================================
   03. WooCommerce — Silky Product Cards, Sliders & Single Product B2B
   ========================================================================== */

/* Product Card */
body.mct-enterprise-ui .product-small.box {
  position: relative;
  background: var(--mct-surface);
  border: 1px solid var(--mct-border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.38s var(--mct-ease-smooth),
    box-shadow 0.38s var(--mct-ease-smooth),
    border-color 0.3s ease;
  will-change: transform;
}
body.mct-enterprise-ui .product-small.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, var(--mct-blue), var(--mct-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s var(--mct-ease-smooth);
}
body.mct-enterprise-ui .product-small.box:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 18px 36px -12px rgba(11, 31, 58, 0.16), 0 4px 12px -4px rgba(37, 99, 235, 0.1);
}
body.mct-enterprise-ui .product-small.box:hover::before {
  transform: scaleX(1);
}

/* Clean White Product Stage (no server cropping) */
body.mct-enterprise-ui .product-small.box .box-image {
  background: #FFFFFF;
  border-bottom: 1px solid var(--mct-surface-alt);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
body.mct-enterprise-ui .product-small.box .box-image .image-none,
body.mct-enterprise-ui .product-small.box .box-image a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.mct-enterprise-ui .product-small.box .box-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.55s var(--mct-ease-smooth);
}
body.mct-enterprise-ui .product-small.box:hover .box-image img {
  transform: scale(1.07);
}

/* Vertical List Card Variant */
body.mct-enterprise-ui .box-vertical.product-small.box {
  flex-direction: row;
  align-items: center;
  border-radius: var(--mct-radius-sm);
  padding: 8px;
  gap: 10px;
}
body.mct-enterprise-ui .box-vertical.product-small.box .box-image {
  aspect-ratio: 1 / 1;
  padding: 4px;
  border-bottom: none;
  border-radius: 6px;
}

/* Card Text & Meta */
body.mct-enterprise-ui .product-small.box .box-text {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}
.mct-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.2;
}
.mct-card-cat {
  color: var(--mct-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mct-card-sku {
  color: var(--mct-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

body.mct-enterprise-ui .product-small.box .name.product-title {
  margin: 0 0 8px;
  min-height: 40px;
}
body.mct-enterprise-ui .product-small.box .name.product-title a {
  font-family: var(--mct-font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--mct-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.2s ease;
}
body.mct-enterprise-ui .product-small.box:hover .name.product-title a {
  color: var(--mct-blue);
}

/* Pricing & Discount */
body.mct-enterprise-ui .product-small.box .price-wrapper {
  margin-top: auto;
  padding-top: 6px;
}
body.mct-enterprise-ui .product-small.box .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mct-font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--mct-danger);
}
body.mct-enterprise-ui .product-small.box .price del {
  font-size: 12px;
  font-weight: 500;
  color: var(--mct-text-muted);
}
.mct-price-contact {
  display: inline-flex;
  align-items: center;
  font-family: var(--mct-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mct-blue);
}
.mct-discount-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--mct-danger);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

/* Loop Action Button */
body.mct-enterprise-ui .product-small.box .add-to-cart-button {
  margin-top: 12px;
  width: 100%;
}
body.mct-enterprise-ui .product-small.box .add-to-cart-button a.button,
body.mct-enterprise-ui .product-small.box .mct-btn-quote {
  width: 100%;
  border-radius: var(--mct-radius-sm);
  font-family: var(--mct-font-heading);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  min-height: 36px;
  line-height: 1.3;
  background: var(--mct-surface-alt);
  color: var(--mct-navy);
  border: 1px solid var(--mct-border-strong);
  margin: 0;
  transition: all 0.28s var(--mct-ease-smooth);
}
body.mct-enterprise-ui .product-small.box:hover .add-to-cart-button a.button,
body.mct-enterprise-ui .product-small.box:hover .mct-btn-quote {
  background: var(--mct-blue);
  border-color: var(--mct-blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

/* Flatsome Enhancement Vertical Banner Column */
body.mct-enterprise-ui .fe-banner-col .fe-banner-box-text,
body.mct-enterprise-ui .fe-banner-col .box-image {
  display: none;
}
body.mct-enterprise-ui .fe-banner-col .product-small.box {
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 12px;
  min-height: 320px;
}

/* Frosted Glass Slider Navigation Circles */
body.mct-enterprise-ui .slider-nav-circle .flickity-prev-next-button {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 6px 16px rgba(11, 31, 58, 0.12);
  color: var(--mct-navy);
  transition: transform 0.25s var(--mct-ease-spring), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body.mct-enterprise-ui .slider-nav-circle .flickity-prev-next-button:hover {
  background: var(--mct-blue);
  border-color: var(--mct-blue);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}
body.mct-enterprise-ui .slider-nav-circle .flickity-prev-next-button:hover svg {
  fill: #fff;
}

/* Single Product Enterprise B2B Box */
.mct-single-status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--mct-radius-sm);
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  margin-bottom: 14px;
}
.mct-single-status--outofstock {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
}
.mct-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mct-success);
}
.mct-status-sep {
  color: #94A3B8;
}

.mct-single-b2b-box {
  margin-top: 18px;
  padding: 16px;
  background: var(--mct-bg);
  border: 1px solid var(--mct-border);
  border-radius: var(--mct-radius-md);
}
.mct-single-b2b-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.mct-single-b2b-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 12.8px;
  color: var(--mct-text-secondary);
}
.mct-single-b2b-meta a {
  color: var(--mct-blue);
  text-decoration: none;
}

@media (max-width: 767px) {
  .mct-single-b2b-actions {
    grid-template-columns: 1fr;
  }
  body.mct-enterprise-ui .product-small.box .box-text {
    padding: 10px;
  }
  body.mct-enterprise-ui .product-small.box .name.product-title a {
    font-size: 13px;
  }
}
