/* ================================
   Diana Desserts WooCommerce Product Page Styling
   Paste into: Appearance → Customize → Additional CSS
================================ */

/* Hide Astra default header only on WooCommerce product pages */
.single-product .site-header,
.single-product .ast-primary-header-bar,
.single-product .ast-desktop-header,
.single-product .ast-mobile-header-wrap,
.single-product .main-header-bar,
.single-product .ast-header-break-point .main-header-bar {
  display: none !important;
}

/* Global product page background */
html body.single-product,
body.single-product,
body.single-product.woocommerce,
.single-product #page,
.single-product .site,
.single-product .site-content,
.single-product .content-area,
.single-product .site-main,
.single-product .ast-container {
  background: #fff9f1 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Diana custom product page header */
.dd-product-custom-header {
  width: 100% !important;
  background: rgba(255, 250, 243, 0.94);
  border-bottom: 1px solid #eadcc7;
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(18px);
  display: block !important;
  clear: both !important;
  margin: 0 !important;
}

.dd-product-header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dd-product-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.dd-product-logo img {
  height: 54px;
  width: auto;
  display: block;
}

.dd-product-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
}

.dd-product-nav a {
  color: #6f5a45 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  padding: 9px 7px;
  border-radius: 8px;
  line-height: 1.1;
  white-space: nowrap;
}

.dd-product-nav a:hover {
  color: #9b7330 !important;
  background: rgba(255, 241, 207, 0.55);
}

.dd-product-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.dd-product-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #eadcc7;
  border-radius: 999px;
  padding: 7px;
  box-shadow: 0 8px 20px rgba(63, 43, 22, 0.05);
}

.dd-product-lang span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #80684f;
}

.dd-product-lang span:first-child {
  background: #b68b3d;
  color: #ffffff;
}

.dd-product-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b68b3d;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 14px 22px;
  min-height: 48px;
  min-width: 106px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(182, 139, 61, 0.18);
}

.dd-product-join:hover {
  background: #9f762f;
}

/* Back to Recipes area under product menu */
.dd-product-back-wrap {
  max-width: none !important;
  width: 100% !important;
  background: #fff9f1 !important;
  margin: 0 !important;
  padding: 14px 0 0 !important;
  display: block !important;
  clear: both !important;
  position: relative;
  z-index: 5;
}

.dd-product-back-wrap .dd-back-recipes {
  margin-left: max(5%, calc((100% - 1180px) / 2)) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.dd-back-recipes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #9b7330 !important;
  border: 1px solid #d8b66d;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(63, 43, 22, 0.05);
}

.dd-back-recipes:hover {
  background: #fff7e8;
}

/* Force Astra content area full width */
.single-product .ast-container,
.single-product .site-content .ast-container {
  max-width: 100% !important;
  width: 100% !important;
}

/* Main product wrapper */
.single-product div.product {
  max-width: 1180px !important;
  width: 90% !important;
  margin: 18px auto 60px !important;
  padding: 40px !important;
  background: #fffaf3 !important;
  border-radius: 32px !important;
  border: 1px solid #eadcc7 !important;
  box-shadow: 0 20px 50px rgba(63, 43, 22, 0.08) !important;
}

/* Make product layout cleaner */
.single-product div.product div.images {
  width: 48% !important;
}

.single-product div.product div.summary {
  width: 48% !important;
}

/* Standard square product image area */
.single-product div.product div.images .woocommerce-product-gallery__wrapper,
.single-product div.product div.images .woocommerce-product-gallery__image {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background: #fff1cf !important;
}

/* Force any product image to crop nicely into same size */
.single-product div.product div.images img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 45px rgba(63, 43, 22, 0.1) !important;
}

/* Hide image zoom icon / preview trigger */
.single-product .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* Breadcrumb */
.single-product .woocommerce-breadcrumb {
  color: #80684f !important;
  font-size: 14px !important;
  margin-bottom: 18px !important;
}

.single-product .woocommerce-breadcrumb a {
  color: #9b7330 !important;
}

/* Product title */
.single-product .product_title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 52px !important;
  line-height: 1.05 !important;
  color: #2b1d12 !important;
  margin-bottom: 16px !important;
}

/* Price */
.single-product .price,
.single-product .price .woocommerce-Price-amount {
  color: #9b7330 !important;
  font-size: 34px !important;
  font-weight: 500 !important;
}

/* Short description */
.single-product .woocommerce-product-details__short-description {
  color: #6f5a45 !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
  margin-top: 16px !important;
  margin-bottom: 24px !important;
}

