/*
 * mt-site-core, cart-design. העיצוב של עמוד הסל מהעיצוב הקודם, שדודי אהב, 2026-10-24.
 * רק בעמוד הסל, תחת body.mt-cart. כל השאר באתר בעיצוב המקורי. בלי משאב חיצוני.
 * נלקח מ-legacy/design-1.6.0, חלקי הכפתורים, כרטיסי המוצרים המוצעים, הסל, ונקודות השבירה של הסל.
 */
body.mt-cart{
	--mt-ink:#1a1238;--mt-ink-2:#2e2550;--mt-muted:#5a5470;
	--mt-bg:#fff;--mt-soft:#f3effb;--mt-line:#e6e0f3;
	--mt-brand:#3b1f73;--mt-brand-700:#2b1658;--mt-brand-50:#f1edf9;--mt-brand-100:#ddd3f2;
	--mt-gold:#ffb400;--mt-gold-hover:#ffc533;--mt-gold-press:#e9a400;
	--mt-magenta:#c2185b;--mt-focus:#6a46ff;
	--mt-r:8px;--mt-r-sm:6px;
	--mt-font:system-ui,-apple-system,"Segoe UI","Arial Hebrew",Arial,sans-serif;
}
/* הטיפוגרפיה והצבעים רק בתוכן של עמוד הסל. הכותרת העליונה והתחתונה נשארות בעיצוב המקורי. */
body.mt-cart .site-main{font-family:var(--mt-font);color:var(--mt-ink-2);line-height:1.6}
body.mt-cart .site-main h1,body.mt-cart .site-main h2,body.mt-cart .site-main h3{font-family:var(--mt-font);color:var(--mt-ink);line-height:1.2;letter-spacing:-.01em}
body.mt-cart .site-main a{color:var(--mt-brand)}
body.mt-cart .site-main :focus-visible{outline:3px solid var(--mt-focus);outline-offset:2px}
body.mt-cart .site-main input,body.mt-cart .site-main select,body.mt-cart .site-main button{font-family:var(--mt-font)}
body.mt-cart .site-main .entry-header .entry-title{font-size:clamp(28px,7vw,42px);font-weight:800;color:var(--mt-ink);letter-spacing:-.02em}

