/* ================================
   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;
}
/* =========================================================
   DIANA DESSERTS — PRODUCT PAGE MOBILE REPAIR
   Paste this entire block at the VERY BOTTOM of:
   Appearance → Customize → Additional CSS
========================================================= */

/* The old manual language labels are no longer needed.
   TranslatePress controls the language. */
.single-product .dd-product-lang {
  display: none !important;
}

/* New mobile menu is hidden on desktop. */
.single-product .dd-product-menu,
.single-product .dd-product-mobile {
  display: none;
}

/* Keep the injected cart compact and correctly aligned. */
.single-product .dd-product-cart-slot:empty {
  display: none !important;
}

.single-product .dd-product-cart-slot {
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.single-product .dd-product-cart-slot > * {
  flex: 0 0 auto !important;
}

/* Tablet/mobile product header */
@media (max-width: 980px) {

  .single-product .dd-product-custom-header {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .single-product .dd-product-header-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 68px !important;
    padding: 10px 14px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 9px !important;
    box-sizing: border-box !important;
  }

  .single-product .dd-product-logo {
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }

  .single-product .dd-product-logo img {
    height: 44px !important;
    width: auto !important;
    max-width: 185px !important;
    object-fit: contain !important;
  }

  .single-product .dd-product-nav-desktop {
    display: none !important;
  }

  .single-product .dd-product-header-actions {
    width: auto !important;
    min-width: 0 !important;
    margin-left: auto !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  .single-product .dd-product-menu {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 1px solid #eadcc7 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #34231a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 21px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
  }

  .single-product .dd-product-mobile {
    display: none !important;
    width: 100% !important;
    padding: 10px 16px 15px !important;
    border-top: 1px solid #eadcc7 !important;
    background: #fffaf3 !important;
    box-sizing: border-box !important;
  }

  .single-product .dd-product-mobile.open {
    display: block !important;
  }

  .single-product .dd-product-mobile .dd-product-nav {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .single-product .dd-product-mobile .dd-product-nav a {
    width: 100% !important;
    padding: 11px 8px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: normal !important;
  }
}

/* Full mobile-width reset.
   This removes Astra/WooCommerce desktop columns and floats. */
@media (max-width: 768px) {

  html,
  html body.single-product,
  body.single-product #page,
  body.single-product .site,
  body.single-product #content,
  body.single-product .site-content,
  body.single-product .ast-container,
  body.single-product #primary,
  body.single-product .content-area,
  body.single-product .site-main,
  body.single-product .ast-woocommerce-container,
  body.single-product .ast-article-single,
  body.single-product article,
  body.single-product .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  html body.single-product {
    overflow-x: hidden !important;
  }

  body.single-product #secondary,
  body.single-product .widget-area {
    display: none !important;
  }

  body.single-product .site-content,
  body.single-product .site-content > .ast-container,
  body.single-product #primary,
  body.single-product .content-area,
  body.single-product .site-main,
  body.single-product .ast-woocommerce-container,
  body.single-product .ast-article-single {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Back button */
  body.single-product .dd-product-back-wrap {
    width: 100% !important;
    padding: 12px 12px 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product .dd-product-back-wrap .dd-back-recipes {
    margin: 0 !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  /* Main product card */
  body.single-product div.product,
  body.single-product .woocommerce div.product {
    display: block !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 14px 12px 34px !important;
    padding: 16px !important;
    border-radius: 22px !important;
    float: none !important;
    clear: both !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

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

  /* Product image and summary become one clean vertical column */
  body.single-product div.product div.images,
  body.single-product div.product div.summary,
  body.single-product .woocommerce-product-gallery,
  body.single-product .dd-custom-product-main-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  body.single-product div.product div.summary {
    padding-top: 22px !important;
  }

  /* Product image */
  body.single-product div.product div.images,
  body.single-product .woocommerce-product-gallery,
  body.single-product .dd-custom-product-main-image,
  body.single-product div.product div.images .woocommerce-product-gallery__wrapper,
  body.single-product div.product div.images .woocommerce-product-gallery__image {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  body.single-product div.product div.images img,
  body.single-product .dd-custom-product-main-image img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  /* Product text */
  body.single-product .product_title {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  body.single-product .price,
  body.single-product .price .woocommerce-Price-amount {
    font-size: 27px !important;
    line-height: 1.2 !important;
  }

  body.single-product .woocommerce-product-details__short-description,
  body.single-product .woocommerce-product-details__short-description p {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  /* Quantity and Add to Cart */
  body.single-product form.cart {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 18px 0 !important;
    float: none !important;
    box-sizing: border-box !important;
  }

  body.single-product form.cart .quantity {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  body.single-product form.cart button.single_add_to_cart_button {
    flex: 1 1 165px !important;
    min-width: 0 !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 12px 17px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  /* Express payment buttons */
  body.single-product .summary iframe,
  body.single-product .summary button,
  body.single-product .summary .wcpay-payment-request-wrapper,
  body.single-product .summary #wcpay-payment-request-button,
  body.single-product .summary .wc-stripe-payment-request-wrapper,
  body.single-product .summary .payment-request-button,
  body.single-product .summary .express-payment,
  body.single-product .summary .express-checkout {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.single-product .summary .wcpay-payment-request-wrapper,
  body.single-product .summary #wcpay-payment-request-button,
  body.single-product .summary .wc-stripe-payment-request-wrapper,
  body.single-product .summary .payment-request-button,
  body.single-product .summary .express-payment,
  body.single-product .summary .express-checkout {
    width: 100% !important;
  }

  /* Description, variation and after-purchase boxes */
  body.single-product .woocommerce-tabs,
  body.single-product .dd-product-extra,
  body.single-product .dd-product-box,
  body.single-product .dd-product-highlight,
  body.single-product .dd-product-cta {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

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

  body.single-product .dd-product-extra {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    margin-top: 24px !important;
  }

  body.single-product .dd-product-box {
    padding: 18px !important;
    border-radius: 18px !important;
    overflow: visible !important;
  }

  body.single-product .dd-product-box h2 {
    font-size: 25px !important;
    line-height: 1.16 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body.single-product .dd-product-box p,
  body.single-product .dd-product-box li {
    font-size: 15px !important;
    line-height: 1.65 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body.single-product .dd-product-cta {
    margin-top: 28px !important;
    padding: 28px 18px !important;
    border-radius: 20px !important;
  }

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

  body.single-product .dd-product-cta-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.single-product .dd-product-cta-actions a {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Product footer must also use the full phone width */
  body.single-product .dd-final-footer,
  body.single-product .dd-final-footer-inner,
  body.single-product .dd-final-footer .dd-wrap,
  body.single-product .dd-footer-grid,
  body.single-product footer,
  body.single-product .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  body.single-product .dd-final-footer .dd-wrap,
  body.single-product .dd-final-footer-inner {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.single-product .dd-footer-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  body.single-product .dd-footer-bottom {
    width: 100% !important;
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

@media (max-width: 430px) {

  .single-product .dd-product-header-inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .single-product .dd-product-logo img {
    height: 40px !important;
    max-width: 158px !important;
  }

  .single-product .dd-product-menu {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }

  body.single-product div.product,
  body.single-product .woocommerce div.product {
    width: calc(100% - 20px) !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    padding: 14px !important;
  }

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

  body.single-product .dd-product-box {
    padding: 16px !important;
  }
}
/* =========================================================
   DIANA DESSERTS — FINAL PRODUCT MOBILE/TABLET LAYOUT OVERRIDE
   Paste this block at the VERY BOTTOM of:
   Appearance → Customize → Additional CSS

   This deliberately starts at 1024px because the current iPhone
   rendering is still matching the older desktop/tablet rules.
========================================================= */

@media (max-width: 1024px) {

  /* Prevent any product-page horizontal overflow */
  html,
  body.single-product,
  body.single-product #page,
  body.single-product .site,
  body.single-product #content,
  body.single-product .site-content,
  body.single-product .ast-container,
  body.single-product #primary,
  body.single-product .content-area,
  body.single-product .site-main,
  body.single-product .ast-woocommerce-container,
  body.single-product article,
  body.single-product .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  html,
  body.single-product {
    overflow-x: hidden !important;
  }

  body.single-product #secondary,
  body.single-product .widget-area {
    display: none !important;
  }

  /* Back to Recipes */
  body.single-product .dd-product-back-wrap {
    width: 100% !important;
    padding: 12px 14px 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product .dd-product-back-wrap .dd-back-recipes {
    margin: 0 !important;
    padding: 10px 14px !important;
    min-height: 42px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  /* Main WooCommerce product card */
  body.single-product .woocommerce div.product,
  body.single-product div.product {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 14px 12px 34px !important;
    padding: 18px !important;
    gap: 0 !important;
    border-radius: 22px !important;
    float: none !important;
    clear: both !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  /* Every major direct product section fills the card */
  body.single-product .woocommerce div.product > *,
  body.single-product div.product > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  /* Gallery and summary become a clean vertical layout */
  body.single-product .woocommerce div.product div.images,
  body.single-product div.product div.images,
  body.single-product .woocommerce-product-gallery,
  body.single-product .images,
  body.single-product .summary,
  body.single-product .entry-summary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  body.single-product .summary,
  body.single-product .entry-summary,
  body.single-product div.product div.summary {
    padding-top: 24px !important;
  }

  /* Large full-width product image */
  body.single-product .woocommerce-product-gallery__wrapper,
  body.single-product .woocommerce-product-gallery__image,
  body.single-product div.product div.images .woocommerce-product-gallery__wrapper,
  body.single-product div.product div.images .woocommerce-product-gallery__image,
  body.single-product .dd-custom-product-main-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.single-product div.product div.images img,
  body.single-product .woocommerce-product-gallery img,
  body.single-product .woocommerce-product-gallery__image img,
  body.single-product .dd-custom-product-main-image img,
  body.single-product div.product img.wp-post-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  /* Cleaner product typography */
  body.single-product .product_title,
  body.single-product h1.product_title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 36px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.025em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  body.single-product .price,
  body.single-product .price .woocommerce-Price-amount {
    display: block !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    font-size: 27px !important;
    line-height: 1.2 !important;
  }

  body.single-product .woocommerce-product-details__short-description,
  body.single-product .woocommerce-product-details__short-description p,
  body.single-product .summary p,
  body.single-product .entry-summary p {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    box-sizing: border-box !important;
  }

  body.single-product .woocommerce-product-details__short-description {
    margin: 0 0 20px !important;
  }

  /* Quantity and Add to Cart */
  body.single-product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
    margin: 18px 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  body.single-product form.cart .quantity {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  body.single-product form.cart button.single_add_to_cart_button {
    flex: 1 1 170px !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 150px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  /* Apple Pay / Google Pay / express payments */
  body.single-product .summary iframe,
  body.single-product .summary button,
  body.single-product .summary > div,
  body.single-product .wcpay-payment-request-wrapper,
  body.single-product #wcpay-payment-request-button,
  body.single-product .wc-stripe-payment-request-wrapper,
  body.single-product .payment-request-button,
  body.single-product .express-payment,
  body.single-product .express-checkout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Tabs and custom product information */
  body.single-product .woocommerce-tabs,
  body.single-product .woocommerce-Tabs-panel,
  body.single-product .dd-product-extra,
  body.single-product .dd-product-extra.dd-product-compact,
  body.single-product .dd-product-box,
  body.single-product .dd-product-highlight,
  body.single-product .dd-product-cta,
  body.single-product .dd-product-cta.dd-product-cta-compact {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  body.single-product .woocommerce-tabs {
    margin-top: 26px !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  body.single-product .dd-product-extra,
  body.single-product .dd-product-extra.dd-product-compact {
    margin-top: 22px !important;
  }

  body.single-product .dd-product-box {
    margin-bottom: 16px !important;
    padding: 20px !important;
    border-radius: 18px !important;
    overflow: visible !important;
  }

  body.single-product .dd-product-box:last-child {
    margin-bottom: 0 !important;
  }

  body.single-product .dd-product-box h2 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    font-size: 25px !important;
    line-height: 1.18 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  body.single-product .dd-product-box p,
  body.single-product .dd-product-box li {
    width: auto !important;
    max-width: none !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  body.single-product .dd-product-box ul {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 21px !important;
    box-sizing: border-box !important;
  }

  body.single-product .dd-product-cta,
  body.single-product .dd-product-cta.dd-product-cta-compact {
    margin-top: 26px !important;
    padding: 26px 18px !important;
    border-radius: 20px !important;
  }

  body.single-product .dd-product-cta h2 {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  body.single-product .dd-product-cta-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.single-product .dd-product-cta-actions a {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Full-width footer */
  body.single-product .dd-final-footer,
  body.single-product .dd-final-footer-inner,
  body.single-product .dd-final-footer .dd-wrap,
  body.single-product .dd-footer-grid,
  body.single-product footer,
  body.single-product .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  body.single-product .dd-final-footer .dd-wrap,
  body.single-product .dd-final-footer-inner {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.single-product .dd-footer-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  body.single-product .dd-footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
  }
}

@media (max-width: 430px) {

  body.single-product .woocommerce div.product,
  body.single-product div.product {
    width: calc(100% - 16px) !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    padding: 14px !important;
  }

  body.single-product .product_title,
  body.single-product h1.product_title {
    font-size: 32px !important;
  }

  body.single-product .dd-product-box {
    padding: 17px !important;
  }
}