/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.product-main {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8); align-items: start;
  padding-block: var(--s-6) var(--s-8);
}

/* --- Gallery --- */
.woocommerce-product-gallery { position: sticky; top: 92px; }
.woocommerce-product-gallery__wrapper {
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--c-ice);
}
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.flex-control-thumbs {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: var(--s-2); margin-top: var(--s-3); list-style: none;
}
.flex-control-thumbs li { cursor: pointer; }
.flex-control-thumbs img {
  border: 1px solid var(--c-line); border-radius: var(--r);
  background: var(--c-ice); opacity: .62;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.flex-control-thumbs img:hover, .flex-control-thumbs img.flex-active {
  opacity: 1; border-color: var(--c-navy);
}

/* --- Summary --- */
.product-sum__coll {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-navy); margin-bottom: var(--s-3);
}
.product_title {
  font-family: var(--f-display); font-size: var(--t-2xl) !important;
  font-weight: 500; line-height: 1.12; margin-bottom: var(--s-3) !important;
}
.product-sum__sku { font-size: var(--t-xs); color: var(--c-ink-soft); margin-bottom: var(--s-4); }

.woocommerce-product-details__short-description {
  color: var(--c-ink-soft); line-height: 1.75; margin-bottom: var(--s-5);
}

.summary .price {
  font-size: var(--t-xl) !important; font-weight: 700; color: var(--c-ink) !important;
  font-variant-numeric: tabular-nums; margin-bottom: var(--s-2) !important;
  display: block;
}
.product-sum__tax { font-size: var(--t-xs); color: var(--c-ink-soft); margin-bottom: var(--s-5); }

/* --- Spec table: only rows the catalogue can fill --- */
.spec-table {
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: var(--s-5);
}
.spec-row {
  display: grid; grid-template-columns: 140px 1fr;
  font-size: var(--t-sm);
}
.spec-row + .spec-row { border-top: 1px solid var(--c-line-soft); }
.spec-row__k {
  padding: 12px var(--s-4); background: var(--c-ice);
  color: var(--c-ink-soft); font-weight: 500;
  border-right: 1px solid var(--c-line-soft);
}
.spec-row__v { padding: 12px var(--s-4); font-weight: 600; text-transform: capitalize; }

/* --- Cart form --- */
form.cart { display: flex; gap: var(--s-3); margin-bottom: var(--s-5) !important; flex-wrap: wrap; }
.quantity input[type="number"] {
  width: 74px; padding: 13px var(--s-3); text-align: center;
  border: 1px solid var(--c-line); border-radius: var(--r);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.quantity input:focus { outline: none; border-color: var(--c-navy); }
.single_add_to_cart_button {
  flex: 1; min-width: 200px;
  padding: 15px var(--s-6) !important; border-radius: var(--r) !important;
  background: var(--c-navy) !important; color: #fff !important;
  font-size: var(--t-sm) !important; font-weight: 600 !important;
  letter-spacing: .03em; border: 0 !important;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease) !important;
}
.single_add_to_cart_button:hover { background: var(--c-navy-deep) !important; box-shadow: var(--sh-2); }

.product-sum__wish {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-sm); font-weight: 600; color: var(--c-ink-soft);
  padding: 13px var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.product-sum__wish:hover, .product-sum__wish.is-on { color: var(--c-sale); border-color: currentColor; }
.product-sum__wish.is-on svg { fill: currentColor; }

/* --- Assurances under the button --- */
.product-assure {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3);
  padding-top: var(--s-5); border-top: 1px solid var(--c-line);
}
.product-assure__i { display: flex; gap: var(--s-3); align-items: flex-start; }
.product-assure__i svg { color: var(--c-navy-deep); flex: none; margin-top: 2px; }
.product-assure__t { font-size: var(--t-sm); font-weight: 600; line-height: 1.3; }
.product-assure__d { font-size: 11.5px; color: var(--c-ink-soft); }

/* --- Tabs --- */
.woocommerce-tabs { border-top: 1px solid var(--c-line); padding-top: var(--s-7); }
.wc-tabs { display: flex; gap: var(--s-6); border-bottom: 1px solid var(--c-line); margin-bottom: var(--s-6) !important; }
.wc-tabs li a {
  display: inline-block; padding-bottom: var(--s-3);
  font-size: var(--t-sm); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--c-ink-soft);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.wc-tabs li.active a, .wc-tabs li a:hover { color: var(--c-ink); border-bottom-color: var(--c-navy); }
.woocommerce-Tabs-panel { max-width: 76ch; line-height: 1.8; color: var(--c-ink-soft); }
.woocommerce-Tabs-panel h2 { display: none; }
.woocommerce-Tabs-panel p + p { margin-top: var(--s-4); }

/* --- Related --- */
.related > h2, .up-sells > h2 {
  font-family: var(--f-display); font-size: var(--t-xl) !important;
  font-weight: 500; margin-bottom: var(--s-6) !important;
}

@media (max-width: 960px) {
  .product-main { grid-template-columns: 1fr; gap: var(--s-6); }
  .woocommerce-product-gallery { position: static; }
}
@media (max-width: 520px) {
  .product-assure { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 110px 1fr; }
  .single_add_to_cart_button { min-width: 0; }
  .wc-tabs { gap: var(--s-4); overflow-x: auto; }
}
