/* ==========================================================================
   Sondhee: WordPress + WooCommerce additions on top of Syed's styles.css.
   Only new selectors here, so styles.css can be re-synced verbatim.
   ========================================================================== */

/* Inner pages use the design's page-stage as is (on desktop it scrolls inside the frame). */
.admin-bar .frame-outer { min-height: calc(100vh - 32px); }

.sondhee-placeholder-note {
  max-width: 1120px; margin: 0 auto 16px; padding: 8px 12px;
  border: 1.5px dashed var(--gold-dark); border-radius: 5px;
  background: rgba(249, 224, 184, 0.6); color: var(--maroon);
  font-family: var(--font-mono); font-size: 12.5px;
}

.sondhee-wa-off { display: none !important; }

/* ---------- WordPress content ---------- */
.wp-content { color: var(--maroon); line-height: 1.7; }
.wp-content a { color: var(--maroon); text-decoration-color: var(--gold-outer); text-underline-offset: 3px; }
.wp-content h2, .wp-content h3 { font-family: var(--font-mono); color: var(--maroon); }
html[lang='ur'] .wp-content h2, html[lang='ur'] .wp-content h3 { font-family: var(--font-urdu); line-height: 1.9; }
.wp-content img { max-width: 100%; height: auto; }
.blog-card a.btn-small { display: inline-block; text-decoration: none; }
.blog-card h3 a { color: inherit; text-decoration: none; }
.nav-links { display: flex; gap: 10px; margin-top: 22px; font-family: var(--font-mono); }
.nav-links a, .nav-links span { color: var(--maroon); }

/* ---------- WooCommerce: shared ---------- */
.sondhee-woo .woocommerce,
.sondhee-woo .wp-content { font-family: var(--font-sans); color: var(--maroon); }
.sondhee-woo .prose-body { max-width: none; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .button.alt,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce-page #payment #place_order {
  background: var(--maroon) !important; color: var(--cream-bg) !important;
  border: none; border-radius: 4px; padding: 12px 22px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  transition: background-color .2s ease, transform .2s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce-page #payment #place_order:hover {
  background: #7a1c2b !important; transform: translateY(-1px);
}
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { opacity: .55; padding: 12px 22px; }

.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
  background: rgba(255, 250, 240, 0.8); color: var(--maroon);
  border-top: 3px solid var(--gold-dark); font-family: var(--font-sans);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--gold-dark); }