/* Quantity box */
.single-product .quantity input.qty {
  border: 1px solid #eadcc7 !important;
  border-radius: 12px !important;
  height: 45px !important;
  color: #2b1d12 !important;
  background: #ffffff !important;
}

/* Add to cart button */
.single-product button.single_add_to_cart_button {
  background: #b68b3d !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
  border: none !important;
  min-height: 48px !important;
  transition: 0.2s ease !important;
}

.single-product button.single_add_to_cart_button:hover {
  background: #9f762f !important;
  transform: translateY(-1px);
}

/* Hide strange purple payment / express checkout blocks */
.single-product .wc-block-components-express-payment,
.single-product .wc-block-components-express-payment__event-buttons,
.single-product .wcpay-express-checkout-wrapper,
.single-product .ppc-button-wrapper,
.single-product .paypal-buttons,
.single-product #ppc-button,
.single-product .payment_method_ppcp-gateway,
.single-product .wc-stripe-payment-request-wrapper,
.single-product .woocommerce_payments_payment_request_button,
.single-product .express-checkout,
.single-product .express-payment {
  display: none !important;
}

/* WooCommerce tabs / description area */
.single-product .woocommerce-tabs {
  margin-top: 40px !important;
  background: #ffffff !important;
  border: 1px solid #eadcc7 !important;
  border-radius: 28px !important;
  padding: 28px !important;
}

.single-product .woocommerce-tabs ul.tabs {
  padding-left: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  border-radius: 999px !important;
  border: 1px solid #eadcc7 !important;
  background: #fff7e8 !important;
}

.single-product .woocommerce-tabs ul.tabs li.active {
  background: #b68b3d !important;
}

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

.single-product .woocommerce-tabs ul.tabs li a {
  color: #80684f !important;
  font-weight: 700 !important;
}

/* Extra product information blocks */
.dd-product-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}

.dd-product-box {
  background: #ffffff;
  border: 1px solid #eadcc7;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 12px 35px rgba(63, 43, 22, 0.06);
}

.dd-product-box h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: #2b1d12;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.dd-product-box p,
.dd-product-box li {
  color: #6f5a45;
  font-size: 16px;
  line-height: 1.8;
}

.dd-product-box ul {
  padding-left: 20px;
  margin: 0;
}

.dd-product-highlight {
  background: #fff2d4;
  border-color: #d8b66d;
}

/* Bottom CTA section on product pages */
.dd-product-cta {
  max-width: 760px;
  margin: 70px auto 20px;
  background: #ffffff;
  border: 1px solid #d8b66d;
  border-radius: 32px;
  padding: 46px 30px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(63, 43, 22, 0.06);
}

.dd-product-cta img {
  height: 62px;
  width: auto;
  margin-bottom: 18px;
}

.dd-product-cta h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: #2b1d12;
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 16px;
}

.dd-product-cta p {
  color: #6f5a45;
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 24px;
}

.dd-product-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dd-product-cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  text-decoration: none !important;
}

.dd-product-cta-primary {
  background: #b68b3d;
  color: #ffffff !important;
}

.dd-product-cta-secondary {
  background: #ffffff;
  color: #9b7330 !important;
  border: 1px solid #d8b66d;
}

/* Related products */
.single-product .related.products {
  margin-top: 50px !important;
}

.single-product .related.products h2 {
  font-family: "Playfair Display", Georgia, serif !important;
  color: #2b1d12 !important;
}

/* Mobile custom product header */
@media (max-width: 980px) {
  .dd-product-header-inner {
    flex-wrap: wrap;
  }

  .dd-product-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 10px;
    padding-top: 10px;
  }

  .dd-product-nav a {
    white-space: nowrap;
  }

  .dd-product-header-actions {
    margin-left: auto;
  }
}

