/* =========================================================
   Glimmer · wp.css — תוספות לוורדפרס
   מה שלא היה באתר הסטטי: סרגל הניהול, בלוג ומאמר, עמודי WooCommerce (סל, תשלום, חשבון), טקסט חופשי.
   אותם טוקנים כמו styles.css: צבעים, גדלים, ריווחים.
   ========================================================= */

/* ---------- סרגל הניהול של וורדפרס (למחוברים בלבד) ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.admin-bar .cart, .admin-bar .lightbox { top: 32px; }
@media (max-width: 782px) { .admin-bar .cart, .admin-bar .lightbox { top: 46px; } }

.woocommerce-Price-amount { direction: ltr; unicode-bidi: isolate; }   /* "-₪50" ולא "₪50-" בשורה עברית (גם כש-WooCommerce מסנן את ה-bdi) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- סל צד: שגיאה, תמונה למוצר רגיל, קישור לסל המלא ---------- */
.cart__error { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--night-12); border-radius: 12px; background: var(--night-05); color: var(--night); font-size: var(--fs5); }
.cart-item__thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.cart__view { display: block; margin-top: 12px; text-align: center; font-size: var(--fs5); }
.cart__sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--night-12); font-size: var(--fs5); }
.cart__sum dt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--night-72); }
.cart__sum dd { margin: 0; text-align: end; font-weight: 700; white-space: nowrap; }
.cart__sum-x { font-size: 13px; color: var(--night-72); }
.cart__hints { margin: 18px 0; }

/* ---------- קופון (סל צד, עמוד הסל, עמוד התשלום) ---------- */
.coupon-box { font-size: var(--fs5); }
.coupon-box__toggle, .coupon-box__label { display: inline-flex; align-items: center; gap: .55em; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.coupon-box__toggle { min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.coupon-box__toggle .ic, .coupon-box__label .ic { width: 1.25em; height: 1.25em; }
.coupon-box__row { display: flex; gap: 8px; margin-top: 10px; }
.coupon-box__row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid var(--night-12); border-radius: 999px; background: #fff; color: var(--night); font: inherit; }
.coupon-box__row input::placeholder { color: var(--night-72); }
.coupon-box__apply { flex: none; min-height: 48px; padding: 0 1.3em; border: 1.5px solid var(--night); border-radius: 999px; background: transparent; color: var(--night); font: inherit; font-weight: 700; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.coupon-box__apply:hover { background: var(--night); color: var(--ice); }
.coupon-box__apply:disabled { opacity: .5; cursor: progress; }
.coupon-box__msg { margin-top: 8px; }
.coupon-box__msg:empty { display: none; }
.coupon-box__msg.is-error { color: var(--accent); }
.coupon-box input[aria-invalid="true"] { border-color: var(--accent); }
.coupon-box--drawer .coupon-box__toggle { min-height: 36px; }
/* על רקע כהה (הסיכום בעמודי הסל והתשלום) */
.shop-sum .coupon-box__row input { background: var(--ice-08); border-color: var(--ice-16); color: var(--ice); }
.shop-sum .coupon-box__row input::placeholder { color: var(--ice-50); }
.shop-sum .coupon-box__apply { border-color: var(--ice-50); color: var(--ice); }
.shop-sum .coupon-box__apply:hover { background: var(--ice); border-color: var(--ice); color: var(--night); }
.shop-sum .coupon-box__msg.is-error { color: color-mix(in srgb, var(--accent) 50%, var(--ice)); }
.shop-sum .coupon-box input[aria-invalid="true"] { border-color: color-mix(in srgb, var(--accent) 50%, var(--ice)); }
.shop-sum :focus-visible { outline-color: var(--ice); }

/* ---------- הצעות מהמבצעים ("עוד פריט אחד, והוא עלינו") ---------- */
.promo-hints { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.promo-hint { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--night-05); font-size: var(--fs5); line-height: 1.35; }
.promo-hint > .ic { width: 1.25em; height: 1.25em; }
.promo-hint__text { display: grid; gap: 2px; min-width: 0; }
.promo-hint__text small { font-size: 13px; color: var(--night-72); }
.shop-sum .promo-hint__text small { color: var(--ice-72); }
.promo-hint__btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 .95em; border: 1.5px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.promo-hint__btn:hover { background: var(--night); border-color: var(--night); color: var(--ice); }
.promo-hint__btn:disabled { opacity: .5; cursor: progress; }
.promo-hint--info { padding-inline: 0; background: transparent; color: var(--night-72); }
.shop-sum .promo-hint { background: var(--ice-08); }
.shop-sum .promo-hint__btn:hover { background: var(--ice); border-color: var(--ice); color: var(--night); }
.shop-sum .promo-hint--info { background: transparent; color: var(--ice-72); }
@media (max-width: 900px) { .promo-hint__btn { min-height: 44px; } }

/* ---------- טקסט חופשי (מאמרים, תקנון, עמודים רגילים) ---------- */
.entry { color: var(--night-72); font-size: var(--fs4); line-height: 1.75; }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-family: var(--display); font-weight: var(--display-w); font-size: var(--fs3); line-height: 1.25; color: var(--night); margin-top: 1.8em; }
.entry h3 { font-size: var(--fs4); font-weight: 700; color: var(--night); margin-top: 1.6em; }
.entry h4 { font-size: var(--fs5); font-weight: 700; color: var(--night); margin-top: 1.4em; }
.entry h2 + *, .entry h3 + *, .entry h4 + * { margin-top: .5em; }
.entry a { color: var(--night); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .22em; }
.entry a:hover { text-decoration-thickness: 2px; }
.entry strong, .entry b { color: var(--night); font-weight: 700; }
.entry ul, .entry ol { padding-inline-start: 1.2em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li + li { margin-top: .4em; }
.entry li::marker { color: var(--accent); }
.entry blockquote { margin: 1.6em 0; padding-inline-start: 1em; border-inline-start: 2px solid var(--accent); font-family: var(--display); font-weight: var(--display-w); font-size: var(--fs3); line-height: 1.35; color: var(--night); }
.entry img, .entry video, .entry iframe { max-width: 100%; height: auto; border-radius: var(--radius); }
.entry figure { margin: 1.6em 0; }
.entry figcaption { margin-top: 8px; font-size: var(--fs5); color: var(--night-72); }
.entry table { width: 100%; border-collapse: collapse; font-size: var(--fs5); }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--night-12); text-align: start; }
.entry hr { border: 0; border-top: 1px solid var(--night-12); margin: 2em 0; }
.entry .alignleft { float: left; margin: .4em 0 1em 1.5em; max-width: 50%; }
.entry .alignright { float: right; margin: .4em 1.5em 1em 0; max-width: 50%; }
.entry .aligncenter { display: block; margin-inline: auto; }
.entry .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4em; border-radius: 999px; background: var(--accent); color: var(--ice); font-weight: 700; text-decoration: none; }
.entry .wp-block-button__link:hover { background: var(--accent-hover); }
.entry::after { content: ""; display: block; clear: both; }

