/* Zarposh brand overrides for native WooCommerce shortcode output (product loops, category tiles) on the dark ground */
:root{
  --zp-bg:#0B0A08;
  --zp-surface:#141210;
  --zp-surface-2:#1B1712;
  --zp-cream:#EDE1C7;
  --zp-cream-dim:#B4A582;
  --zp-gold:#C9A227;
  --zp-gold-light:#E6C866;
  --zp-bronze:#8A6A2F;
  --zp-line: rgba(201,162,39,0.28);
}

.woocommerce ul.products li.product-category,
.woocommerce ul.products li.product{
  text-align:center;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
.woocommerce ul.products li.product-category h3,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  color: var(--zp-cream) !important;
  font-family:'Cinzel', serif !important;
  font-weight:600;
  letter-spacing:0.03em;
  font-size:16px;
  margin-top:16px !important;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title mark,
.woocommerce ul.products li.product-category count{
  color: var(--zp-gold-light) !important;
  background: none !important;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price ins{
  color: var(--zp-gold-light) !important;
  font-family:'Cinzel', serif !important;
  font-style:normal;
}
.woocommerce ul.products li.product .price del{
  color: var(--zp-cream-dim) !important;
  opacity:.6;
}

.woocommerce ul.products li.product-category img,
.woocommerce ul.products li.product img{
  background: var(--zp-surface) !important;
  border:1px solid var(--zp-line);
  border-radius:2px !important;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button{
  background: linear-gradient(135deg, var(--zp-gold-light), var(--zp-gold) 55%, var(--zp-bronze)) !important;
  color: var(--zp-bg) !important;
  border:1px solid var(--zp-gold) !important;
  border-radius:2px !important;
  font-family:'Cinzel', serif !important;
  font-size:12px !important;
  letter-spacing:0.1em;
  text-transform:uppercase;
  padding:11px 22px !important;
  box-shadow:none !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(201,162,39,0.3) !important;
}

.woocommerce ul.products li.product-category a,
.woocommerce ul.products li.product a{
  text-decoration:none;
}

/* Cart / checkout / account pages, in case visited before full theming pass */
.woocommerce table.shop_table, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea{
  background: var(--zp-surface) !important;
  color: var(--zp-cream) !important;
  border-color: var(--zp-line) !important;
}
.woocommerce table.shop_table th{
  color: var(--zp-gold-light) !important;
}


/* ============================================================
   Zarposh brand — full-site WooCommerce coverage:
   notices, cart, checkout, my-account
   ============================================================ */

/* Page-level dark background wherever WooCommerce renders */
body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account,
body.woocommerce-page .content-area, body.woocommerce-page #primary{
  background: var(--zp-bg) !important;
}
.woocommerce-cart .entry-content, .woocommerce-checkout .entry-content, .woocommerce-account .entry-content{
  background: var(--zp-bg) !important;
  padding: 60px 32px 100px !important;
  max-width: 1100px;
  margin: 0 auto !important;
}
.woocommerce-cart h1.entry-title, .woocommerce-checkout h1.entry-title, .woocommerce-account h1.entry-title,
.woocommerce-cart .page-title, .woocommerce-checkout .page-title{
  font-family:'Cinzel', serif !important;
  color: var(--zp-cream) !important;
  letter-spacing:0.03em;
  text-align:center;
  margin-bottom:40px !important;
}

/* Notices: added to cart, errors, info */
.woocommerce-message, .woocommerce-error, .woocommerce-info, .woocommerce-noreviews{
  background: var(--zp-surface) !important;
  color: var(--zp-cream) !important;
  border-top: 3px solid var(--zp-gold) !important;
  font-family:'Cormorant Garamond', serif !important;
  font-size:16px !important;
  padding:16px 20px !important;
  list-style:none !important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}
.woocommerce-message::before, .woocommerce-error::before, .woocommerce-info::before{
  color: var(--zp-gold-light) !important;
}
.woocommerce-message a.button, .woocommerce-error a.button, .woocommerce-info a.button{
  background: linear-gradient(135deg, var(--zp-gold-light), var(--zp-gold) 55%, var(--zp-bronze)) !important;
  color: var(--zp-bg) !important;
  border:1px solid var(--zp-gold) !important;
  border-radius:2px !important;
  font-family:'Cinzel', serif !important;
  font-size:11px !important;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:10px 18px !important;
}

/* Cart page table */
.woocommerce-cart table.cart, .woocommerce-cart table.shop_table{
  background:transparent !important;
  border: 1px solid var(--zp-line) !important;
}
.woocommerce-cart table.cart th, .woocommerce table.shop_table thead th{
  background: var(--zp-surface) !important;
  color: var(--zp-gold-light) !important;
  font-family:'Cinzel', serif !important;
  font-size:12px !important;
  letter-spacing:0.06em;
  text-transform:uppercase;
  border-bottom: 1px solid var(--zp-line) !important;
}
.woocommerce-cart table.cart td, .woocommerce table.shop_table td{
  border-bottom: 1px solid var(--zp-line) !important;
  color: var(--zp-cream-dim) !important;
  font-family:'Cormorant Garamond', serif !important;
}
.woocommerce-cart table.cart td.product-name a, .woocommerce table.shop_table td.product-name a{
  color: var(--zp-cream) !important;
  font-family:'Cinzel', serif !important;
  font-size:14px;
  text-decoration:none;
}
.woocommerce-cart .quantity input.qty{
  background: var(--zp-surface) !important;
  color: var(--zp-cream) !important;
  border: 1px solid var(--zp-line) !important;
}
.woocommerce-cart td.actions .coupon .input-text{
  background: var(--zp-surface) !important;
  color: var(--zp-cream) !important;
  border: 1px solid var(--zp-line) !important;
  padding:10px 14px !important;
}
.woocommerce-cart a.remove{
  color: var(--zp-gold) !important;
}

/* Cart totals box */
.cart_totals, .woocommerce-cart .cart-collaterals{
  background: var(--zp-surface) !important;
  border: 1px solid var(--zp-line) !important;
  padding: 24px !important;
}
.cart_totals h2{
  font-family:'Cinzel', serif !important;
  color: var(--zp-cream) !important;
  font-size:18px !important;
}
.cart_totals table.shop_table td, .cart_totals table.shop_table th{
  border-top: 1px solid var(--zp-line) !important;
}
.cart_totals .order-total .amount{
  color: var(--zp-gold-light) !important;
  font-family:'Cinzel', serif !important;
}
.wc-proceed-to-checkout a.checkout-button{
  background: linear-gradient(135deg, var(--zp-gold-light), var(--zp-gold) 55%, var(--zp-bronze)) !important;
  color: var(--zp-bg) !important;
  border-radius:2px !important;
  font-family:'Cinzel', serif !important;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:13px !important;
}

/* Checkout page */
.woocommerce-checkout #customer_details, .woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields{
  color: var(--zp-cream-dim) !important;
}
.woocommerce-checkout h3{
  font-family:'Cinzel', serif !important;
  color: var(--zp-gold-light) !important;
  font-size:16px !important;
  letter-spacing:0.04em;
  text-transform:uppercase;
  border-bottom:1px solid var(--zp-line);
  padding-bottom:10px;
}
.woocommerce-checkout label{
  color: var(--zp-cream-dim) !important;
  font-family:'Cormorant Garamond', serif !important;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-selection{
  background: var(--zp-surface) !important;
  color: var(--zp-cream) !important;
  border: 1px solid var(--zp-line) !important;
  border-radius:2px !important;
}
#order_review, .woocommerce-checkout-review-order{
  background: var(--zp-surface) !important;
  border: 1px solid var(--zp-line) !important;
  padding: 24px !important;
}
#order_review table.shop_table td, #order_review table.shop_table th{
  border-top: 1px solid var(--zp-line) !important;
  color: var(--zp-cream-dim) !important;
}
.woocommerce-checkout ul.wc_payment_methods{
  border-top:1px solid var(--zp-line) !important;
}
.woocommerce-checkout ul.payment_methods li{
  border-bottom:1px solid var(--zp-line) !important;
  color: var(--zp-cream-dim) !important;
}
.woocommerce-checkout ul.payment_methods li label{
  color: var(--zp-cream) !important;
}
.woocommerce-checkout #payment div.payment_box{
  background: var(--zp-surface-2) !important;
  color: var(--zp-cream-dim) !important;
}
#place_order{
  background: linear-gradient(135deg, var(--zp-gold-light), var(--zp-gold) 55%, var(--zp-bronze)) !important;
  color: var(--zp-bg) !important;
  border-radius:2px !important;
  font-family:'Cinzel', serif !important;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:13px !important;
  padding:16px 24px !important;
}

