/* Friedify Shop RC7 – scoped presentation only. WooCommerce Blocks remain intact. */
/* Success notices on single-product pages: preserve success icon and link semantics. */
body.single-product .woocommerce-message,
body.single-product .woocommerce-notices-wrapper .wc-block-components-notice-banner.is-success {
  background: #faf9f6;
  color: #411020;
  border: 1px solid #d9cbc9;
  border-left: 4px solid #411020;
  border-radius: 7px;
  box-shadow: none;
  font-family: "Source Sans Pro", sans-serif;
}
body.single-product .woocommerce-message a,
body.single-product .woocommerce-notices-wrapper .wc-block-components-notice-banner a {
  color: #411020;
  text-underline-offset: 3px;
}
/* Restrict cart/checkout appearance to their actual WooCommerce page body classes. */
body.woocommerce-cart,
body.woocommerce-checkout {
  background: #f6f6f6;
}

body.woocommerce-cart .wp-site-blocks > main,
body.woocommerce-checkout .wp-site-blocks > main {
  background: #f6f6f6;
}

/* Cart main container – aligned with approved catalog layout. */
body.woocommerce-cart .wp-site-blocks > main {
  margin-block-start: 0;
  padding: 28px 16px 32px;
}
body.woocommerce-cart .wp-site-blocks > main .wp-block-post-content,
body.woocommerce-checkout .wp-site-blocks > main .wp-block-post-content {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
  padding-block: 28px 40px;
  box-sizing: border-box;
  color: #411020;
  font-family: "Source Sans Pro", sans-serif;
}

