/* Fakhar Core 1.4.2 — hero, sale prices, cart controls and Figma checkout. */

/* Hero: the description panel is opt-in. */
.fakhar-hero .fakhar-hero__description{background:transparent;border-color:transparent;box-shadow:none}
.fakhar-hero.fakhar-hero--description-bg .fakhar-hero__description{background-color:rgba(0,0,0,.28)}

/* Product price and rating: keep the complete WooCommerce sale pair visible. */
.fakhar-product-card__footer>div{display:grid;flex:1;justify-items:start;gap:5px;text-align:right}
.fakhar-product-card__rating{width:100%;justify-content:flex-start}
.fakhar-product-card__price,.fakhar-shop-card__price{display:grid;justify-items:start;gap:2px;width:100%;line-height:1.45;text-align:right}
.fakhar-product-card__price del,.fakhar-shop-card__price del{order:1;display:block!important;color:#9297a1;font-size:.72em;font-weight:500;line-height:1.3;opacity:1;text-decoration-thickness:1px}
.fakhar-product-card__price ins,.fakhar-shop-card__price ins{order:2;display:block!important;color:#111827;font-size:1em;font-weight:800;line-height:1.4;text-decoration:none}
.fakhar-product-card__price>.woocommerce-Price-amount,.fakhar-shop-card__price>.woocommerce-Price-amount{font-weight:800}
.fakhar-shop-card__meta{width:100%;justify-items:start;text-align:right}
.fakhar-shop-card__rating{width:100%;justify-content:flex-start}
.fakhar-sale-badge{direction:rtl;white-space:nowrap}

/* Cart actions, coupon and update button. */
.fakhar-cart-page .woocommerce-cart-form td.actions{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:14px!important;border:0;border-radius:18px;background:transparent;box-shadow:none}
.fakhar-cart-page .coupon{float:none!important;display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding:9px;border:1px solid #eceef1;border-radius:18px;background:#fff}
.fakhar-cart-page .coupon input.input-text{box-sizing:border-box;flex:1 1 150px;min-width:90px!important;width:auto;height:44px;margin:0;padding:8px 14px;border:1px solid transparent!important;border-radius:11px;color:#252b37;background:#f7f7f8;box-shadow:none;text-align:right}
.fakhar-cart-page .coupon input.input-text::placeholder{color:#8a909b;opacity:1}
.fakhar-cart-page .coupon button{flex:0 0 auto;min-height:44px;margin:0;padding:8px 19px;border:0;border-radius:999px!important;color:#fff;background:#ec2f50;font-weight:750}
.fakhar-cart-page .actions>button[name="update_cart"]{float:none!important;min-height:44px;margin-inline-start:auto;padding:8px 18px;border:0;border-radius:11px;color:#fff;background:#ec2f50;font-weight:750;opacity:1!important;filter:none!important;transition:color .2s,background .2s,transform .2s}
.fakhar-cart-page .actions>button[name="update_cart"]:not(:disabled):hover{transform:translateY(-1px)}
.fakhar-cart-page .actions>button[name="update_cart"]:disabled{color:#7b8491;background:#eceff3;cursor:not-allowed;opacity:1!important}

/* Checkout: defaults reproduce the supplied Figma proportions and field rhythm. */
.fakhar-checkout-page:not(.fakhar-checkout-page--show-coupon) .woocommerce-form-coupon-toggle,
.fakhar-checkout-page:not(.fakhar-checkout-page--show-coupon) form.checkout_coupon{display:none!important}
.fakhar-checkout-page--show-coupon .woocommerce-form-coupon-toggle{margin:0 0 22px}
.fakhar-checkout-page--show-coupon .woocommerce-form-coupon-toggle .woocommerce-info{margin:0;padding:14px 18px;border:0;border-radius:14px;color:#4d5562;background:#f7f7f8}
.fakhar-checkout-page--show-coupon form.checkout_coupon{margin:0 0 22px;padding:18px;border:1px solid #eceef1;border-radius:14px;background:#fff}
.fakhar-checkout-page form.checkout{--fakhar-checkout-summary:320px;grid-template-columns:minmax(0,1fr) var(--fakhar-checkout-summary);gap:18px}
.fakhar-checkout-page #customer_details,.fakhar-checkout-page #order_review{padding:20px;border:0;border-radius:24px;background:#f8f8f8;box-shadow:none}
.fakhar-checkout-page .fakhar-checkout-box-title{margin-bottom:17px!important;color:#4c5159;font-size:18px;line-height:1.5}
.fakhar-checkout-page .fakhar-checkout-box-title__icon{width:25px;height:25px;border-radius:7px;background:#ec2f50}
.fakhar-checkout-page .fakhar-checkout-box-title__icon svg{width:13px;height:13px}
.fakhar-checkout-page .woocommerce-billing-fields__field-wrapper{gap:12px 10px}
.fakhar-checkout-page .form-row label{margin-bottom:5px;color:#4d5158;font-size:13px;font-weight:650;line-height:1.6}
.fakhar-checkout-page .form-row input,
.fakhar-checkout-page .form-row textarea,
.fakhar-checkout-page .form-row select,
.fakhar-checkout-page .select2-selection{min-height:44px;padding:7px 11px;border:1px solid #e5e7ea;border-radius:8px;color:#3f444c;background:#fff;box-shadow:none;font-size:13px}
.fakhar-checkout-page .form-row input:focus,
.fakhar-checkout-page .form-row textarea:focus,
.fakhar-checkout-page .form-row select:focus,
.fakhar-checkout-page .select2-container--focus .select2-selection{border-color:#9dafd5;outline:0;box-shadow:0 0 0 2px rgba(91,124,191,.1)}
.fakhar-checkout-page .form-row textarea{min-height:68px}
.fakhar-checkout-page .select2-selection__rendered{line-height:28px!important}
.fakhar-checkout-page #billing_country_field .woocommerce-input-wrapper>strong,
.fakhar-checkout-page #billing_country_field .select2-selection{display:flex;align-items:center;min-height:44px;padding:7px 11px;border-radius:8px;color:#999;background:#f1f1f1;font-size:13px;font-weight:400}
.fakhar-checkout-page .woocommerce-checkout-review-order-table{margin:0;border-collapse:collapse}
.fakhar-checkout-page .woocommerce-checkout-review-order-table thead{display:none}
.fakhar-checkout-page .woocommerce-checkout-review-order-table th,
.fakhar-checkout-page .woocommerce-checkout-review-order-table td{padding:11px 0;border-bottom:1px solid #e2e3e5;color:#4e535b;font-size:12px;vertical-align:top}
.fakhar-checkout-page .woocommerce-checkout-review-order-table td{text-align:left}
.fakhar-checkout-page .woocommerce-checkout-review-order-table .cart-discount th,
.fakhar-checkout-page .woocommerce-checkout-review-order-table .cart-discount td{color:#ec2f50}
.fakhar-checkout-page .woocommerce-checkout-review-order-table .order-total th,
.fakhar-checkout-page .woocommerce-checkout-review-order-table .order-total td{font-size:14px;font-weight:800}
.fakhar-checkout-page #payment{margin-top:14px;border-radius:14px;background:transparent}
.fakhar-checkout-page #payment ul.payment_methods{padding:10px 0;border:0}
.fakhar-checkout-page #payment ul.payment_methods li{margin-bottom:9px;color:#555;font-size:12px}
.fakhar-checkout-page #payment div.form-row{padding:10px 0 0!important}
.fakhar-checkout-page #payment .woocommerce-privacy-policy-text,.fakhar-checkout-page #payment .woocommerce-terms-and-conditions-wrapper{color:#777;font-size:10px;line-height:1.9}
.fakhar-checkout-page #place_order{min-height:48px;margin-top:12px;border-radius:999px;background:#ec2f50;font-size:15px}
.fakhar-checkout-page .woocommerce-error,.fakhar-checkout-page .woocommerce-message{border:0;border-radius:14px;background:#fff}

@media(max-width:1024px){
 .fakhar-checkout-page form.checkout{--fakhar-checkout-summary:290px}
 .fakhar-cart-page .woocommerce-cart-form td.actions{align-items:stretch;flex-direction:column}
 .fakhar-cart-page .coupon{width:100%}
 .fakhar-cart-page .actions>button[name="update_cart"]{align-self:flex-start;margin-inline-start:0}
}

@media(max-width:767px){
 .fakhar-product-card__price,.fakhar-shop-card__price{gap:1px}
 .fakhar-cart-page .woocommerce-cart-form td.actions{display:grid;gap:10px;padding:10px!important}
 .fakhar-cart-page .coupon{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}
 .fakhar-cart-page .coupon input.input-text{width:100%!important}
 .fakhar-cart-page .actions>button[name="update_cart"]{width:100%;margin:0}
 .fakhar-checkout-page form.checkout{display:flex;gap:14px}
 .fakhar-checkout-page #customer_details,.fakhar-checkout-page #order_review{padding:15px;border-radius:18px}
 .fakhar-checkout-page .form-row input,.fakhar-checkout-page .form-row textarea,.fakhar-checkout-page .form-row select,.fakhar-checkout-page .select2-selection{min-height:46px}
}
