/* GKDOLL WooCommerce single-product design layer. */
body.single-product {
  --gk-product-ink: #211e20;
  --gk-product-muted: #756d71;
  --gk-product-accent: #b53162;
  --gk-product-accent-dark: #7f1f46;
  --gk-product-line: #e4dedb;
  --gk-product-soft: #f5f3f1;
  --gk-product-display: "Iowan Old Style", Baskerville, "Times New Roman", Times, serif;
  --gk-product-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--gk-product-ink);
  background: var(--gk-product-soft);
  font-family: var(--gk-product-sans);
  -webkit-font-smoothing: antialiased;
}

body.single-product .gkdoll-product-guides {
  clear: both;
  width: min(1500px, calc(100% - 32px));
  margin: 30px auto 12px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid #e4dedb;
  border-radius: 22px;
  background: #f8f4f6;
}

body.single-product .gkdoll-product-guides__heading { margin-bottom: 22px; }

body.single-product .gkdoll-product-guides__heading > span {
  display: block;
  margin-bottom: 7px;
  color: #9d2d58;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

body.single-product .gkdoll-product-guides__heading h2 {
  margin: 0;
  color: #211e20;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", Times, serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
}

body.single-product .gkdoll-product-guides__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.single-product .gkdoll-product-guides__grid a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 116px;
  padding: 18px;
  border: 1px solid #eadfe4;
  border-radius: 14px;
  color: #211e20;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(43, 31, 38, .04);
}

body.single-product .gkdoll-product-guides__grid a:hover {
  border-color: #cf9bb0;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(43, 31, 38, .08);
}

body.single-product .gkdoll-product-guides__grid strong { line-height: 1.35; }
body.single-product .gkdoll-product-guides__grid span { color: #7f1f46; font-size: 12px; font-weight: 750; }

@media (max-width: 900px) {
  body.single-product .gkdoll-product-guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 544px) {
  body.single-product .gkdoll-product-guides { width: calc(100% - 24px); padding: 24px 18px; border-radius: 18px; }
  body.single-product .gkdoll-product-guides__grid { grid-template-columns: 1fr; }
  body.single-product .gkdoll-product-guides__grid a { min-height: 92px; }
}

body.single-product #primary {
  width: 100%;
  margin: 0;
}

body.single-product .site-content > .ast-container,
body.single-product .ast-woocommerce-container {
  width: min(1600px, calc(100% - 32px));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

body.single-product div.product {
  margin-top: 30px;
}

body.single-product div.product::after {
  display: table;
  clear: both;
  content: "";
}

body.single-product div.product .woocommerce-product-gallery {
  width: 55%;
  margin-bottom: 34px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--gk-product-line);
  border-radius: 24px;
  opacity: 1 !important;
  background: #fff;
  box-shadow: 0 18px 50px rgba(43, 31, 38, .08);
}

body.single-product .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery__image a,
body.single-product .woocommerce-product-gallery__image img {
  border-radius: 16px;
}

body.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  object-fit: cover;
}

body.single-product .gkdoll-thumb-slider {
  position: relative;
  margin-top: 14px;
  padding-inline: 38px;
}

body.single-product .gkdoll-thumb-slider.no-scroll {
  padding-inline: 0;
}

body.single-product .flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin: 0 !important;
  padding: 1px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.single-product .flex-control-thumbs::-webkit-scrollbar {
  display: none;
}

body.single-product .flex-control-thumbs li {
  flex: 0 0 calc((100% - 40px) / 5);
  width: calc((100% - 40px) / 5) !important;
  margin: 0 !important;
  scroll-snap-align: start;
}

body.single-product .flex-control-thumbs img {
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 11px;
  object-fit: cover;
  opacity: .72;
  transition: border-color .2s ease, opacity .2s ease;
}

body.single-product .flex-control-thumbs img:hover,
body.single-product .flex-control-thumbs img.flex-active {
  border-color: var(--gk-product-accent);
  opacity: 1;
}

body.single-product .gkdoll-thumb-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gk-product-line);
  border-radius: 999px;
  color: var(--gk-product-ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 18px rgba(43, 31, 38, .12);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
  transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}

body.single-product .gkdoll-thumb-arrow:hover {
  border-color: var(--gk-product-accent);
  color: var(--gk-product-accent-dark);
}

body.single-product .gkdoll-thumb-arrow:disabled {
  opacity: .28;
  cursor: default;
}