.woocommerce-error { border-top-color: #bd223b; }
.woocommerce-error::before { color: #bd223b; }

.woocommerce form .form-row label { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--maroon); }
.woocommerce form .form-row .required { color: #bd223b; }
.woocommerce form .form-row .input-text, .woocommerce form .form-row select,
.woocommerce .quantity .qty, .select2-container .select2-selection--single {
  background: var(--input-peach); border: 1.5px solid var(--gold-outer); border-radius: 5px; color: var(--maroon);
}
.select2-container .select2-selection--single { height: 42px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px; color: var(--maroon); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }
.select2-dropdown { background: var(--cream-bg); border-color: var(--gold-outer); }
.woocommerce .quantity .qty { width: 4.5em; padding: 8px 6px; }

/* Tables (cart, order review, my account) */
.woocommerce table.shop_table {
  background: rgba(255, 250, 240, 0.72); border: 1.5px solid rgba(197, 177, 100, 0.7);
  border-radius: 6px; border-collapse: separate; color: var(--maroon);
}
.woocommerce table.shop_table th { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-dark); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top-color: rgba(197, 177, 100, 0.45); }
.woocommerce table.shop_table img { width: 64px; border-radius: 4px; background: rgba(244,232,208,.6); }
.woocommerce table.shop_table .product-name a { color: var(--maroon); font-weight: 600; text-decoration: none; }
.woocommerce a.remove { color: #bd223b !important; }
.woocommerce a.remove:hover { background: #bd223b; color: #fff !important; }
.woocommerce .cart_totals h2, .woocommerce-checkout h3, .woocommerce-account h2, .woocommerce-order-details__title, .woocommerce-column__title {
  font-family: var(--font-mono); color: var(--maroon); font-size: 20px;
}
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 100%; max-width: 480px; }
.woocommerce .coupon .input-text { min-width: 160px; }

/* Checkout */
.woocommerce-checkout #payment, .woocommerce #payment {
  background: rgba(249, 224, 184, 0.55); border: 1.5px solid var(--gold-outer); border-radius: 6px;
}
.woocommerce-checkout #payment div.payment_box { background: var(--cream-bg); color: var(--maroon); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--cream-bg); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: rgba(197, 177, 100, 0.55); }
#add_payment_method #payment ul.payment_methods li input, .woocommerce-checkout #payment ul.payment_methods li input { accent-color: var(--maroon); width: auto; }
.woocommerce input[type=checkbox], .woocommerce input[type=radio] { width: auto; accent-color: var(--maroon); }
.woocommerce ul#shipping_method li input { margin: 4px 6px 0 0; }
.woocommerce h3#ship-to-different-address label { display: inline-flex; align-items: center; gap: 8px; }
.woocommerce-checkout .col2-set, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { margin-bottom: 18px; }

/* Order received */
.woocommerce ul.order_details { background: rgba(255,250,240,.72); border: 1.5px dashed var(--gold-outer); border-radius: 6px; padding: 14px 18px; }
.woocommerce ul.order_details li { border-right-color: rgba(197,177,100,.55); color: var(--maroon); }
.woocommerce-thankyou-order-received { font-family: var(--font-mono); font-size: 18px; color: var(--maroon); }

/* My account */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border: 1.5px solid rgba(197,177,100,.7); border-radius: 6px; background: rgba(255,250,240,.72); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; color: var(--maroon); text-decoration: none; font-family: var(--font-mono); font-size: 14px; border-bottom: 1px solid rgba(197,177,100,.4); }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li a:hover { background: var(--input-peach); font-weight: 700; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon, .woocommerce form.lost_reset_password {
  border: 1.5px solid rgba(197,177,100,.7); border-radius: 6px; background: rgba(255,250,240,.72);
}
.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme { font-family: var(--font-sans); }

/* Shop / single product (fallback pages; the home slider is the main shop) */
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-mono); color: var(--maroon); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--maroon); font-weight: 600; }
.woocommerce div.product .product_title { font-family: var(--font-mono); color: var(--maroon); }
.woocommerce span.onsale { background: var(--gold-dark); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--input-peach); border-color: var(--gold-outer); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--cream-bg); }

/* ---------- Urdu / RTL ---------- */
html[lang='ur'] .woocommerce, html[lang='ur'] .woocommerce form .form-row label,
html[lang='ur'] .woocommerce table.shop_table th, html[lang='ur'] .wp-content { font-family: var(--font-urdu), var(--font-sans); line-height: 1.9; }
html[dir='rtl'] .woocommerce table.shop_table, html[dir='rtl'] .woocommerce form .form-row { text-align: right; }
html[dir='rtl'] .woocommerce .cart-collaterals .cart_totals { float: left; }
html[dir='rtl'] .woocommerce-message::before, html[dir='rtl'] .woocommerce-info::before, html[dir='rtl'] .woocommerce-error::before { left: auto; right: 1.5em; }
html[dir='rtl'] .woocommerce-message, html[dir='rtl'] .woocommerce-info, html[dir='rtl'] .woocommerce-error { padding: 1em 3.5em 1em 2em; }

@media (max-width: 820px) {
  .woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before { color: var(--gold-dark); font-family: var(--font-mono); }
  .woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: 100%; float: none; }
}

/* Single product: keep the jar photo in proportion with the page */
.woocommerce div.product div.images img { max-height: 520px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.woocommerce div.product .product_meta .posted_in { display: none; }
@media (max-width: 768px) {
  .woocommerce div.product div.images img { max-height: 340px; }
}
