/* Shop / category / home — product card tiles */

.woocommerce ul.products li.product,
.product-small.col {
  margin-bottom: 24px !important;
}

.woocommerce ul.products li.product .col-inner,
.product-small > .col-inner,
.home .st-popular-grid .product-small.box {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(11, 31, 58, 0.06) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.woocommerce ul.products li.product:hover .col-inner,
.product-small:hover > .col-inner,
.home .st-popular-grid .product-small.box:hover {
  border-color: #d1d5db !important;
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.1) !important;
  transform: translateY(-2px);
}

/* Image area — fixed canvas so every tile aligns with text below */
.woocommerce ul.products li.product .box-image,
.product-small .box-image,
.st-pdp-related__grid .box-image,
.st-prod-grid .box-image,
.home .st-popular-grid .box-image {
  background: #fafbfc !important;
  border-bottom: 1px solid #eef0f2 !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  flex: 0 0 220px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  overflow: hidden !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Flatsome inner wrappers fill the fixed image box */
.woocommerce ul.products li.product .box-image > a,
.woocommerce ul.products li.product .box-image .image-fade,
.woocommerce ul.products li.product .box-image .image-none,
.product-small .box-image > a,
.product-small .box-image .image-fade,
.product-small .box-image .image-none,
.st-pdp-related__grid .box-image > a,
.st-pdp-related__grid .box-image .image-fade,
.st-prod-grid .box-image > a,
.home .st-popular-grid .box-image > a,
.home .st-popular-grid .box-image .image-fade_in_back {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
}

.woocommerce ul.products li.product .box-image .img-inner,
.product-small .box-image .img-inner,
.st-pdp-related__grid .box-image .img-inner,
.st-prod-grid .box-image .img-inner,
.home .st-popular-grid .box-image .img-inner,
.home .st-popular-grid .box-image > a > div {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .box-image img,
.product-small .box-image img,
.st-pdp-related__grid .box-image img,
.st-prod-grid .box-image img,
.home .st-popular-grid .box-image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 196px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

/* Text block — consistent start below image */
.woocommerce ul.products li.product .box-text,
.product-small .box-text,
.st-prod-grid .box-text,
.st-pdp-related__grid .box-text,
.home .st-popular-grid .box-text {
  padding: 14px 18px 18px !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 118px !important;
  box-sizing: border-box !important;
}

.woocommerce-loop-product__title,
.product-small .woocommerce-loop-product__title,
.product-small .name a {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #0b1f3a !important;
  margin-bottom: 6px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-small .name a:hover {
  color: #e85d04 !important;
}

/* Price */
.woocommerce ul.products li.product .price,
.product-small .price {
  margin-top: auto !important;
  padding-top: 10px !important;
  font-size: 19px !important;
  font-weight: 800 !important;
}

.woocommerce ul.products li.product .price ins,
.product-small .price ins {
  color: #e85d04 !important;
}

/* Hide clutter on grid */
.woocommerce ul.products li.product .quick-view,
.product-small .quick-view,
.st-prod-grid .quick-view,
.home .st-popular-grid .quick-view,
.home .st-popular-grid .image-tools {
  display: none !important;
}

.woocommerce ul.products li.product .add-to-cart-button,
.product-small .add-to-cart-button {
  margin-top: 10px !important;
}

.product-small .add-to-cart-button .button {
  width: 100% !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  min-height: 40px !important;
}

/* Category + SKU — inside text block, above title */
.st-product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 6px !important;
  padding: 0 !important;
  align-items: center;
  order: -1;
}

.woocommerce ul.products li.product .box-text,
.product-small .box-text {
  display: flex !important;
  flex-direction: column !important;
}

.st-product-card__sku {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.02em;
}

/* Category line under title (when present) */
.st-product-card__cat {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  color: #6b7280 !important;
  margin: 0 0 4px !important;
}

/* Single product — spec highlights */
.st-spec-highlights {
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  border-left: 4px solid #f4b400;
}

.st-spec-highlights__title {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #0b1f3a !important;
}

.st-spec-highlights__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px 16px !important;
}

.st-spec-highlights__list li {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.st-spec-highlights__list .k {
  display: block;
  color: #6b7280;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.st-spec-highlights__list .v {
  color: #111827;
  font-weight: 700;
}

@media (max-width: 549px) {
  .st-spec-highlights__list {
    grid-template-columns: 1fr !important;
  }
}

/* Spec table tab + inline */
.st-spec-table-wrap {
  margin: 0 0 24px;
}

.st-spec-table__heading {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0b1f3a !important;
  margin: 0 0 12px !important;
}

.st-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.st-spec-table th,
.st-spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eef0f2;
  vertical-align: top;
}

.st-spec-table tr:last-child th,
.st-spec-table tr:last-child td {
  border-bottom: none;
}

.st-spec-table th {
  width: 38%;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
}

.st-spec-table td {
  color: #111827;
  font-weight: 500;
}

.woocommerce-tabs .st-spec-table-wrap {
  padding-top: 8px;
}