body.single-product .gkdoll-thumb-arrow--prev {
  left: 0;
}

body.single-product .gkdoll-thumb-arrow--next {
  right: 0;
}

body.single-product .gkdoll-thumb-slider.no-scroll .gkdoll-thumb-arrow {
  display: none;
}

body.single-product div.product .summary {
  width: 42%;
  margin-bottom: 34px;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid var(--gk-product-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 4%, rgba(181, 49, 98, .08), transparent 28%),
    #fff;
  box-shadow: 0 18px 50px rgba(43, 31, 38, .08);
}

body.single-product .woocommerce-breadcrumb {
  margin: 0 0 18px;
  color: #91878c;
  font-size: 12px;
  line-height: 1.6;
}

body.single-product .woocommerce-breadcrumb a {
  color: var(--gk-product-muted);
}

body.single-product .summary > .posted_in,
body.single-product .summary > .product-categories,
body.single-product .summary > .ast-stock-detail {
  color: var(--gk-product-accent-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Breadcrumb and product meta already carry taxonomy context; avoid a noisy duplicate row. */
body.single-product .summary > .single-product-category {
  display: none !important;
}

body.single-product .product_title {
  margin: 10px 0 18px;
  color: var(--gk-product-ink);
  font-family: var(--gk-product-display);
  font-size: clamp(32px, 3.2vw, 50px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-wrap: balance;
}

body.single-product div.product .summary p.price,
body.single-product div.product .summary span.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0 0 22px;
  color: var(--gk-product-accent-dark) !important;
  font-size: clamp(24px, 2vw, 32px) !important;
  font-weight: 800;
}

body.single-product div.product .price ins {
  order: 1;
  color: var(--gk-product-accent-dark);
  padding: 5px 11px;
  border-radius: 12px;
  background: #fff0f5;
  text-decoration: none;
}

body.single-product div.product .summary .price ins::before {
  content: "Prix promo";
  margin-right: 7px;
  color: #8f3558;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.single-product div.product .price del {
  order: 2;
  color: #958d90;
  font-size: .65em;
  font-weight: 500;
}

body.single-product div.product :is(.onsale, .ast-onsale-card) {
  top: 16px;
  right: auto;
  left: 16px;
  z-index: 5;
  min-width: 0;
  min-height: 0;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ed3f83, #a90f4d);
  box-shadow: 0 9px 22px rgba(142, 18, 72, .32);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

body.single-product .related li.product.sale {
  border-color: rgba(201, 44, 104, .42);
  background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
  box-shadow: 0 12px 32px rgba(140, 31, 75, .14);
}

body.single-product .related li.product.sale .price ins {
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff0f5;
}

body.single-product .summary .ast-shipping-text {
  display: none;
}

body.single-product div.product form.cart {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 11px;
  margin: 24px 0 20px;
  padding-top: 22px;
  border-top: 1px solid var(--gk-product-line);
}

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

body.single-product div.product form.cart .quantity {
  grid-row: 1 / span 2;
  width: 92px;
  margin: 0 !important;
}

body.single-product div.product form.cart .quantity .qty {
  width: 100%;
  height: 100%;
  min-height: 50px;
  border: 1px solid var(--gk-product-line);
  border-radius: 12px;
  color: var(--gk-product-ink);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}

body.single-product div.product form.cart .button {
  width: 100% !important;
  min-height: 50px;
  margin: 0 !important;
  padding: 13px 20px !important;
  border: 1px solid var(--gk-product-accent-dark) !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

body.single-product div.product form.cart .wc-buy-now-btn {
  color: #fff !important;
  background: linear-gradient(135deg, var(--gk-product-accent), var(--gk-product-accent-dark)) !important;
  box-shadow: 0 10px 24px rgba(127, 31, 70, .2);
}

body.single-product div.product form.cart button[name="add-to-cart"] {
  color: var(--gk-product-accent-dark) !important;
  background: #fff !important;
}

body.single-product div.product form.cart .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(127, 31, 70, .22);
}

body.single-product table.variations {
  grid-column: 1 / -1;
  margin: 0 0 8px;
}

body.single-product table.variations th,
body.single-product table.variations td {
  display: block;
  padding: 0 0 8px;
}

body.single-product table.variations label {
  color: var(--gk-product-ink);
  font-size: 13px;
  font-weight: 750;
}

body.single-product table.variations select {
  min-height: 48px;
  border: 1px solid var(--gk-product-line);
  border-radius: 10px;
  background-color: #fff;
}

body.single-product .single_variation_wrap {
  display: contents;
}

body.single-product .gkdoll-product-assurances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

body.single-product .gkdoll-product-assurances > span {
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid #eadfe4;
  border-radius: 12px;
  background: #fbf7f9;
  text-align: center;
}

body.single-product .gkdoll-product-assurances b,
body.single-product .gkdoll-product-assurances strong,
body.single-product .gkdoll-product-assurances small {
  display: block;
}

body.single-product .gkdoll-product-assurances b {
  color: var(--gk-product-accent);
  font-size: 14px;
}

body.single-product .gkdoll-product-assurances strong {
  margin-top: 4px;
  color: var(--gk-product-ink);
  font-size: 11px;
  line-height: 1.25;
}

body.single-product .gkdoll-product-assurances small {
  margin-top: 3px;
  color: var(--gk-product-muted);
  font-size: 9px;
  line-height: 1.25;
}

body.single-product .product_meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--gk-product-line);
  color: var(--gk-product-muted);
  font-size: 12px;
  line-height: 1.7;
}

body.single-product .product_meta > span {
  display: block;
}

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

body.single-product .product_meta a {
  color: var(--gk-product-accent-dark);
}

body.single-product .woocommerce-tabs {
  clear: both;
  margin: 30px 0 50px;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--gk-product-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(43, 31, 38, .07);
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 34px !important;
  padding: 0 !important;
  border: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs::before {
  display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f2edef !important;
}

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 a {
  padding: 11px 20px !important;
  color: var(--gk-product-muted) !important;
  font-size: 12px;
  font-weight: 750 !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active {
  background: var(--gk-product-accent-dark) !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #fff !important;
}

body.single-product .woocommerce-Tabs-panel {
  max-width: 1080px;
  margin-inline: auto !important;
  color: #5f575b;
  font-size: 16px;
  line-height: 1.85;
}

body.single-product .woocommerce-Tabs-panel > p:first-child:empty,
body.single-product .woocommerce-Tabs-panel > p:has(> br:only-child) {
  display: none;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel h3 {
  color: var(--gk-product-ink);
  font-family: var(--gk-product-display);
  font-weight: 500;
  letter-spacing: -.025em;
}

body.single-product .woocommerce-Tabs-panel h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

body.single-product .woocommerce-Tabs-panel h3 {
  margin: 36px 0 12px;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.18;
}

body.single-product .gkdoll-detail-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 24px 0 34px;
}

body.single-product .gkdoll-detail-image-item,
body.single-product .gkdoll-detail-image-wide {
  margin: 0 !important;
}

body.single-product .gkdoll-detail-image-grid .gkdoll-detail-image-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 8px);
}

body.single-product .gkdoll-detail-image-grid img,
body.single-product .gkdoll-detail-image-wide img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
  border-radius: 16px;
  object-fit: cover;
}

