:root {
  --spc-ink: #241820;
  --spc-muted: #73666e;
  --spc-wine: #842f55;
  --spc-wine-dark: #65203f;
  --spc-rose: #f7edf1;
  --spc-line: #eadde3;
  --spc-paper: #fffdfd;
  --spc-success: #27724d;
  --spc-radius: 22px;
  --spc-shadow: 0 18px 50px rgba(59, 31, 46, .09);
}

body.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
  max-width: 1240px;
  margin: 34px auto 70px;
  padding-inline: clamp(18px, 3vw, 34px);
}

body.single-product div.product::before,
body.single-product div.product::after { display: none; }

body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary {
  float: none;
  width: auto;
  margin: 0;
}

body.single-product div.product .woocommerce-product-gallery {
  position: sticky;
  top: 22px;
  min-width: 0;
}

body.single-product .woocommerce-product-gallery__wrapper {
  overflow: hidden;
  border: 1px solid var(--spc-line);
  border-radius: var(--spc-radius);
  background: #f8f4f5;
  box-shadow: var(--spc-shadow);
}

body.single-product .woocommerce-product-gallery__image a {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / .82;
  padding: clamp(12px, 2.5vw, 30px);
}

body.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 14px;
}

body.single-product .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px !important;
}

body.single-product .flex-control-thumbs li { width: auto !important; float: none !important; }
body.single-product .flex-control-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f7f2f4;
  opacity: .72;
  transition: opacity .2s, border-color .2s, transform .2s;
}
body.single-product .flex-control-thumbs img:hover,
body.single-product .flex-control-thumbs img.flex-active {
  border-color: var(--spc-wine);
  opacity: 1;
  transform: translateY(-1px);
}

body.single-product div.product .summary {
  padding-top: 8px;
}