/* עמוד טקסט (תקנון): הכותרות הראשיות מפרידות בין פרקים */
.terms__body.entry > h2 { margin-top: var(--gap-group); padding-top: var(--gap-group); border-top: 1px solid var(--night-12); }
.terms__body.entry > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.terms__grid--single .terms__body { grid-column: 3 / span 8; }
.entry--page { max-width: 72ch; margin-inline: auto; }

/* ---------- פתיחות עמוד נוספות ---------- */
.page-hero--slim { padding-bottom: var(--gap-group); }
.page-hero--slim h1 { font-size: var(--fs2); }
.page-hero--article h1.article__title { font-size: var(--fs2); line-height: 1.12; max-width: 22ch; }
.article__meta { font-size: var(--fs5); color: var(--ice-72); }

/* ---------- בלוג: "שווה קריאה" ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-group) var(--gap-in); }
.post-card { display: flex; flex-direction: column; gap: 18px; }
.post-card__media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--night); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--night); }
.post-card__ph img { width: 44px; height: auto; opacity: .7; }
.post-card__meta { font-size: var(--fs5); color: var(--night-72); }
.post-card__title { font-family: var(--display); font-weight: var(--display-w); font-size: var(--fs3); line-height: 1.25; margin-top: 8px; }
.post-card__title a { color: var(--night); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .18em; }
.post-card__excerpt { margin-top: 10px; color: var(--night-72); }
.post-card .link { margin-top: 14px; }
.post-card__body { display: flex; flex-direction: column; align-items: flex-start; }

.post-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap-in); align-items: center; }
.post-card--feature .post-card__media { grid-column: 1 / span 7; aspect-ratio: 16 / 10; }
.post-card--feature .post-card__body { grid-column: 8 / -1; }
.post-card--feature .post-card__title { font-size: var(--fs2); line-height: 1.12; }

.pager { margin-top: var(--section); }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager .page-numbers { display: grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--night-12); color: var(--night); text-decoration: none; font-weight: 700; }
.pager .page-numbers.current { background: var(--night); color: var(--ice); border-color: var(--night); }
.pager a.page-numbers:hover { border-color: var(--night); }
.pager .dots { border: 0; }
.empty-state { text-align: center; padding: var(--section) 0; }
.empty-state h2 { font-size: var(--fs2); }
.empty-state p { margin-top: 12px; color: var(--night-72); }

/* ---------- מאמר בודד ---------- */
.article__wrap { max-width: calc(760px + var(--inner) * 2); }
.article__cover { margin: 0 0 var(--gap-group); overflow: hidden; border-radius: var(--radius); }
.article__cover img { width: 100%; height: auto; display: block; }
.article__cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--gap-in); margin-top: var(--gap-group); padding: var(--gap-in); border-radius: var(--radius); background: var(--night); color: var(--ice); }
.article__cta h2 { font-family: var(--display); font-weight: var(--display-w); font-size: var(--fs3); }
.article__cta p { margin-top: 6px; color: var(--ice-72); }
.article__cta-mini { display: flex; align-items: flex-end; gap: 2px; height: 72px; }
.article__cta-mini img { height: 100%; width: auto; max-width: none; }
.article__back { margin-top: var(--gap-group); }

