/* Codex: Dedicated modern Woo product styles */
:root {
  --s724-brand: #295ead;
  --s724-brand-dark: #1f4a87;
  --s724-bg-soft: #f5f7fb;
  --s724-border: #e6e9f0;
  --s724-text: #1c2230;
}

.s724-woo-wrapper {
  background: linear-gradient(180deg, #f8faff 0%, var(--s724-bg-soft) 100%);
  padding: 30px 0 44px;
}

.s724-woo-product div.product {
  background: #fff;
  border: 1px solid var(--s724-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(18, 36, 70, 0.08);
}

.s724-woo-product .woocommerce-product-gallery {
  position: sticky;
  top: 24px;
}

.s724-woo-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  background: #fff;
  border: 1px solid var(--s724-border);
  border-radius: 14px;
  padding: 12px;
}

.s724-woo-product .woocommerce-product-gallery__image img,
.s724-woo-product .flex-viewport {
  border-radius: 12px;
}

.s724-woo-product .flex-control-thumbs {
  margin-top: 10px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.s724-woo-product .flex-control-thumbs li {
  margin: 0 !important;
  width: auto !important;
  float: none !important;
}

.s724-woo-product .flex-control-thumbs li img {
  width: 100% !important;
  height: 74px;
  object-fit: cover;
  opacity: 0.75;
  border-radius: 8px;
  border: 1px solid var(--s724-border);
  transition: all .2s ease;
}

.s724-woo-product .flex-control-thumbs li img:hover,
.s724-woo-product .flex-control-thumbs li img.flex-active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: var(--s724-brand);
  box-shadow: 0 0 0 2px rgba(41, 94, 173, 0.18);
}

.s724-woo-product .woocommerce-product-gallery__trigger {
  right: 14px;
  top: 14px;
  border-radius: 50%;
  background: var(--s724-brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(41, 94, 173, 0.25);
}

.s724-woo-product .summary {
  padding-left: 28px;
}

.s724-woo-product .product_title {
  font-size: 34px;
  line-height: 1.2;
  color: var(--s724-text);
  margin-bottom: 8px;
}

.s724-woo-product p.price,
.s724-woo-product span.price {
  color: var(--s724-brand);
  font-size: 30px;
  font-weight: 800;
}

.s724-woo-product .woocommerce-product-details__short-description {
  background: #f7f9fe;
  border: 1px solid #e2e8f7;
  border-left: 4px solid var(--s724-brand);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 16px 0;
}

.s724-woo-product .variations {
  margin-bottom: 12px;
}

.s724-woo-product .variations td.label {
  width: 130px;
}

.s724-woo-product .variations select {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #dbe2ef;
  padding: 8px 12px;
}

.s724-woo-product .quantity .qty {
  min-height: 44px;
  border-radius: 8px;
}

.s724-woo-product .single_add_to_cart_button.button.alt {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  background: var(--s724-brand) !important;
  color: #fff !important;
}

.s724-woo-product .single_add_to_cart_button.button.alt:hover {
  background: var(--s724-brand-dark) !important;
}

.s724-woo-product .woocommerce-tabs {
  margin-top: 28px;
}

.s724-woo-product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--s724-border);
}

.s724-woo-product .woocommerce-tabs ul.tabs li {
  border: 0;
  background: transparent;
}

.s724-woo-product .woocommerce-tabs ul.tabs li a {
  font-weight: 700;
}

.s724-woo-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--s724-brand);
  border-bottom: 2px solid var(--s724-brand);
}

@media (max-width: 992px) {
  .s724-woo-product .summary {
    padding-left: 0;
    margin-top: 18px;
  }
  .s724-woo-product .flex-control-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .s724-woo-product .product_title {
    font-size: 28px;
  }
}