.spc-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--spc-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.spc-eyebrow .spc-brand { color: var(--spc-wine); }
.spc-dot { width: 3px; height: 3px; border-radius: 50%; background: #bcaab2; }

body.single-product div.product .product_title {
  margin: 0 0 18px;
  color: var(--spc-ink);
  font-size: clamp(27px, 3vw, 43px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
  margin: 0 0 10px;
  color: var(--spc-ink);
  font-size: clamp(27px, 2.5vw, 36px);
  font-weight: 750;
  line-height: 1;
}
body.single-product div.product p.price del { color: #a5969d; font-size: .62em; font-weight: 500; opacity: 1; }
body.single-product div.product p.price ins { color: var(--spc-wine); text-decoration: none; }

body.single-product .woocommerce-product-details__short-description {
  margin: 18px 0 16px;
  color: #584b52;
  font-size: 15px;
  line-height: 1.65;
}
body.single-product .woocommerce-product-details__short-description p { margin: 0; }

.spc-facts {
  margin: 18px 0 12px;
  padding: 16px;
  border: 1px solid var(--spc-line);
  border-radius: 17px;
  background: #fff;
}
.spc-facts h2 {
  margin: 0 0 11px;
  color: var(--spc-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.spc-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
.spc-facts dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #f0e7eb; }
.spc-facts dt { color: var(--spc-muted); font-size: 11.5px; }
.spc-facts dd { margin: 0; color: #493b43; font-size: 11.5px; font-weight: 750; text-align: right; }

.spc-fit {
  margin: 0 0 16px;
  border: 1px solid var(--spc-line);
  border-radius: 15px;
  background: var(--spc-rose);
}
.spc-fit summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; color: #493841; font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
.spc-fit summary::-webkit-details-marker { display: none; }
.spc-fit summary span { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.spc-fit[open] summary span { transform: rotate(225deg); }
.spc-fit > div { padding: 0 15px 14px; color: #5d4e55; font-size: 12.5px; line-height: 1.55; }
.spc-fit p { margin: 0 0 8px; }
.spc-fit__category a { color: var(--spc-wine); }
.spc-consult { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid rgba(132,47,85,.25); border-radius: 999px; color: var(--spc-wine); font-size: 12px; font-weight: 750; }

.spc-dispatch {
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 9px;
  margin: 0 2px 10px;
  color: #3d684e;
}
.spc-dispatch > span { grid-row: 1 / 3; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #3ba770; box-shadow: 0 0 0 4px rgba(59,167,112,.12); }
.spc-dispatch strong, .spc-dispatch small { display: block; }
.spc-dispatch strong { font-size: 12.5px; line-height: 1.35; }
.spc-dispatch small { color: #708078; font-size: 11px; }

body.single-product p.stock.in-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--spc-success);
  font-size: 13px;
  font-weight: 700;
}
body.single-product p.stock.in-stock span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38a56e;
  box-shadow: 0 0 0 4px rgba(56, 165, 110, .12);
}

body.single-product div.product form.cart {
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--spc-line);
  border-radius: 18px;
  background: var(--spc-paper);
  box-shadow: 0 10px 30px rgba(68, 34, 51, .07);
}
body.single-product div.product form.cart .quantity { float: none; margin: 0; }
body.single-product div.product form.cart .qty {
  width: 66px;
  height: 52px;
  border: 1px solid var(--spc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--spc-ink);
  font-size: 16px;
  font-weight: 700;
}
body.single-product div.product form.cart .single_add_to_cart_button {
  flex: 1;
  min-height: 52px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: var(--spc-wine);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .01em;
  box-shadow: 0 9px 20px rgba(132, 47, 85, .23);
  transition: transform .18s, background .18s, box-shadow .18s;
}
body.single-product div.product form.cart .single_add_to_cart_button:hover {
  background: var(--spc-wine-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(132, 47, 85, .28);
}

body.single-product .sb-product-assurances {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 16px;
  border: 1px solid var(--spc-line);
  border-radius: 16px;
  background: var(--spc-rose);
}
body.single-product .sb-product-assurances > span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  color: #4f4048;
  font-size: 13px;
  font-weight: 600;
}
body.single-product .sb-product-assurances > span + span { border-top: 1px solid rgba(132, 47, 85, .10); }
body.single-product .sb-product-assurances svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--spc-wine); }

.spc-purchase-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e7e0d2;
  border-radius: 14px;
  background: #fffaf0;
  color: #4c4230;
}
.spc-purchase-note__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #f3e8ce; }
.spc-purchase-note svg { width: 19px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.spc-purchase-note strong, .spc-purchase-note small { display: block; }
.spc-purchase-note strong { font-size: 12.5px; line-height: 1.35; }
.spc-purchase-note small { margin-top: 2px; color: #766b58; font-size: 11.5px; line-height: 1.35; }

.spc-guarantee { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 0 2px; font-size: 11.5px; line-height: 1.45; }
.spc-guarantee strong { color: #4c4147; }
.spc-guarantee a { color: var(--spc-wine); text-align: right; text-decoration: underline; text-underline-offset: 2px; }

body.single-product .product_meta {
  display: none;
}

body.single-product div.product .woocommerce-tabs,
body.single-product div.product .spc-completeness,
body.single-product div.product .spc-addons,
body.single-product div.product .related.products,
body.single-product div.product .upsells.products {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

body.single-product div.product .woocommerce-tabs { margin-top: clamp(48px, 7vw, 86px); }

.spc-completeness {
  display: grid;
  grid-template-columns: minmax(190px, .38fr) minmax(0, .62fr);
  gap: 30px;
  align-items: center;
  margin-top: 52px;
  padding: clamp(23px, 4vw, 38px);
  border: 1px solid var(--spc-line);
  border-radius: var(--spc-radius);
  background: linear-gradient(135deg, #fbf2f5, #fffdfd);
}
.spc-completeness span { color: var(--spc-wine); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.spc-completeness h2 { margin: 5px 0 0; color: var(--spc-ink); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.spc-completeness p { margin: 0; color: #574a51; font-size: 14px; line-height: 1.7; }

.spc-addons { display: grid; grid-template-columns: minmax(190px, .32fr) minmax(0, .68fr); gap: clamp(24px, 4vw, 52px); align-items: start; margin-top: 56px; }
.spc-addons header > span { color: var(--spc-wine); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.spc-addons h2 { margin: 5px 0 8px; color: var(--spc-ink); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.spc-addons header p { margin: 0; color: var(--spc-muted); font-size: 13px; line-height: 1.55; }
.spc-addons__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.spc-addons article { overflow: hidden; border: 1px solid var(--spc-line); border-radius: 16px; background: #fff; }
.spc-addons article > div { padding: 11px 12px 13px; }
.spc-addons__image { display: block; aspect-ratio: 1; padding: 8px; background: #f8f4f5; }
.spc-addons__image img { width: 100%; height: 100%; object-fit: contain; }
.spc-addons__name { display: -webkit-box; overflow: hidden; min-height: 36px; color: #493c43; font-size: 12px; font-weight: 700; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.spc-addons__price { display: block; margin-top: 7px; color: var(--spc-wine); font-size: 14px; font-weight: 800; }
body.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 24px;
  padding: 0 0 3px;
  border: 0;
  scrollbar-width: none;
}
body.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after { display: none; }
body.single-product .woocommerce-tabs ul.tabs li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 1px solid var(--spc-line);
  border-radius: 999px;
  background: #fff;
}
body.single-product .woocommerce-tabs ul.tabs li.active { border-color: var(--spc-wine); background: var(--spc-wine); }
body.single-product .woocommerce-tabs ul.tabs li a { padding: 10px 17px; color: #5c4f56; font-size: 13px; font-weight: 700; white-space: nowrap; }
body.single-product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
body.single-product .woocommerce-tabs .panel {
  max-width: 900px;
  color: #4d4248;
  font-size: 15px;
  line-height: 1.75;
}
body.single-product .woocommerce-tabs .panel h2 { color: var(--spc-ink); font-size: clamp(23px, 2.5vw, 31px); letter-spacing: -.025em; }
body.single-product .woocommerce-tabs .panel p[style*="text-align: justify"] { text-align: left !important; }
body.single-product .woocommerce-tabs .panel li { margin-bottom: 8px; }
body.single-product .woocommerce-product-attributes { border: 1px solid var(--spc-line); border-radius: 14px; overflow: hidden; }
body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td { padding: 13px 16px; border-color: var(--spc-line); }

body.single-product .related.products { margin-top: 62px; }
body.single-product .related.products > h2 { margin-bottom: 24px; color: var(--spc-ink); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.03em; }

.spc-mobile-buy { display: none; }

@media (max-width: 820px) {
  body.single-product div.product {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
    padding-inline: 14px;
  }
  body.single-product div.product .woocommerce-product-gallery { position: relative; top: auto; }
  body.single-product div.product .summary { padding-top: 25px; }
  body.single-product .woocommerce-product-gallery__image a { aspect-ratio: 1 / .86; padding: 10px; }
  body.single-product div.product .product_title { font-size: clamp(26px, 8vw, 34px); }
  body.single-product div.product .woocommerce-tabs { margin-top: 50px; }
  .spc-completeness { grid-template-columns: 1fr; gap: 14px; margin-top: 38px; }
  .spc-addons { grid-template-columns: 1fr; gap: 18px; margin-top: 42px; }
}

@media (max-width: 600px) {
  body.single-product { padding-bottom: 78px; }
  body.single-product div.product form.cart { padding: 10px; }
  .spc-facts dl { grid-template-columns: 1fr; }
  .spc-guarantee { display: grid; }
  .spc-guarantee a { text-align: left; }
  .spc-addons__grid { display: flex; overflow-x: auto; padding-bottom: 7px; scroll-snap-type: x mandatory; }
  .spc-addons article { min-width: 180px; scroll-snap-align: start; }
  body.single-product .woocommerce-tabs .panel { font-size: 14px; line-height: 1.68; }
  .spc-mobile-buy {
    position: fixed;
    z-index: 9998;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid var(--spc-line);
    background: rgba(255, 253, 253, .96);
    box-shadow: 0 -10px 30px rgba(43, 25, 34, .11);
    backdrop-filter: blur(12px);
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .spc-mobile-buy.is-visible { transform: translateY(0); }
  .spc-mobile-buy__price { min-width: 90px; color: var(--spc-ink); font-size: 18px; font-weight: 800; white-space: nowrap; }
  .spc-mobile-buy__price del { display: none; }
  .spc-mobile-buy__price ins { text-decoration: none; }
  .spc-mobile-buy__button {
    flex: 1;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--spc-wine);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product *, body.single-product *::before, body.single-product *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
