/* ==========================================================================
   Blanco × WooCommerce
   تنسيقات ووكومرس الافتراضية مقفولة، وده التصميم الكامل للمتجر والسلة والدفع.
   ========================================================================== */

/* ---------- عام ---------- */
.wc-area,.wc-page{padding:40px 0 80px}
.woocommerce-products-header__title,.wc-area h1.page-title{font-size:clamp(32px,5vw,48px);margin-bottom:16px}
.woocommerce .crumb a{color:var(--muted);text-decoration:none}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.woocommerce-result-count{color:var(--muted);font-size:14px;margin:6px 0 16px}
.price del{color:var(--muted);font-weight:400;margin-inline-end:6px}
.price ins{text-decoration:none}
.onsale{position:absolute;top:12px;inset-inline-end:12px;background:var(--red);color:#fff;font-size:12px;padding:3px 10px;border-radius:999px;z-index:2}

/* أزرار */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
.woocommerce .button.alt,.wc-block-components-button,.single_add_to_cart_button,#place_order{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:6px;padding:13px 24px;font-weight:600;
	text-decoration:none;cursor:pointer;border:1px solid transparent;font:inherit;font-weight:600;font-size:16px;
	background:var(--red);color:#fff;line-height:1.3}
.woocommerce a.button:hover,.woocommerce button.button:hover,.single_add_to_cart_button:hover,#place_order:hover{background:var(--red-deep)}
.woocommerce button.button:disabled,.woocommerce button.button[disabled]{opacity:.5;cursor:not-allowed}
.woocommerce a.button.wc-backward,.woocommerce button[name="update_cart"],.woocommerce .button.secondary{background:var(--surface);color:var(--text);border-color:var(--field-line)}
.woocommerce button[name="update_cart"]:hover{border-color:var(--text);background:var(--surface)}
.add.loading{opacity:.6;pointer-events:none}
.add.added::after{content:" ✓"}
a.added_to_cart{display:none}

/* تنبيهات */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-info,.woocommerce-error{list-style:none;margin:0 0 20px;padding:14px 18px;border-radius:8px;border:1px solid var(--line);background:var(--surface);display:flex;gap:14px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.woocommerce-message{border-inline-start:4px solid var(--ok)}
.woocommerce-info{border-inline-start:4px solid var(--muted)}
.woocommerce-error{border-inline-start:4px solid var(--red);display:block}
.woocommerce-error li{margin:4px 0}
.woocommerce-message .button,.woocommerce-info .button{padding:8px 16px;font-size:14px}

/* حقول */
.woocommerce form .form-row{margin:0 0 14px;padding:0;display:block}
.woocommerce form .form-row label{display:block;font-size:14px;color:var(--muted);margin-bottom:6px}
.woocommerce form .form-row .required{color:var(--red);text-decoration:none}
.woocommerce form .form-row .optional{display:none}
.woocommerce form .input-text,.woocommerce form select,.woocommerce form textarea,.woocommerce-cart input.qty,.woocommerce input.qty{
	width:100%;min-height:50px;border:1px solid var(--field-line);background:var(--field);color:var(--text);border-radius:6px;padding:10px 14px;font:inherit;font-size:16px}
.woocommerce form textarea{min-height:90px}
.woocommerce form .input-text:focus,.woocommerce form select:focus,.woocommerce form textarea:focus{outline:none;border-color:var(--focus);box-shadow:0 0 0 1px var(--focus)}
.woocommerce form .form-row.woocommerce-invalid .input-text,.woocommerce form .form-row.woocommerce-invalid select{border-color:var(--red)}
.blanco-city-msg{display:block;color:var(--red);font-size:13px;margin-top:4px}
.form-row-first,.form-row-last{width:calc(50% - 6px);display:inline-block!important;vertical-align:top}
.form-row-first{margin-inline-end:8px!important}
@media (max-width:520px){.form-row-first,.form-row-last{width:100%;margin-inline-end:0!important}}
.select2-container{width:100%!important}
.select2-container--default .select2-selection--single{height:50px;border:1px solid var(--field-line);border-radius:6px;background:var(--field)}
.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:48px;padding-inline:14px;color:var(--text)}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:48px}
.select2-dropdown{border-color:var(--field-line)}
.select2-results__option--highlighted{background:var(--red)!important}
.woocommerce form .form-row input[type=checkbox]{accent-color:var(--red);width:18px;height:18px;vertical-align:middle}

/* عدد */
.quantity{display:inline-flex}
.quantity input.qty{width:90px;text-align:center;min-height:48px}
.product.sell-kg form.cart .quantity,.product.sell-half form.cart .quantity{display:none}

