/* Fakhar Core 1.4.3 visual corrections. Loaded last on purpose. */

/* Hero: eliminate the sub-pixel seam between the media and its dark overlay. */
.fakhar-hero--overlay.fakhar-hero--overlay-full::before{
 top:-2px!important;right:-2px!important;bottom:-2px!important;left:-2px!important;
 width:auto!important;height:auto!important;background-clip:border-box
}
.fakhar-hero--overlay.fakhar-hero--overlay-full .fakhar-hero__media{inset:-2px}

/* Product cards: the badge and both halves of a WooCommerce sale price stay visible. */
.fakhar-product-card,.fakhar-shop-card{isolation:isolate}
.fakhar-product-card .fakhar-sale-badge,.fakhar-shop-card .fakhar-sale-badge{display:inline-flex!important;z-index:4}
.fakhar-product-card__price del,.fakhar-shop-card__price del,
.fakhar-product-card__price ins,.fakhar-shop-card__price ins{visibility:visible!important}
.fakhar-product-card__price del .woocommerce-Price-amount,.fakhar-shop-card__price del .woocommerce-Price-amount{display:inline!important}
.fakhar-product-card__price ins .woocommerce-Price-amount,.fakhar-shop-card__price ins .woocommerce-Price-amount{display:inline!important}