/* כפתורים בתוכן הסל */
body.mt-cart .site-main .button,
body.mt-cart .site-main input[type=submit],
body.mt-cart .site-main button[type=submit],
body.mt-cart .site-main .widget a.button,
body.mt-cart .site-main .added_to_cart{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
	min-height:44px;padding:8px 16px;border:0;border-radius:var(--mt-r);
	background-color:var(--mt-gold);color:var(--mt-ink);font-weight:700;font-size:15px;line-height:1.2;text-align:center;
	transition:background-color .15s,color .15s,box-shadow .15s;
}
body.mt-cart .site-main .button:hover,
body.mt-cart .site-main input[type=submit]:hover,
body.mt-cart .site-main button[type=submit]:hover,
body.mt-cart .site-main .widget a.button:hover,
body.mt-cart .site-main .added_to_cart:hover{background-color:var(--mt-gold-hover);color:var(--mt-ink)}
body.mt-cart .site-main .button:active,
body.mt-cart .site-main input[type=submit]:active,
body.mt-cart .site-main button[type=submit]:active{background-color:var(--mt-gold-press)}
body.mt-cart .site-main .button.disabled,body.mt-cart .site-main .button:disabled,body.mt-cart .site-main button:disabled,body.mt-cart .site-main .button.alt.disabled{background-color:var(--mt-soft);color:#5f5972;cursor:not-allowed;opacity:1}
body.mt-cart .site-main .button.loading{color:transparent}

/* כפתור משני, קו דק. בחירת אפשרויות, מידע נוסף, קופון ועדכון סל. */
body.mt-cart .site-main ul.products li.product .button.product_type_variable,
body.mt-cart .site-main ul.products li.product .button.product_type_grouped,
body.mt-cart .site-main ul.products li.product .button.product_type_external,
body.mt-cart .site-main ul.products li.product.outofstock .button,
body.mt-cart .site-main ul.products li.product .button:not(.add_to_cart_button),
body.mt-cart .site-main .woocommerce-cart-form .coupon .button,
body.mt-cart .site-main .woocommerce-cart-form button[name=update_cart]{
	background-color:transparent;color:var(--mt-ink);box-shadow:inset 0 0 0 1px #cdc3e6;
}
body.mt-cart .site-main ul.products li.product .button.product_type_variable:hover,
body.mt-cart .site-main ul.products li.product.outofstock .button:hover,
body.mt-cart .site-main ul.products li.product .button:not(.add_to_cart_button):hover,
body.mt-cart .site-main .woocommerce-cart-form .coupon .button:hover,
body.mt-cart .site-main .woocommerce-cart-form button[name=update_cart]:hover{background-color:var(--mt-soft);color:var(--mt-ink);box-shadow:inset 0 0 0 1px var(--mt-ink)}
body.mt-cart .site-main .woocommerce-cart-form button[name=update_cart]:disabled{background-color:transparent;color:#8d86a3;box-shadow:inset 0 0 0 1px var(--mt-line)}


/* מוצרים מוצעים */
body.mt-cart .site-main ul.products{
	display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 24px;padding:0;list-style:none;
}
body.mt-cart .site-main ul.products::before,
body.mt-cart .site-main ul.products::after{content:none;display:none}
body.mt-cart .site-main ul.products li.product,
body.mt-cart .site-main ul.products.columns-4 li.product,
body.mt-cart .site-main ul.products.columns-3 li.product{
	width:auto;float:none;margin:0;clear:none;
}

/* פריט מוצר, מסגרת דקה ועדינה בלי צל. אמצע בין כרטיס כבד לבין מוצר שעומד לבד על הלבן. בריחוף הקו מתכהה. */
body.mt-cart .site-main ul.products li.product:not(.product-category){
	position:relative;display:flex;flex-direction:column;text-align:start;
	padding:10px 10px 12px;border:1px solid var(--mt-line);border-radius:10px;background-color:var(--mt-bg);box-shadow:none;
	transition:border-color .15s;
}
body.mt-cart .site-main ul.products li.product:not(.product-category):hover{border-color:#cbbfe6}
body.mt-cart .site-main ul.products li.product .woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;color:var(--mt-ink)}
body.mt-cart .site-main ul.products li.product img{width:100%;height:auto;min-height:0;aspect-ratio:1;object-fit:contain;margin:0 0 10px;border-radius:4px;background-color:#fff;transition:opacity .2s}
body.mt-cart .site-main ul.products li.product .woocommerce-LoopProduct-link:hover img{opacity:.88}
body.mt-cart .site-main ul.products li.product.outofstock img{opacity:.55}
body.mt-cart .site-main ul.products li.product .woocommerce-loop-product__title{
	margin:0 0 4px;padding:0;font-size:15px;font-weight:700;line-height:1.35;color:var(--mt-ink);
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em;transition:color .15s;
}
body.mt-cart .site-main ul.products li.product .woocommerce-LoopProduct-link:hover .woocommerce-loop-product__title{color:var(--mt-brand)}
body.mt-cart .site-main ul.products li.product .price{display:block;margin:0 0 12px;font-size:16px;font-weight:800;color:var(--mt-ink)}
body.mt-cart .site-main ul.products li.product .price del{color:var(--mt-muted);font-weight:500;opacity:1}
body.mt-cart .site-main ul.products li.product .price ins{text-decoration:none}
body.mt-cart .site-main ul.products li.product .button{width:100%;margin:auto 0 0}
body.mt-cart .site-main ul.products li.product .added_to_cart{width:100%;margin-top:8px;background-color:transparent;color:var(--mt-brand);text-decoration:underline;text-underline-offset:4px;min-height:44px}
body.mt-cart .site-main ul.products li.product .soldout{
	top:16px;right:auto;inset-inline-start:16px;z-index:1;padding:3px 8px;border-radius:4px;
	background-color:var(--mt-ink);color:#fff;font-size:12px;font-weight:700;line-height:1.5;
}
body.mt-cart .site-main ul.products li.product .onsale{top:16px;inset-inline-end:16px;border-radius:4px;border:0;background-color:var(--mt-magenta);color:#fff;font-size:12px;font-weight:700;padding:3px 8px}


body.mt-cart .site-main .quantity .qty{width:72px;min-height:52px;border:1px solid #cdc3e6;border-radius:var(--mt-r);background-color:#fff;color:var(--mt-ink);font-size:17px;font-weight:700;text-align:center;box-shadow:none}
body.mt-cart .site-main .quantity .qty:focus{border-color:var(--mt-ink);outline:0}

/* ---------- הסל ---------- */
body.mt-cart table.shop_table{border:0;border-radius:0;overflow:visible;background:none;box-shadow:none}
body.mt-cart table.shop_table th{background:none;color:var(--mt-muted);font-weight:700;font-size:14px;border-bottom:1px solid var(--mt-line)}
body.mt-cart table.shop_table td{background:none;border-color:var(--mt-line)}
body.mt-cart table.shop_table tbody tr td,
body.mt-cart table.shop_table tbody tr:nth-child(2n) td{border-bottom:1px solid var(--mt-line);background:none}
/* Storefront שם מעל שורת הפעולות פס עבה של 16 פיקסלים. בעיצוב הזה מספיק הקו הדק של השורה האחרונה. */
body.mt-cart table.cart td.actions{border-top:0}
body.mt-cart table.cart td.product-name a{color:var(--mt-ink);font-weight:600;text-decoration:none}
body.mt-cart table.cart td.product-name a:hover{color:var(--mt-brand)}
body.mt-cart table.cart .product-thumbnail img{border-radius:var(--mt-r-sm);background-color:#fff}
body.mt-cart table.cart td.product-remove a.remove{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--mt-r-sm);color:var(--mt-muted);font-size:20px}
body.mt-cart table.cart td.product-remove a.remove:hover{background-color:#fdecef;color:#b00020}
body.mt-cart table.cart td.actions .coupon .input-text{min-height:44px;border:1px solid #cdc3e6;border-radius:var(--mt-r);background-color:#fff;box-shadow:none;color:var(--mt-ink)}
body.mt-cart table.cart td.actions .coupon .input-text:focus{border-color:var(--mt-ink);box-shadow:none;outline:0}
/* תיבת הסיכום, משטח רך בלי צל */
body.mt-cart .cart-collaterals .cart_totals{padding:20px;border-radius:var(--mt-r);background-color:var(--mt-soft);box-shadow:none}
body.mt-cart .cart-collaterals .cart_totals h2{font-size:20px;font-weight:800}
body.mt-cart .cart-collaterals .cart_totals table.shop_table th,
body.mt-cart .cart-collaterals .cart_totals table.shop_table td{background:none;border-bottom:1px solid #e2daf3}
body.mt-cart .cart-collaterals .cart_totals table.shop_table th{width:38%;vertical-align:top;color:var(--mt-ink-2)}
body.mt-cart .cart-collaterals .cart_totals .order-total td,body.mt-cart .cart-collaterals .cart_totals .order-total th{border-bottom:0;font-size:18px;font-weight:800;color:var(--mt-ink)}
/* סל בטלפון ובטאבלט, עד 1024. התבנית שוברת כל מוצר לחמש שורות עם תוויות, והסל יוצא ענק. כאן כל מוצר הוא שורה קומפקטית,
   תמונה, שם והסרה למעלה, כמות וסכום מתחת. המחיר ליחידה מוסתר, הוא ברור מהסכום והכמות. */
@media (max-width:1023px){
	body.mt-cart table.shop_table_responsive.cart{display:block;border-top:1px solid var(--mt-line)}
	body.mt-cart table.shop_table_responsive.cart thead{display:none}
	body.mt-cart table.shop_table_responsive.cart tbody{display:block}
	body.mt-cart table.shop_table_responsive.cart tr.cart_item{
		position:relative;display:grid;grid-template-columns:56px minmax(0,1fr) auto;grid-template-areas:"thumb name name" "thumb qty sub";
		column-gap:12px;row-gap:6px;align-items:center;margin:0;padding:12px 0;padding-inline-end:44px;
		border-bottom:1px solid var(--mt-line);background:none;box-shadow:none;
	}
	body.mt-cart table.shop_table_responsive.cart tr.cart_item td{display:block;padding:0;border:0;background:none;text-align:start}
	body.mt-cart table.shop_table_responsive.cart tr.cart_item td::before,
	body.mt-cart table.shop_table_responsive.cart tr.cart_item td::after{content:none;display:none}
	body.mt-cart table.shop_table_responsive.cart td.product-thumbnail{grid-area:thumb;display:block}
	body.mt-cart table.shop_table_responsive.cart td.product-thumbnail img{width:56px;height:56px;max-width:none;object-fit:contain;border-radius:var(--mt-r-sm);background-color:#fff}
	body.mt-cart table.shop_table_responsive.cart td.product-name{grid-area:name;font-size:14px;line-height:1.35}
	body.mt-cart table.shop_table_responsive.cart td.product-name a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
	body.mt-cart table.shop_table_responsive.cart td.product-name dl.variation{margin:2px 0 0;font-size:12px;color:var(--mt-muted)}
	body.mt-cart table.shop_table_responsive.cart tr.cart_item td.product-price{display:none}
	body.mt-cart table.shop_table_responsive.cart td.product-quantity{grid-area:qty}
	body.mt-cart table.shop_table_responsive.cart td.product-quantity .qty{width:64px;min-height:40px;font-size:15px}
	body.mt-cart table.shop_table_responsive.cart td.product-subtotal{grid-area:sub;font-weight:800;color:var(--mt-ink);white-space:nowrap}
	/* כפתור ההסרה. Storefront ממקם אותו במיקום מוחלט בקצה, וה-X נדבק לשוליים בטלפון. כאן הוא יושב בתיבה של 32, עם מרווח מהקצה. */
	body.mt-cart table.shop_table_responsive.cart td.product-remove{position:absolute;top:8px;inset-inline-end:4px;width:32px;height:32px}
	body.mt-cart table.shop_table_responsive.cart td.product-remove a.remove{position:relative;top:auto;right:auto;left:auto;display:block;width:32px;height:32px;font-size:18px}
	body.mt-cart table.shop_table_responsive.cart td.product-remove a.remove::before{width:100%;height:100%;line-height:32px;text-align:center}
	body.mt-cart table.shop_table_responsive.cart tr:not(.cart_item){display:block}
	body.mt-cart table.shop_table_responsive.cart td.actions{display:block;padding:12px 0 0;border:0;background:none}
	body.mt-cart table.shop_table_responsive.cart td.actions .coupon{display:flex;gap:8px;margin-bottom:8px}
	body.mt-cart table.shop_table_responsive.cart td.actions .coupon .input-text{flex:1;min-width:0;width:auto}
	body.mt-cart table.shop_table_responsive.cart td.actions>.button{width:100%;min-height:40px}
	body.mt-cart table.shop_table_responsive.cart td.actions .coupon .button{min-height:40px}
	/* הכל אחד מתחת לשני, ותיבת הסיכום עם כפתור התשלום באה מיד אחרי הסל, לפני המוצרים המוצעים */
	body.mt-cart .cart-collaterals{display:flex;flex-direction:column}
	body.mt-cart .cart-collaterals::before,body.mt-cart .cart-collaterals::after{content:none;display:none}
	body.mt-cart .cart-collaterals .cart_totals{order:1;margin:0 0 24px}
	body.mt-cart .cart-collaterals .cross-sells{order:2}
	body.mt-cart .woocommerce-cart-form,body.mt-cart table.shop_table.cart{margin-bottom:16px}
	body.mt-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout{margin:0;padding:8px 0 0}
}
/* מוצרים מוצעים בעגלה, שורה אחת שגוללים לצדדים, בטלפון ובמחשב */
body.mt-cart .cart-collaterals .cross-sells{width:100%;float:none;margin:0 0 24px}
body.mt-cart .cart-collaterals .cross-sells>h2{margin-top:8px}
body.mt-cart .site-main .cart-collaterals .cross-sells ul.products{
	display:flex;flex-wrap:nowrap;gap:16px;margin:0;padding:4px 0 12px;overflow-x:auto;overscroll-behavior-x:contain;
	scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:thin;
}
body.mt-cart .site-main .cart-collaterals .cross-sells ul.products li.product{flex:0 0 150px;width:150px;margin:0;scroll-snap-align:start}
body.mt-cart .cart-collaterals .cart_totals{width:100%;float:none}
body.mt-cart .wc-proceed-to-checkout .checkout-button{width:100%;min-height:52px;font-size:17px}
body.mt-cart .cart-empty{padding:24px;border-radius:var(--mt-r);background-color:var(--mt-soft)}
body.mt-cart .woocommerce-message,body.mt-cart .woocommerce-info,body.mt-cart .woocommerce-error,body.mt-cart .woocommerce-noreviews{border-radius:var(--mt-r)}
body.mt-cart .woocommerce-message .button,body.mt-cart .woocommerce-info .button{min-height:40px}

@media (min-width:768px){
	body.mt-cart .site-main .cart-collaterals .cross-sells ul.products li.product{flex-basis:190px;width:190px}
}
@media (min-width:1024px){
	/* עגלה, המוצרים המוצעים מימין בשורה נגללת, ותיבת הסיכום משמאל, באותו קו עליון */
	body.mt-cart .cart-collaterals{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:32px;align-items:start}
	body.mt-cart .cart-collaterals::before,body.mt-cart .cart-collaterals::after{content:none;display:none}
	body.mt-cart .cart-collaterals .cross-sells{grid-column:1;margin:0}
	body.mt-cart .cart-collaterals .cross-sells>h2{margin-top:0}
	body.mt-cart .cart-collaterals .cart_totals{grid-column:2;grid-row:1;margin:0}
	body.mt-cart .cart-collaterals:not(:has(.cross-sells)){display:block}
	body.mt-cart .cart-collaterals:not(:has(.cross-sells)) .cart_totals{max-width:400px;margin-inline-start:auto}
}
/* עגלה במסך רחב, מ-1200, ובעמוד סל בלי סרגל צד. תיבת הסיכום ליד טבלת הסל, משמאל, וצמודה לראש המסך בגלילה.
   המוצרים המוצעים מתחת לטבלה. cart-collaterals שקוף לרשת, כדי שהילדים שלו יישבו ברשת של העמוד. */
@media (min-width:1200px){
	body.mt-cart.woocommerce-cart:not(:has(#secondary)) .woocommerce:has(.woocommerce-cart-form){display:grid;grid-template-columns:minmax(0,1fr) 360px;column-gap:40px;align-items:start}
	body.mt-cart.woocommerce-cart:not(:has(#secondary)) .woocommerce:has(.woocommerce-cart-form)>*{grid-column:1 / -1}
	body.mt-cart.woocommerce-cart:not(:has(#secondary)) .woocommerce:has(.woocommerce-cart-form)>.woocommerce-cart-form{grid-column:1;grid-row:2;margin:0}
	body.mt-cart.woocommerce-cart:not(:has(#secondary)) .woocommerce:has(.woocommerce-cart-form)>.cart-collaterals{display:contents}
	body.mt-cart.woocommerce-cart:not(:has(#secondary)) .woocommerce:has(.woocommerce-cart-form) .cart-collaterals .cart_totals{
		grid-column:2;grid-row:2 / span 2;margin:0;width:auto;max-width:none;
		position:sticky;top:calc(24px + var(--wp-admin--admin-bar--height, 0px));
	}
	body.mt-cart.woocommerce-cart:not(:has(#secondary)) .woocommerce:has(.woocommerce-cart-form) .cart-collaterals .cross-sells{grid-column:1;grid-row:3;margin:40px 0 0}
}
@media (prefers-reduced-motion:reduce){
	body.mt-cart .site-main *{transition:none!important}
}
