/**
 * Single product page — ported 1:1 from design/miska-450ml-layout.html.
 *
 * Header, top bar and footer are global chrome (components/header|footer.css);
 * this file styles only the product body: breadcrumb, image column, info column
 * (delivery / buy / wholesale / help cards), the packaging selector and the
 * tabs. All selectors are scoped under `.sp` so the generic class names
 * (.card, .badge, .help…) never leak into other pages. Colours come from
 * tokens.css; the design's spacing/type values are kept verbatim for fidelity.
 */

/* ---- Breadcrumb + title ---- */
.sp .breadcrumb { font-size: 12.5px; color: var(--muted); padding: 12px 0 2px; }
.sp .breadcrumb a { color: var(--muted); }
.sp .breadcrumb span { color: var(--ink); }

.sp h1.product-title { font-size: 23px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 14px; }

/* ---- Main grid: image 1/3, info 2/3 ---- */
.sp .product-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}

/* ---- Image column ---- */
.sp .gallery { position: sticky; top: var(--anchor-offset); }
.sp .gallery-main {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.sp .gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Badge stack over the product image — the loop card's .pbadge, same look and
   same top-left stacking (components/product-card.css scopes its copy to
   li.pcard, so the rules are repeated rather than shared). */
.sp .gallery-main .pbadges {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.sp .gallery-main .pbadge {
  margin: 0; min-height: 0;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--teal); border-radius: var(--radius-pill); padding: 5px 11px;
}
.sp .gallery-main .pbadge.sale { background: var(--accent); }

.sp .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sp .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--teal-600);
  background: var(--teal-50); border-radius: var(--radius-pill);
  padding: 6px 12px; font-weight: 550;
}
.sp .badge svg { width: 14px; height: 14px; flex: none; }

.sp .desc-teaser { margin-top: 18px; }
.sp .desc-teaser p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft-2); margin: 0; }
.sp .desc-teaser p a { font-weight: 600; white-space: nowrap; }

/* ---- Info column ---- */
.sp .info { display: flex; flex-direction: column; gap: 12px; }

.sp .card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
}
.sp .card.flush { padding: 0; overflow: hidden; }

/* Delivery strip */
.sp .delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.sp .delivery .group { display: flex; gap: 13px; align-items: flex-start; padding: 14px 18px; }
.sp .delivery .group:first-child { border-right: 1px solid var(--line-soft); }
.sp .delivery .ico {
  width: 38px; height: 38px; flex: none; border-radius: var(--radius-sm);
  background: var(--teal-50); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.sp .delivery .ico svg { width: 20px; height: 20px; }
.sp .delivery .val { font-size: 15px; font-weight: 500; color: var(--ink); }
.sp .delivery .val-lead { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.sp .delivery .sub2 { font-weight: 450; color: var(--muted); font-size: 13px; margin-top: 5px; }
.sp .delivery .sub2 b { color: var(--ink); font-weight: 650; }
.sp .pill-stock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 700; color: var(--stock-green);
}
.sp .pill-stock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stock-dot); display: inline-block; }
.sp .pill-stock.out { color: var(--muted); }
.sp .pill-stock.out .dot { background: var(--muted); }

/* Buy card head */
.sp .buy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sp .buy-title { font-size: 15px; font-weight: 700; margin: 0; }
.sp .price-context { font-size: 12.5px; color: var(--muted); font-weight: 450; }
.sp .price-context b { font-weight: 700; color: var(--teal); }