/* Native cart table: use a stable grid so product columns cannot collapse. */
.fakhar-cart-page .woocommerce-cart-form{box-sizing:border-box}
.fakhar-cart-page .woocommerce-cart-form table.shop_table,
.fakhar-cart-page .woocommerce-cart-form table.shop_table tbody{display:block;width:100%}
.fakhar-cart-page .woocommerce-cart-form table.shop_table tr.cart_item{
 box-sizing:border-box;display:grid!important;grid-template-columns:38px 86px minmax(150px,1.45fr) minmax(105px,.85fr) 124px minmax(110px,.9fr);
 grid-template-areas:"remove thumbnail name price quantity subtotal";gap:12px;align-items:center;width:100%;margin:0 0 10px;padding:12px;
 direction:rtl;overflow:visible;border:1px solid #eceef1;border-radius:18px;background:#fff;box-shadow:none
}
.fakhar-cart-page .woocommerce-cart-form table.shop_table tr.cart_item td{
 box-sizing:border-box;display:flex;align-items:center;min-width:0;width:auto;padding:0!important;border:0!important;border-radius:0!important;background:transparent
}
.fakhar-cart-page td.product-remove{grid-area:remove;justify-content:center}
.fakhar-cart-page td.product-thumbnail{grid-area:thumbnail;justify-content:center}
.fakhar-cart-page td.product-name{grid-area:name;line-height:1.8}
.fakhar-cart-page td.product-price{grid-area:price;justify-content:center;white-space:nowrap}
.fakhar-cart-page td.product-quantity{grid-area:quantity;justify-content:center}
.fakhar-cart-page td.product-subtotal{grid-area:subtotal;justify-content:flex-start;white-space:nowrap;font-weight:800}
.fakhar-cart-page .product-thumbnail a{display:block;width:78px;height:84px;overflow:hidden;border-radius:12px;background:#f7f7f8}
.fakhar-cart-page .product-thumbnail img{display:block!important;width:100%!important;height:100%!important;margin:0!important;object-fit:contain;border-radius:12px}
.fakhar-cart-page .product-name a{display:block;overflow-wrap:anywhere}
.fakhar-cart-page .product-remove a{flex:0 0 32px}
.fakhar-cart-page .woocommerce-cart-form table.shop_table tbody>tr:not(.cart_item){display:block;width:100%}
.fakhar-cart-page .woocommerce-cart-form table.shop_table tbody>tr:not(.cart_item)>td{box-sizing:border-box;width:100%}

/* Mini-cart: dark glass card and controls matched to the supplied reference. */
.fakhar-cart .fakhar-cart__panel{
 width:min(304px,calc(100vw - 20px));overflow:hidden;border:1px solid rgba(255,255,255,.34);border-radius:24px;color:#fff;
 background:linear-gradient(145deg,rgba(20,12,13,.92),rgba(54,20,21,.84))!important;
 box-shadow:0 18px 45px rgba(0,0,0,.38);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
}
.fakhar-cart .fakhar-cart__panel>header{min-height:42px;padding:11px 17px 7px;border:0;color:#fff!important;background:transparent!important}
.fakhar-cart .fakhar-cart__panel-title{margin-inline-start:auto;color:#fff!important;font-size:13px;font-weight:500}
.fakhar-cart .fakhar-cart__panel-title>span{order:-1}
.fakhar-cart:not(.fakhar-cart--show-close) .fakhar-cart__close{display:none!important}
.fakhar-cart .fakhar-cart__close{color:#fff;background:rgba(255,255,255,.08)}
.fakhar-cart .fakhar-cart__body{max-height:min(510px,72vh);padding:0 14px 13px;color:#fff!important;background:transparent!important}
.fakhar-cart .fakhar-cart-lines{gap:0}
.fakhar-cart .fakhar-cart-line{
 display:grid;grid-template-columns:minmax(0,1fr) 64px 28px;grid-template-areas:"content image remove";gap:8px;align-items:center;
 min-height:82px;margin:0;padding:9px 0;border:0;border-top:1px solid rgba(255,255,255,.16);border-radius:0;color:#fff!important;background:transparent!important;direction:ltr
}
.fakhar-cart .fakhar-cart-line__image{grid-area:image;width:64px;height:64px;padding:0;border-radius:9px;background:#fff}
.fakhar-cart .fakhar-cart-line__image img{width:100%;height:100%;object-fit:cover;border-radius:9px}
.fakhar-cart .fakhar-cart-line__content{grid-area:content;align-content:center;gap:6px;min-width:0;direction:rtl;text-align:right}
.fakhar-cart .fakhar-cart-line__name{display:-webkit-box;overflow:hidden;color:#fff!important;font-size:12px;font-weight:750;line-height:1.65;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.fakhar-cart .fakhar-cart-line__meta{display:none}
.fakhar-cart .fakhar-cart-line__prices{display:flex;align-items:center;justify-content:flex-start;gap:7px;direction:ltr;white-space:nowrap}
.fakhar-cart .fakhar-cart-line__prices del{order:2;color:rgba(255,255,255,.6);font-size:9px;opacity:1}
.fakhar-cart .fakhar-cart-line__prices strong{order:1;color:#fff!important;font-size:12px;font-weight:800}
.fakhar-cart .fakhar-cart-remove{grid-area:remove;width:22px;height:22px;padding:4px;border:1px solid #ed4653;border-radius:50%;color:#ed4653;background:transparent}
.fakhar-cart:not(.fakhar-cart--show-summary) .fakhar-cart-summary{display:none!important}
.fakhar-cart .fakhar-cart-summary{margin:8px 0 0;color:#fff}
.fakhar-cart .fakhar-cart-actions{gap:7px;margin-top:4px;direction:rtl}
.fakhar-cart .fakhar-cart-actions a{box-sizing:border-box;display:flex;min-height:40px;padding:3px 4px 3px 15px;border:1px solid rgba(255,255,255,.52)!important;border-radius:999px!important;color:#fff!important;font-size:13px;font-weight:700}
.fakhar-cart .fakhar-cart-actions a>span:first-child{padding-inline-start:13px}
.fakhar-cart .fakhar-cart-actions a>svg,.fakhar-cart .fakhar-cart-actions a>i{flex:0 0 34px;width:34px;height:34px;padding:9px}
.fakhar-cart .fakhar-cart-actions__cart{background:#a70d15!important}
.fakhar-cart .fakhar-cart-actions__cart>svg,.fakhar-cart .fakhar-cart-actions__cart>i{color:#15191e!important;background:#fff!important}
.fakhar-cart .fakhar-cart-actions__checkout{background:rgba(0,0,0,.14)!important}
.fakhar-cart .fakhar-cart-actions__checkout>svg,.fakhar-cart .fakhar-cart-actions__checkout>i{color:#fff!important;background:#ef3150!important}

/* Checkout: a 12-column field grid plus independent form/summary ratios. */
.fakhar-checkout-page form.checkout{
 --fakhar-checkout-details-ratio:7fr;--fakhar-checkout-summary-ratio:3fr;
 grid-template-columns:minmax(0,var(--fakhar-checkout-details-ratio)) minmax(260px,var(--fakhar-checkout-summary-ratio))
}
.fakhar-checkout-page .woocommerce-billing-fields__field-wrapper,
.fakhar-checkout-page .woocommerce-shipping-fields__field-wrapper,
.fakhar-checkout-page .woocommerce-additional-fields__field-wrapper{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px 10px}
.fakhar-checkout-page .woocommerce-billing-fields__field-wrapper>.form-row,
.fakhar-checkout-page .woocommerce-shipping-fields__field-wrapper>.form-row,
.fakhar-checkout-page .woocommerce-additional-fields__field-wrapper>.form-row{grid-column:span 12;min-width:0}
.fakhar-checkout-page #billing_first_name_field,.fakhar-checkout-page #billing_last_name_field{grid-column:span 6}
.fakhar-checkout-page #billing_country_field,.fakhar-checkout-page #billing_state_field,.fakhar-checkout-page #billing_city_field{grid-column:span 4}
.fakhar-checkout-page .woocommerce-shipping-fields h3{margin:12px 0!important;font-size:15px!important;line-height:1.8}
.fakhar-checkout-page .woocommerce-shipping-fields h3 label{display:flex;align-items:center;gap:7px;font-size:15px;font-weight:650}
.fakhar-checkout-page .woocommerce-shipping-fields h3 input{width:15px;height:15px;min-height:0;margin:0}

@media(max-width:1024px){
 .fakhar-cart-page .woocommerce-cart-form table.shop_table tr.cart_item{grid-template-columns:36px 76px minmax(130px,1fr) minmax(92px,.8fr) 112px;grid-template-areas:"remove thumbnail name price quantity"}
 .fakhar-cart-page td.product-subtotal{display:none!important}
 .fakhar-cart-page .product-thumbnail a{width:68px;height:76px}
}

@media(max-width:767px){
 .fakhar-hero--overlay.fakhar-hero--overlay-full::before{top:-1px!important;right:-1px!important;bottom:-1px!important;left:-1px!important}
 .fakhar-cart-page .woocommerce-cart-form table.shop_table tr.cart_item{
  grid-template-columns:34px minmax(0,1fr) 72px;grid-template-areas:"remove name thumbnail" "remove price thumbnail" "remove quantity thumbnail";
  gap:5px 10px;padding:10px;direction:rtl
 }
 .fakhar-cart-page .product-thumbnail a{width:66px;height:76px}
 .fakhar-cart-page td.product-name,.fakhar-cart-page td.product-price,.fakhar-cart-page td.product-quantity{justify-content:flex-start}
 .fakhar-checkout-page form.checkout{display:flex;flex-direction:column}
 .fakhar-checkout-page .woocommerce-billing-fields__field-wrapper,
 .fakhar-checkout-page .woocommerce-shipping-fields__field-wrapper,
 .fakhar-checkout-page .woocommerce-additional-fields__field-wrapper{grid-template-columns:1fr}
 .fakhar-checkout-page .woocommerce-billing-fields__field-wrapper>.form-row,
 .fakhar-checkout-page .woocommerce-shipping-fields__field-wrapper>.form-row,
 .fakhar-checkout-page .woocommerce-additional-fields__field-wrapper>.form-row{grid-column:1!important}
}