/* Cart content – aligned with catalog width. */
body.woocommerce-cart .wp-site-blocks > main .wp-block-post-content {
  max-width: 1144px;

}
body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wc-block-checkout { color: #411020; font-family: "Source Sans Pro", sans-serif; }
body.woocommerce-cart .wp-block-post-content h1,
body.woocommerce-checkout .wp-block-post-content h1 { color: #411020; font-family: "Julius Sans One", sans-serif; }
/* Cart: original block layout and behavior retained. */
body.woocommerce-cart .wc-block-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart .wc-block-cart__totals-title,
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-wrapper,
body.woocommerce-cart .wc-block-cart .wc-block-cart__payment-options,
body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-container {
  border-color: #ded3cf;
}
body.woocommerce-cart .wc-block-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar {
  min-width: 0;
}
body.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar {
  background: #faf9f6;
  border: 1px solid #ded3cf;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
}
body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-coupon__button,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-totals-coupon__button {
  background: #411020;
  color: #faf9f6;
  border: 1px solid #411020;
  border-radius: 7px;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  min-height: 48px;
  transition: background-color .15s ease;
}
body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button:hover,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-coupon__button:hover:not(:disabled),
body.woocommerce-checkout .wc-block-checkout .wc-block-components-totals-coupon__button:hover:not(:disabled) {
  background: #5b2033;
  color: #fff;
}
/* Checkout: scoped WooCommerce Blocks controls; leave express payment branding intact. */
body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout__main {
  min-width: 0;
}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar {
  background: #faf9f6;
  border: 1px solid #ded3cf;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-textarea {
  border-color: #cfc2bc;
  border-radius: 6px;
  background: #fff;
}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-combobox-control input:focus {
  outline-color: #411020;
  border-color: #411020;
}
body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-cart .wc-block-components-totals-footer-item,
body.woocommerce-checkout .wc-block-components-totals-footer-item { color: #411020; }
@media (max-width: 781px) {
  body.woocommerce-cart .wp-site-blocks > main .wp-block-post-content,
  body.woocommerce-checkout .wp-site-blocks > main .wp-block-post-content {
    padding-inline: 16px;
    padding-block: 20px 28px;
  }
  body.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar,
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar {
    padding: 16px;
  }
}


/* RC8: typography and color alignment only. Scoped to Woo Blocks and notices. */
body.woocommerce-cart .wp-block-post-content,
body.woocommerce-checkout .wp-block-post-content,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wc-block-cart :is(button,input,select,textarea),
body.woocommerce-checkout .wc-block-checkout :is(button,input,select,textarea) {
  font-family: "Source Sans Pro", sans-serif;
}
body.woocommerce-cart .wp-block-post-content > h1,
body.woocommerce-cart .wp-block-post-content h1,
body.woocommerce-checkout .wp-block-post-content h1 {
  color: #411020;
  font-family: "Julius Sans One", sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -.3px;
}
body.woocommerce-cart .wc-block-cart :is(.wc-block-components-product-name,.wc-block-cart__totals-title,.wc-block-components-totals-footer-item__label),
body.woocommerce-checkout .wc-block-checkout :is(.wc-block-components-product-name,.wc-block-components-checkout-step__title,.wc-block-components-order-summary__button-text,.wc-block-components-totals-footer-item__label) {
  color: #411020;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
}
body.woocommerce-cart .wc-block-cart :is(.wc-block-components-product-name,.wc-block-cart__totals-title),
body.woocommerce-checkout .wc-block-checkout :is(.wc-block-components-checkout-step__title,.wc-block-components-order-summary__button-text) {
  font-size: 17px;
  line-height: 1.35;
}
body.woocommerce-cart .wc-block-cart :is(.wc-block-components-product-details,.wc-block-components-product-metadata,.wc-block-components-totals-item__label,.wc-block-components-totals-item__value),
body.woocommerce-checkout .wc-block-checkout :is(.wc-block-components-product-details,.wc-block-components-product-metadata,.wc-block-components-totals-item__label,.wc-block-components-totals-item__value) {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
body.woocommerce-cart .wc-block-cart :is(.wc-block-components-product-details,.wc-block-components-product-metadata),
body.woocommerce-checkout .wc-block-checkout :is(.wc-block-components-product-details,.wc-block-components-product-metadata) {
  color: #806c72;
}
body.woocommerce-cart .wc-block-cart :is(.wc-block-components-quantity-selector,.wc-block-components-text-input input),
body.woocommerce-checkout .wc-block-checkout :is(.wc-block-components-text-input input,.wc-block-components-combobox-control input) {
  border-color: #d7cfc5;
}
body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-coupon__button,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-totals-coupon__button {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}
body.single-product .woocommerce-message,
body.single-product .woocommerce-notices-wrapper .wc-block-components-notice-banner.is-success {
  border: 1px solid #d7cfc5;
  border-left: 4px solid #411020;
  color: #411020;
  font-size: 16px;
  line-height: 1.45;
}
body.single-product .woocommerce-message :is(a,button),
body.single-product .woocommerce-notices-wrapper .wc-block-components-notice-banner.is-success :is(a,button) {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
}
@media (max-width: 781px) {
  body.woocommerce-cart .wp-block-post-content h1,
  body.woocommerce-checkout .wp-block-post-content h1 { font-size: 30px; }
}

/* RC9: Page titles rendered by block templates outside post-content.
   Cart aligned with the approved catalog typography.
   Checkout styling retained. */

body.woocommerce-cart .wp-site-blocks > main h1.wp-block-post-title,
body.woocommerce-cart .wp-site-blocks > main h1.wp-block-heading,
body.woocommerce-checkout .wp-site-blocks > main h1.wp-block-post-title,
body.woocommerce-checkout .wp-site-blocks > main h1.wp-block-heading {
  font-family: "Julius Sans One", sans-serif !important;
  color: #411020 !important;
  font-weight: 400 !important;
  font-size: clamp(30px, 3vw, 38px) !important;
  line-height: 1.2 !important;
  letter-spacing: -.3px !important;
}

/* Cart page title – catalog alignment. */
body.woocommerce-cart .wp-site-blocks > main h1.wp-block-post-title {
  max-width: 1080px;
  margin-inline: auto;
  margin-block: 12px 16px;
  line-height: 1.125 !important;
  letter-spacing: -.1px !important;
}

@media (max-width: 781px) {
  body.woocommerce-cart .wp-site-blocks > main h1.wp-block-post-title,
  body.woocommerce-cart .wp-site-blocks > main h1.wp-block-heading,
  body.woocommerce-checkout .wp-site-blocks > main h1.wp-block-post-title,
  body.woocommerce-checkout .wp-site-blocks > main h1.wp-block-heading {
    font-size: 30px !important;
  }
}


/* Friedify – empty cart product-new grid only. Catalog design tokens. */
body.woocommerce-cart .wc-block-product-new .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
}
body.woocommerce-cart .wc-block-product-new .wc-block-grid__products > li.wc-block-grid__product {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 12px !important;
  background: #fff;
  border: 1px solid #d7cfc5;
  border-radius: 9px;
  overflow: hidden;
  font-family: "Source Sans Pro", Arial, sans-serif;
}
body.woocommerce-cart .wc-block-product-new .wc-block-grid__product-link {
  color: #411020;
  text-decoration: none;
}
body.woocommerce-cart .wc-block-product-new .wc-block-grid__product-image {
  background: #f7f6f4;
  border-radius: 7px;
  overflow: hidden;
  margin: 0;
}
body.woocommerce-cart .wc-block-product-new .wc-block-grid__product-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
body.woocommerce-cart .wc-block-product-new .wc-block-grid__product-title {
  color: #411020;
  font-size: 17px !important;
  line-height: 1.45;
  font-weight: 700;
  margin: 18px 0 8px;
}
body.woocommerce-cart .wc-block-product-new .wc-block-grid__product-price {
  color: #411020;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.45;
  min-height: 1.45em;
  margin: auto 0 16px !important;
}
body.woocommerce-cart .wc-block-product-new .wc-block-grid__product-add-to-cart {
  margin: 0 !important;
  display: flex;
  justify-content: center;
}
body.woocommerce-cart .wc-block-product-new .wc-block-grid__product-add-to-cart .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 168px;
  min-height: 71.1875px;
  padding: 12px 8px;
  background: #411020 !important;
  color: #fff !important;
  border: 1px solid #411020;
  border-radius: 6px !important;
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease;
}
body.woocommerce-cart .wc-block-product-new .wc-block-grid__product-add-to-cart .wp-block-button__link:is(:hover, :focus-visible) {
  background: #5a162b !important;
  color: #fff !important;
}
@media (max-width: 781px) {
  body.woocommerce-cart .wc-block-product-new .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body.woocommerce-cart .wc-block-product-new .wc-block-grid__products > li.wc-block-grid__product { padding: 9px !important; }
  body.woocommerce-cart .wc-block-product-new .wc-block-grid__product-title { font-size: 15px !important; }
  body.woocommerce-cart .wc-block-product-new .wc-block-grid__product-price { font-size: 16px !important; }
}
@media (max-width: 340px) {
  body.woocommerce-cart .wc-block-product-new .wc-block-grid__products { gap: 7px; }
  body.woocommerce-cart .wc-block-product-new .wc-block-grid__products > li.wc-block-grid__product { padding: 7px !important; }
}

/* Friedify – empty cart heading typography. */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.wc-block-cart__empty-cart__title {
    font-family: "Source Sans Pro", Arial, sans-serif;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    color: #411020;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.wp-block-heading:not(.wc-block-cart__empty-cart__title) {
    font-family: "Source Sans Pro", Arial, sans-serif;
    font-size: clamp(24px, 2.3vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    color: #411020;
}

/* Friedify – compact coupon button (approved browser test). */
body.woocommerce-cart .wc-block-components-totals-coupon__button,
body.woocommerce-checkout .wc-block-components-totals-coupon__button {
    font-size: 14px !important;
    min-height: 0 !important;
    height: 50px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}