/* Packaging selector (variants) */
.sp .variants { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sp .variant {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .12s, background .12s;
  margin: 0;
  /* The discount panel is flush with the card's edges, so the padding lives on
     the content spans instead of on the card itself. overflow:hidden is what
     rounds the panel's outer corners to the card's radius. */
  padding: 0; overflow: hidden;
}
/* Discount panel — a full-height green block on the card's leading edge, so a
   discounted tier reads as discounted before any price is compared: the
   percentage, then the money it saves. */
.sp .variant .v-save {
  align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* Negative margin cancels the card's own flex gap: the panel is an edge, not
     a third column, so it must sit flush against the content it labels. */
  padding: 0 11px; margin-right: -8px;
  /* Fixed width: a tier saving 0,25 € and one saving 19,32 € must not shift the
     name column that follows them. */
  flex: none; min-width: 88px;
  background: var(--vsave-bg); color: var(--vsave-text);
  line-height: 1.2; text-align: center; white-space: nowrap;
}
.sp .variant .v-save b { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.sp .variant .v-save > span { font-size: 12px; font-weight: 600; margin-top: 10px; }
.sp .variant .v-save small { font-size: 12px; font-weight: 700; }
.sp .variant:hover { border-color: var(--line-hover); }
.sp .variant.selected { border-color: var(--teal); background: var(--teal-50); }
/* flex:1 pins the radio + name to the card's leading edge instead of letting
   space-between float them between the panel and a price whose width differs
   per row — the names then start at the same x in every card.
   min-width:0 lets the column give way once the discount panel takes its share;
   without it the flex default keeps it at content width and the price is pushed
   past the card's clipped edge. */
.sp .variant .v-left { display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 14px; min-width: 0; flex: 1; }
.sp .variant .radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--radio-border); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.sp .variant.selected .radio { border-color: var(--teal); }
.sp .variant.selected .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.sp .variant .v-name { font-size: 14px; font-weight: 600; }
.sp .variant .v-name small { display: block; font-weight: 450; color: var(--muted); font-size: 12px; }
/* Each meta bit (SKU, piece count) stays whole; the line may only break at the
   separators between them. */
.sp .variant .v-name small span { white-space: nowrap; }
.sp .variant .v-price { text-align: right; font-size: 14.5px; font-weight: 700; white-space: nowrap; padding: 10px 14px 10px 0; flex: none; }
.sp .variant .v-price b { font-weight: 700; }
/* Sale — the original package price stacks above the current one; the wrapper
   comes from base/price.css, only the type scale is set here. */
.sp .variant .v-price del { font-size: 12px; font-weight: 450; }
/* The row's prices are right-aligned, so both lines of the stack are too. */
.sp .variant .v-price .pprice-stack { justify-content: flex-end; }
.sp .variant .v-price .v-vat { color: var(--muted); font-size: 11px; font-weight: 450; }
.sp .variant .v-price small { color: var(--muted); font-size: 12px; font-weight: 450; }

/* Packaging upsell tip ("the carton is cheaper") */
.sp .pkg-tip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); padding: 10px 14px; margin-bottom: 14px;
  transition: border-color .15s, background .15s, color .15s;
}
/* `display: flex` above outranks the UA rule for [hidden] — restore it. */
.sp .pkg-tip[hidden] { display: none; }
.sp .pkg-tip-ico { width: 18px; height: 18px; flex: none; color: var(--muted); }
.sp .pkg-tip-txt { margin: 0; flex: 1; min-width: 200px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.sp .pkg-tip-txt b { font-weight: 700; color: var(--ink); }
.sp .pkg-tip-btn {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  font-family: inherit; font-size: 13px; font-weight: 650; color: var(--ink);
  padding: 8px 14px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s;
}
.sp .pkg-tip-btn:hover { border-color: var(--line-hover); background: var(--teal-50); }
.sp .pkg-tip-btn[hidden] { display: none; }

/* Highlighted state — the customer is buying enough that the smaller unit costs them money. */
.sp .pkg-tip.is-strong { border-color: var(--accent); background: #fff8e8; }
.sp .pkg-tip.is-strong .pkg-tip-ico { color: var(--accent); }
.sp .pkg-tip.is-strong .pkg-tip-txt { color: var(--ink); font-size: 13.5px; }
.sp .pkg-tip.is-strong .pkg-tip-btn { border-color: var(--accent); background: var(--accent); color: #fff; }
.sp .pkg-tip.is-strong .pkg-tip-btn:hover { background: #d99400; border-color: #d99400; }

/* Buy row: qty + add to cart */
.sp .buy-row { display: flex; gap: 10px; align-items: stretch; margin: 0; }
.sp .qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.sp .qty button { width: 42px; height: 50px; border: none; background: var(--bg); font-size: 19px; color: var(--ink); cursor: pointer; }
.sp .qty button:hover { background: var(--teal-50); }
.sp .qty .qty-input {
  width: 50px; height: 50px; border: none; text-align: center; font-size: 16px; font-weight: 600;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  -moz-appearance: textfield; appearance: textfield; background: var(--bg);
}
.sp .qty .qty-input::-webkit-outer-spin-button,
.sp .qty .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Add-to-cart green, shared with the loop card button and the quickview. */
.sp .btn-cart {
  flex: 1; border: none; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--green); color: #fff; font-size: 16px; font-weight: 650;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 24px; min-height: 50px; transition: background .12s; font-family: inherit;
}
.sp .btn-cart:hover { background: var(--green-600); text-decoration: none; }
.sp .btn-cart svg { width: 20px; height: 20px; }
.sp .btn-cart.disabled,
.sp .btn-cart:disabled { opacity: .45; cursor: not-allowed; }

.sp .buy-total { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; }
.sp .buy-total b { font-size: 16px; color: var(--ink); font-weight: 700; }
.sp .buy-total .bionela-sel-name { font-size: 13px; font-weight: 600; }

/* Hide WC's native selects + default variation price block (design shows both on cards) */
.sp .bionela-variations-native { display: none; }
.sp .single_variation_wrap .single_variation { display: none; }
.sp .single_variation_wrap .woocommerce-variation-price,
.sp .single_variation_wrap .woocommerce-variation-availability { display: none; }

/* Wholesale strip */
.sp .wholesale-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 13px 18px; }
.sp .ws-info { display: flex; align-items: center; gap: 13px; flex: 1 1 280px; }
.sp .ws-ico { width: 30px; height: 30px; flex: none; color: var(--teal); }
.sp .ws-t1 { font-size: 14px; font-weight: 550; color: var(--ink); }
.sp .ws-t1 b { font-weight: 700; color: var(--teal); }
.sp .ws-t2 { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sp .ws-save { color: var(--save-text); font-weight: 600; background: var(--save-bg); border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.sp .ws-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sp .ws-active-strip { background: var(--teal-50); border-color: var(--teal-line); }

.sp .btn-ghost {
  font-size: 13px; font-weight: 600; color: var(--teal);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 13px;
  background: var(--bg); cursor: pointer; white-space: nowrap; font-family: inherit;
  display: inline-flex; align-items: center;
}
.sp .btn-ghost:hover { border-color: var(--teal); text-decoration: none; background: var(--teal-50); }
/* The wholesale login CTA sits two rows under .btn-cart, so it takes the dark
   end of the green scale — same family, clearly not the buy button. */
.sp .btn-ghost.solid { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.sp .btn-ghost.solid:hover { background: var(--green-800); border-color: var(--green-800); }

/* Help card */
.sp .help { display: flex; align-items: center; gap: 16px; }
.sp .help .avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.sp .help .h-txt { flex: 1; }
.sp .help .h-txt .t1 { font-size: 14.5px; font-weight: 650; }
.sp .help .h-txt .t2 { font-size: 12.5px; color: var(--muted); }
.sp .help .h-phone { font-size: 17px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.sp .help .h-phone:hover { text-decoration: none; }

/* ---- Tabs ---- */
.sp .tabs-wrap { margin: 48px 0 60px; }
.sp .tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sp .tab-btn {
  background: none; border: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted);
  padding: 14px 18px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: inherit;
}
.sp .tab-btn:hover { color: var(--ink); }
.sp .tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
.sp .tab-panel { display: none; padding: 28px 2px; max-width: 820px; }
.sp .tab-panel.active { display: block; }
.sp .tab-panel p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; }
.sp .empty-rev { color: var(--muted); font-size: 15px; }

/* Parametre — WooCommerce attribute table restyled to the design's .param-table.
 * The rows are laid out in two columns, so the table drops its table layout for a
 * grid: tbody is flattened with display:contents to make every <tr> a grid item,
 * and each row becomes its own label/value flex line. */
.sp .woocommerce-product-attributes {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  font-size: 14.5px;
}
.sp .woocommerce-product-attributes tbody { display: contents; }
.sp .woocommerce-product-attributes tr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.sp .woocommerce-product-attributes th,
.sp .woocommerce-product-attributes td { display: block; padding: 0; text-align: left; }
.sp .woocommerce-product-attributes th { color: var(--muted); font-weight: 450; }
.sp .woocommerce-product-attributes td { font-weight: 600; text-align: right; }
.sp .woocommerce-product-attributes td p { margin: 0; }

/* Doprava a platba — the amount stacks the net figure above the gross one, so the
 * row is aligned on its baseline rather than centred (the label must sit on the
 * gross line, not float between the two). */
.sp .ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; font-size: 14.5px; max-width: 560px; }
.sp .ship-grid .r { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--line-soft); padding: 9px 0; }
.sp .ship-grid .amt { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.3; }
.sp .ship-grid .amt .net { font-size: 12px; font-weight: 400; }
.sp .ship-grid .r b { font-weight: 650; }

/* ---- Reviews ----
 * Markup comes from wooptima-ecommerce's single-product-reviews.php: a
 * .wa-product-reviews block (average score + comment form) followed by
 * WooCommerce's #reviews list. WooCommerce's own stylesheets are dequeued
 * (inc/woocommerce.php), so the star widgets are rebuilt here from ★ glyphs
 * instead of WC's bundled icon font. */
.sp .tab-panel[data-panel="recenzie"] { max-width: 820px; }

/* Static star meter — average rating + each review's score. The inner <span>
 * carries an inline width:<pct> from wc_get_rating_html(). */
.sp .star-rating {
  position: relative; display: inline-block; overflow: hidden;
  width: 5.5em; height: 1.15em; line-height: 1.15; font-size: 15px; white-space: nowrap;
}
.sp .star-rating::before,
.sp .star-rating span::before {
  content: "★★★★★"; position: absolute; top: 0; left: 0; letter-spacing: .1em;
}
.sp .star-rating::before { color: var(--star-off); }
.sp .star-rating span { position: absolute; top: 0; left: 0; overflow: hidden; padding-top: 1.5em; }
.sp .star-rating span::before { color: var(--star-on); }

/* Average score card + form, side by side. */
.sp .wa-product-reviews {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--space-7);
  align-items: start; margin-bottom: var(--space-7);
}
.sp .wa-average-rating {
  background: var(--teal-50); border: 1px solid var(--teal-line);
  border-radius: var(--radius-md); padding: var(--space-6) var(--space-5); text-align: center;
}
.sp .wa-average-rating__heading {
  display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.sp .wa-average-rating__wrapper {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  margin-top: var(--space-3);
}
.sp .wa-average-rating__value { font-size: 40px; font-weight: 700; line-height: 1; color: var(--teal); }

/* No ratings yet → the score card would just read "0.0" with five blank stars. */
.sp .wa-product-reviews:has(+ #reviews .woocommerce-noreviews) { grid-template-columns: 1fr; }
.sp .wa-product-reviews:has(+ #reviews .woocommerce-noreviews) .wa-average-rating { display: none; }

/* ---- Review form ---- */
.sp .comment-reply-title {
  display: block; font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: var(--space-2);
}
.sp .comment-notes,
.sp .must-log-in,
.sp .woocommerce-verification-required { font-size: 13.5px; color: var(--muted); margin: 0 0 var(--space-5); }
.sp .comment-form .required { color: var(--danger); }
.sp .comment-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: var(--space-2); }
.sp .comment-form p { margin: 0 0 var(--space-5); }
.sp .comment-form input[type="text"],
.sp .comment-form input[type="email"],
.sp .comment-form textarea,
.sp .comment-form select {
  width: 100%; max-width: 420px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; font-family: inherit; font-size: 14.5px; color: var(--ink); background: var(--bg);
}
.sp .comment-form textarea { max-width: 100%; min-height: 130px; resize: vertical; }
.sp .comment-form input[type="text"]:focus,
.sp .comment-form input[type="email"]:focus,
.sp .comment-form textarea:focus,
.sp .comment-form select:focus { outline: none; border-color: var(--teal); }

/* Interactive star picker (WooCommerce swaps #rating for p.stars via JS).
 * Cascade: all grey → gold while hovering/selected → grey again past the
 * hovered/active star. Hover rules come last so they win over .selected. */
.sp .comment-form-rating { margin-bottom: var(--space-5); }
.sp p.stars { display: flex; gap: var(--space-1); margin: 0; }
.sp p.stars a {
  position: relative; display: inline-block; width: 1.15em; height: 1em;
  font-size: 26px; line-height: 1; overflow: hidden; text-indent: -9999px; text-decoration: none;
}
.sp p.stars a::after {
  content: "★"; position: absolute; top: 0; left: 0; text-indent: 0; color: var(--star-off);
}
.sp p.stars.selected a::after { color: var(--star-on); }
.sp p.stars.selected a.active ~ a::after { color: var(--star-off); }
.sp p.stars:hover a::after { color: var(--star-on); }
.sp p.stars:hover a:hover ~ a::after { color: var(--star-off); }

.sp .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: var(--space-2); }
.sp .comment-form-cookies-consent label { font-weight: 450; font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.sp .comment-form-cookies-consent input { margin-top: 3px; accent-color: var(--teal); }
.sp .comment-form .form-submit { margin-bottom: 0; }
.sp .comment-form input#submit {
  width: auto; max-width: none; background: var(--teal); color: var(--bg); border: none;
  border-radius: var(--radius-sm); padding: 13px 26px; font-size: 15px; font-weight: 650; cursor: pointer;
}
.sp .comment-form input#submit:hover { background: var(--teal-600); }

/* ---- Posted reviews ---- */
.sp #reviews .commentlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.sp #reviews .commentlist .comment_container {
  display: flex; gap: var(--space-4); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-5);
}
.sp #reviews .commentlist .avatar {
  width: 44px; height: 44px; border-radius: var(--radius-pill); flex: 0 0 44px;
}
.sp #reviews .commentlist .comment-text { flex: 1; min-width: 0; }
/* Threaded shop replies sit indented under their review, tinted to read as an answer. */
.sp #reviews .commentlist .children { list-style: none; margin: var(--space-3) 0 0; padding: 0 0 0 var(--space-7); }
.sp #reviews .commentlist .children .comment_container { background: var(--teal-50); border-color: var(--teal-line); }
.sp #reviews .commentlist .children li + li { margin-top: var(--space-3); }
.sp #reviews .commentlist .meta {
  margin: var(--space-2) 0 var(--space-3); font-size: 13.5px; color: var(--muted);
}
.sp #reviews .commentlist .woocommerce-review__author { color: var(--ink); font-weight: 650; }
.sp #reviews .commentlist .description p { margin: 0 0 var(--space-2); font-size: 14.5px; color: var(--ink-soft); }
.sp #reviews .commentlist .description p:last-child { margin-bottom: 0; }
.sp #reviews .woocommerce-noreviews { font-size: 14.5px; color: var(--muted); margin: 0; }
.sp #reviews .woocommerce-pagination ul { list-style: none; display: flex; gap: var(--space-2); padding: 0; margin: var(--space-6) 0 0; }
.sp #reviews .woocommerce-pagination a,
.sp #reviews .woocommerce-pagination span {
  display: inline-block; min-width: 36px; text-align: center; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; text-decoration: none;
}
.sp #reviews .woocommerce-pagination .current { background: var(--teal); border-color: var(--teal); color: var(--bg); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .sp .product-top { grid-template-columns: 1fr; gap: 24px; }
  .sp .gallery { position: static; }
  .sp .ship-grid { grid-template-columns: 1fr; }
  .sp .woocommerce-product-attributes { grid-template-columns: 1fr; }
  .sp .wa-product-reviews { grid-template-columns: 1fr; gap: var(--space-6); }
  .sp .wa-average-rating { display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .sp .wa-average-rating__wrapper { flex-direction: row; align-items: center; margin-top: 0; gap: var(--space-3); }
  .sp .wa-average-rating__value { font-size: 30px; }
}
/* Two packaging cards side by side stop fitting well below this width: the buy
   column narrows first (the gallery is still beside it down to 900px), and the
   discount panel leaves the name and price fighting over what is left. */
@media (max-width: 1100px) {
  .sp .variants { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .sp .delivery { grid-template-columns: 1fr; }
  .sp .delivery .group:first-child { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .sp h1.product-title { font-size: 24px; }
  .sp .buy-row { flex-wrap: wrap; }
  .sp .btn-cart { width: 100%; flex: 1 0 100%; }
}