/* Mobile responsive product page */
@media (max-width: 768px) {
  .single-product div.product {
    width: 94% !important;
    margin: 18px auto 40px !important;
    padding: 20px !important;
    border-radius: 24px !important;
  }

  .single-product div.product div.images,
  .single-product div.product div.summary {
    width: 100% !important;
  }

  .single-product .product_title {
    font-size: 34px !important;
  }

  .single-product .price,
  .single-product .price .woocommerce-Price-amount {
    font-size: 28px !important;
  }

  .dd-product-extra {
    grid-template-columns: 1fr;
  }

  .dd-product-box {
    padding: 22px;
  }

  .dd-product-cta {
    margin-top: 40px;
    padding: 34px 22px;
  }

  .dd-product-cta h2 {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .dd-product-logo img {
    height: 42px;
  }

  .dd-product-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .dd-product-lang {
    padding: 5px;
  }

  .dd-product-join {
    min-height: 42px;
    padding: 11px 18px;
  }

  .dd-product-back-wrap {
    padding: 10px 0 0 !important;
  }

  .dd-product-back-wrap .dd-back-recipes {
    margin-left: 16px !important;
  }
}
/* Hide WooCommerce breadcrumbs/category links on product pages */
.single-product .woocommerce-breadcrumb,
.single-product .posted_in,
.single-product .product_meta {
  display: none !important;
}

/* FINAL FIX — remove Astra's empty inner checkout column */

body.woocommerce-checkout #customer_details {
    display: block !important;
}

/* Billing and payment use the full customer-details width */
body.woocommerce-checkout #customer_details .col-1 {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* This column is empty, but Astra was still reserving space for it */
body.woocommerce-checkout #customer_details .col-2 {
    display: none !important;
}

/* Let the payment area fill the complete left column */
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #payment,
body.woocommerce-checkout .woocommerce-checkout-payment,
body.woocommerce-checkout .wc_payment_methods,
body.woocommerce-checkout #payment ul.payment_methods,
body.woocommerce-checkout #payment div.payment_box {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Hide only the empty Additional information heading */
body.woocommerce-checkout
.woocommerce-additional-fields > h3 {
    display: none !important;
}

/* Remove recipe tags from homepage */
.card .label {
  display: none !important;
}

/* Remove recipe tags from Recipes page */
.dd-card .dd-label {
  display: none !important;
}

/* Keep clean spacing below the product name */
.card .small,
.dd-card .dd-small-link {
  margin-top: 12px !important;
}

/* Remove Astra default footer below the custom Diana Desserts footer */
body footer#colophon,
body .site-footer,
body .site-below-footer-wrap,
body .ast-small-footer,
body .ast-footer-copyright {
  display: none !important;
}
/* Compact product information layout */
.single-product .dd-product-compact {
  display: block !important;
  max-width: 720px !important;
  margin: 22px auto 28px !important;
}

.single-product .dd-product-compact .dd-product-box {
  width: 100% !important;
  max-width: 720px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 24px 28px !important;
}

.single-product .dd-product-compact .dd-product-box h2 {
  margin: 0 0 12px !important;
}

.single-product .dd-product-compact .dd-product-box p {
  margin: 0 !important;
  line-height: 1.7 !important;
}

/* Smaller Kombo CTA */
.single-product .dd-product-cta-compact {
  width: calc(100% - 40px) !important;
  max-width: 720px !important;
  margin: 28px auto !important;
  padding: 26px 28px !important;
  border-radius: 18px !important;
}

.single-product .dd-product-cta-compact img {
  width: auto !important;
  max-width: 150px !important;
  height: auto !important;
  margin: 0 auto 14px !important;
}

.single-product .dd-product-cta-compact h2 {
  margin: 0 !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
}

.single-product .dd-product-cta-compact p {
  max-width: 520px !important;
  margin: 12px auto 20px !important;
  line-height: 1.6 !important;
}

/* Smaller buttons, aligned evenly */
.single-product .dd-product-cta-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.single-product .dd-product-cta-actions a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 135px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Hide Description and Reviews tabs */
.single-product .woocommerce-tabs ul.tabs {
  display: none !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
  margin-top: 0 !important;
}

@media (max-width: 600px) {
  .single-product .dd-product-compact {
    margin: 18px auto 22px !important;
  }

  .single-product .dd-product-compact .dd-product-box,
  .single-product .dd-product-cta-compact {
    padding: 22px 18px !important;
  }

  .single-product .dd-product-cta-compact h2 {
    font-size: 24px !important;
  }

  .single-product .dd-product-cta-actions {
    flex-direction: column !important;
  }

  .single-product .dd-product-cta-actions a {
    width: 100% !important;
    max-width: 230px !important;
  }

}
/* Hide related products on WooCommerce product pages */
.single-product .related.products {
	display: none !important;
}
/* Hide Jetpack Related Posts on product pages */
body.single-product #jp-relatedposts,
body.single-product .jp-relatedposts,
body.single-product div#jp-relatedposts,
body.single-product .jp-relatedposts-i2 {
	display: none !important;
}