body.single-product .gkdoll-detail-image-wide {
  width: 100%;
  margin-block: 24px 34px !important;
}

body.single-product .related.products {
  clear: both;
  margin: 0 0 60px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  background: #ede7e4;
}

body.single-product .related.products > h2 {
  margin: 0 0 28px;
  color: var(--gk-product-ink);
  font-family: var(--gk-product-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.03em;
  text-align: center;
  text-transform: uppercase;
}

body.single-product .related ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.single-product .related ul.products::before,
body.single-product .related ul.products::after {
  display: none;
}

body.single-product .related ul.products li.product {
  display: flex;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 18px !important;
  overflow: hidden;
  border: 1px solid var(--gk-product-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(43, 31, 38, .07);
}

body.single-product .related ul.products li.product > :not(.astra-shop-thumbnail-wrap) {
  margin-right: 16px;
  margin-left: 16px;
}

body.single-product .related ul.products img {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0 0 15px !important;
  object-fit: cover;
}

body.single-product .related .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  color: var(--gk-product-ink);
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0 0 4px !important;
}

body.single-product .related .ast-loop-product__link {
  display: block;
  margin: 0 !important;
  line-height: 0;
}

body.single-product .related .ast-woo-product-category {
  display: -webkit-box;
  height: 1.4em !important;
  min-height: 0 !important;
  margin: 0 0 4px !important;
  overflow: hidden;
  color: #81787c;
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body.single-product .related .price {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  min-height: 1.65em;
  margin-top: 2px !important;
  margin-bottom: 10px !important;
  color: var(--gk-product-accent-dark) !important;
  font-size: 12.5px !important;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

body.single-product .related .price ins {
  order: 1;
  color: var(--gk-product-accent-dark) !important;
  text-decoration: none;
}

body.single-product .related .price del {
  order: 2;
  color: #958d90;
  font-size: .82em;
  font-weight: 500;
  opacity: .8;
}

/* Variable-product ranges are too long for compact recommendation cards.
 * Keep the minimum price and present it as a clear "from" price. */
body.single-product .related .price > span[aria-hidden="true"]:not(.woocommerce-Price-amount),
body.single-product .related .price > .woocommerce-Price-amount[aria-hidden="true"] ~ .woocommerce-Price-amount[aria-hidden="true"],
body.single-product .related .price > .screen-reader-text {
  display: none !important;
}

body.single-product .related .price > .woocommerce-Price-amount[aria-hidden="true"]:first-child::before {
  content: "Dès ";
  color: #756b70;
  font-size: .72em;
  font-weight: 650;
}

body.single-product .related .star-rating {
  display: none !important;
}

body.single-product .related .button {
  width: calc(100% - 32px);
  margin: auto 16px 0 !important;
  padding: 11px 12px !important;
  border-radius: 999px !important;
  text-align: center;
  font-size: 12px !important;
  font-weight: 750;
}

/* One clear action per recommendation card. Astra's hover control and the
 * quick-buy plugin duplicate WooCommerce's normal card button. */
body.single-product .related .ast-on-card-button,
body.single-product .related .wc-buy-now-btn,
body.single-product .related .wc-buy-now-btn-archive {
  display: none !important;
}

body.single-product .related .ast-on-card-button.ast-onsale-card {
  display: inline-flex !important;
}

body.single-product .related li.product > .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--gk-product-accent), var(--gk-product-accent-dark)) !important;
}

