/* Product card polish layer. Loaded last deliberately, after product.min.css. */
.product-page .product-summary {
  gap: 12px !important;
}

.product-page .product-price {
  padding: 17px 18px 16px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 3px !important;
  border: 1px solid rgba(164, 196, 218, .30) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(255, 255, 255, .94), rgba(255, 255, 255, 0) 58%),
    linear-gradient(135deg, rgba(242, 249, 252, .94), rgba(233, 244, 249, .70)) !important;
}

.product-page .product-price > span,
.product-page .product-block-title {
  color: #72869a !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .075em !important;
}

.product-page .product-price strong {
  color: #14263a !important;
  font-size: clamp(29px, 2.3vw, 36px) !important;
  font-weight: 680 !important;
  letter-spacing: -.035em !important;
}

.product-page .product-price small {
  color: #6f8092 !important;
  font-size: 11px !important;
  font-weight: 550 !important;
}

.product-page .product-stock {
  margin-top: 2px !important;
  gap: 8px !important;
}

.product-page .product-stock .stock-list {
  min-height: 58px !important;
  border: 1px solid rgba(164, 196, 218, .28) !important;
  border-radius: 16px !important;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 80%, rgba(54, 201, 112, .13), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(244, 249, 252, .72)) !important;
}

.product-page .product-stock .stock-chip {
  min-height: 58px !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.product-page .product-stock .stock-chip + .stock-chip {
  border-left: 1px solid rgba(164, 196, 218, .24) !important;
}

.product-page .product-stock .stock-chip span {
  color: #183148 !important;
  font-size: clamp(16px, 1.35vw, 19px) !important;
  font-weight: 720 !important;
  letter-spacing: -.025em !important;
}

.product-page .product-stock .stock-chip small {
  color: #77899a !important;
  font-size: 10px !important;
  font-weight: 550 !important;
}

.product-page .product-buy {
  margin-top: 2px !important;
  grid-template-columns: 128px minmax(0, 1fr) !important;
  gap: 10px !important;
}

.product-page .qty-control,
.product-page .product-cart {
  height: 52px !important;
  border-radius: 15px !important;
}

.product-page .qty-control {
  border-color: rgba(164, 196, 218, .34) !important;
  background: rgba(255, 255, 255, .58) !important;
}

.product-page .product-cart {
  border-color: rgba(0, 111, 186, .34) !important;
  background:
    radial-gradient(ellipse at 20% 28%, rgba(255, 255, 255, .30), transparent 45%),
    linear-gradient(135deg, #087fbe, #006eae) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(0, 103, 173, .19), inset 0 1px 0 rgba(255, 255, 255, .24) !important;
}

.product-page .product-card-pdf {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 12px !important;
  border-color: rgba(164, 196, 218, .28) !important;
  border-radius: 13px !important;
  background: rgba(248, 251, 253, .64) !important;
  color: #2677aa !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.product-page .product-card-pdf svg {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 1.7 !important;
}

.product-page .product-service {
  margin-top: 0 !important;
  gap: 8px !important;
}

.product-page .product-service div {
  min-height: 62px !important;
  padding: 11px 12px !important;
  border-color: rgba(164, 196, 218, .22) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .48) !important;
}

.product-page .product-service strong { color: #31485d !important; font-size: 11px !important; font-weight: 650 !important; }
.product-page .product-service span { color: #74879a !important; font-size: 10px !important; line-height: 1.35 !important; }

@media (max-width: 820px) {
  .product-page .product-summary { gap: 12px !important; padding: 14px !important; }
  .product-page .product-price { padding: 15px 16px 14px !important; }
  .product-page .product-price > span,
  .product-page .product-block-title { display: block !important; }
  .product-page .product-price strong { font-size: clamp(28px, 8vw, 35px) !important; }
  .product-page .product-stock .stock-chip { padding: 8px 6px !important; }
  .product-page .product-stock .stock-chip span { font-size: 16px !important; }
  .product-page .product-buy { grid-template-columns: 128px minmax(0, 1fr) !important; }
  .product-page .product-service { display: grid !important; }
}

/* One purchase module: the quantity control is quiet, the cart half carries
   the blue focus without breaking PDF/EAN into the same surface. */
.product-page .product-buy {
  position: relative;
  isolation: isolate;
  gap: 12px 0 !important;
}

.product-page .product-buy::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  height: 52px;
  border: 1px solid rgba(153, 196, 221, .48);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 88% 48%, rgba(50, 182, 232, .30), rgba(50, 182, 232, 0) 56%),
    linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(250, 253, 254, .90) 27%, rgba(222, 245, 253, .86) 67%, rgba(197, 233, 248, .94) 100%);
  box-shadow: 0 10px 24px rgba(28, 78, 105, .055), inset 0 1px 0 rgba(255, 255, 255, .88);
  pointer-events: none;
}

.product-page .product-buy .qty-control,
.product-page .product-buy .product-cart {
  position: relative;
  z-index: 1;
  height: 52px !important;
  border: 0 !important;
  box-shadow: none !important;
}

.product-page .product-buy .qty-control {
  border-radius: 15px 0 0 15px !important;
  background: transparent !important;
  grid-template-columns: 28px minmax(54px, 1fr) 28px !important;
}

