/*
Theme Name: SASON GPS Shop
Template: twentytwentyfive
Description: ערכת עיצוב לחנות SASON GPS (מבוססת Twenty Twenty-Five): הצבעים, הגופנים והלוגו של gps.sason.org.il.
Version: 1.1.2
Text Domain: sason-shop
*/

.wp-site-blocks { overflow-x: clip; }
.sason-header { border-bottom: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); }
.sason-header .wp-block-navigation a { font-weight: 600; }
.sason-header .wp-block-navigation a:hover { color: var(--wp--preset--color--teal); }
.sason-footer { background: var(--wp--preset--color--navy); color: #d7e6ee; }
.sason-footer a { color: #fff; }
.sason-footer a:hover { color: var(--wp--preset--color--mint); }
.sason-footer ul { list-style: none; }
.sason-badge { display: inline-block; padding: .15em .7em; border-radius: 999px; background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--teal); font-weight: 700; font-size: .85em; }
.wc-block-components-product-price, .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }
:where(.wp-block-button__link, .wc-block-components-button, .button) { border-radius: 10px !important; }
.sason-note { border-inline-start: 4px solid var(--wp--preset--color--teal); background: var(--wp--preset--color--surface-2); padding: 12px 16px; border-radius: 8px; }
@media (max-width: 600px) { .sason-header .wp-block-site-logo img { width: 150px !important; height: auto; } }

/* Home page */
.sason-hero { background: radial-gradient(circle at 15% 20%, #1b5f72 0%, #142d3d 60%, #0e2230 100%); color: #e6f1f4; margin-top: 0 !important; }
.sason-hero h1, .sason-hero .sason-hero-title { color: #fff; font-size: clamp(32px, 5vw, 54px); margin: 6px 0 14px; }
.sason-hero .sason-kicker { color: var(--wp--preset--color--mint); font-weight: 700; letter-spacing: .02em; margin: 0; }
.sason-hero .sason-lead { font-size: 19px; color: #cfe2e8; max-width: 640px; }
.sason-hero .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.sason-hero .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.1); }
.sason-hero-points { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 12px; }
.sason-hero-points li { background: rgba(255,255,255,.07); border: 1px solid rgba(141,224,212,.35); border-radius: 14px; padding: 14px 18px; }
.sason-hero-points strong { color: var(--wp--preset--color--mint); }
.sason-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 22px !important; height: 100%; }
.sason-card h3 { margin-top: 0; font-size: 24px; }
.sason-card h3 a { text-decoration: none; color: var(--wp--preset--color--navy); }
.sason-card h3 a:hover { color: var(--wp--preset--color--teal); }
.sason-cats .sason-card { border-top: 4px solid var(--wp--preset--color--teal); }
.sason-step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wp--preset--color--teal); color: #fff; font-weight: 800; margin: 0 0 6px; }
.sason-lead { font-size: 18px; color: var(--wp--preset--color--muted); }
.sason-faq { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.sason-faq summary { font-weight: 700; cursor: pointer; color: var(--wp--preset--color--navy); }
.sason-faq[open] summary { margin-bottom: 8px; }

/* Device comparison */
.sason-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sason-compare table { min-width: 760px; border-collapse: collapse; background: var(--wp--preset--color--surface); font-size: 15px; }
.sason-compare th, .sason-compare td { border: 1px solid var(--wp--preset--color--line); padding: 10px 12px; text-align: center; vertical-align: top; }
.sason-compare thead th { background: var(--wp--preset--color--navy); color: #fff; }
.sason-compare thead th a { color: #fff; }
.sason-compare tbody th { background: var(--wp--preset--color--surface-2); text-align: start; white-space: nowrap; }

/* Classic product loop (shortcode on the home page) */
.woocommerce ul.products li.product { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 12px; text-align: center; }
.woocommerce ul.products li.product img { border-radius: 10px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 17px; color: var(--wp--preset--color--navy); }
.woocommerce ul.products li.product .button { background: var(--wp--preset--color--teal); color: #fff; border-radius: 10px; }

/* Product loop as an even grid (the classic loop floats break in RTL block layouts) */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; }
.woocommerce ul.products li.product .button { margin-top: auto; align-self: center; }
.sason-cats .wp-block-column, .sason-steps .wp-block-column { display: flex; }
.sason-cats .sason-card, .sason-steps .sason-card { flex: 1; }
.sason-compare tbody th, .sason-compare thead th:first-child { position: sticky; right: 0; z-index: 1; width: 112px; min-width: 112px; white-space: normal; }
.sason-compare thead th:first-child { background: var(--wp--preset--color--navy); }
.sason-compare td { min-width: 110px; }
@media (max-width: 700px) { .sason-compare::after { content: "גללו הצידה לשאר המכשירים ←"; display: block; font-size: 13px; color: var(--wp--preset--color--muted); margin-top: 6px; } }
