/* Classic WooCommerce cart, checkout and product layouts. Keep native forms and AJAX hooks. */
.commerce-page { padding-bottom: clamp(48px, 6vw, 88px); }
.commerce-page .page-hero { padding-block: 44px 32px; }
.commerce-page .page-hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
.commerce-content { width: min(1180px, calc(100% - 40px)); direction: rtl; text-align: right; }
.commerce-content.entry-content { padding-block: 36px 0; }
.commerce-content h2, .commerce-content h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: 0; }
.commerce-content .woocommerce { min-width: 0; }
.commerce-content .woocommerce a.button,
.commerce-content .woocommerce button.button,
.single-product div.product form.cart .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 12px;
  background: var(--espresso); color: #fff; font: inherit; font-weight: 600; line-height: 1.5; text-align: center;
}
.commerce-content .woocommerce .button:hover, .single-product div.product form.cart .button:hover { background: var(--caramel); color: #fff; }
.commerce-content :is(input, textarea, select, button, a):focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }
.commerce-content .woocommerce table.shop_table { width: 100%; margin: 0 0 24px; border: 1px solid var(--line); border-spacing: 0; border-radius: 18px; background: #fff; text-align: right; overflow: hidden; }
.commerce-content .woocommerce table.shop_table th,
.commerce-content .woocommerce table.shop_table td { padding: 16px; border-color: var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.commerce-content .woocommerce table.shop_table th { background: var(--cream); font-weight: 600; }
.commerce-content .woocommerce .woocommerce-Price-amount { display: inline-block; white-space: nowrap; }
.commerce-content .woocommerce .quantity .qty { width: 76px; min-height: 46px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.commerce-content .woocommerce a.remove { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; }
.commerce-content .woocommerce .product-thumbnail img { width: 76px; max-width: none; }
.woocommerce-cart .commerce-content .woocommerce { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); align-items: start; gap: 26px; }
.woocommerce-cart .commerce-content .woocommerce > * { min-width: 0; grid-column: 1 / -1; }
.woocommerce-cart .commerce-content .woocommerce > .woocommerce-cart-form { grid-column: 1; }
.woocommerce-cart .commerce-content .woocommerce > .cart-collaterals { grid-column: 2; }
.woocommerce-cart .commerce-content .cart-collaterals .cart_totals { float: none; width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); }
.woocommerce-cart .commerce-content .cart-collaterals .cross-sells { float: none; width: 100%; margin-bottom: 24px; }
.commerce-content .woocommerce .cart .actions { text-align: left; }
.commerce-content .woocommerce .cart .actions .coupon { display: flex; float: right; gap: 8px; flex-wrap: wrap; }
.commerce-content .woocommerce .cart .actions .coupon .input-text { float: none; width: 145px; min-height: 48px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-align: right; }
.commerce-content .woocommerce .wc-proceed-to-checkout { padding-bottom: 0; }
.commerce-content .woocommerce .wc-proceed-to-checkout .button { display: flex; width: 100%; margin-bottom: 0; }
.commerce-content .woocommerce .woocommerce-error,
.commerce-content .woocommerce .woocommerce-message,
.commerce-content .woocommerce .woocommerce-info { padding: 16px 44px 16px 18px; border-radius: 12px; text-align: right; overflow-wrap: anywhere; }
.commerce-content .woocommerce :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before { right: 16px; left: auto; }
.commerce-content .woocommerce form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: min-content 1fr; gap: 0 30px; align-items: start; }
.commerce-content .woocommerce form.checkout > * { grid-column: 1 / -1; min-width: 0; }
.commerce-content .woocommerce form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; width: 100%; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.commerce-content .woocommerce form.checkout #customer_details > .col-1,
.commerce-content .woocommerce form.checkout #customer_details > .col-2 { float: none; width: 100%; }
.commerce-content .woocommerce form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 24px 24px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; background: var(--cream); }
.commerce-content .woocommerce form.checkout #order_review { grid-column: 2; grid-row: 2; min-width: 0; padding: 0 22px 22px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; background: var(--cream); }
.commerce-content .woocommerce form .form-row { margin: 0 0 18px; padding: 0; }
.commerce-content .woocommerce form .form-row-first { float: right; width: 48%; }
.commerce-content .woocommerce form .form-row-last { float: left; width: 48%; }
.commerce-content .woocommerce form .form-row-wide { clear: both; }
.commerce-content .woocommerce form .form-row label { display: block; margin-bottom: 7px; font-size: .85rem; line-height: 1.8; text-align: right; }
.commerce-content .woocommerce form .form-row label .optional { color: var(--muted); font-size: .75rem; }
.commerce-content .woocommerce form .form-row :is(input.input-text, textarea, select) { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: right; }
.commerce-content .woocommerce form .form-row textarea { min-height: 110px; resize: vertical; }
.commerce-content .woocommerce form .form-row :is(input[type=tel], input[type=email], input[type=date]) { direction: ltr; text-align: right; }
.commerce-content .woocommerce .select2-container { width: 100% !important; text-align: right; }
.commerce-content .woocommerce .select2-selection--single { min-height: 50px; height: auto; padding: 10px 12px; }
.commerce-content .woocommerce .select2-selection__rendered { padding-inline: 0 20px; line-height: 28px; }
.commerce-content .woocommerce .select2-selection__arrow { top: 12px; right: auto; left: 8px; }
.commerce-content .woocommerce #ship-to-different-address { margin-top: 24px; }
.commerce-content .woocommerce #ship-to-different-address label { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.commerce-content .woocommerce #payment { border-radius: 14px; background: #fff; }
.commerce-content .woocommerce #payment ul.payment_methods { padding: 16px; border-color: var(--line); text-align: right; }
.commerce-content .woocommerce #payment ul.payment_methods li { text-align: right; }
.commerce-content .woocommerce #payment ul.payment_methods li input { margin: 0 0 0 8px; accent-color: var(--espresso); }
.commerce-content .woocommerce #payment div.payment_box { background: var(--cream); color: var(--ink); line-height: 1.9; }
.commerce-content .woocommerce #payment div.payment_box::before { right: 20px; left: auto; margin-right: 0; border-bottom-color: var(--cream); }
.commerce-content .woocommerce #payment .place-order { padding: 16px; }
.commerce-content .woocommerce #payment #place_order { float: none; display: flex; width: 100%; }
.commerce-content .woocommerce-privacy-policy-text { font-size: .78rem; color: var(--muted); }
.commerce-content .woocommerce-privacy-policy-text a { text-decoration: underline; }
.maryooms-order-whatsapp { clear: both; margin-block: 24px 32px; padding: clamp(24px, 4vw, 40px); border: 2px solid #b9ddc9; border-radius: 24px; background: linear-gradient(145deg, #f5fcf8, #e7f6ed); text-align: center; }
.maryooms-order-whatsapp__eyebrow { display: block; margin-bottom: 8px; color: #137c45; font-size: .85rem; font-weight: 600; }
.maryooms-order-whatsapp h2 { margin-bottom: 26px; }
.commerce-content .woocommerce a.maryooms-order-whatsapp__button { display: flex; width: min(100%, 460px); min-height: 72px; margin: 0 auto; padding: 18px 24px; gap: 14px; border: 2px solid #169852; border-radius: 18px; background: #087f45; color: #fff; font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 700; white-space: normal; box-shadow: 0 8px 20px rgba(8, 127, 69, .22); }
.maryooms-order-whatsapp.is-attention .maryooms-order-whatsapp__button { animation: maryooms-whatsapp-pulse 2.2s ease-out 2; }
.commerce-content .woocommerce a.maryooms-order-whatsapp__button:hover { background: #066b39; box-shadow: 0 10px 24px rgba(8, 127, 69, .28); }
.commerce-content .woocommerce a.maryooms-order-whatsapp__button:focus-visible { outline: 3px solid #063e23; outline-offset: 5px; animation: none; }
[dir="rtl"] .maryooms-order-whatsapp__button svg { width: 32px; height: 32px; transform: none; flex-shrink: 0; }
.maryooms-order-whatsapp__instruction { margin: 22px auto 12px; max-width: 580px; }
.maryooms-order-whatsapp .maryooms-order-whatsapp__note { margin: 0 auto 18px; max-width: 620px; color: var(--muted); font-size: .8rem; }
.maryooms-order-whatsapp summary { cursor: pointer; font-size: .85rem; }
.maryooms-order-whatsapp pre { margin-bottom: 0; padding: 16px; border-radius: 12px; background: #fff; font: inherit; font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; text-align: right; }
@keyframes maryooms-whatsapp-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(8, 127, 69, .22), 0 0 0 0 rgba(37, 211, 102, 0); }
  20% { box-shadow: 0 8px 20px rgba(8, 127, 69, .22), 0 0 0 4px rgba(37, 211, 102, .28); }
  80% { box-shadow: 0 8px 20px rgba(8, 127, 69, .22), 0 0 0 14px rgba(37, 211, 102, 0); }
}
@media (max-width: 768px) { .commerce-content .woocommerce a.maryooms-order-whatsapp__button { padding-inline: 14px; gap: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .commerce-content .woocommerce a.maryooms-order-whatsapp__button { animation: none; transition: none; }
  .commerce-content .woocommerce a.maryooms-order-whatsapp__button:hover { transform: none; }
}
.commerce-content .woocommerce ul#shipping_method { padding: 0; }
.commerce-content .woocommerce ul#shipping_method li { display: flex; gap: 8px; align-items: baseline; text-align: right; }
.single-product .shop-main > .site-container { width: min(1180px, calc(100% - 48px)); }
.single-product div.product form.cart { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.single-product div.product form.cart div.quantity { float: none; margin: 0; display: flex; }
.single-product div.product form.cart input.qty { width: 78px; margin: 0; text-align: center; }
.single-product div.product form.cart .single_add_to_cart_button { float: none; min-height: 52px; flex: 1; margin: 0; }
.single-product div.product form.variations_form { display: block; }
.single-product .woocommerce-variation-add-to-cart { display: flex; align-items: stretch; gap: 12px; }
.single-product .product_meta { font-size: .85rem; }
.single-product div.product .woocommerce-tabs ul.tabs li a { font-size: .95rem; }
@media (max-width: 980px) {
  .woocommerce-cart .commerce-content .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-cart .commerce-content .woocommerce > .cart-collaterals { grid-column: 1; }
  .commerce-content .woocommerce form.checkout { grid-template-columns: 1fr; grid-template-rows: none; }
  .commerce-content .woocommerce form.checkout #customer_details,
  .commerce-content .woocommerce form.checkout #order_review_heading,
  .commerce-content .woocommerce form.checkout #order_review { grid-column: 1; grid-row: auto; }
  .commerce-content .woocommerce form.checkout #order_review_heading { margin-top: 24px; }
}
@media (max-width: 768px) {
  .commerce-content { width: calc(100% - 28px); }
  .commerce-content .woocommerce form.checkout #customer_details { padding: 20px 16px; }
  .commerce-content .woocommerce form.checkout #order_review { padding: 0 14px 14px; }
  .commerce-content .woocommerce table.shop_table th, .commerce-content .woocommerce table.shop_table td { padding: 12px; }
  .commerce-content .woocommerce table.shop_table_responsive tr td:not(.actions) { text-align: left !important; min-height: 52px; }
  .commerce-content .woocommerce table.shop_table_responsive tr td::before { float: right; margin-left: 12px; }
  .commerce-content .woocommerce table.shop_table_responsive tr td.product-remove { text-align: right !important; }
  .commerce-content .woocommerce table.shop_table_responsive tr td.product-name a { display: inline-block; max-width: 72%; }
  .commerce-content .woocommerce table.shop_table_responsive tr td.product-quantity .quantity { display: inline-block; }
  .commerce-content .woocommerce .cart .actions .coupon { float: none; width: 100%; display: flex; flex-wrap: nowrap; margin-bottom: 12px; }
  .commerce-content .woocommerce .cart .actions .coupon .input-text { min-width: 0; width: auto; flex: 1; }
  .commerce-content .woocommerce .cart .actions .coupon .button { float: none; width: auto !important; padding-inline: 14px; }
  .commerce-content .woocommerce .cart .actions > .button { width: 100%; }
  .commerce-content .woocommerce form .form-row-first, .commerce-content .woocommerce form .form-row-last { float: none; width: 100%; }
  .woocommerce-cart .commerce-content .cart-collaterals .cart_totals { padding: 20px 14px; }
  .single-product .shop-main > .site-container { width: calc(100% - 32px); }
  .single-product div.product .product_title { font-size: 1.8rem; line-height: 1.5; }
}