.product-page .product-buy .qty-control button,
.product-page .product-buy .qty-control button:hover,
.product-page .product-buy .qty-control button:focus,
.product-page .product-buy .qty-control button:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
}

.product-page .product-buy .qty-control button:focus-visible {
  outline: 1px solid rgba(0, 111, 186, .32);
  outline-offset: -5px;
}

.product-page .product-buy .qty-control span,
.product-page .product-buy .qty-control input {
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.product-page .product-buy .product-cart {
  border-left: 0 !important;
  border-radius: 0 15px 15px 0 !important;
  background:
    radial-gradient(ellipse at 76% 74%, rgba(76, 198, 128, .16), rgba(76, 198, 128, 0) 48%),
    linear-gradient(90deg, rgba(210, 241, 252, 0), rgba(161, 220, 245, .10) 30%, rgba(98, 192, 231, .22) 100%) !important;
  color: #0073b8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

.product-page .product-buy .product-cart:hover {
  background:
    radial-gradient(ellipse at 78% 42%, rgba(60, 184, 231, .23), rgba(60, 184, 231, 0) 58%),
    radial-gradient(ellipse at 30% 70%, rgba(0, 111, 186, .12), rgba(0, 111, 186, 0) 54%),
    rgba(255, 255, 255, .28) !important;
}

.product-page .product-buy .product-identifiers,
.product-page .product-buy .product-card-pdf {
  margin-top: 0 !important;
}

/* EAN and product PDF share one quiet utility row below the purchase module. */
.product-page .product-buy .product-identifiers {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  order: unset !important;
  justify-self: start !important;
  align-self: center;
  min-height: 28px !important;
  padding: 0 9px !important;
  border-color: rgba(0, 111, 186, .12) !important;
  border-radius: 10px !important;
  background: rgba(237, 247, 252, .56) !important;
  color: #377a9e !important;
  font-size: 10px !important;
}

.product-page .product-buy .product-card-pdf {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  order: unset !important;
  justify-self: end !important;
  align-self: center;
  width: auto !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 9px !important;
  gap: 5px !important;
  border-color: rgba(0, 111, 186, .12) !important;
  border-radius: 10px !important;
  background: rgba(237, 247, 252, .56) !important;
  color: #377a9e !important;
  font-size: 10px !important;
  font-weight: 650 !important;
}

.product-page .product-buy .product-card-pdf svg {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 1.65 !important;
}

/* Visible-card rhythm: explicit margins avoid relying on nested grid gaps. */
.product-page .product-summary {
  gap: 0 !important;
}

.product-page .product-price + .product-stock,
.product-page .product-stock + .product-buy,
.product-page .product-buy + .product-service {
  margin-top: 12px !important;
}

.product-page .product-buy {
  row-gap: 12px !important;
}

/* Carry the search field's living blue/green glow into the cart action. */
.product-page .product-buy .product-cart {
  overflow: hidden !important;
  isolation: isolate;
  animation: product-cart-search-pulse 3.9s ease-in-out infinite;
}

.product-page .product-buy .product-cart::before,
.product-page .product-buy .product-cart::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
}

.product-page .product-buy .product-cart::before {
  width: 176px;
  height: 88px;
  right: -28px;
  top: -18px;
  background:
    radial-gradient(ellipse at 68% 50%, rgba(0, 111, 186, .34), rgba(0, 111, 186, .15) 43%, rgba(0, 111, 186, 0) 76%),
    radial-gradient(ellipse at 28% 50%, rgba(57, 181, 74, .18), rgba(57, 181, 74, 0) 70%);
  filter: blur(15px);
  opacity: .95;
  animation: product-cart-search-blur 4.4s ease-in-out infinite;
}

.product-page .product-buy .product-cart::after {
  width: 260px;
  height: 92px;
  left: -290px;
  top: -20px;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .22) 31%, rgba(57, 181, 74, .055) 45%, rgba(0, 111, 186, .09) 58%, rgba(255, 255, 255, 0) 100%);
  filter: blur(16px);
  opacity: .58;
  transform: skewX(-18deg);
  animation: product-cart-search-sheen 5.8s ease-in-out infinite;
}

.product-page .product-buy .product-cart > * {
  position: relative;
  z-index: 1;
}

@keyframes product-cart-search-pulse {
  0%, 100% { filter: drop-shadow(0 7px 15px rgba(0, 111, 186, .08)); }
  45% { filter: drop-shadow(0 10px 22px rgba(0, 111, 186, .22)) drop-shadow(0 0 7px rgba(57, 181, 74, .12)); }
  68% { filter: drop-shadow(0 8px 18px rgba(0, 111, 186, .12)); }
}

@keyframes product-cart-search-blur {
  0%, 100% { opacity: .66; transform: translateX(-2px) scaleX(.92); }
  42% { opacity: 1; transform: translateX(-58px) scaleX(1.24); }
  72% { opacity: .78; transform: translateX(12px) scaleX(1.02); }
}

@keyframes product-cart-search-sheen {
  0%, 34% { opacity: 0; transform: translateX(0) skewX(-18deg); }
  52% { opacity: .52; }
  76%, 100% { opacity: 0; transform: translateX(760px) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .product-page .product-buy .product-cart,
  .product-page .product-buy .product-cart::before,
  .product-page .product-buy .product-cart::after { animation: none; }
}