/* My Account page */
.woocommerce-account .woocommerce-MyAccount-navigation{
  background: var(--zp-surface) !important;
  border: 1px solid var(--zp-line) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li{
  border-bottom:1px solid var(--zp-line) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
  color: var(--zp-cream-dim) !important;
  font-family:'Cinzel', serif !important;
  font-size:12px !important;
  letter-spacing:0.06em;
  text-transform:uppercase;
  padding:14px 20px !important;
  display:block;
  text-decoration:none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover{
  color: var(--zp-gold-light) !important;
}
.woocommerce-account .woocommerce-MyAccount-content{
  color: var(--zp-cream-dim) !important;
  font-family:'Cormorant Garamond', serif !important;
}
.woocommerce-account .woocommerce-MyAccount-content a{
  color: var(--zp-gold-light) !important;
}
.woocommerce-account table.shop_table th{
  color: var(--zp-gold-light) !important;
}
.woocommerce-account .woocommerce-Button, .woocommerce-account button.button{
  background: linear-gradient(135deg, var(--zp-gold-light), var(--zp-gold) 55%, var(--zp-bronze)) !important;
  color: var(--zp-bg) !important;
  border-radius:2px !important;
  font-family:'Cinzel', serif !important;
  letter-spacing:0.06em;
  text-transform:uppercase;
  font-size:12px !important;
}
.woocommerce-account form.login input.input-text,
.woocommerce-account form.register input.input-text{
  background: var(--zp-surface) !important;
  color: var(--zp-cream) !important;
  border: 1px solid var(--zp-line) !important;
}
.woocommerce-account form.login label, .woocommerce-account form.register label{
  color: var(--zp-cream-dim) !important;
}


/* ============================================================
   WooCommerce Blocks (Gutenberg) product grids — used on
   empty-cart cross-sell, and any block-based product listings
   ============================================================ */
h2.wp-block-heading.has-text-align-center{
  font-family: 'Cinzel', serif !important;
  color: var(--zp-cream) !important;
  letter-spacing:0.03em;
}
.wc-block-grid__products{
  list-style:none !important;
  padding:0 !important;
}
.wc-block-grid__product{
  background: var(--zp-surface) !important;
  border: 1px solid var(--zp-line) !important;
  padding: 0 16px 20px !important;
  text-align:center;
}
.wc-block-grid__product-link{
  text-decoration:none !important;
  color: inherit !important;
}
.wc-block-grid__product-image{
  margin: 0 -16px 16px !important;
}
.wc-block-grid__product-image img{
  border-radius:0 !important;
}
.wc-block-grid__product-title{
  color: var(--zp-cream) !important;
  font-family: 'Cinzel', serif !important;
  font-weight:600 !important;
  font-size:14px !important;
  letter-spacing:0.02em;
  text-decoration:none !important;
  margin-bottom:8px !important;
}
.wc-block-grid__product-price,
.wc-block-grid__product-price .woocommerce-Price-amount{
  color: var(--zp-gold-light) !important;
  font-family: 'Cinzel', serif !important;
  font-style:normal !important;
}
.wc-block-grid__product-add-to-cart{
  margin-top:14px !important;
}
.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-grid__product-add-to-cart .add_to_cart_button{
  background: linear-gradient(135deg, var(--zp-gold-light), var(--zp-gold) 55%, var(--zp-bronze)) !important;
  color: var(--zp-bg) !important;
  border: 1px solid var(--zp-gold) !important;
  border-radius:2px !important;
  font-family: 'Cinzel', serif !important;
  font-size:11px !important;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:10px 18px !important;
}
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.wc-block-grid__product-add-to-cart .add_to_cart_button:hover{
  box-shadow:0 10px 26px rgba(201,162,39,0.3) !important;
}

/* Empty cart icon + message */
.wc-block-cart__empty-cart__title, .cart-empty{
  color: var(--zp-cream-dim) !important;
  font-family: 'Cormorant Garamond', serif !important;
}


/* ============================================================
   WooCommerce Cart Block + Checkout Block (wc-block-components-*)
   ============================================================ */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout{
  color: var(--zp-cream-dim) !important;
}
.wc-block-components-product-name{
  color: var(--zp-cream) !important;
  font-family: 'Cinzel', serif !important;
  font-size:15px !important;
  text-decoration:none !important;
}
.wc-block-cart-item__wrap, .wc-block-cart-items__row, .wc-block-cart-items{
  border-color: var(--zp-line) !important;
}
.wc-block-components-product-price, .wc-block-components-formatted-money-amount, .wc-block-components-totals-item__value{
  color: var(--zp-gold-light) !important;
  font-family: 'Cinzel', serif !important;
}
.wc-block-components-quantity-selector{
  border: 1px solid var(--zp-line) !important;
  background: var(--zp-surface) !important;
}
.wc-block-components-quantity-selector__input{
  background: transparent !important;
  color: var(--zp-cream) !important;
}
.wc-block-components-quantity-selector__button{
  color: var(--zp-gold-light) !important;
}
.wc-block-cart-item__remove-link{
  color: var(--zp-gold) !important;
}
.wc-block-components-panel, .wc-block-cart__totals-title,
.wc-block-components-totals-wrapper, .wc-block-components-totals-footer-item{
  color: var(--zp-cream) !important;
  font-family: 'Cinzel', serif !important;
}
.wc-block-cart__totals-title{
  text-transform:uppercase;
  font-size:14px !important;
  letter-spacing:0.06em;
}
.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-totals-wrapper{
  border-color: var(--zp-line) !important;
}
.wc-block-cart__submit-container a,
.wc-block-components-checkout-place-order-button,
a.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block a{
  background: linear-gradient(135deg, var(--zp-gold-light), var(--zp-gold) 55%, var(--zp-bronze)) !important;
  color: var(--zp-bg) !important;
  border-radius:2px !important;
  font-family: 'Cinzel', serif !important;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:13px !important;
  border:none !important;
}
.wc-block-components-text-input input, .wc-block-components-combobox input,
.wc-block-components-address-form input, select.wc-block-components-select-input{
  background: var(--zp-surface) !important;
  color: var(--zp-cream) !important;
  border: 1px solid var(--zp-line) !important;
  border-radius:2px !important;
}
.wc-block-components-text-input label, .wc-block-checkout__form label{
  color: var(--zp-cream-dim) !important;
}
.wc-block-components-radio-control label, .wc-block-components-radio-control__label-group{
  color: var(--zp-cream-dim) !important;
}
.wc-block-components-radio-control--checked .wc-block-components-radio-control__input,
input[type=radio]:checked{
  accent-color: var(--zp-gold) !important;
}
.wc-block-components-panel__button{
  color: var(--zp-cream-dim) !important;
}
.wc-block-components-order-summary-item__description, .wc-block-components-order-summary-item__quantity{
  color: var(--zp-cream-dim) !important;
}


/* Fix: "Estimated total" row overflowing/clipping on narrow screens */
.wc-block-components-totals-item{
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:space-between !important;
  align-items:baseline !important;
  gap:6px 12px !important;
  width:100% !important;
}
.wc-block-components-totals-item__label{
  font-size:13px !important;
  letter-spacing:0.02em !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  flex:1 1 auto !important;
  min-width:0 !important;
}
.wc-block-components-totals-item__value{
  font-size:14px !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label{
  font-size:14px !important;
  text-transform:uppercase;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  font-size:16px !important;
}
.wc-block-cart__totals,
.wc-block-components-sidebar{
  overflow:hidden !important;
  max-width:100% !important;
}


/* Robust mobile fallback for Cart/Checkout Blocks two-column layout —
   WooCommerce uses CSS container queries (@container min-width:700px) which
   can behave inconsistently; force a safe single-column stack via a normal
   viewport media query as a guaranteed override. */
@media (max-width: 768px) {
  .wp-block-woocommerce-cart,
  .wp-block-woocommerce-checkout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .wc-block-cart__main, .wc-block-cart__sidebar,
  .wc-block-checkout__main, .wc-block-checkout__sidebar,
  .wc-block-components-sidebar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-basis: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .wc-block-cart__sidebar, .wc-block-checkout__sidebar {
    margin-top: 32px !important;
  }
  .wc-block-components-totals-wrapper,
  .wc-block-components-panel,
  .wc-block-components-sidebar > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body, html {
    overflow-x: hidden !important;
  }
}


/* Bulletproof fix: totals labels overflowing left edge on mobile.
   Force each label+value pair into its own full-width row with
   explicit left alignment, eliminating any horizontal squeeze. */
@media (max-width: 768px) {
  .wc-block-components-totals-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .wc-block-components-totals-item__label,
  .wc-block-components-totals-item__description {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    position: static !important;
    flex: 1 1 60% !important;
    max-width: 60% !important;
    box-sizing: border-box !important;
  }
  .wc-block-components-totals-item__value {
    text-align: right !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    position: static !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
  }
  .wc-block-components-totals-item,
  .wc-block-components-totals-wrapper,
  .wc-block-components-panel,
  .wc-block-cart__totals,
  .wc-block-components-sidebar,
  .wc-block-cart__sidebar {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
}


/* ROOT FIX: .alignwide applies a large negative margin-left (WordPress wide-
   alignment breakout) which works on desktop but pushes content off-screen
   to the left on mobile where there is no extra space to expand into. */
@media (max-width: 768px) {
  .wp-block-woocommerce-cart.alignwide,
  .wp-block-woocommerce-checkout.alignwide,
  .alignwide {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* Fix: white gap flashing between add-to-cart notice and page content
   because body background defaults to white. Set body dark globally,
   and remove the default margin on the notices wrapper. */
body{background:#0B0A08 !important;}
.woocommerce-notices-wrapper{margin:0 !important;}
.woocommerce-notices-wrapper:empty{display:none !important;}