/* ---------- المتجر ---------- */
ul.products{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px}
ul.products li.product{margin:0;padding:0;width:auto;float:none;display:flex}
ul.products li.product .prod{flex:1}
.shop-bar{display:grid;gap:14px;margin-bottom:22px}
.shop-bar .chips{margin-top:0}
.shop-bar .chip{color:var(--text);border-color:var(--line);background:var(--surface)}
.shop-bar .chip[aria-current="true"]{background:var(--red);border-color:var(--red);color:#fff}
.woocommerce-pagination ul{list-style:none;display:flex;gap:6px;justify-content:center;padding:0;margin:30px 0 0}
.woocommerce-pagination a,.woocommerce-pagination span{display:grid;place-items:center;min-width:40px;height:40px;border:1px solid var(--line);border-radius:6px;text-decoration:none;color:var(--text)}
.woocommerce-pagination .current{background:var(--red);color:#fff;border-color:var(--red)}
.prod.out .art{opacity:.55}
.tag-out{background:var(--muted)!important}
.prod h3 a{text-decoration:none}
.woocommerce-no-products-found .woocommerce-info{display:block}

/* ---------- صفحة المنتج ---------- */
.single-product div.product{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:44px;align-items:start;position:relative}
.single-product div.product>.woocommerce-tabs,.single-product div.product>.related,.single-product div.product>.up-sells{grid-column:1/-1}
@media (max-width:900px){.single-product div.product{grid-template-columns:1fr;gap:26px}}
.woocommerce-product-gallery{position:relative;background:var(--band);border-radius:12px;overflow:hidden;margin:0!important;opacity:1!important}
.woocommerce-product-gallery__wrapper{margin:0}
.woocommerce-product-gallery__image img{width:100%;height:auto;display:block}
.woocommerce-product-gallery .flex-control-thumbs{list-style:none;display:flex;gap:8px;padding:10px;margin:0;flex-wrap:wrap}
.woocommerce-product-gallery .flex-control-thumbs li{width:70px;cursor:pointer;opacity:.6}
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,.woocommerce-product-gallery .flex-control-thumbs li:hover{opacity:1}
.woocommerce-product-gallery__trigger{position:absolute;top:12px;inset-inline-start:12px;z-index:3;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.9);display:grid;place-items:center;text-indent:-999px;overflow:hidden}
.woocommerce-product-gallery__trigger::before{content:"";width:12px;height:12px;border:2px solid #222;border-radius:50%;text-indent:0}
.d-visual{position:sticky;top:96px}
.d-visual.small-map{position:static;background:var(--band);padding:14px;margin-top:0}
@media (max-width:900px){.d-visual{position:static}}
.summary .en{font-family:"Playfair Display",Georgia,serif;color:var(--muted)}
.summary .product_title{font-size:clamp(36px,5vw,54px);font-family:"El Messiri",serif;line-height:1.2}
.summary p.price{font-size:26px;font-weight:600;margin:10px 0 4px;color:var(--text)}
.summary .per{font-size:15px;color:var(--muted);font-weight:400}
.summary .woocommerce-product-details__short-description{color:var(--muted);margin:14px 0 24px;max-width:36em}
.summary form.cart{margin:0 0 6px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.summary form.cart .blanco-buy{width:100%}
.summary form.cart .single_add_to_cart_button{flex:1;min-width:200px;height:54px}
.summary .stock{font-size:14px;color:var(--ok)}
.summary .stock.out-of-stock{color:var(--red)}
.summary .product_meta{display:none}
.live-total{display:flex;justify-content:space-between;align-items:center;margin:22px 0 4px;padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.live-total b{font-size:20px}
.cw-box.wide{max-width:none}
.cw-box input{width:100%}
.woocommerce-tabs{margin-top:40px;border-top:1px solid var(--line);padding-top:24px}
.woocommerce-tabs ul.tabs{list-style:none;display:flex;gap:8px;padding:0;margin:0 0 16px}
.woocommerce-tabs ul.tabs li a{display:block;padding:8px 16px;border-radius:999px;border:1px solid var(--line);text-decoration:none;color:var(--text)}
.woocommerce-tabs ul.tabs li.active a{background:var(--text);color:var(--bg)}
.woocommerce-Tabs-panel{max-width:46em;color:var(--muted)}
.related>h2,.up-sells>h2{font-size:28px;margin:40px 0 18px}

/* ---------- السلة ---------- */
.woocommerce-cart .wc-page .wrap{max-width:1100px}
.woocommerce-cart-form{margin-bottom:24px}
table.shop_table{width:100%;border-collapse:collapse;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
table.shop_table th{font-weight:600;text-align:start;padding:14px;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}
table.shop_table td{padding:14px;border-bottom:1px solid var(--line);vertical-align:middle}
table.shop_table tr:last-child td{border-bottom:0}
table.shop_table .product-thumbnail img{width:64px;height:64px;object-fit:cover;border-radius:8px}
table.shop_table .product-thumbnail a{display:block;width:64px;height:64px;border-radius:8px;background:var(--band)}
table.shop_table .product-name a{font-weight:600;text-decoration:none}
table.shop_table dl.variation{margin:6px 0 0;font-size:13px;color:var(--muted);display:grid;grid-template-columns:auto 1fr;gap:2px 8px}
table.shop_table dl.variation dt{font-weight:600}
table.shop_table dl.variation dd{margin:0}
table.shop_table dl.variation dd p{margin:0}
table.shop_table a.remove{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:var(--red)!important;text-decoration:none;font-size:20px;border:1px solid var(--line)}
table.shop_table td.actions{text-align:end}
table.shop_table td.actions .coupon{display:flex;gap:8px;float:inline-start}
table.shop_table td.actions .coupon .input-text{width:180px;min-height:46px}
@media (max-width:760px){
	table.shop_table thead{display:none}
	table.shop_table tr.cart_item{display:grid;grid-template-columns:64px 1fr auto;gap:6px 12px;padding:12px;border-bottom:1px solid var(--line)}
	table.shop_table tr.cart_item td{border:0;padding:0}
	table.shop_table tr.cart_item td.product-remove{grid-column:3;grid-row:1}
	table.shop_table tr.cart_item td.product-thumbnail{grid-row:1/4;grid-column:1}
	table.shop_table tr.cart_item td.product-name{grid-column:2}
	table.shop_table tr.cart_item td.product-price{display:none}
	table.shop_table tr.cart_item td.product-quantity,table.shop_table tr.cart_item td.product-subtotal{grid-column:2}
	table.shop_table td.actions{display:block}
	table.shop_table td.actions .coupon{float:none;margin-bottom:10px}
	table.shop_table td.actions .coupon .input-text{flex:1;width:auto}
}
.cart-collaterals{display:grid;grid-template-columns:1fr minmax(0,420px);gap:24px}
.cart-collaterals .cart_totals{grid-column:2}
@media (max-width:760px){.cart-collaterals{grid-template-columns:1fr}.cart-collaterals .cart_totals{grid-column:1}}
.cart_totals h2{font-size:22px;margin-bottom:12px}
.cart_totals table.shop_table th{width:40%;color:var(--text)}
.cart_totals .order-total td,.cart_totals .order-total th{font-size:18px;font-weight:700}
.wc-proceed-to-checkout{margin-top:14px}
.wc-proceed-to-checkout .checkout-button{width:100%;height:54px;font-size:17px}
#shipping_method{list-style:none;margin:0;padding:0}
.woocommerce-shipping-destination,.woocommerce-shipping-calculator{font-size:13px;color:var(--muted)}
.cart-empty.woocommerce-info{display:block;text-align:center;padding:40px}
.return-to-shop{text-align:center}
.free-bar{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin-bottom:18px}
.free-bar p{margin:0 0 8px;font-size:14px}
.free-bar span{display:block;height:6px;background:var(--line);border-radius:3px;overflow:hidden}
.free-bar i{display:block;height:100%;background:var(--red);border-radius:3px}

/* ---------- الدفع (على طريقة شوبيفاي) ---------- */
.woocommerce-checkout .wc-page{padding-top:28px}
.woocommerce-checkout .wc-page .wrap{max-width:1180px}
.woocommerce-form-coupon-toggle .woocommerce-info,.woocommerce-form-login-toggle .woocommerce-info{font-size:14px}
form.checkout_coupon{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
form.checkout_coupon p{margin:0}
form.checkout_coupon .form-row-first{flex:1;width:auto}
form.checkout_coupon .form-row-last{width:auto}
form.checkout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);grid-template-areas:"main side";gap:0 48px;align-items:start}
form.checkout>.woocommerce-NoticeGroup{grid-column:1}
form.checkout #customer_details{grid-area:main;display:block}
form.checkout #customer_details,form.checkout .blanco-slots,form.checkout #payment{grid-column:1}
form.checkout #order_review_heading{grid-column:2;grid-row:1;margin:0 0 12px;font-size:22px;align-self:start}
form.checkout #order_review{grid-column:2;grid-row:1 / span 12;position:sticky;top:96px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px}
form.checkout #order_review_heading{display:none}
@media (max-width:900px){
	form.checkout{grid-template-columns:1fr;grid-template-areas:none}
	form.checkout #order_review{grid-column:1;grid-row:1;position:static;margin-bottom:20px}
	form.checkout #customer_details,form.checkout .blanco-slots,form.checkout #payment{grid-column:1;grid-row:auto}
}
#customer_details .col-1,#customer_details .col-2{width:100%;float:none}
#customer_details h3,.blanco-slots h3,#payment::before{font-family:"IBM Plex Sans Arabic",sans-serif;font-size:22px;font-weight:600;margin:28px 0 14px}
#customer_details .woocommerce-billing-fields h3{margin-top:0}
#customer_details .woocommerce-shipping-fields:empty{display:none}
.woocommerce-billing-fields__field-wrapper{display:block}
#billing_country_field{display:none}
.welcome{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px 14px;font-size:14px;display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:16px}
.welcome button{background:none;border:0;color:var(--red);cursor:pointer;text-decoration:underline;font:inherit;font-size:14px}
.blanco-slots .radios,#payment ul.payment_methods{border:1px solid var(--field-line);border-radius:8px;overflow:hidden;list-style:none;margin:0;padding:0;background:var(--field)}
.blanco-slots .radios>label{display:flex;gap:12px;align-items:center;padding:15px 16px;border-bottom:1px solid var(--field-line);cursor:pointer}
.blanco-slots .radios>label:last-child{border-bottom:0}
.blanco-slots .radios>label:has(input:checked){background:color-mix(in srgb,var(--red) 7%,var(--field));box-shadow:inset 0 0 0 1px var(--red)}
.blanco-slots input,#payment input[type=radio]{accent-color:var(--red);width:18px;height:18px}
.r-t{flex:1}
.r-t small{display:block;color:var(--muted)}
#payment{background:none;margin-top:6px}
#payment::before{content:"الدفع";display:block}
#payment ul.payment_methods li{padding:15px 16px;border-bottom:1px solid var(--field-line)}
#payment ul.payment_methods li:last-child{border-bottom:0}
#payment ul.payment_methods li>label{display:inline;cursor:pointer;font-weight:600}
#payment ul.payment_methods li img{max-height:24px;vertical-align:middle;margin-inline-start:6px}
#payment div.payment_box{margin:10px 0 0;padding:12px 14px;background:var(--bg);border-radius:6px;font-size:14px;color:var(--muted)}
#payment div.payment_box p{margin:0}
#payment .place-order{margin-top:22px;padding:0}
#payment #place_order{width:100%;height:56px;font-size:17px}
.woocommerce-terms-and-conditions-wrapper{font-size:13px;color:var(--muted);margin-bottom:12px}
.woocommerce-privacy-policy-text p{margin:0}
table.woocommerce-checkout-review-order-table{border:0;background:none}
table.woocommerce-checkout-review-order-table thead{display:none}
table.woocommerce-checkout-review-order-table td,table.woocommerce-checkout-review-order-table th{padding:10px 0;border-bottom:1px solid var(--line);font-size:15px}
table.woocommerce-checkout-review-order-table .product-total,table.woocommerce-checkout-review-order-table tfoot td{text-align:end}
table.woocommerce-checkout-review-order-table .product-quantity{color:var(--muted);font-weight:400}
table.woocommerce-checkout-review-order-table .order-total th,table.woocommerce-checkout-review-order-table .order-total td{font-size:20px;font-weight:700;border-bottom:0}
table.woocommerce-checkout-review-order-table .blanco-note-row td{border:0;padding:0}
table.woocommerce-checkout-review-order-table #shipping_method li{text-align:end}
.woocommerce-checkout #order_review .free-bar{margin:0 0 14px}

/* صفحة الشكر */
.woocommerce-order{max-width:760px;margin:0 auto}
.woocommerce-thankyou-order-received{font-family:"El Messiri",serif;font-size:32px;text-align:center;margin:10px 0 20px}
ul.woocommerce-order-overview{list-style:none;padding:16px;margin:0 0 24px;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
ul.woocommerce-order-overview li{font-size:13px;color:var(--muted)}
ul.woocommerce-order-overview li strong{display:block;font-size:16px;color:var(--text)}
.blanco-thanks{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px 20px;margin-bottom:24px}
.blanco-thanks p{margin:4px 0}
.woocommerce-order-details h2,.woocommerce-customer-details h2,.woocommerce-column__title{font-size:22px;margin:24px 0 12px}
.woocommerce-customer-details address{font-style:normal;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px}

/* حسابي */
.woocommerce-account .woocommerce{display:grid;grid-template-columns:220px 1fr;gap:30px}
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0;display:grid;gap:4px}
.woocommerce-MyAccount-navigation a{display:block;padding:10px 14px;border-radius:6px;text-decoration:none;color:var(--text)}
.woocommerce-MyAccount-navigation .is-active a{background:var(--red);color:#fff}
@media (max-width:760px){.woocommerce-account .woocommerce{grid-template-columns:1fr}}
.summary form.cart .wnote{width:100%;margin-top:4px}
.summary .bars{margin:18px 0 6px}
.summary .good{width:100%}
