/*
Theme Name: JAB Optics
Theme URI: https://example.com/jab-optics
Author: JAB Studio
Description: Сучасна українська тема WooCommerce для магазину окулярів JAB.
Version: 3.3.3
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: jab-optics
*/

:root {
  --jab-orange: #f58220;
  --jab-orange-dark: #d9680f;
  --jab-ink: #111827;
  --jab-text: #374151;
  --jab-muted: #6b7280;
  --jab-line: #e5e7eb;
  --jab-soft: #fff7ed;
  --jab-white: #ffffff;
  --jab-radius: 22px;
  --jab-shadow: 0 16px 45px rgba(17, 24, 39, .09);
  --jab-container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--jab-text);
  background: var(--jab-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site > .site-main,
.site > main { flex: 1 0 auto; }
.site-footer { margin-top: auto; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 32px), var(--jab-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-topbar { background: var(--jab-ink); color: #fff; font-size: 13px; }
.site-topbar__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-topbar__items { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-topbar a:hover { color: #fed7aa; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(229,231,235,.88); }
.site-header__inner { min-height: 84px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding > a { display: inline-flex; align-items: center; }
.site-branding img { width: 90px; max-height: 68px; object-fit: contain; object-position: left center; display: block; }
.primary-menu { list-style: none; display: flex; align-items: center; justify-content: center; gap: 28px; margin: 0; padding: 0; }
.primary-menu a { color: var(--jab-ink); font-weight: 650; font-size: 15px; position: relative; }
.primary-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--jab-orange); transition: right .2s ease; }
.primary-menu a:hover::after, .primary-menu .current-menu-item > a::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--jab-line); border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--jab-ink); position: relative; transition: .2s ease; }
.icon-button:hover { transform: translateY(-2px); border-color: var(--jab-orange); color: var(--jab-orange); }
.icon-button svg { width: 21px; height: 21px; }
.cart-count { position: absolute; right: -3px; top: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--jab-orange); color: #fff; font-size: 11px; font-weight: 800; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 7px; color: var(--jab-ink); }
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #fff7ed 0%, #ffedd5 54%, #fed7aa 100%); }
.hero::before { content: ""; position: absolute; width: 380px; height: 380px; border: 72px solid rgba(245,130,32,.10); border-radius: 50%; right: -130px; top: -115px; }
.hero__inner { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding-block: 72px; position: relative; z-index: 2; }
.eyebrow { color: var(--jab-orange-dark); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; margin-bottom: 16px; }
.hero h1 { color: var(--jab-ink); font-size: clamp(44px, 6vw, 78px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 24px; max-width: 760px; }
.hero h1 span { color: var(--jab-orange); }
.hero__text { font-size: 19px; max-width: 620px; color: #4b5563; margin: 0 0 34px; }
.button-row { display: flex; gap: 14px; flex-wrap: wrap; }
.button { min-height: 50px; padding: 0 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; border: 1px solid transparent; transition: .2s ease; cursor: pointer; }
.button--primary { background: var(--jab-orange); color: #fff; box-shadow: 0 12px 30px rgba(245,130,32,.28); }
.button--primary:hover { background: var(--jab-orange-dark); transform: translateY(-2px); color: #fff; }
.button--secondary { background: rgba(255,255,255,.72); color: var(--jab-ink); border-color: rgba(17,24,39,.14); }
.button--secondary:hover { border-color: var(--jab-orange); color: var(--jab-orange-dark); }
.hero__meta { margin-top: 38px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero__meta strong { display: block; color: var(--jab-ink); font-size: 20px; }
.hero__meta span { color: var(--jab-muted); font-size: 13px; }
.hero-visual { position: relative; min-height: 450px; display: grid; place-items: center; }
.hero-card { width: min(100%, 500px); aspect-ratio: 1 / 1; border-radius: 34px; background: #fff; box-shadow: var(--jab-shadow); overflow: hidden; position: relative; }
.hero-card::before { display: none; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.floating-note { position: absolute; background: #fff; border-radius: 18px; padding: 14px 17px; box-shadow: var(--jab-shadow); color: var(--jab-ink); font-size: 13px; font-weight: 750; }
.floating-note--one { left: 0; top: 62px; }
.floating-note--two { right: -42px; bottom: 20px; }

/* Sections */
.section { padding-block: 92px; }
.section--soft { background: #fafafa; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 38px; }
.section-head h2 { margin: 0; color: var(--jab-ink); font-size: clamp(32px, 4vw, 50px); line-height: 1.1; letter-spacing: -.035em; }
.section-head p { margin: 10px 0 0; max-width: 660px; color: var(--jab-muted); }
.text-link { color: var(--jab-orange-dark); font-weight: 800; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-grid--three { grid-template-columns: repeat(3, 1fr); }
.category-card { min-height: 290px; position: relative; overflow: hidden; border-radius: var(--jab-radius); background: var(--jab-soft); padding: 0; display: flex; flex-direction: column; justify-content: flex-end; transition: .25s ease; border: 1px solid #ffedd5; }
.category-card__text { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 22px 24px; background: linear-gradient(to top, rgba(15,23,42,.84), rgba(15,23,42,.45), rgba(15,23,42,0)); }
.category-card__image { width: 100%; height: 100%; min-height: 290px; object-fit: cover; display: block; }
.category-card:hover { transform: translateY(-7px); box-shadow: var(--jab-shadow); }
.category-card:nth-child(2) { border-color: #e5e7eb; }
.category-card:nth-child(3) { border-color: #dbeafe; }
.category-card__label { color: #fff; font-weight: 850; font-size: 22px; position: relative; z-index: 2; }
.category-card__sub { color: rgba(255,255,255,.82); font-size: 13px; position: relative; z-index: 2; }
.category-card__image { transition: transform .35s ease; }
.category-card:hover .category-card__image { transform: scale(1.04); }

.benefits { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--jab-line); border-radius: var(--jab-radius); overflow: hidden; background: #fff; }
.benefit { padding: 30px; border-right: 1px solid var(--jab-line); }
.benefit:last-child { border-right: 0; }
.benefit__icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--jab-soft); color: var(--jab-orange); border-radius: 14px; margin-bottom: 17px; }
.benefit__icon svg { width: 24px; height: 24px; }
.benefit h3 { color: var(--jab-ink); margin: 0 0 7px; font-size: 17px; }
.benefit p { margin: 0; color: var(--jab-muted); font-size: 14px; }

.product-placeholder-grid, .jab-popular-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.product-placeholder { border: 1px solid var(--jab-line); border-radius: 20px; padding: 14px; background: #fff; transition: .2s ease; }
.product-placeholder:hover { transform: translateY(-5px); box-shadow: var(--jab-shadow); }
.product-placeholder__image { min-height: 245px; border-radius: 15px; background: #f8fafc; display: grid; place-items: center; padding: 18px; position: relative; overflow: hidden; }
.product-placeholder__image--real img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}
.product-placeholder--real h3 a { color: inherit; }
.product-placeholder__badge { position: absolute; left: 12px; top: 12px; background: var(--jab-orange); color: #fff; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 850; }
.product-placeholder h3 { color: var(--jab-ink); margin: 16px 4px 4px; font-size: 17px; }
.product-placeholder p { margin: 0 4px 11px; color: var(--jab-muted); font-size: 13px; }
.product-placeholder__price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 4px 5px;
  color: var(--jab-ink);
  font-weight: 850;
}
.product-placeholder__price > span:first-child {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 18px;
  line-height: 1.2;
}
.product-placeholder__price > span:first-child .amount,
.product-placeholder__price > span:first-child .woocommerce-Price-amount,
.product-placeholder__price > span:first-child .woocommerce-Price-currencySymbol {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline !important;
  background: transparent !important;
  color: inherit !important;
}
.product-placeholder__price > span:last-child,
.product-placeholder__arrow {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--jab-ink);
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.product-placeholder__arrow:hover,
.product-placeholder__arrow:focus-visible {
  transform: translateX(2px);
  background: var(--jab-orange);
  color: #fff;
}

.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.story--text-only { grid-template-columns: 1fr; max-width: 880px; }
.story__visual { min-height: 480px; border-radius: 28px; background: linear-gradient(150deg, var(--jab-ink), #374151); color: #fff; display: grid; place-items: center; position: relative; overflow: hidden; }
.story__visual::before { content: "JAB"; font-size: 170px; font-weight: 900; color: rgba(255,255,255,.05); transform: rotate(-12deg); }
.story__visual img { position: absolute; width: 65%; filter: brightness(0) invert(1); opacity: .94; }
.story h2 { color: var(--jab-ink); font-size: clamp(34px,4vw,52px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 22px; }
.story p { color: var(--jab-muted); font-size: 17px; }
.story-list { display: grid; gap: 13px; margin: 27px 0 31px; }
.story-list div { display: flex; align-items: center; gap: 12px; color: var(--jab-ink); font-weight: 700; }
.story-list span { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--jab-orange); font-size: 13px; }

.cta { padding-block: 82px; }
.cta__box { padding: 58px; border-radius: 30px; background: var(--jab-orange); color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; position: relative; overflow: hidden; }
.cta__box::after { content: ""; position: absolute; width: 270px; height: 270px; border: 50px solid rgba(255,255,255,.11); border-radius: 50%; right: -80px; top: -100px; }
.cta h2 { margin: 0 0 8px; font-size: clamp(30px,4vw,48px); line-height: 1.1; position: relative; z-index: 2; }
.cta p { margin: 0; opacity: .88; position: relative; z-index: 2; }
.cta .button { background: #fff; color: var(--jab-ink); position: relative; z-index: 2; }
.cta .button:hover { transform: translateY(-2px); }

/* Content & WooCommerce */
.site-main { min-height: 55vh; }
.content-wrap { padding-block: 64px; }
.entry-header h1 { color: var(--jab-ink); font-size: clamp(36px,5vw,62px); letter-spacing: -.04em; }
.woocommerce .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 999px !important; background: var(--jab-orange) !important; color: #fff !important; padding: .9em 1.4em !important; }
.woocommerce ul.products li.product { border: 1px solid var(--jab-line); border-radius: 18px; padding: 14px; background: #fff; transition: .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--jab-shadow); }
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 230px !important;
  margin: 0 0 14px !important;
  padding: 12px;
  border-radius: 13px;
  background: #f8fafc;
  object-fit: contain !important;
  object-position: center !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--jab-ink); font-weight: 750; }
.woocommerce div.product div.images img { border-radius: 22px; background: #f8fafc; }
.woocommerce div.product .product_title { color: var(--jab-ink); font-size: clamp(34px,5vw,56px); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--jab-orange); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--jab-orange); }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding-top: 68px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 44px; padding-bottom: 48px; }
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { width: 112px; max-height: 90px; object-fit: contain; object-position: left center; display: block; filter: drop-shadow(0 8px 20px rgba(0,0,0,.15)); }
.footer-about { max-width: 330px; margin-top: 16px; color: #94a3b8; }
.site-footer h3 { color: #fff; margin: 0 0 17px; font-size: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #94a3b8; font-size: 13px; }

@media (max-width: 1050px) {
  .site-header__inner { grid-template-columns: 150px 1fr auto; gap: 16px; }
  .primary-menu { gap: 16px; }
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .category-grid, .product-placeholder-grid, .jab-popular-grid { grid-template-columns: repeat(2,1fr); }
  .benefits { grid-template-columns: repeat(2,1fr); }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit:nth-child(-n+2) { border-bottom: 1px solid var(--jab-line); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .site-topbar__items:first-child span:nth-child(2) { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; min-height: 74px; }
  .main-navigation { grid-column: 1 / -1; display: none; padding-bottom: 18px; }
  .main-navigation.is-open { display: block; }
  .primary-menu { display: grid; justify-content: start; gap: 0; }
  .primary-menu li { border-top: 1px solid var(--jab-line); }
  .primary-menu a { display: block; padding: 14px 0; }
  .primary-menu a::after { display: none; }
  .menu-toggle { display: block; }
  .header-actions .search-button { display: none; }
  .hero__inner { grid-template-columns: 1fr; min-height: auto; padding-block: 58px; }
  .hero-visual { min-height: 360px; }
  .hero-card { width: min(90%, 430px); }
  .floating-note--one { left: 5%; }
  .floating-note--two { right: 3%; }
  .story { grid-template-columns: 1fr; }
  .story__visual { min-height: 360px; }
  .store-page-hero--has-media { min-height: 390px; align-items: flex-end; }
  .store-page-hero--has-media::before { background: linear-gradient(0deg, rgba(255,250,245,.98) 0%, rgba(255,245,232,.92) 45%, rgba(255,245,232,.18) 100%); }
  .store-page-hero__content { width: 100%; }
  .cta__box { grid-template-columns: 1fr; padding: 42px 30px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 22px), var(--jab-container)); }
  .site-topbar__inner { justify-content: center; }
  .site-topbar__items:last-child { display: none; }
  .site-branding img { width: 74px; }
  .header-actions { gap: 6px; }
  .icon-button { width: 40px; height: 40px; }
  .hero h1 { font-size: 43px; }
  .hero__text { font-size: 17px; }
  .hero__meta { gap: 18px; }
  .section { padding-block: 68px; }
  .section-head { display: block; }
  .section-head .text-link { display: inline-block; margin-top: 14px; }
  .category-grid, .product-placeholder-grid, .jab-popular-grid, .benefits, .footer-grid { grid-template-columns: 1fr; }
  .benefit { border-right: 0; border-bottom: 1px solid var(--jab-line); }
  .benefit:last-child { border-bottom: 0; }
  .category-card { min-height: 260px; }
  .product-placeholder__image { min-height: 220px; }
  .story__visual { min-height: 300px; }
  .footer-grid { gap: 30px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding-block: 18px; }
}

/* =========================================================
   Store system pages: catalogue, cart, checkout and account
   ========================================================= */
.store-system-page,
.woocommerce-main {
  background:
    radial-gradient(circle at 92% 4%, rgba(245,130,32,.09), transparent 280px),
    linear-gradient(#fff, #fff 420px, #f8fafc 420px, #f8fafc);
}

.store-page-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 38px;
  padding: clamp(34px,5vw,62px);
  border: 1px solid #ffedd5;
  border-radius: 30px;
  background: linear-gradient(125deg, #fffaf5 0%, #ffedd5 100%);
}
.store-page-hero::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -70px;
  top: -95px;
  border: 42px solid rgba(245,130,32,.1);
  border-radius: 50%;
}
.store-page-hero .eyebrow { margin: 0 0 10px; }
.store-page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 0 12px;
  color: var(--jab-ink);
  font-size: clamp(38px,5vw,64px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.store-page-hero p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: var(--jab-muted);
  font-size: clamp(16px,2vw,19px);
}
.store-page-hero--catalogue { margin-bottom: 30px; }
.store-page-hero--has-media { min-height: 360px; display: flex; align-items: center; padding: clamp(36px,5vw,66px); isolation: isolate; }
.store-page-hero--has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,250,245,.98) 0%, rgba(255,245,232,.92) 38%, rgba(255,245,232,.45) 63%, rgba(255,245,232,.05) 100%); }
.store-page-hero--has-media::after { display: none; }
.store-page-hero__content { position: relative; z-index: 2; width: min(56%, 680px); }
.store-page-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.store-page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.store-page-hero--simple { margin-bottom: 30px; }

/* General WooCommerce interface */
.woocommerce,
.wc-block-cart,
.wc-block-checkout { color: var(--jab-text); }
.woocommerce a { transition: color .18s ease; }
.woocommerce a:not(.button):hover { color: var(--jab-orange-dark); }

.woocommerce .woocommerce-breadcrumb {
  margin: 0 0 22px;
  color: var(--jab-muted);
  font-size: 13px;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--jab-ink); font-weight: 700; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  margin: 0 0 22px !important;
  padding: 18px 20px 18px 54px !important;
  border: 1px solid var(--jab-line) !important;
  border-top: 1px solid var(--jab-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(17,24,39,.05);
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { top: 18px !important; left: 20px !important; }

.woocommerce form .form-row label,
.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label {
  color: var(--jab-ink);
  font-size: 13px;
  font-weight: 750;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container--default .select2-selection--single,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-address-form select {
  min-height: 52px;
  border: 1px solid #dbe1e8 !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: var(--jab-ink) !important;
  box-shadow: none !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select { padding: 12px 14px; }
.woocommerce form .form-row textarea { min-height: 120px; resize: vertical; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.wc-block-components-text-input input:focus {
  outline: none;
  border-color: var(--jab-orange) !important;
  box-shadow: 0 0 0 4px rgba(245,130,32,.12) !important;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button:not(.is-link) {
  min-height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--jab-orange) !important;
  color: #fff !important;
  padding: .82em 1.45em !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  box-shadow: 0 10px 24px rgba(245,130,32,.2);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:not(.is-link):hover {
  transform: translateY(-2px);
  background: var(--jab-orange-dark) !important;
  box-shadow: 0 14px 28px rgba(245,130,32,.26);
}
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] { opacity: .55; }

/* Catalogue */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 24px; }
.woocommerce .woocommerce-result-count {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--jab-muted);
  font-size: 14px;
}
.woocommerce .woocommerce-ordering select {
  min-height: 48px;
  padding: 0 42px 0 15px;
  border: 1px solid var(--jab-line);
  border-radius: 13px;
  background: #fff;
  color: var(--jab-ink);
}
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 22px;
  clear: both;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 14px 14px 18px;
  border: 1px solid var(--jab-line);
  border-radius: 20px;
  background: #fff;
}
.woocommerce ul.products li.product .price {
  color: var(--jab-ink);
  font-size: 17px;
  font-weight: 850;
}
.woocommerce ul.products li.product .button { width: 100%; margin-top: 12px; }
.woocommerce span.onsale {
  min-width: auto;
  min-height: auto;
  margin: 10px !important;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--jab-orange);
  line-height: 1;
}
.woocommerce nav.woocommerce-pagination { margin-top: 38px; }
.woocommerce nav.woocommerce-pagination ul { overflow: visible; border: 0; display: inline-flex; gap: 8px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--jab-line);
  border-radius: 50%;
  background: #fff;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  border-color: var(--jab-orange);
  background: var(--jab-orange);
  color: #fff;
}

.jab-empty-catalogue {
  clear: both;
  display: grid;
  grid-template-columns: minmax(240px,.72fr) minmax(280px,1fr);
  align-items: center;
  gap: clamp(28px,5vw,72px);
  padding: clamp(28px,5vw,58px);
  border: 1px solid var(--jab-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--jab-shadow);
}
.jab-empty-catalogue__art {
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 34px;
  border-radius: 22px;
  background: linear-gradient(145deg,#fff7ed,#ffedd5);
}
.jab-empty-catalogue__art img { width: min(100%,330px); }
.jab-empty-catalogue h2 {
  margin: 0 0 14px;
  color: var(--jab-ink);
  font-size: clamp(29px,4vw,46px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.jab-empty-catalogue p { max-width: 620px; margin: 0 0 24px; color: var(--jab-muted); }

/* Classic cart */
.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(300px,.7fr);
  gap: 28px;
  align-items: start;
}
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce > .cart-empty,
.woocommerce-cart .woocommerce > .return-to-shop,
.woocommerce-cart .woocommerce > form.woocommerce-cart-form { grid-column: 1; }
.woocommerce-cart .woocommerce > .cart-collaterals { grid-column: 2; grid-row: 1 / span 4; }
.woocommerce-cart table.shop_table {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--jab-line);
  border-radius: 20px;
  background: #fff;
  border-collapse: separate;
}
.woocommerce-cart table.shop_table th {
  padding: 18px 16px;
  border-color: var(--jab-line);
  color: var(--jab-muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.woocommerce-cart table.shop_table td { padding: 18px 16px; border-color: var(--jab-line); }
.woocommerce-cart table.shop_table .product-thumbnail img {
  width: 88px;
  border-radius: 13px;
  background: #f8fafc;
}
.woocommerce-cart table.shop_table .product-name a { color: var(--jab-ink); font-weight: 800; }
.woocommerce-cart table.shop_table input.qty {
  width: 74px;
  min-height: 44px;
  border: 1px solid var(--jab-line);
  border-radius: 11px;
}
.woocommerce-cart table.shop_table td.actions { padding: 18px; background: #f8fafc; }
.woocommerce-cart table.shop_table td.actions .coupon { display: flex; gap: 10px; }
.woocommerce-cart table.shop_table td.actions .coupon .input-text {
  width: 190px !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--jab-line) !important;
  border-radius: 999px !important;
}
.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100%;
  float: none;
  position: sticky;
  top: 112px;
  padding: 26px;
  border: 1px solid var(--jab-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--jab-shadow);
}
.woocommerce-cart .cart-collaterals .cart_totals h2 {
  margin: 0 0 18px;
  color: var(--jab-ink);
  font-size: 25px;
}
.woocommerce-cart .cart-collaterals table { border: 0; border-collapse: collapse; }
.woocommerce-cart .cart-collaterals th,
.woocommerce-cart .cart-collaterals td { padding: 15px 0; border-color: var(--jab-line); }
.woocommerce-cart .wc-proceed-to-checkout { padding: 20px 0 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { width: 100%; margin: 0; font-size: 16px; }
.woocommerce-cart .cart-empty {
  margin: 0 !important;
  padding: 36px !important;
  text-align: center;
  border-radius: 22px !important;
}
.woocommerce-cart .return-to-shop { text-align: center; }

/* Cart block */
.wc-block-cart {
  padding: 24px;
  border: 1px solid var(--jab-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17,24,39,.06);
}
.wc-block-cart-items {
  overflow: hidden;
  border: 1px solid var(--jab-line) !important;
  border-radius: 16px;
}
.wc-block-cart-items th,
.wc-block-cart-items td { padding: 18px !important; }
.wc-block-components-product-name { color: var(--jab-ink); font-weight: 800; }
.wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 3.2%; }
.wc-block-components-totals-wrapper { border-color: var(--jab-line) !important; }
.wc-block-cart__submit-button { width: 100%; }

/* Classic checkout */
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr);
  gap: 28px 34px;
  align-items: start;
}
.woocommerce-checkout form.checkout > #customer_details { grid-column: 1; }
.woocommerce-checkout form.checkout > h3#order_review_heading,
.woocommerce-checkout form.checkout > #order_review { grid-column: 2; }
.woocommerce-checkout form.checkout > h3#order_review_heading {
  grid-row: 1;
  align-self: start;
  z-index: 2;
  margin: 0;
  padding: 26px 26px 0;
  color: var(--jab-ink);
  font-size: 25px;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.woocommerce-checkout form.checkout > #order_review {
  grid-row: 1;
  align-self: start;
  margin: 0;
  padding: 78px 26px 26px;
  border: 1px solid var(--jab-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--jab-shadow);
}
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  width: 100%;
  float: none;
  margin: 0 0 22px;
  padding: 26px;
  border: 1px solid var(--jab-line);
  border-radius: 20px;
  background: #fff;
}
.woocommerce-checkout #customer_details h3 {
  margin: 0 0 20px;
  color: var(--jab-ink);
  font-size: 24px;
}
.woocommerce-checkout-review-order-table {
  border: 0 !important;
  border-collapse: collapse !important;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding: 15px 0 !important; border-color: var(--jab-line) !important; }
.woocommerce-checkout #payment {
  margin-top: 18px;
  border-radius: 16px;
  background: #f8fafc;
}
.woocommerce-checkout #payment ul.payment_methods { border-color: var(--jab-line); }
.woocommerce-checkout #payment div.form-row { padding: 20px; }
.woocommerce-checkout #place_order { width: 100%; min-height: 54px; }

/* Checkout block */
.wc-block-checkout {
  padding: clamp(18px,3vw,30px);
  border: 1px solid var(--jab-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17,24,39,.06);
}
.wc-block-checkout__main { padding-right: 4% !important; }
.wc-block-components-checkout-step {
  padding: 0 0 25px !important;
  margin: 0 0 25px !important;
  border-bottom: 1px solid var(--jab-line);
}
.wc-block-components-checkout-step__heading h2,
.wc-block-components-title { color: var(--jab-ink); }
.wc-block-components-checkout-order-summary {
  overflow: hidden;
  border: 1px solid var(--jab-line) !important;
  border-radius: 17px !important;
  background: #f8fafc;
}

/* My Account */
.woocommerce-account .store-system-page > .container {
  width: min(calc(100% - 32px), 1480px);
}
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 230px minmax(0,1fr);
  gap: 24px;
  align-items: start;
}
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after { display: none; }
.woocommerce-account .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
  position: sticky;
  top: 112px;
  padding: 12px;
  border: 1px solid var(--jab-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(17,24,39,.06);
}
.woocommerce-MyAccount-navigation ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation ul li { margin: 0; }
.woocommerce-MyAccount-navigation ul li a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 11px 14px 11px 44px;
  border-radius: 12px;
  color: var(--jab-text);
  font-weight: 720;
  position: relative;
}
.woocommerce-MyAccount-navigation ul li a::before {
  content: "";
  position: absolute;
  left: 16px;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
  opacity: .72;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--jab-soft);
  color: var(--jab-orange-dark);
}
.woocommerce-MyAccount-navigation-link--customer-logout a { color: #b42318 !important; }
.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fef3f2 !important; }
.woocommerce-MyAccount-content {
  width: 100% !important;
  max-width: 100%;
  float: none !important;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: clamp(24px,3vw,32px);
  border: 1px solid var(--jab-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(17,24,39,.06);
}
.woocommerce-MyAccount-content > p:first-child {
  margin-top: 0;
  color: var(--jab-ink);
  font-size: 17px;
}
.woocommerce-MyAccount-content table.shop_table {
  overflow: hidden;
  border: 1px solid var(--jab-line);
  border-radius: 15px;
  border-collapse: separate;
}
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td { padding: 15px; border-color: var(--jab-line); }
.woocommerce-MyAccount-content .woocommerce-Address {
  width: calc(50% - 10px);
  padding: 22px;
  border: 1px solid var(--jab-line);
  border-radius: 16px;
  background: #f8fafc;
}
.woocommerce-MyAccount-content .woocommerce-Address-title h2 { color: var(--jab-ink); font-size: 20px; }

.jab-account-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-top: 28px;
}
.jab-account-card {
  min-height: 205px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px;
  border: 1px solid var(--jab-line);
  border-radius: 17px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.jab-account-card:hover {
  transform: translateY(-4px);
  border-color: #fed7aa;
  box-shadow: 0 15px 32px rgba(17,24,39,.08);
  color: inherit !important;
}
.jab-account-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 10px solid #ffedd5;
  border-radius: 13px;
  background: var(--jab-orange);
}
.jab-account-card strong { margin-bottom: 7px; color: var(--jab-ink); font-size: 16px; }
.jab-account-card > span:not(.jab-account-card__icon) { color: var(--jab-muted); font-size: 13px; line-height: 1.5; }
.jab-account-card em { margin-top: auto; padding-top: 16px; color: var(--jab-orange-dark); font-size: 13px; font-style: normal; font-weight: 800; }

/* Logged-out account forms */
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-account:not(.logged-in) .woocommerce h2 { color: var(--jab-ink); font-size: 28px; }
.woocommerce-account:not(.logged-in) .woocommerce form.login,
.woocommerce-account:not(.logged-in) .woocommerce form.register {
  margin-top: 16px;
  padding: 28px;
  border: 1px solid var(--jab-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(17,24,39,.06);
}
.woocommerce-account:not(.logged-in) .u-columns {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 28px;
}
.woocommerce-account:not(.logged-in) .u-column1,
.woocommerce-account:not(.logged-in) .u-column2 { width: auto; float: none; }

@media (max-width: 1050px) {
  .woocommerce ul.products { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
  .woocommerce-cart .woocommerce > .cart-collaterals,
  .woocommerce-checkout form.checkout > h3#order_review_heading,
  .woocommerce-checkout form.checkout > #order_review {
    grid-column: 1;
    grid-row: auto;
  }
  .woocommerce-checkout form.checkout > #order_review { margin-top: -28px; }
  .woocommerce-cart .cart-collaterals .cart_totals { position: static; }
  .jab-account-cards { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .jab-empty-catalogue { grid-template-columns: 1fr; }
  .jab-empty-catalogue__art { min-height: 220px; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-navigation { position: static; }
  .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .woocommerce-MyAccount-navigation ul li { flex: 0 0 auto; }
  .woocommerce-MyAccount-navigation ul li a { padding-left: 14px; white-space: nowrap; }
  .woocommerce-MyAccount-navigation ul li a::before { display: none; }
  .woocommerce-account:not(.logged-in) .u-columns { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .store-page-hero { margin-bottom: 24px; padding: 30px 22px; border-radius: 22px; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering { width: 100%; float: none; }
  .woocommerce .woocommerce-ordering select { width: 100%; }
  .wc-block-cart,
  .wc-block-checkout,
  .woocommerce-MyAccount-content { padding: 17px; border-radius: 18px; }
  .woocommerce-cart table.shop_table_responsive tr td { padding: 13px 14px; }
  .woocommerce-cart table.shop_table td.actions .coupon { display: grid; }
  .woocommerce-cart table.shop_table td.actions .coupon .input-text,
  .woocommerce-cart table.shop_table td.actions .coupon .button { width: 100% !important; }
  .woocommerce-cart table.shop_table td.actions > .button { width: 100%; margin-top: 10px; }
  .woocommerce-checkout #customer_details .col-1,
  .woocommerce-checkout #customer_details .col-2 { padding: 19px; }
  .woocommerce-checkout form.checkout > h3#order_review_heading { padding: 21px 20px 0; }
  .woocommerce-checkout form.checkout > #order_review { padding: 18px 20px 22px; }
  .woocommerce-MyAccount-content .woocommerce-Address { width: 100%; margin-bottom: 14px; }
}


/* Contact page */
.jab-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.jab-contact-card { padding: 24px; border: 1px solid var(--jab-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(17,24,39,.05); }
.jab-contact-card h3 { margin: 0 0 10px; color: var(--jab-ink); }
.jab-contact-card a { display: block; margin-top: 7px; color: var(--jab-text); font-weight: 700; }
.jab-contact-card a:hover { color: var(--jab-orange-dark); }
@media (max-width: 700px) { .jab-contact-grid { grid-template-columns: 1fr; } }

/* Patch 1.6: full product images without thumbnail crop */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img {
  width: 100% !important;
  height: 230px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f8fafc !important;
  padding: 10px !important;
}
.jab-popular-grid .product-placeholder__image { height: 250px; }
.jab-popular-grid .product-placeholder__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f8fafc;
}
.woocommerce-form-coupon-toggle, form.checkout_coupon { display: none !important; }

/* Patch 1.9: compact checkout review and clean cart shipping summary */
.woocommerce-cart .woocommerce-shipping-calculator,
.woocommerce-cart .shipping-calculator-button,
.woocommerce-cart .woocommerce-shipping-destination,
.woocommerce-cart .woocommerce-shipping-contents {
  display: none !important;
}

.woocommerce-cart .cart_totals .shipping th,
.woocommerce-cart .cart_totals .shipping td {
  vertical-align: top;
}

@media (min-width: 1051px) {
  .woocommerce-checkout form.checkout > h3#order_review_heading,
  .woocommerce-checkout form.checkout > #order_review {
    grid-column: 2;
    grid-row: 1;
  }
}


/* Information pages */
.jab-info-page { max-width: 900px; display: grid; gap: 18px; color: var(--jab-text); }
.jab-info-page h2 { margin: 20px 0 0; color: var(--jab-ink); font-size: clamp(26px,3vw,36px); }
.jab-info-page p { margin: 0; line-height: 1.75; }
.jab-info-page ul, .jab-info-page ol { margin: 0; padding-left: 24px; display: grid; gap: 10px; line-height: 1.65; }

/* ================================================================
   JAB 3.0 — fully server-rendered checkout (no checkout AJAX)
   ================================================================ */
.jab-manual-checkout-page .site-main { background: linear-gradient(180deg, #fff 0, #fff 260px, #f8fafc 260px); }
.jab-checkout-shell { padding: 44px 0 80px; }
.jab-checkout-hero { margin-bottom: 28px; }
.jab-checkout-hero h1 { max-width: 820px; }
.jab-checkout-alert {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fff1f2;
  color: #9f1239;
  box-shadow: 0 12px 28px rgba(159,18,57,.08);
  outline: none;
}
.jab-checkout-alert strong { display: block; margin-bottom: 7px; color: #881337; }
.jab-checkout-alert ul { margin: 0; padding-left: 20px; }
.jab-manual-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr);
  gap: 30px;
  align-items: start;
}
.jab-checkout-fields { display: grid; gap: 20px; }
.jab-checkout-card,
.jab-order-summary,
.jab-checkout-empty {
  border: 1px solid var(--jab-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17,24,39,.07);
}
.jab-checkout-card { padding: clamp(22px, 3vw, 30px); }
.jab-checkout-card__heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}
.jab-checkout-card__heading h2 { margin: 0 0 4px; color: var(--jab-ink); font-size: clamp(21px, 2.5vw, 26px); line-height: 1.2; }
.jab-checkout-card__heading p { margin: 0; color: var(--jab-muted); font-size: 14px; }
.jab-checkout-step {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--jab-soft);
  color: var(--jab-orange-dark);
  font-weight: 900;
}
.jab-field-grid { display: grid; gap: 16px; }
.jab-field-grid + .jab-field-grid { margin-top: 16px; }
.jab-field-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jab-field { display: grid; gap: 8px; color: var(--jab-ink); font-size: 14px; font-weight: 750; }
.jab-field > span b { color: #dc2626; }
.jab-field input,
.jab-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #dbe2ea;
  border-radius: 13px;
  background: #fff;
  color: var(--jab-ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.jab-field textarea { min-height: 104px; resize: vertical; }
.jab-field input::placeholder,
.jab-field textarea::placeholder { color: #9ca3af; }
.jab-field input:focus,
.jab-field textarea:focus {
  border-color: var(--jab-orange);
  box-shadow: 0 0 0 4px rgba(245,130,32,.12);
  background: #fffdf9;
}
.jab-payment-option {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border: 1px solid #fed7aa;
  border-radius: 15px;
  background: var(--jab-soft);
}
.jab-payment-radio {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border: 5px solid var(--jab-orange);
  border-radius: 50%;
  background: #fff;
}
.jab-payment-option strong { color: var(--jab-ink); }
.jab-payment-option p { margin: 4px 0 0; color: var(--jab-muted); font-size: 14px; }
.jab-order-summary {
  position: sticky;
  top: 112px;
  overflow: hidden;
  padding: 24px;
}
.jab-order-summary__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--jab-line); }
.jab-order-summary__head .eyebrow { margin: 0 0 3px; font-size: 11px; }
.jab-order-summary__head h2 { margin: 0; color: var(--jab-ink); font-size: 23px; }
.jab-order-summary__head a { color: var(--jab-orange-dark); font-size: 13px; font-weight: 800; }
.jab-order-items { display: grid; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--jab-line); }
.jab-order-item { display: grid; grid-template-columns: 60px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.jab-order-item__image { position: relative; width: 60px; height: 60px; padding: 5px; border: 1px solid var(--jab-line); border-radius: 13px; background: #f8fafc; }
.jab-order-item__image img { width: 100%; height: 100%; object-fit: contain; }
.jab-order-item__image span { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--jab-ink); color: #fff; font-size: 11px; font-weight: 900; }
.jab-order-item__content { min-width: 0; }
.jab-order-item__content strong { display: block; overflow: hidden; color: var(--jab-ink); font-size: 14px; line-height: 1.35; text-overflow: ellipsis; }
.jab-order-item__content small { color: var(--jab-muted); font-size: 11px; }
.jab-order-item__price { color: var(--jab-ink); font-size: 13px; font-weight: 850; white-space: nowrap; }
.jab-order-totals { display: grid; gap: 11px; padding: 20px 0; }
.jab-order-totals > div { display: flex; justify-content: space-between; gap: 20px; color: var(--jab-muted); font-size: 14px; }
.jab-order-totals strong { color: var(--jab-ink); text-align: right; }
.jab-order-total { margin-top: 4px; padding-top: 15px; border-top: 1px solid var(--jab-line); align-items: center; }
.jab-order-total span { color: var(--jab-ink); font-weight: 800; }
.jab-order-total strong { color: var(--jab-orange-dark); font-size: 21px; }
.jab-privacy-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; color: var(--jab-muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.jab-privacy-check input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--jab-orange); }
.jab-privacy-check a { color: var(--jab-orange-dark); text-decoration: underline; text-underline-offset: 2px; }
.jab-place-order {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  background: var(--jab-orange);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(245,130,32,.24);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.jab-place-order:hover { transform: translateY(-2px); background: var(--jab-orange-dark); box-shadow: 0 16px 30px rgba(245,130,32,.28); }
.jab-place-order svg { width: 21px; height: 21px; }
.jab-place-order.is-processing { pointer-events: none; opacity: .74; }
.jab-order-help { margin: 13px 4px 0; color: var(--jab-muted); font-size: 11px; line-height: 1.45; text-align: center; }
.jab-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.jab-checkout-empty { max-width: 680px; margin: 0 auto; padding: 52px 28px; text-align: center; }
.jab-checkout-empty__icon { margin-bottom: 12px; font-size: 42px; }
.jab-checkout-empty h2 { margin: 0 0 8px; color: var(--jab-ink); font-size: 30px; }
.jab-checkout-empty p { margin: 0 auto 22px; max-width: 480px; color: var(--jab-muted); }

/* No WooCommerce blockUI overlay is used on the manual checkout. */
.jab-manual-checkout-page .blockUI,
.jab-manual-checkout-page .blockOverlay,
.jab-manual-checkout-page .woocommerce-checkout-processing::before { display: none !important; }

@media (max-width: 980px) {
  .jab-manual-checkout { grid-template-columns: 1fr; }
  .jab-order-summary { position: static; order: -1; }
}
@media (max-width: 640px) {
  .jab-checkout-shell { padding: 24px 0 54px; }
  .jab-field-grid--two { grid-template-columns: 1fr; }
  .jab-checkout-card,
  .jab-order-summary { padding: 19px; border-radius: 18px; }
  .jab-order-item { grid-template-columns: 52px minmax(0,1fr); }
  .jab-order-item__image { width: 52px; height: 52px; }
  .jab-order-item__price { grid-column: 2; }
}

/* Patch 3.2.2: clear product summary in My Account > My orders */
.woocommerce-orders-table__header-order-items,
.woocommerce-orders-table__cell-order-items {
  min-width: 0;
  text-align: left !important;
}
.jab-order-products {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.jab-order-product {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  gap: 10px;
  align-items: center;
}
.jab-order-product__image {
  width: 46px;
  height: 46px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--jab-line);
  border-radius: 10px;
  background: #f8fafc;
}
.jab-order-product__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.jab-order-product__info {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.jab-order-product__name {
  color: var(--jab-ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  overflow-wrap: anywhere;
}
a.jab-order-product__name:hover {
  color: var(--jab-orange-dark);
}
.jab-order-product__quantity,
.jab-order-products__more {
  color: var(--jab-muted);
  font-size: 12px;
  line-height: 1.35;
}
.jab-order-products__details {
  width: fit-content;
  color: var(--jab-orange-dark);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
}
.jab-order-products__details:hover {
  color: var(--jab-orange);
}
.woocommerce-orders-table__cell-order-actions .button.view {
  white-space: nowrap;
}

/* Patch 3.2.9: a wider, readable desktop orders table without broken words. */
@media (min-width: 821px) {
  .woocommerce-MyAccount-content table.woocommerce-orders-table {
    width: 100% !important;
    min-width: 980px;
    table-layout: auto;
  }
  .woocommerce-MyAccount-content table.woocommerce-orders-table th,
  .woocommerce-MyAccount-content table.woocommerce-orders-table td {
    padding: 14px 11px;
    vertical-align: middle;
    word-break: normal;
    overflow-wrap: normal;
  }
  .woocommerce-MyAccount-content table.woocommerce-orders-table th {
    white-space: nowrap;
  }
  .woocommerce-orders-table__header-order-number,
  .woocommerce-orders-table__cell-order-number {
    width: 100px;
    min-width: 100px !important;
    white-space: nowrap;
  }
  .woocommerce-orders-table__header-order-items,
  .woocommerce-orders-table__cell-order-items {
    width: 300px;
    min-width: 270px !important;
  }
  .woocommerce-orders-table__header-order-date,
  .woocommerce-orders-table__cell-order-date {
    width: 110px;
    min-width: 105px !important;
  }
  .woocommerce-orders-table__header-order-status,
  .woocommerce-orders-table__cell-order-status {
    width: 120px;
    min-width: 110px !important;
  }
  .woocommerce-orders-table__header-order-total,
  .woocommerce-orders-table__cell-order-total {
    width: 145px;
    min-width: 130px !important;
  }
  .woocommerce-orders-table__header-order-actions,
  .woocommerce-orders-table__cell-order-actions {
    width: 195px;
    min-width: 185px !important;
  }
  .jab-order-product {
    grid-template-columns: 46px minmax(0,1fr);
    gap: 10px;
  }
  .jab-order-product__image {
    width: 46px;
    height: 46px;
  }
  .jab-order-product__name { font-size: 14px; }
  .jab-order-product__quantity,
  .jab-order-products__more,
  .jab-order-products__details { font-size: 12px; }
  .woocommerce-orders-table__cell-order-actions .button.view {
    width: auto;
    min-width: 175px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
  }
  .woocommerce-orders-table td .button {
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .woocommerce-orders-table__cell-order-items {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .woocommerce-orders-table__cell-order-items::before {
    margin-bottom: 10px;
  }
  .jab-order-products {
    width: 100%;
    min-width: 0;
    text-align: left;
  }
  .woocommerce-orders-table__cell-order-actions .button {
    width: 100%;
    text-align: center;
  }
}
