/* Single product card: same warm editorial system as the menu and checkout. */
body.single-product #main-content {
  background: linear-gradient(180deg, #fffaf3 0%, #f4eee4 100%);
  padding-bottom: 88px;
}

body.single-product .page-hero {
  padding: calc(var(--header-h) + 24px) 0 20px;
  background: linear-gradient(135deg, #fffdf9 0%, #f5ead9 100%);
  border-bottom: 1px solid #eadcc9;
}

body.single-product .page-hero h1 { display: none; }
body.single-product .page-hero .breadcrumbs {
  margin: 0;
  color: var(--color-text-muted);
}
body.single-product .page-hero .breadcrumbs a { color: var(--color-text-muted); }
body.single-product .page-hero .breadcrumbs a:hover { color: var(--color-primary); }

body.single-product #main-content > .product {
  width: min(calc(100% - 32px), 1160px);
  margin: 28px auto 0;
  padding: clamp(18px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
  gap: clamp(22px, 4vw, 52px);
  background: var(--color-white);
  border: 1px solid rgba(232,217,184,.92);
  border-radius: 26px;
  box-shadow: 0 18px 54px rgba(47,25,13,.10);
}

body.single-product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image {
  overflow: hidden;
  border-radius: 20px;
}

body.single-product .woocommerce-product-gallery__image {
  background: #f8f0e3;
}

body.single-product .woocommerce-product-gallery__image img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

body.single-product .woocommerce-product-gallery__image:hover img { transform: scale(1.02); }

body.single-product .summary.entry-summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: clamp(6px, 2vw, 20px) 0;
  align-self: center;
}

body.single-product .summary .product_title {
  margin: 0 0 16px !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -.02em;
}

body.single-product .summary p.price,
body.single-product .summary span.price {
  margin: 0 0 20px !important;
  color: var(--color-primary) !important;
  font-family: var(--font-heading) !important;
  font-size: clamp(1.8rem, 3vw, 2.35rem) !important;
  line-height: 1 !important;
}

body.single-product .woocommerce-product-details__short-description {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  background: #fff9ed;
  font-size: 1rem !important;
}

body.single-product .summary .stock {
  margin: 0 0 20px;
  color: #4d8052;
  font-size: .8125rem;
  font-weight: 700;
}

body.single-product .summary form.cart {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 24px;
}

body.single-product .summary form.cart .quantity { margin: 0 !important; }
body.single-product .summary form.cart .qty {
  width: 74px !important;
  min-height: 52px;
  padding: 10px 8px !important;
  text-align: center;
  background: #fffaf2;
  border: 1.5px solid #e0d2bf !important;
  border-radius: 12px !important;
}

body.single-product .summary form.cart .single_add_to_cart_button {
  flex: 1;
  min-height: 52px;
  border-radius: 12px !important;
  font-size: .9375rem !important;
  letter-spacing: .04em !important;
}

body.single-product .summary .product_meta {
  padding-top: 18px;
  border-top: 1px solid #eee4d6;
  color: var(--color-text-muted);
  font-size: .875rem;
}
body.single-product .summary .product_meta a { color: var(--color-primary); }

body.single-product .woocommerce-tabs {
  grid-column: 1 / -1;
  width: 100% !important;
  margin: 0 !important;
  padding-top: 24px;
  border-top: 1px solid #eee4d6;
}

body.single-product .woocommerce-tabs ul.tabs {
  margin: 0 0 16px !important;
  padding: 0 !important;
  display: flex;
  gap: 8px;
  border: 0 !important;
}
body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after { display: none !important; }
body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.single-product .woocommerce-tabs ul.tabs li a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f8f0e3;
  color: var(--color-primary);
  font-weight: 700;
}

body.single-product .woocommerce-tabs .panel {
  margin: 0 !important;
  padding: 18px 20px !important;
  border-radius: 14px;
  background: #fffaf2;
}
body.single-product .woocommerce-tabs .panel h2 { margin-top: 0; }

body.single-product section.related.products {
  width: min(calc(100% - 32px), 1160px);
  margin: 42px auto 0;
}
body.single-product section.related.products > h2 {
  margin: 0 0 18px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}
body.single-product section.related.products ul.products { padding-inline: 0 !important; }

@media (max-width: 820px) {
  body.single-product #main-content > .product { grid-template-columns: 1fr; }
  body.single-product .summary.entry-summary { padding: 0; }
}

@media (max-width: 520px) {
  body.single-product #main-content > .product,
  body.single-product section.related.products { width: calc(100% - 24px); }
  body.single-product #main-content > .product { padding: 14px; border-radius: 18px; }
  body.single-product .woocommerce-product-gallery__wrapper,
  body.single-product .woocommerce-product-gallery__image { border-radius: 14px; }
  body.single-product .summary form.cart { gap: 8px; }
  body.single-product .summary form.cart .qty { width: 68px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .woocommerce-product-gallery__image img { transition: none; }
}