@media (max-width: 1024px) {
  body.single-product div.product .woocommerce-product-gallery,
  body.single-product div.product .summary {
    width: 100%;
    float: none;
  }

  body.single-product .related ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.single-product .site-content > .ast-container,
  body.single-product .ast-woocommerce-container {
    width: calc(100% - 24px);
  }

  body.single-product div.product {
    margin-top: 14px;
  }

  body.single-product div.product .woocommerce-product-gallery {
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 18px;
  }

  body.single-product .gkdoll-thumb-slider {
    padding-inline: 0;
  }

  body.single-product .flex-control-thumbs li {
    flex-basis: calc((100% - 30px) / 4);
    width: calc((100% - 30px) / 4) !important;
  }

  body.single-product .gkdoll-thumb-arrow {
    display: none;
  }

  body.single-product div.product .summary {
    padding: 22px 18px;
    border-radius: 18px;
  }

  body.single-product .product_title {
    font-size: clamp(30px, 10vw, 40px);
  }

  body.single-product div.product form.cart {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  body.single-product div.product form.cart .quantity {
    width: 76px;
  }

  body.single-product .gkdoll-product-assurances {
    grid-template-columns: 1fr;
  }

  body.single-product .gkdoll-product-assurances > span {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 9px;
    align-items: center;
    text-align: left;
  }

  body.single-product .gkdoll-product-assurances b {
    grid-row: 1 / span 2;
  }

  body.single-product .woocommerce-tabs {
    margin-top: 18px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  body.single-product .woocommerce-tabs ul.tabs {
    overflow-x: auto;
  }

  body.single-product .woocommerce-Tabs-panel {
    font-size: 15px;
    line-height: 1.75;
  }

  body.single-product .gkdoll-detail-image-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-block: 18px 26px;
  }

  body.single-product .gkdoll-detail-image-grid .gkdoll-detail-image-item:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  body.single-product .related.products {
    padding: 24px 12px;
    border-radius: 18px;
  }

  body.single-product .related ul.products {
    gap: 12px;
  }

  body.single-product .related ul.products li.product > :not(.astra-shop-thumbnail-wrap) {
    margin-right: 12px;
    margin-left: 12px;
  }

  body.single-product .related .button {
    width: calc(100% - 24px);
    margin-inline: 12px !important;
  }

  body.single-product .related .price {
    gap: 3px;
    font-size: 10.5px !important;
    letter-spacing: -.02em;
  }
}
