/* =====================================================================
   99 PIZZA & GRILL — WOOCOMMERCE DARK LUXURY & TEMPLATE OVERRIDES
   ===================================================================== */

/* Admin Bar Offset for Fixed Navigation */
body.admin-bar #pg99-banner .pg99-nav {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar #pg99-banner .pg99-nav {
    top: 46px !important;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar #pg99-banner .pg99-nav {
    top: 0 !important;
  }
}

/* Page Container and Clearance */
.pg99-page-wrapper {
  min-height: 85vh;
  padding: 165px 2rem 6rem;
  background: var(--pg99-dark, #0C0907);
  color: var(--pg99-cream, #F2EAD8);
  box-sizing: border-box;
}

body.admin-bar .pg99-page-wrapper {
  padding-top: 195px !important;
}

@media (max-width: 900px) {
  .pg99-page-wrapper {
    padding: 140px 1.5rem 5rem;
  }
  body.admin-bar .pg99-page-wrapper {
    padding-top: 170px !important;
  }
}

@media (max-width: 600px) {
  .pg99-page-wrapper {
    padding: 115px 1.25rem 4rem;
  }
  body.admin-bar .pg99-page-wrapper {
    padding-top: 145px !important;
  }
}

.pg99-page-container {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.pg99-page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pg99-page-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pg99-ember, #D94F1E);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pg99-page-title {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--pg99-cream, #F2EAD8);
  margin: 0;
  line-height: 1.15;
}

/* Regular inner content for legal/standard pages */
.pg99-page-inner-content {
  background: rgba(33, 28, 24, 0.75);
  border: 1px solid rgba(242, 234, 216, 0.1);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  box-sizing: border-box;
}

/* WooCommerce container */
.pg99-wc-content {
  width: 100%;
  box-sizing: border-box;
}

/* Prevent Fixed Navbar from Covering Error Banners & Targets */
:target,
.wc-block-components-notice-banner,
.woocommerce-NoticeGroup,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
#order_review,
#customer_details {
  scroll-margin-top: 150px !important;
}

/* ── 1. CLASSIC WOOCOMMERCE STYLES ── */
body.woocommerce-page,
.woocommerce-page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce {
  color: var(--pg99-cream, #F2EAD8);
  font-family: var(--pg99-font-body, 'Space Grotesk', sans-serif);
  width: 100%;
  box-sizing: border-box;
}

.woocommerce a {
  color: var(--pg99-cream, #F2EAD8);
  text-decoration: none;
  transition: color 0.2s;
}

.woocommerce a:hover {
  color: var(--pg99-ember, #D94F1E);
}

/* Classic Shop Tables */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(242, 234, 216, 0.1) !important;
  border-radius: 8px;
  background: rgba(22, 17, 14, 0.65) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--pg99-cream, #F2EAD8);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.woocommerce table.shop_table th {
  background: rgba(30, 24, 20, 0.85);
  color: var(--pg99-cream, #F2EAD8);
  font-family: var(--pg99-font-display, 'Cormorant Garamond', serif);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid rgba(242, 234, 216, 0.1);
}

.woocommerce table.shop_table td {
  padding: 1.2rem 1.3rem;
  border-top: 1px solid rgba(242, 234, 216, 0.06);
  vertical-align: middle;
}

.woocommerce table.shop_table td.product-thumbnail {
  width: 76px;
  text-align: center;
  padding: 0.85rem 0.5rem;
}

.woocommerce table.shop_table td.product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(242, 234, 216, 0.12);
  background: #140f0c;
  display: inline-block;
  vertical-align: middle;
}

.woocommerce table.shop_table td.product-name a {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pg99-cream, #F2EAD8);
}

/* Custom Pizza Toppings & Variations Metadata */
.woocommerce table.shop_table dl.variation,
.woocommerce .variation {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.35rem 0.5rem !important;
  margin: 0.5rem 0 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  align-items: center !important;
}

.woocommerce table.shop_table dl.variation dt,
.woocommerce .variation dt {
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(242, 234, 216, 0.55) !important;
  margin: 0 !important;
  font-weight: 600 !important;
}

.woocommerce table.shop_table dl.variation dd,
.woocommerce .variation dd {
  background: rgba(217, 79, 30, 0.15) !important;
  border: 1px solid rgba(217, 79, 30, 0.3) !important;
  border-radius: 4px !important;
  padding: 2px 8px !important;
  font-size: 0.75rem !important;
  color: #F2EAD8 !important;
  margin: 0 0.5rem 0 0 !important;
  font-weight: 500 !important;
}

.woocommerce table.shop_table dl.variation dd p,
.woocommerce .variation dd p {
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
  font-weight: 600;
  color: var(--pg99-ember, #D94F1E);
}

.woocommerce a.remove {
  color: var(--pg99-ember, #D94F1E) !important;
  border: 1px solid rgba(217, 79, 30, 0.3);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
}
.woocommerce a.remove:hover {
  background: var(--pg99-ember, #D94F1E) !important;
  color: #fff !important;
}

.woocommerce .quantity .qty {
  background: rgba(14, 11, 9, 0.85) !important;
  border: 1px solid rgba(242, 234, 216, 0.2) !important;
  color: var(--pg99-cream, #F2EAD8) !important;
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  width: 60px;
}

.woocommerce table.shop_table td.actions {
  background: rgba(22, 17, 14, 0.7);
  padding: 1.25rem;
}

.woocommerce table.shop_table td.actions .coupon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  float: left;
}

.woocommerce table.shop_table td.actions .coupon input.input-text {
  width: 180px !important;
  height: 46px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0.6rem 1rem !important;
}

.woocommerce table.shop_table td.actions .coupon button.button {
  height: 46px;
  padding: 0 1.5rem !important;
  font-size: 0.8rem !important;
}

.woocommerce table.shop_table td.actions > button.button {
  float: right;
  height: 46px;
  padding: 0 1.5rem !important;
  font-size: 0.8rem !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(242, 234, 216, 0.2) !important;
  color: #F2EAD8 !important;
  box-shadow: none !important;
}

.woocommerce table.shop_table td.actions > button.button:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #D94F1E !important;
  color: #FFF !important;
}

/* Standard Inputs & Textareas */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .coupon input.input-text {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(242, 234, 216, 0.16) !important;
  color: var(--pg99-cream, #F2EAD8) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 4px !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce .coupon input.input-text:focus {
  border-color: var(--pg99-ember, #D94F1E) !important;
  box-shadow: 0 0 0 2px rgba(217, 79, 30, 0.25) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Standard Buttons */
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce #place_order,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(135deg, #D94F1E 0%, #B83B10 100%) !important;
  color: #fff !important;
  font-family: var(--pg99-font-body, 'Space Grotesk', sans-serif) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  padding: 0.95rem 2rem !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: inline-block !important;
  box-shadow: 0 4px 18px rgba(217, 79, 30, 0.35) !important;
}

.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce #place_order:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
  background: linear-gradient(135deg, #f05c28 0%, #D94F1E 100%) !important;
  box-shadow: 0 6px 25px rgba(217, 79, 30, 0.5) !important;
  transform: translateY(-1px);
}

/* Classic Cart Layout */
.woocommerce-cart .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 400px) !important;
  gap: 2.5rem !important;
  align-items: start !important;
}

.woocommerce-cart .woocommerce-cart-form {
  background: rgba(20, 16, 13, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(242, 234, 216, 0.1) !important;
  border-radius: 10px !important;
  padding: 2rem !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.woocommerce-cart .cart-collaterals {
  margin-top: 0 !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  background: rgba(26, 20, 16, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(217, 79, 30, 0.35) !important;
  border-radius: 10px !important;
  padding: 2rem !important;
  margin-top: 0 !important;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.6) !important;
  position: sticky !important;
  top: 130px !important;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', serif);
  font-size: 2rem;
  color: var(--pg99-cream, #F2EAD8);
  border-bottom: 1px solid rgba(242, 234, 216, 0.1);
  padding-bottom: 0.8rem;
  margin-top: 0;
}

/* Cart Collaterals / Totals Table Breakdown */
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
  background: transparent !important;
  border: none !important;
  margin-bottom: 1.5rem !important;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th {
  background: transparent !important;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(242, 234, 216, 0.7);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(242, 234, 216, 0.08);
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
  background: transparent !important;
  text-align: right;
  padding: 0.85rem 0;
  border-top: none;
  border-bottom: 1px solid rgba(242, 234, 216, 0.08);
  color: #F2EAD8;
}

.woocommerce-cart .cart-collaterals .cart_totals tr.order-total th,
.woocommerce-cart .cart-collaterals .cart_totals tr.order-total td {
  border-top: 1px solid rgba(217, 79, 30, 0.4);
  border-bottom: none;
  padding: 1.25rem 0 0.5rem;
}

.woocommerce-cart .cart-collaterals .cart_totals tr.order-total td strong {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', serif);
  font-size: 1.8rem;
  color: #D94F1E;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  padding: 1.15rem 2rem !important;
  font-size: 0.92rem !important;
  box-sizing: border-box;
}

/* =====================================================================
   EMPTY CART & PRODUCT GRIDS (MATCHING HOMEPAGE PIZZA CARDS)
   ===================================================================== */

/* Classic & Gutenberg Empty Cart Wrapper */
.woocommerce-cart .cart-empty,
.woocommerce .cart-empty {
  background: rgba(22, 17, 14, 0.85) !important;
  border: 1px solid rgba(242, 234, 216, 0.12) !important;
  border-radius: 12px !important;
  padding: 3.5rem 2rem !important;
  text-align: center !important;
  font-size: 1.25rem !important;
  color: rgba(242, 234, 216, 0.8) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  margin-bottom: 2rem !important;
}

.woocommerce-cart .return-to-shop,
.woocommerce .return-to-shop {
  text-align: center;
  margin-bottom: 3rem;
}

.woocommerce-cart .return-to-shop a.button,
.woocommerce .return-to-shop a.button {
  background: linear-gradient(135deg, var(--pg99-ember, #D94F1E), #B83B10) !important;
  color: #FFFFFF !important;
  font-family: var(--pg99-font-base, 'Space Grotesk', sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 1.1rem 2.5rem !important;
  border-radius: 4px !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(217, 79, 30, 0.4) !important;
  display: inline-block !important;
  transition: all 0.25s ease !important;
}

.woocommerce-cart .return-to-shop a.button:hover,
.woocommerce .return-to-shop a.button:hover {
  background: #E85D2B !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 25px rgba(217, 79, 30, 0.55) !important;
}

/* Gutenberg Block Empty Cart Hero Titles */
.wc-block-cart__empty-cart-wrapper,
.wc-block-cart.is-empty {
  text-align: center !important;
  padding: 1rem 0 3rem !important;
}

.wc-block-cart__empty-cart-title,
.wc-block-cart__empty-cart-wrapper h2 {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', Georgia, serif) !important;
  font-size: clamp(2rem, 4vw, 2.8rem) !important;
  font-weight: 700 !important;
  color: var(--pg99-cream, #F2EAD8) !important;
  margin: 0 0 1rem !important;
  letter-spacing: 0.02em !important;
}

.wc-block-product-new__title,
.wc-block-cart__empty-cart-wrapper h3 {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', Georgia, serif) !important;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  font-style: italic !important;
  font-weight: 600 !important;
  color: var(--pg99-ember, #D94F1E) !important;
  margin: 2.5rem 0 2rem !important;
  letter-spacing: 0.04em !important;
}

/* ── PRODUCT GRID CONTAINER (Matching Homepage .pg99-pizza-grid) ── */
.wc-block-grid__products,
.wc-block-product-grid .wc-block-grid__products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important;
  gap: 2rem !important;
  max-width: 1200px !important;
  margin: 2rem auto !important;
  padding: 0 !important;
  list-style: none !important;
}

@media (max-width: 1040px) {
  .wc-block-grid__products,
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .wc-block-grid__products,
  ul.products {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
}

/* ── PRODUCT CARD (Matching Homepage .pg99-pizza-card) ── */
.wc-block-grid__product,
ul.products li.product {
  background: var(--pg99-surface, #211C18) !important;
  border: 1px solid rgba(242, 234, 216, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  text-align: left !important;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  float: none !important;
}

.wc-block-grid__product:hover,
ul.products li.product:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(217, 79, 30, 0.45) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

/* ── PRODUCT IMAGE WRAPPER (Matching .pg99-pizza-img-wrap) ── */
.wc-block-grid__product-image,
.wc-block-components-product-image,
.wc-block-grid__product-link,
ul.products li.product .woocommerce-loop-product__link {
  width: 100% !important;
  display: block !important;
  text-decoration: none !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wc-block-grid__product-image,
.wc-block-components-product-image {
  height: 230px !important;
  overflow: hidden !important;
  background: #140f0c !important;
  margin-bottom: 0 !important;
}

.wc-block-grid__product-image img,
.wc-block-components-product-image img,
.wc-block-grid__product-link img,
ul.products li.product img {
  width: 100% !important;
  height: 230px !important;
  object-fit: cover !important;
  display: block !important;
  filter: brightness(0.92) !important;
  transition: transform 0.5s ease, filter 0.5s ease !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.wc-block-grid__product:hover .wc-block-grid__product-image img,
.wc-block-grid__product:hover .wc-block-components-product-image img,
.wc-block-grid__product:hover .wc-block-grid__product-link img,
ul.products li.product:hover img {
  transform: scale(1.05) !important;
  filter: brightness(1) !important;
}

/* Fallback placeholder handling */
.wc-block-product-image__placeholder {
  background: linear-gradient(135deg, #1C1612, #2A201A) !important;
  height: 230px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
}

.wc-block-product-image__placeholder svg {
  opacity: 0.25 !important;
  color: var(--pg99-ember, #D94F1E) !important;
  max-width: 60px !important;
}

/* ── PRODUCT CARD TITLE (Matching .pg99-pizza-card-name) ── */
.wc-block-grid__product-title,
.wc-block-components-product-title,
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', Georgia, serif) !important;
  font-style: italic !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  color: var(--pg99-cream, #F2EAD8) !important;
  padding: 1.4rem 1.6rem 0.4rem !important;
  margin: 0 !important;
  text-align: left !important;
  line-height: 1.25 !important;
  transition: color 0.2s ease !important;
}

.wc-block-grid__product-link:hover .wc-block-grid__product-title,
.wc-block-grid__product-link:hover .wc-block-components-product-title,
ul.products li.product .woocommerce-loop-product__link:hover .woocommerce-loop-product__title {
  color: var(--pg99-ember, #D94F1E) !important;
}

/* ── PRODUCT CARD PRICE (Matching .pg99-pizza-price) ── */
.wc-block-grid__product-price,
.wc-block-components-product-price,
ul.products li.product .price {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', Georgia, serif) !important;
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  color: var(--pg99-cream, #F2EAD8) !important;
  padding: 0.2rem 1.6rem 1.2rem !important;
  margin: 0 !important;
  text-align: left !important;
  display: block !important;
  line-height: 1.2 !important;
}

.wc-block-grid__product-price .woocommerce-Price-amount,
.wc-block-components-product-price .woocommerce-Price-amount,
ul.products li.product .price .woocommerce-Price-amount {
  color: var(--pg99-cream, #F2EAD8) !important;
  font-weight: 700 !important;
}

.wc-block-grid__product-price .woocommerce-Price-currencySymbol,
.wc-block-components-product-price .woocommerce-Price-currencySymbol,
ul.products li.product .price .woocommerce-Price-currencySymbol {
  color: var(--pg99-ember, #D94F1E) !important;
  font-weight: 500 !important;
  margin-right: 2px !important;
}

/* ── PRODUCT ADD TO CART BUTTON (Matching .pg99-btn-ember) ── */
.wc-block-grid__product-add-to-cart,
.wc-block-components-product-button,
.wp-block-button.wc-block-grid__product-add-to-cart,
ul.products li.product .button {
  padding: 1.2rem 1.6rem !important;
  margin: 0 !important;
  border-top: 1px solid rgba(242, 234, 216, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wc-block-grid__product-add-to-cart a,
.wc-block-grid__product-add-to-cart button,
.wc-block-components-product-button__button,
.wp-block-button__link.add_to_cart_button,
.wp-block-button__link.wc-block-grid__product-add-to-cart__button,
ul.products li.product .button.add_to_cart_button {
  background: linear-gradient(135deg, var(--pg99-ember, #D94F1E), #B83B10) !important;
  color: #FFFFFF !important;
  font-family: var(--pg99-font-base, 'Space Grotesk', sans-serif) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  padding: 0.75rem 1.4rem !important;
  border-radius: 4px !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(217, 79, 30, 0.35) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
}

.wc-block-grid__product-add-to-cart a:hover,
.wc-block-grid__product-add-to-cart button:hover,
.wp-block-button__link.add_to_cart_button:hover,
.wp-block-button__link.wc-block-grid__product-add-to-cart__button:hover,
ul.products li.product .button.add_to_cart_button:hover {
  background: #E85D2B !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(217, 79, 30, 0.5) !important;
  color: #FFFFFF !important;
}

/* Classic Checkout Layout */
.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 420px) !important;
  gap: 2.5rem !important;
  align-items: start !important;
}

.woocommerce-checkout #customer_details {
  background: rgba(20, 16, 13, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(242, 234, 216, 0.1) !important;
  border-radius: 10px !important;
  padding: 2rem !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce-checkout #customer_details h3,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', serif);
  font-size: 1.8rem;
  color: var(--pg99-cream, #F2EAD8);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(242, 234, 216, 0.1);
  letter-spacing: 0.02em;
}

.woocommerce form .form-row {
  margin-bottom: 1.25rem;
}

.woocommerce form .form-row label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 234, 216, 0.75);
  margin-bottom: 0.45rem;
  display: block;
  font-weight: 500;
}

.woocommerce form .form-row .required {
  color: var(--pg99-ember, #D94F1E);
  text-decoration: none;
}

/* Select2 / SelectWoo Complete Luxury Dark Theme */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(242, 234, 216, 0.16) !important;
  border-radius: 4px !important;
  height: 48px !important;
  color: #F2EAD8 !important;
  outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #F2EAD8 !important;
  line-height: 46px !important;
  padding-left: 14px !important;
  font-size: 0.88rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(242, 234, 216, 0.4) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #D94F1E transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #D94F1E transparent !important;
}

.select2-dropdown {
  background-color: #17120E !important;
  border: 1px solid rgba(217, 79, 30, 0.4) !important;
  border-radius: 6px !important;
  box-shadow: 0 14px 40px rgba(0,0,0,0.8) !important;
  color: #F2EAD8 !important;
  z-index: 99999 !important;
}

.select2-container--default .select2-search--dropdown {
  padding: 8px !important;
  background: transparent !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(242, 234, 216, 0.2) !important;
  color: #F2EAD8 !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  outline: none !important;
}

.select2-container--default .select2-results__option {
  color: #F2EAD8 !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: rgba(217, 79, 30, 0.3) !important;
  color: #FFF !important;
}

.woocommerce-checkout #order_review_heading {
  display: none !important;
}

.woocommerce-checkout #order_review {
  background: rgba(26, 20, 16, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(217, 79, 30, 0.35) !important;
  border-radius: 10px !important;
  padding: 2rem !important;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.6) !important;
  position: sticky !important;
  top: 130px !important;
  width: 100% !important;
  float: none !important;
}

/* Order Review Table in Classic Checkout */
.woocommerce-checkout #order_review table.shop_table {
  background: transparent !important;
  border: none !important;
}

.woocommerce-checkout #order_review table.shop_table th {
  background: transparent !important;
  border-bottom: 1px solid rgba(242, 234, 216, 0.1);
  padding: 0.9rem 0;
}

.woocommerce-checkout #order_review table.shop_table td {
  background: transparent !important;
  border-top: none;
  border-bottom: 1px solid rgba(242, 234, 216, 0.06);
  padding: 0.9rem 0;
}

.woocommerce-checkout #order_review table.shop_table tr.order-total th,
.woocommerce-checkout #order_review table.shop_table tr.order-total td {
  border-top: 1px solid rgba(217, 79, 30, 0.4);
  border-bottom: none;
  padding: 1.2rem 0 0.5rem;
}

.woocommerce-checkout #order_review table.shop_table tr.order-total td strong {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', serif);
  font-size: 1.8rem;
  color: #D94F1E;
}

/* Payment Methods in Classic Checkout */
.woocommerce-checkout #payment {
  background: rgba(18, 14, 11, 0.75) !important;
  border: 1px solid rgba(242, 234, 216, 0.1) !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  margin-top: 1.5rem !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.5rem 0 !important;
  border-bottom: 1px solid rgba(242, 234, 216, 0.1) !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(242, 234, 216, 0.1) !important;
  border-radius: 6px !important;
  padding: 1rem 1.25rem !important;
  margin-bottom: 0.85rem !important;
  transition: all 0.2s ease;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:hover {
  border-color: rgba(217, 79, 30, 0.4) !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > input[type="radio"] {
  accent-color: #D94F1E !important;
  margin-right: 0.65rem !important;
  transform: scale(1.15);
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label {
  color: #F2EAD8 !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.woocommerce-checkout #payment div.payment_box {
  background: rgba(26, 20, 16, 0.95) !important;
  border: 1px solid rgba(217, 79, 30, 0.3) !important;
  border-radius: 6px !important;
  color: rgba(242, 234, 216, 0.8) !important;
  font-size: 0.85rem !important;
  line-height: 1.55 !important;
  padding: 1rem 1.25rem !important;
  margin-top: 0.85rem !important;
  position: relative;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: rgba(217, 79, 30, 0.3) !important;
}

.woocommerce-checkout #payment .place-order {
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-checkout #payment #place_order {
  width: 100% !important;
  padding: 1.2rem 2rem !important;
  font-size: 0.95rem !important;
  margin-top: 1rem !important;
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
  color: rgba(242, 234, 216, 0.6) !important;
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
  margin-bottom: 1rem !important;
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text a {
  color: #D94F1E !important;
  text-decoration: underline;
}

/* Order Received / Thank You Page */
.woocommerce-order {
  background: rgba(20, 16, 13, 0.85);
  border: 1px solid rgba(242, 234, 216, 0.1);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

p.woocommerce-notice--success.woocommerce-thankyou-order-received {
  background: rgba(217, 79, 30, 0.15) !important;
  border: 1px solid #D94F1E !important;
  color: #F2EAD8 !important;
  border-radius: 8px !important;
  padding: 1.25rem 1.75rem !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin-bottom: 2rem !important;
  text-align: center;
}

ul.woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 1.25rem !important;
  list-style: none !important;
  padding: 1.5rem !important;
  background: rgba(26, 20, 16, 0.9) !important;
  border: 1px solid rgba(217, 79, 30, 0.3) !important;
  border-radius: 8px !important;
  margin: 2rem 0 !important;
}

ul.woocommerce-order-overview li {
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(242, 234, 216, 0.6) !important;
  border-right: 1px solid rgba(242, 234, 216, 0.1) !important;
  padding-right: 1rem !important;
  margin: 0 !important;
}

ul.woocommerce-order-overview li:last-child {
  border-right: none !important;
}

ul.woocommerce-order-overview li strong {
  display: block !important;
  font-size: 1.15rem !important;
  color: #F2EAD8 !important;
  margin-top: 0.4rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

ul.woocommerce-order-overview li.woocommerce-order-overview__total strong {
  color: #D94F1E !important;
}

.woocommerce-customer-details {
  background: rgba(26, 20, 16, 0.85);
  border: 1px solid rgba(242, 234, 216, 0.1);
  border-radius: 8px;
  padding: 1.75rem;
  margin-top: 2rem;
}

.woocommerce-customer-details h2 {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', serif);
  font-size: 1.7rem;
  color: #F2EAD8;
  margin-top: 0;
  border-bottom: 1px solid rgba(242, 234, 216, 0.1);
  padding-bottom: 0.6rem;
}

.woocommerce-customer-details address {
  color: rgba(242, 234, 216, 0.8);
  font-style: normal;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* Notices & Alerts */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: rgba(28, 22, 18, 0.95) !important;
  border-left: 4px solid var(--pg99-ember, #D94F1E) !important;
  color: var(--pg99-cream, #F2EAD8) !important;
  border-radius: 4px;
  padding: 1.1rem 1.5rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.woocommerce-error {
  border-left-color: #ff4757 !important;
}

/* ── 2. WOOCOMMERCE GUTENBERG BLOCKS OVERRIDES ── */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 440px) !important;
  gap: 2.5rem !important;
  align-items: start !important;
}

.wp-block-woocommerce-cart.alignwide,
.wp-block-woocommerce-checkout.alignwide,
.wc-block-cart.alignwide,
.wc-block-checkout.alignwide {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

@media (max-width: 980px) {
  .wp-block-woocommerce-cart,
  .wp-block-woocommerce-checkout,
  .wc-block-cart,
  .wc-block-checkout,
  .wp-block-woocommerce-cart.alignwide,
  .wp-block-woocommerce-checkout.alignwide {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* Left Column: Form Fields / Cart Items */
.wc-block-cart__main,
.wc-block-checkout__main,
.wp-block-woocommerce-checkout-fields-block,
.wp-block-woocommerce-cart-items-block {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

/* Individual Step / Section Cards in Left Column */
.wp-block-woocommerce-checkout-fields-block > div,
.wc-block-components-checkout-step,
.wc-block-components-panel,
.wc-block-checkout__main > div,
.wp-block-woocommerce-cart-items-block > div {
  background: rgba(20, 16, 13, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(242, 234, 216, 0.1) !important;
  border-radius: 10px !important;
  padding: 2rem !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Right Column: Sticky Totals & Order Summary */
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar,
.wc-block-components-sidebar,
.wp-block-woocommerce-checkout-totals-block,
.wp-block-woocommerce-cart-totals-block {
  width: 100% !important;
  box-sizing: border-box !important;
  position: sticky !important;
  top: 130px !important;
}

body.admin-bar .wc-block-cart__sidebar,
body.admin-bar .wc-block-checkout__sidebar,
body.admin-bar .wc-block-components-sidebar,
body.admin-bar .wp-block-woocommerce-checkout-totals-block,
body.admin-bar .wp-block-woocommerce-cart-totals-block {
  top: 160px !important;
}

/* Order Summary & Totals Container Cards */
.wp-block-woocommerce-checkout-totals-block > div,
.wp-block-woocommerce-checkout-order-summary-block,
.wp-block-woocommerce-cart-totals-block > div,
.wc-block-components-order-summary,
.wc-block-checkout__sidebar > div {
  background: rgba(26, 20, 16, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(217, 79, 30, 0.35) !important;
  border-radius: 10px !important;
  padding: 2rem !important;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.6) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Headings in Gutenberg Blocks */
.wc-block-checkout h1,
.wc-block-checkout h2,
.wc-block-checkout h3,
.wc-block-cart h1,
.wc-block-cart h2,
.wc-block-cart h3,
.wc-block-components-title,
.wc-block-components-checkout-step__heading,
.wc-block-components-checkout-step__title,
.wc-block-components-order-summary__title {
  font-family: var(--pg99-font-display, 'Cormorant Garamond', serif) !important;
  color: var(--pg99-cream, #F2EAD8) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

/* ── BULLETPROOF FLOATING LABELS & INPUTS ── */
.wc-block-components-text-input {
  position: relative !important;
  margin-bottom: 1rem !important;
}

.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-block-components-textarea textarea,
.wc-block-components-address-form input[type="text"],
.wc-block-components-form input[type="text"],
.wc-block-components-form input[type="email"],
.wc-block-components-form input[type="tel"] {
  background: rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(242, 234, 216, 0.16) !important;
  border-radius: 4px !important;
  color: #F2EAD8 !important;
  box-shadow: none !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 1.45rem 1rem 0.35rem 1rem !important;
  box-sizing: border-box !important;
  font-size: 0.95rem !important;
  line-height: 1.3 !important;
  transition: all 0.2s ease !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus,
.wc-block-components-textarea textarea:focus,
.wc-block-components-address-form input:focus,
.wc-block-components-form input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--pg99-ember, #D94F1E) !important;
  box-shadow: 0 0 0 2px rgba(217, 79, 30, 0.25) !important;
  outline: none !important;
}

.wc-block-components-text-input label {
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 0.88rem !important;
  color: rgba(242, 234, 216, 0.55) !important;
  pointer-events: none !important;
  transition: all 0.15s ease-out !important;
  transform-origin: left top !important;
  z-index: 2 !important;
  margin: 0 !important;
  line-height: 1 !important;
  max-width: calc(100% - 2rem) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Active / Focused / Filled state - strictly moves label to top avoiding any text collision */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input:focus-within label,
.wc-block-components-text-input input:focus ~ label,
.wc-block-components-text-input input:not(:placeholder-shown) ~ label {
  top: 8px !important;
  transform: translateY(0) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--pg99-ember, #D94F1E) !important;
}

/* ── DARK LUXURY COUNTRY / REGION COMBOBOX ── */
.wc-block-components-combobox,
.wc-block-components-combobox-control,
.wc-block-components-combobox__input-wrapper,
.wc-block-components-country-input,
.wc-block-components-combobox .components-combobox-control,
.wc-block-components-combobox .components-base-control__field {
  background: rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(242, 234, 216, 0.16) !important;
  border-radius: 4px !important;
  color: #F2EAD8 !important;
  box-shadow: none !important;
  position: relative !important;
  min-height: 56px !important;
  height: 56px !important;
  box-sizing: border-box !important;
}

.wc-block-components-combobox:focus-within,
.wc-block-components-combobox-control:focus-within,
.wc-block-components-combobox.is-active,
.wc-block-components-combobox__input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--pg99-ember, #D94F1E) !important;
  box-shadow: 0 0 0 2px rgba(217, 79, 30, 0.25) !important;
}

.wc-block-components-combobox input,
.wc-block-components-combobox .wc-block-components-combobox__input,
.wc-block-components-country-input input,
.components-combobox-control__input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: #F2EAD8 !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 1.45rem 2.5rem 0.35rem 1rem !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  font-size: 0.95rem !important;
  line-height: 1.3 !important;
}

.wc-block-components-combobox label,
.wc-block-components-country-input label {
  position: absolute !important;
  left: 1rem !important;
  top: 8px !important;
  transform: translateY(0) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--pg99-ember, #D94F1E) !important;
  pointer-events: none !important;
  z-index: 2 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.wc-block-components-combobox svg,
.wc-block-components-country-input svg,
.wc-block-components-combobox-control svg,
.wc-block-components-combobox__toggle {
  fill: var(--pg99-ember, #D94F1E) !important;
  color: var(--pg99-ember, #D94F1E) !important;
}

.wc-block-components-combobox-list,
.components-combobox-control__suggestions-list {
  background: #17120E !important;
  background-color: #17120E !important;
  border: 1px solid rgba(242, 234, 216, 0.18) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75) !important;
  border-radius: 6px !important;
  z-index: 99999 !important;
}

.wc-block-components-combobox-list__item,
.components-combobox-control__suggestion {
  color: #F2EAD8 !important;
  padding: 0.75rem 1rem !important;
}

.wc-block-components-combobox-list__item.is-selected,
.wc-block-components-combobox-list__item:hover,
.components-combobox-control__suggestion.is-selected,
.components-combobox-control__suggestion:hover {
  background: rgba(217, 79, 30, 0.25) !important;
  color: #fff !important;
}

/* Address 2 Toggle (+ Add apartment, suite, etc.) */
.wc-block-components-address-form__address-2-toggle,
.wc-block-components-address-form button.is-link,
button.wc-block-components-address-form__address-2-toggle {
  color: var(--pg99-ember, #D94F1E) !important;
  background: transparent !important;
  border: none !important;
  font-family: var(--pg99-font-body, 'Space Grotesk', sans-serif) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  padding: 0.4rem 0 !important;
  cursor: pointer !important;
  display: inline-block !important;
  transition: color 0.2s ease !important;
}

.wc-block-components-address-form__address-2-toggle:hover,
.wc-block-components-address-form button.is-link:hover {
  color: #f05c28 !important;
  text-decoration: underline !important;
}

/* Radio controls & accordion content (e.g. shipping options) */
.wc-block-components-radio-control,
.wc-block-components-radio-control-accordion-content {
  background: transparent !important;
  color: var(--pg99-cream, #F2EAD8) !important;
}

.wc-block-components-radio-control__option {
  border: 1px solid rgba(242, 234, 216, 0.1) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 6px !important;
  padding: 1rem !important;
  margin-bottom: 0.75rem !important;
  transition: border-color 0.2s;
}

.wc-block-components-radio-control__option:hover {
  border-color: rgba(217, 79, 30, 0.4) !important;
}

.wc-block-components-radio-control__input {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(242, 234, 216, 0.3) !important;
}

.wc-block-components-radio-control__input:checked {
  background-color: var(--pg99-ember, #D94F1E) !important;
  border-color: var(--pg99-ember, #D94F1E) !important;
}

/* ── ORDER SUMMARY & PRODUCT ITEMS ── */
.wc-block-components-order-summary-item {
  border-bottom: 1px solid rgba(242, 234, 216, 0.06) !important;
  padding: 0.85rem 0 !important;
}

.wc-block-components-order-summary-item__image,
.wc-block-components-order-summary-item__image-wrapper,
.wc-block-components-order-summary-item__image-placeholder,
.wc-block-components-order-summary-item__image-wrapper img,
.wc-block-components-order-summary-item__image img,
.wc-block-components-item-image,
.wc-block-components-item-image img,
.wc-block-components-order-summary-item__image-placeholder svg {
  background: #140f0c !important;
  background-color: #140f0c !important;
  border-radius: 6px !important;
}

.wc-block-components-order-summary-item__image {
  border: 1px solid rgba(242, 234, 216, 0.12) !important;
  overflow: visible !important;
  position: relative !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
}

.wc-block-components-order-summary-item__image img,
.wc-block-components-order-summary-item__image-wrapper img {
  border: none !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.wc-block-components-order-summary-item__quantity {
  background: var(--pg99-ember, #D94F1E) !important;
  color: #fff !important;
  border: 2px solid #140f0c !important;
  border-radius: 50% !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  width: 22px !important;
  height: 22px !important;
  line-height: 18px !important;
  text-align: center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  z-index: 3 !important;
}

.wc-block-components-totals-item,
.wc-block-components-totals-wrapper {
  color: var(--pg99-cream, #F2EAD8) !important;
  border-top: 1px solid rgba(242, 234, 216, 0.08) !important;
}

.wc-block-components-totals-item__value {
  font-weight: 600 !important;
  color: var(--pg99-cream, #F2EAD8) !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--pg99-ember, #D94F1E) !important;
  font-family: var(--pg99-font-display, 'Cormorant Garamond', serif) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

/* ── COUPON ACCORDION & INPUT FORM ── */
.wc-block-components-totals-coupon,
.wc-block-components-totals-coupon-link,
.wc-block-components-panel__button,
.wc-block-components-accordion__button {
  color: rgba(242, 234, 216, 0.8) !important;
  font-family: var(--pg99-font-body, 'Space Grotesk', sans-serif) !important;
  font-size: 0.88rem !important;
  background: transparent !important;
  border: none !important;
  padding: 0.75rem 0 !important;
  width: 100% !important;
  text-align: left !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  cursor: pointer !important;
}

.wc-block-components-totals-coupon-link:hover,
.wc-block-components-accordion__button:hover {
  color: var(--pg99-ember, #D94F1E) !important;
}

.wc-block-components-totals-coupon__content,
.wc-block-components-accordion__content {
  background: transparent !important;
  padding: 0.75rem 0 !important;
}

.wc-block-components-totals-coupon__button,
.wc-block-components-coupon-form button[type="submit"] {
  background: rgba(217, 79, 30, 0.2) !important;
  border: 1px solid var(--pg99-ember, #D94F1E) !important;
  color: #fff !important;
  font-family: var(--pg99-font-body, 'Space Grotesk', sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 0.8rem 1.4rem !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.wc-block-components-totals-coupon__button:hover,
.wc-block-components-coupon-form button[type="submit"]:hover {
  background: var(--pg99-ember, #D94F1E) !important;
  box-shadow: 0 4px 15px rgba(217, 79, 30, 0.4) !important;
}

/* ── PLACE ORDER / SUBMIT BUTTONS ── */
.wc-block-checkout__actions-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-checkout-actions-block button,
.wc-block-cart__submit-button {
  background: linear-gradient(135deg, #D94F1E 0%, #B83B10 100%) !important;
  color: #fff !important;
  font-family: var(--pg99-font-body, 'Space Grotesk', sans-serif) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  padding: 1.1rem 2rem !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 20px rgba(217, 79, 30, 0.35) !important;
  width: 100% !important;
}

.wc-block-checkout__actions-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-checkout-actions-block button:hover,
.wc-block-cart__submit-button:hover {
  background: linear-gradient(135deg, #f05c28 0%, #D94F1E 100%) !important;
  box-shadow: 0 6px 28px rgba(217, 79, 30, 0.5) !important;
  transform: translateY(-1px);
}

/* Terms and Checkboxes */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"],
.wc-block-components-checkbox__input {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(242, 234, 216, 0.3) !important;
  border-radius: 4px !important;
  accent-color: var(--pg99-ember, #D94F1E) !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__label {
  color: rgba(242, 234, 216, 0.8) !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}

/* Notice banners in Blocks */
.wc-block-components-notice-banner {
  background: rgba(28, 22, 18, 0.95) !important;
  border: 1px solid rgba(242, 234, 216, 0.12) !important;
  border-left: 4px solid var(--pg99-ember, #D94F1E) !important;
  color: var(--pg99-cream, #F2EAD8) !important;
  border-radius: 4px !important;
  margin-bottom: 1.5rem !important;
}

.wc-block-components-notice-banner.is-error {
  border-left-color: #ff4757 !important;
  background: rgba(45, 15, 15, 0.95) !important;
}

/* Payment Methods in Blocks */
.wc-block-components-payment-methods,
.wc-block-components-payment-method,
.wc-block-components-payment-method-icons {
  background: transparent !important;
  color: var(--pg99-cream, #F2EAD8) !important;
}

.wc-block-components-payment-method {
  border: 1px solid rgba(242, 234, 216, 0.12) !important;
  border-radius: 6px !important;
  padding: 1rem !important;
  margin-bottom: 0.75rem !important;
  background: rgba(255, 255, 255, 0.02) !important;
  transition: border-color 0.2s ease !important;
}

.wc-block-components-payment-method:hover,
.wc-block-components-payment-method.is-selected {
  border-color: var(--pg99-ember, #D94F1E) !important;
}

.wc-block-components-payment-method__label {
  color: #F2EAD8 !important;
  font-weight: 600 !important;
}

.wc-block-components-payment-method__description {
  color: rgba(242, 234, 216, 0.65) !important;
  font-size: 0.85rem !important;
  margin-top: 0.5rem !important;
}

.wp-block-woocommerce-checkout-express-payment-block:empty,
.wc-block-components-express-payment:empty {
  display: none !important;
}

/* ── 3. GLOBAL DARK SAFETY NET ── */
.site,
.site-content,
.entry-content,
.page-content,
.post-content,
#page,
#content,
#main,
#primary,
.wp-site-blocks,
.is-layout-constrained,
.is-layout-flow {
  background-color: #0C0907 !important;
  color: #F2EAD8 !important;
}

body.woocommerce-coming-soon,
body.woocommerce-coming-soon .wp-site-blocks,
body.woocommerce-coming-soon .is-layout-constrained,
body.woocommerce-coming-soon .is-layout-flow,
body.woocommerce-coming-soon .wp-block-group,
body.woocommerce-coming-soon .wp-block-cover,
.woocommerce-coming-soon-banner,
.coming-soon-is-enabled {
  background: #0C0907 !important;
  background-color: #0C0907 !important;
  color: #F2EAD8 !important;
}

body.woocommerce-coming-soon h1,
body.woocommerce-coming-soon h2,
body.woocommerce-coming-soon h3,
body.woocommerce-coming-soon p {
  color: #F2EAD8 !important;
}

.wp-block-group,
.wp-block-cover,
.wp-block-columns,
.wp-block-column {
  background-color: transparent;
}

.woocommerce-page .wp-site-blocks,
.woocommerce-page .is-layout-constrained {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

body::after {
  content: none !important;
}

.entry-content,
.entry-content p,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content a {
  color: var(--pg99-cream, #F2EAD8);
}

.entry-content a:hover {
  color: var(--pg99-ember, #D94F1E);
}

/* ── 4. WOOCOMMERCE RESPONSIVE ENHANCEMENTS ── */
@media (max-width: 768px) {
  .woocommerce table.shop_table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .woocommerce table.cart td.actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .woocommerce table.cart td.actions .coupon {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
    float: none !important;
  }

  .woocommerce table.cart td.actions .coupon input.input-text {
    width: 100% !important;
  }

  .woocommerce table.cart td.actions .coupon button.button,
  .woocommerce table.cart td.actions > button.button {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce-cart .cart-collaterals .cart_totals {
    position: static !important;
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .pg99-page-wrapper {
    padding: 105px 1rem 3rem !important;
  }

  body.admin-bar .pg99-page-wrapper {
    padding-top: 135px !important;
  }

  .pg99-page-title {
    font-size: 2.2rem !important;
  }

  .pg99-page-inner-content,
  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review,
  .wc-block-cart__main,
  .wc-block-checkout__main,
  .wc-block-cart__sidebar,
  .wc-block-checkout__sidebar {
    padding: 1.25rem 1rem !important;
    border-radius: 8px !important;
  }

  .wc-block-checkout__actions-button,
  .wc-block-components-checkout-place-order-button,
  .wc-block-cart__submit-button {
    padding: 0.95rem 1.25rem !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.12em !important;
  }
}

@media (max-width: 480px) {
  .pg99-page-wrapper {
    padding: 95px 0.75rem 2.5rem !important;
  }

  .pg99-page-header {
    margin-bottom: 2rem !important;
  }

  .pg99-page-title {
    font-size: 1.9rem !important;
  }

  .woocommerce form.checkout .col2-set .col-1,
  .woocommerce form.checkout .col2-set .col-2 {
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
  }

  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    padding: 0.85rem 0.75rem !important;
    font-size: 0.82rem !important;
  }

  .woocommerce table.shop_table td.product-name a {
    font-size: 1rem !important;
  }
}

/* Checkout width correction: constrain the overall page, then use one reliable two-column layout. */
body.woocommerce-checkout .pg99-wc-wrapper .pg99-page-container,
body.woocommerce-cart .pg99-wc-wrapper .pg99-page-container { max-width: 1420px !important; }
body.woocommerce-checkout .pg99-wc-content,
body.woocommerce-cart .pg99-wc-content { width: 100% !important; min-width: 0 !important; }
body.woocommerce-checkout .pg99-wc-content > .wp-block-woocommerce-checkout { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
body.woocommerce-checkout .pg99-wc-content > .woocommerce { width: 100% !important; max-width: none !important; }

body.woocommerce-checkout .woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px) !important;
  gap: clamp(1.25rem, 3vw, 2.5rem) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  align-items: start !important;
}
body.woocommerce-checkout .woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; min-width: 0 !important; }
body.woocommerce-checkout .woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 !important; }
body.woocommerce-checkout .woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; min-width: 0 !important; width: 100% !important; float: none !important; }
body.woocommerce-checkout .woocommerce-checkout .col2-set,
body.woocommerce-checkout .woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .woocommerce-checkout .col2-set .col-2 { width: 100% !important; max-width: 100% !important; float: none !important; margin: 0 !important; }
body.woocommerce-checkout .woocommerce-checkout .form-row,
body.woocommerce-checkout .woocommerce-checkout .form-row input,
body.woocommerce-checkout .woocommerce-checkout .form-row select,
body.woocommerce-checkout .woocommerce-checkout .form-row textarea { box-sizing: border-box !important; max-width: 100% !important; }

body.woocommerce-checkout .wc-block-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px) !important;
  gap: clamp(1.25rem, 3vw, 2.5rem) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  align-items: start !important;
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar { min-width: 0 !important; width: 100% !important; }
body.woocommerce-checkout .wc-block-checkout__sidebar { position: static !important; }
body.woocommerce-checkout .wc-block-checkout input,
body.woocommerce-checkout .wc-block-checkout select,
body.woocommerce-checkout .wc-block-checkout textarea { box-sizing: border-box !important; max-width: 100% !important; }

/* Cart width and column placement for both classic WooCommerce and Cart blocks. */
body.woocommerce-cart .pg99-wc-wrapper .pg99-page-container { width: 100% !important; max-width: 1480px !important; }
body.woocommerce-cart .pg99-wc-content { min-width: 0 !important; }
body.woocommerce-cart .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) !important;
  gap: clamp(1rem, 2.5vw, 2rem) !important;
  width: 100% !important;
  max-width: none !important;
  align-items: start !important;
}
body.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
body.woocommerce-cart .woocommerce-notices-wrapper:empty { display: none; }
body.woocommerce-cart .woocommerce-cart-form { grid-column: 1; width: 100% !important; min-width: 0 !important; }
body.woocommerce-cart .cart-collaterals { grid-column: 2; width: 100% !important; min-width: 0 !important; }
body.woocommerce-cart .cart-collaterals .cart_totals { width: 100% !important; min-width: 0 !important; }
body.woocommerce-cart .wc-proceed-to-checkout { width: 100% !important; margin: 1rem 0 0 !important; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { width: 100% !important; box-sizing: border-box !important; }
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) !important;
  gap: clamp(1rem, 2.5vw, 2rem) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  align-items: start !important;
}
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar { width: 100% !important; min-width: 0 !important; }
body.woocommerce-cart .wc-block-cart__sidebar { position: static !important; }
body.woocommerce-cart .wc-block-cart__submit-container,
body.woocommerce-cart .wc-block-cart__submit-container a { width: 100% !important; box-sizing: border-box !important; }
@media (max-width: 900px) {
  body.woocommerce-cart .woocommerce,
  body.woocommerce-cart .wp-block-woocommerce-cart,
  body.woocommerce-cart .wc-block-cart { grid-template-columns: minmax(0, 1fr) !important; }
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals { grid-column: 1; }
}

@media (max-width: 900px) {
  body.woocommerce-checkout .woocommerce-checkout form.checkout,
  body.woocommerce-checkout .wc-block-checkout { grid-template-columns: minmax(0, 1fr) !important; }
  body.woocommerce-checkout .woocommerce-checkout #customer_details,
  body.woocommerce-checkout .woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
}