/* ---------- עמודי WooCommerce: סל, תשלום, חשבון ---------- */
.page-body--shop { padding-top: var(--gap-group); }
.shop-content { color: var(--night); font-size: var(--fs5); }
.shop-content a { color: var(--night); }
.shop-content .woocommerce-message, .shop-content .woocommerce-info, .shop-content .woocommerce-error,
.shop-content .wc-block-components-notice-banner {
  border: 1px solid var(--night-12); border-radius: 14px; background: var(--night-05); color: var(--night); padding: 14px 18px;
}
.shop-content .woocommerce-message::before, .shop-content .woocommerce-info::before, .shop-content .woocommerce-error::before { color: var(--accent); }
.shop-content .button, .shop-content button.button, .shop-content input.button, .shop-content a.checkout-button, .shop-content #place_order,
.shop-content .wc-block-components-button:not(.is-link), .shop-content .wc-block-cart__submit-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6em; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--ice) !important; font-family: var(--font); font-size: var(--fs4); font-weight: 700; text-decoration: none; cursor: pointer;
}
.shop-content .button:hover, .shop-content #place_order:hover, .shop-content .wc-block-components-button:not(.is-link):hover { background: var(--accent-hover); color: var(--ice); }
.shop-content .button.alt, .shop-content a.checkout-button { width: 100%; }
.shop-content input[type="text"], .shop-content input[type="email"], .shop-content input[type="tel"], .shop-content input[type="password"],
.shop-content input[type="number"], .shop-content select, .shop-content textarea, .shop-content .select2-container .select2-selection {
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--night-12); border-radius: 12px; background: #fff; color: var(--night); font: inherit;
}
.shop-content input:focus-visible, .shop-content select:focus-visible, .shop-content textarea:focus-visible { outline: 2px solid var(--night); outline-offset: 2px; }
.shop-content label { font-weight: 700; }
.shop-content table.shop_table { border: 0; border-radius: var(--radius); background: #fff; border-collapse: separate; overflow: hidden; }
.shop-content table.shop_table th, .shop-content table.shop_table td { padding: 16px; border-color: var(--night-12); }
.shop-content .product-name .variation, .shop-content dl.variation { font-size: var(--fs5); color: var(--night-72); }
.shop-content .product-thumbnail img { width: 64px; border-radius: 10px; }
.shop-content h2, .shop-content h3 { font-family: var(--display); font-weight: var(--display-w); font-size: var(--fs3); color: var(--night); margin: 0 0 16px; }
.shop-content .wc-block-components-sidebar { background: #fff; border-radius: var(--radius); padding: var(--gap-in); }
.shop-content .wc-block-components-totals-wrapper, .shop-content .wc-block-components-order-summary { border-color: var(--night-12); }
.shop-content .wc-block-components-product-metadata, .shop-content .wc-block-components-product-details { color: var(--night-72); }
.shop-content .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.shop-content .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; }
.shop-content .woocommerce-MyAccount-navigation .is-active a { background: var(--night); color: var(--ice); }

/* ---------- מובייל ---------- */
@media (max-width: 900px) {
  .posts { grid-template-columns: 1fr; gap: var(--gap-group); }
  .post-card--feature { display: flex; flex-direction: column; }
  .article__cta { grid-template-columns: 1fr; text-align: start; }
  .article__cta-mini { display: none; }
  .terms__grid--single .terms__body { grid-column: auto; }
  .entry .alignleft, .entry .alignright { float: none; margin: 1em 0; max-width: 100%; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
}
