:root {
  --accent: #f05a28;
  --accent-dark: #d84717;
  --ink: #1d232a;
  --muted: #6d7680;
  --line: #e6e8eb;
  --surface: #ffffff;
  --surface-2: #f5f6f7;
  --dark: #22262b;
  --success: #198754;
  --danger: #dc3545;
  --radius: 14px;
  --shadow: 0 12px 36px rgba(22, 31, 39, .08);
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.page { min-height: 60vh; }

.topbar { background: var(--dark); color: #d7dce1; font-size: 13px; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__nav, .topbar__right { display: flex; gap: 18px; align-items: center; }
.topbar a:hover { color: white; }

.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header__main { display: grid; grid-template-columns: 190px 1fr auto; gap: 18px; align-items: center; min-height: 82px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 23px; letter-spacing: -.5px; }
.logo__mark { width: 43px; height: 43px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #ff9b46); color: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: 0 8px 18px rgba(240,90,40,.22); }
.logo small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.gzap-header-search { display: grid; grid-template-columns: 160px 1fr 52px; height: 48px; border: 2px solid var(--accent); border-radius: 10px; overflow: hidden; background: #fff; }
.catalog-trigger { border: 0; background: var(--accent); color: #fff; font-weight: 800; padding: 0 18px; display: flex; align-items: center; gap: 9px; justify-content: center; }
.gzap-header-search input { border: 0; padding: 0 15px; outline: 0; min-width: 0; }
.gzap-header-search button[type="submit"] { border: 0; background: #fff4ef; color: var(--accent); font-size: 20px; }
.header-actions { display: flex; gap: 8px; }
.header-action { position: relative; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; background: #fff; font-size: 21px; }
.header-action:hover { border-color: var(--accent); color: var(--accent); }
.badge { position: absolute; top: -6px; right: -5px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; padding: 0 5px; }
.mobile-menu-btn { display: none; }

.hero { padding: 24px 0 8px; }
.hero__grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 18px; }
.hero__main { min-height: 330px; padding: 42px; border-radius: 18px; color: #fff; overflow: hidden; position: relative; background:
  radial-gradient(circle at 80% 30%, rgba(240,90,40,.82), transparent 35%),
  linear-gradient(120deg, #121518 0%, #2a3036 60%, #181b1e 100%); }
.hero__main::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 360px; height: 230px; border: 18px solid rgba(255,255,255,.08); border-radius: 50%; transform: rotate(-15deg); }
.hero__eyebrow { display: inline-flex; gap: 8px; align-items: center; color: #ffd8c9; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; font-weight: 800; }
.hero h1 { position: relative; z-index: 1; max-width: 660px; margin: 12px 0 15px; font-size: clamp(34px, 4vw, 58px); line-height: 1.03; letter-spacing: -1.8px; }
.hero p { max-width: 600px; color: #d9dee3; font-size: 17px; margin: 0 0 26px; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__side { display: grid; gap: 18px; }
.promo-card { min-height: 156px; border-radius: 18px; padding: 25px; background: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.promo-card--orange { color: #fff; background: linear-gradient(135deg, #ff6c32, #f24514); }
.promo-card h3 { margin: 5px 0 8px; font-size: 24px; line-height: 1.08; }
.promo-card p { margin: 0; font-size: 14px; max-width: 80%; }
.promo-card__icon { position: absolute; right: 18px; bottom: 8px; font-size: 64px; opacity: .16; }

.btn { min-height: 44px; border: 0; border-radius: 9px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn--danger { background: #fff2f3; color: var(--danger); }
.btn--block { width: 100%; }

.features { padding: 18px 0 34px; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; gap: 12px; align-items: center; }
.feature__icon { width: 42px; height: 42px; border-radius: 10px; background: #fff1eb; color: var(--accent); display: grid; place-items: center; font-size: 20px; flex: none; }
.feature b { display: block; font-size: 14px; }
.feature span { font-size: 12px; color: var(--muted); }

.section { padding: 20px 0 44px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__head h2 { margin: 0; font-size: 28px; letter-spacing: -.6px; }
.section__head p { margin: 5px 0 0; color: var(--muted); }
.category-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.category-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px 14px; text-align: center; transition: .2s; }
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #f8c4b0; }
.category-card__icon { margin: 0 auto 10px; width: 58px; height: 58px; border-radius: 14px; background: #f6f7f8; display: grid; place-items: center; font-size: 28px; }
.category-card b { font-size: 13px; }

.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; position: sticky; top: 104px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.filters h3 { margin: 0; font-size: 18px; }
.filter-group { border-top: 1px solid var(--line); padding: 15px 0; }
.filter-group:first-of-type { border-top: 0; }
.filter-group__title { font-size: 13px; font-weight: 900; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .3px; }
.check { display: flex; align-items: center; gap: 9px; margin: 8px 0; color: #3c454e; font-size: 14px; }
.check input { accent-color: var(--accent); }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; background: #fff; outline: none; }
.input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,90,40,.08); }
.filters-close { display: none; }
.catalog-main { min-width: 0; }
.catalog-toolbar { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.catalog-toolbar__left { display: flex; gap: 10px; align-items: center; }
.catalog-toolbar select { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 10px; }
.mobile-filter-btn { display: none; }
.results-count { color: var(--muted); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: .2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card__visual { height: 190px; background: linear-gradient(145deg, #f8f9fa, #eef0f2); display: grid; place-items: center; position: relative; padding: 24px; }
.product-card__visual img { width: 100%; height: 100%; object-fit: contain; }
.product-card__tag { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 900; border-radius: 999px; padding: 5px 9px; }
.product-card__body { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.product-card__meta { color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; gap: 8px; }
.product-card h3 { font-size: 15px; line-height: 1.28; margin: 8px 0; min-height: 58px; }
.stock { color: var(--success); font-size: 12px; font-weight: 800; }
.stock--out { color: var(--danger); }
.product-card__footer { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.price { font-size: 21px; font-weight: 900; white-space: nowrap; }
.old-price { color: #9aa1a8; text-decoration: line-through; font-size: 12px; display: block; }
.add-cart { width: 44px; height: 44px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-size: 18px; }
.empty-state { background: #fff; border: 1px dashed #cfd4d9; border-radius: 14px; padding: 42px 20px; text-align: center; color: var(--muted); grid-column: 1/-1; }

.breadcrumbs { padding: 18px 0 0; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--accent); }
.product-page { padding: 20px 0 44px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.product-gallery { min-width: 0; }
.product-main-image { min-height: 430px; border-radius: 14px; background: #f7f8f9; display: grid; place-items: center; padding: 34px; }
.product-main-image img { max-height: 360px; }
.product-info h1 { margin: 6px 0 12px; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.8px; }
.product-code { color: var(--muted); font-size: 13px; }
.product-status { margin: 16px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: #f2f4f5; font-size: 12px; font-weight: 800; }
.product-price { font-size: 34px; font-weight: 900; margin: 20px 0 5px; }
.product-buy { display: grid; grid-template-columns: 120px 1fr; gap: 10px; margin-top: 18px; }
.qty { display: grid; grid-template-columns: 36px 1fr 36px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { border: 0; background: #f5f6f7; }
.qty input { border: 0; min-width: 0; text-align: center; outline: 0; }
.delivery-note { margin-top: 18px; padding: 14px; border-radius: 10px; background: #fff7f3; color: #5f4a40; font-size: 13px; }
.product-tabs { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btn { border: 0; background: #fff; padding: 15px 20px; font-weight: 800; white-space: nowrap; border-bottom: 3px solid transparent; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; padding: 22px; }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 11px 6px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 45%; }

.cart-page, .checkout-page, .success-page { padding: 25px 0 55px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.cart-list { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 100px minmax(0,1fr) 120px 120px 40px; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.cart-item__image { width: 100px; height: 90px; background: #f6f7f8; border-radius: 9px; padding: 10px; object-fit: contain; }
.cart-item h3 { font-size: 14px; margin: 0 0 5px; }
.cart-item small { color: var(--muted); }
.cart-item__price { font-weight: 900; }
.summary { position: sticky; top: 105px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0; }
.summary-row--total { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; font-size: 21px; font-weight: 900; }
.summary-note { color: var(--muted); font-size: 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1/-1; }
.field label { font-size: 13px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; outline: 0; background: #fff; }
.field textarea { min-height: 95px; resize: vertical; }
.field .error { min-height: 16px; color: var(--danger); font-size: 11px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); background: #fff9f9; }
.checkout-section + .checkout-section { margin-top: 16px; }
.radio-list { display: grid; gap: 8px; }
.radio-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; }
.radio-card input { margin-top: 4px; accent-color: var(--accent); }
.radio-card b { display: block; font-size: 14px; }
.radio-card span { color: var(--muted); font-size: 12px; }

.success-card { max-width: 700px; margin: 30px auto; text-align: center; }
.success-icon { margin: 0 auto 16px; width: 74px; height: 74px; border-radius: 50%; background: #e9f7ef; color: var(--success); display: grid; place-items: center; font-size: 34px; }

.footer { background: #1f2327; color: #c9cfd5; margin-top: 30px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; padding: 38px 0; }
.footer h4 { color: #fff; margin: 0 0 12px; }
.footer p, .footer a { font-size: 13px; color: #aeb6bd; }
.footer a { display: block; margin: 7px 0; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #343a40; padding: 15px 0; font-size: 12px; color: #89929a; }

.overlay { display: none; position: fixed; inset: 0; background: rgba(17,20,22,.55); z-index: 49; }
.overlay.active { display: block; }
.mobile-drawer { display: none; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; padding: 12px 16px; border-radius: 10px; background: #1f262c; color: #fff; font-size: 13px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .22s; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1050px) {
  .header__main { grid-template-columns: 155px 1fr auto; gap: 10px; }
  .logo { font-size: 20px; }
  .gzap-header-search { grid-template-columns: 130px 1fr 48px; }
  .features__grid { grid-template-columns: repeat(2,1fr); }
  .category-strip { grid-template-columns: repeat(3,1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2,1fr); }
  .cart-item { grid-template-columns: 90px minmax(0,1fr) 105px 95px 36px; }
}

@media (max-width: 820px) {
  .topbar__nav { display: none; }
  .topbar__inner { min-height: 34px; }
  .header { position: relative; }
  .header__main { grid-template-columns: 1fr auto; min-height: 72px; }
  .gzap-header-search { grid-column: 1/-1; grid-row: 2; margin-bottom: 12px; grid-template-columns: 1fr 48px; height: 44px; }
  .catalog-trigger { display: none; }
  .mobile-menu-btn { display: grid; }
  .header-action--account { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { grid-template-columns: 1fr 1fr; }
  .hero__main { min-height: 300px; padding: 30px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0 auto 0 0; width: min(86vw, 360px); z-index: 60; border-radius: 0; overflow-y: auto; top: 0; }
  .filters.open { display: block; }
  .filters-close { display: block; border: 0; background: #f4f5f6; border-radius: 8px; width: 34px; height: 34px; }
  .mobile-filter-btn { display: inline-flex; }
  .product-layout { grid-template-columns: 1fr; }
  .product-main-image { min-height: 340px; }
  .two-col { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-item { grid-template-columns: 80px minmax(0,1fr) 110px; }
  .cart-item__qty { grid-column: 2; }
  .cart-item__price { grid-column: 3; grid-row: 1 / span 2; text-align: right; }
  .cart-item__remove { grid-column: 3; grid-row: 2; justify-self: end; align-self: end; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 22px, var(--container)); }
  .topbar__right span:first-child { display: none; }
  .logo { font-size: 18px; }
  .logo__mark { width: 38px; height: 38px; }
  .header-actions { gap: 6px; }
  .header-action { width: 42px; height: 42px; }
  .hero { padding-top: 12px; }
  .hero__main { min-height: 330px; padding: 24px 20px; }
  .hero h1 { font-size: 35px; }
  .hero p { font-size: 15px; }
  .hero__side { grid-template-columns: 1fr; gap: 12px; }
  .promo-card { min-height: 130px; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { padding: 14px; }
  .category-strip { grid-template-columns: repeat(2,1fr); }
  .section__head { align-items: start; flex-direction: column; }
  .section__head h2 { font-size: 24px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-toolbar__left { justify-content: space-between; }
  .catalog-toolbar select { flex: 1; min-width: 0; }
  .results-count { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .product-card__visual { height: 138px; padding: 15px; }
  .product-card__body { padding: 10px; }
  .product-card h3 { font-size: 13px; min-height: 66px; }
  .product-card__meta { display: block; font-size: 10px; }
  .stock { display: none; }
  .price { font-size: 16px; }
  .old-price { font-size: 10px; }
  .add-cart { width: 38px; height: 38px; }
  .product-layout { padding: 14px; gap: 18px; }
  .product-main-image { min-height: 280px; padding: 20px; }
  .product-info h1 { font-size: 27px; }
  .product-buy { grid-template-columns: 1fr; }
  .tab-btn { padding: 13px 14px; }
  .tab-panel { padding: 16px; }
  .cart-item { grid-template-columns: 72px minmax(0,1fr) 34px; gap: 10px; }
  .cart-item__image { width: 72px; height: 70px; }
  .cart-item__price { grid-column: 2; grid-row: 2; text-align: left; }
  .cart-item__qty { grid-column: 2; grid-row: 3; }
  .cart-item__remove { grid-column: 3; grid-row: 1; align-self: start; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* WordPress / WooCommerce integration */
body.admin-bar .header { top: 32px; }
.topbar__nav .menu-item { display: contents; }
.content-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:24px; }
.entry-content > *:first-child { margin-top:0; }
.entry-content > *:last-child { margin-bottom:0; }
.vin-box { border-radius:18px; padding:32px; display:flex; align-items:center; justify-content:space-between; gap:24px; background:linear-gradient(135deg,#20252a,#323940); color:#fff; }
.vin-box h2 { margin:6px 0 8px; font-size:32px; }
.vin-box p { margin:0; color:#d9dee3; max-width:780px; }
.category-card span { display:block; color:var(--muted); font-size:12px; margin-top:4px; }
.gz-reset-filter { margin-top:8px; }
.gz-no-scroll { overflow:hidden; }

.woocommerce .woocommerce-breadcrumb { margin:0; color:var(--muted); font-size:13px; }
.woocommerce .woocommerce-breadcrumb a { color:inherit; }
.woocommerce .woocommerce-breadcrumb a:hover { color:var(--accent); }
.woocommerce .woocommerce-result-count { color:var(--muted); font-size:13px; }
.catalog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.woocommerce .woocommerce-ordering { margin:0 0 0 auto; }
.woocommerce .woocommerce-ordering select { border:1px solid var(--line); border-radius:9px; padding:10px 34px 10px 12px; background:#fff; }

.woocommerce ul.products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; }
.woocommerce ul.products::before,.woocommerce ul.products::after { display:none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { width:auto !important; float:none !important; margin:0 !important; padding:0 0 14px; background:#fff; border:1px solid var(--line); border-radius:13px; overflow:hidden; transition:.2s; display:flex; flex-direction:column; min-width:0; }
.woocommerce ul.products li.product:hover { transform:translateY(-2px); box-shadow:var(--shadow); border-color:#d9dde1; }
.woocommerce ul.products li.product a img { height:210px; width:100%; object-fit:contain; margin:0; padding:18px; background:#f7f8f9; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height:60px; padding:14px 14px 6px; margin:0; font-size:14px; line-height:1.36; color:var(--ink); }
.woocommerce ul.products li.product .price { padding:0 14px; margin:auto 0 10px; color:var(--ink); font-size:19px; font-weight:900; }
.woocommerce ul.products li.product .price del { color:#98a0a7; font-size:12px; font-weight:600; }
.woocommerce ul.products li.product .price ins { text-decoration:none; }
.woocommerce ul.products li.product .button { margin:0 14px; min-height:42px; border-radius:9px; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; }
.woocommerce ul.products li.product .button:hover { background:var(--accent-dark); }
.woocommerce span.onsale { min-width:auto; min-height:auto; line-height:1; border-radius:7px; padding:7px 9px; left:9px; top:9px; margin:0; background:var(--accent); font-size:11px; }

.woocommerce div.product { background:#fff; border:1px solid var(--line); border-radius:16px; padding:24px; }
.woocommerce div.product div.images img { background:#f7f8f9; border-radius:14px; padding:20px; }
.woocommerce div.product .product_title { font-size:clamp(27px,3vw,40px); line-height:1.08; }
.woocommerce div.product p.price,.woocommerce div.product span.price { color:var(--ink); font-size:32px; font-weight:900; }
.woocommerce div.product .stock { color:var(--success); font-weight:800; }
.woocommerce div.product form.cart .button { background:var(--accent); min-height:46px; border-radius:9px; }
.woocommerce div.product form.cart .button:hover { background:var(--accent-dark); }
.woocommerce .quantity .qty { min-height:44px; border:1px solid var(--line); border-radius:8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding:0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-color:var(--line); background:#f7f8f9; }

.woocommerce table.shop_table { border-color:var(--line); border-radius:12px; background:#fff; }
.woocommerce table.shop_table th,.woocommerce table.shop_table td { border-color:var(--line); }
.woocommerce-cart table.cart img { width:82px; background:#f7f8f9; border-radius:8px; }
.woocommerce-cart .cart-collaterals .cart_totals { width:100%; max-width:480px; }
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit { border-radius:9px; }
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.woocommerce #respond input#submit.alt { background:var(--accent); }
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover { background:var(--accent-dark); }

.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,
.select2-container--default .select2-selection--single { min-height:44px; border:1px solid var(--line); border-radius:9px; padding:9px 11px; background:#fff; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height:24px; padding:0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height:42px; }
.woocommerce-checkout #payment { background:#f6f7f8; border-radius:12px; }
.woocommerce-info,.woocommerce-message { border-top-color:var(--accent); background:#fff; border-radius:8px; }
.woocommerce-info::before,.woocommerce-message::before { color:var(--accent); }
.woocommerce-MyAccount-navigation ul { list-style:none; padding:0; margin:0; display:grid; gap:6px; }
.woocommerce-MyAccount-navigation a { display:block; padding:11px 13px; background:#fff; border:1px solid var(--line); border-radius:8px; }
.woocommerce-MyAccount-navigation .is-active a { border-color:var(--accent); color:var(--accent); }

@media (max-width: 1050px) {
  .woocommerce ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  body.admin-bar .header { top:0; }
  .gz-shop-filters { display:none; position:fixed; inset:0 auto 0 0; width:min(86vw,360px); z-index:60; overflow-y:auto; border-radius:0; }
  .gz-shop-filters.open { display:block; }
  .vin-box { align-items:flex-start; flex-direction:column; }
  .woocommerce div.product { padding:14px; }
}
@media (max-width: 560px) {
  .woocommerce ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .woocommerce ul.products li.product a img { height:138px; padding:12px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height:68px; padding:10px 10px 5px; font-size:12.5px; }
  .woocommerce ul.products li.product .price { padding:0 10px; font-size:16px; }
  .woocommerce ul.products li.product .button { margin:0 10px; min-height:38px; font-size:12px; padding:6px 8px; }
  .vin-box { padding:22px 18px; }
  .vin-box h2 { font-size:25px; }
  .woocommerce table.shop_table_responsive tr td::before,.woocommerce-page table.shop_table_responsive tr td::before { font-weight:800; }
}

/* =========================================================
   G-ZapAvto 1.2 — cart / classic checkout refinement
   ========================================================= */

/* На корзине и checkout шапка не перекрывает поля при прокрутке. */
body.woocommerce-cart .header,
body.woocommerce-checkout .header {
  position: relative;
  top: auto !important;
}

body.woocommerce-cart .content-card,
body.woocommerce-checkout .content-card {
  padding: 24px;
}

body.woocommerce-cart .content-card > h1,
body.woocommerce-checkout .content-card > h1 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.7px;
}

/* Корзина */
.woocommerce-cart table.shop_table.cart {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}
.woocommerce-cart table.cart th {
  padding: 14px 12px;
  font-size: 13px;
  background: #fafafa;
}
.woocommerce-cart table.cart td {
  padding: 14px 12px;
  vertical-align: middle;
}
.woocommerce-cart table.cart .product-name a {
  font-weight: 750;
}
.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 850;
}
.woocommerce-cart table.cart .product-price .amount,
.woocommerce-cart table.cart .product-subtotal .amount {
  font-size: 16px;
  font-weight: 850;
}
.woocommerce-cart table.cart .quantity .qty {
  width: 72px;
  min-height: 42px;
}
.woocommerce-cart table.cart td.actions {
  background: #fbfbfc;
}
.woocommerce-cart table.cart td.actions .coupon {
  display: flex;
  gap: 8px;
}
.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: 160px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}
.woocommerce-cart .cart-collaterals {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}
.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: min(100%, 480px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.woocommerce-cart .cart-collaterals .cart_totals h2 {
  margin-top: 0;
  font-size: 22px;
}
.woocommerce-cart .wc-proceed-to-checkout {
  padding-bottom: 0;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  margin-bottom: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Classic checkout: customer data left, order summary right. */
.woocommerce-checkout form.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  grid-template-rows: auto auto 1fr;
  gap: 12px 28px;
  align-items: start;
}
.woocommerce-checkout form.checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 100%;
}
.woocommerce-checkout form.checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0 2px;
  font-size: 22px;
}
.woocommerce-checkout form.checkout #order_review {
  grid-column: 2;
  grid-row: 2 / span 2;
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22,31,39,.05);
}
.woocommerce-checkout #customer_details.col2-set {
  display: block;
}
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  float: none;
  width: 100%;
}
.woocommerce-checkout #customer_details .col-2 {
  margin-top: 20px;
}
.woocommerce-checkout #customer_details h3 {
  margin: 0 0 16px;
  font-size: 22px;
}
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.woocommerce-checkout .woocommerce-shipping-fields + .woocommerce-additional-fields {
  margin-top: 16px;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
  display: flow-root;
}
.woocommerce-checkout form .form-row {
  margin: 0 0 14px;
}
.woocommerce-checkout form .form-row label {
  margin-bottom: 6px;
  color: #343a40;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}
.woocommerce-checkout form .form-row .required {
  color: var(--accent);
}
.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row textarea,
.woocommerce-checkout form .form-row select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
  min-height: 46px;
  border-color: #dfe2e6;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}
.woocommerce-checkout form .form-row input.input-text:focus,
.woocommerce-checkout form .form-row textarea:focus,
.woocommerce-checkout .select2-container--open .select2-selection--single {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,90,40,.09);
  outline: 0;
}
.woocommerce-checkout .woocommerce-additional-fields h3 {
  font-size: 18px !important;
}
.woocommerce-checkout .woocommerce-additional-fields textarea {
  min-height: 92px;
  resize: vertical;
}

/* Отдельный блок VIN. */
.gz-vehicle-section {
  clear: both;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #ffd7c8;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf7, #fff);
}
.gz-section-kicker {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.gz-vehicle-section h3 {
  margin: 0 0 6px !important;
  font-size: 19px !important;
}
.gz-section-note {
  margin: 0 0 14px;
  max-width: 680px;
  color: var(--muted);
  font-size: 13px;
}
.gz-vehicle-section .form-row {
  margin-bottom: 0 !important;
}
.gz-vin-input {
  text-transform: uppercase;
  letter-spacing: .6px;
  font-variant-numeric: tabular-nums;
}

/* Итоги заказа */
.woocommerce-checkout #order_review table.shop_table {
  margin: 0 0 16px;
  border: 0;
  border-radius: 0;
}
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
  padding: 11px 8px;
  font-size: 13px;
}
.woocommerce-checkout #order_review table.shop_table thead th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.woocommerce-checkout #order_review .product-name {
  line-height: 1.35;
}
.woocommerce-checkout #order_review .order-total th,
.woocommerce-checkout #order_review .order-total td {
  padding-top: 15px;
  font-size: 17px;
}
.woocommerce-checkout #order_review .order-total .amount {
  font-size: 19px;
  color: var(--ink);
}

/* Оплата */
.woocommerce-checkout #payment {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fafbfc;
}
.woocommerce-checkout #payment ul.payment_methods {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.woocommerce-checkout #payment ul.payment_methods li {
  margin: 0;
  padding: 10px 8px;
  border-radius: 9px;
}
.woocommerce-checkout #payment ul.payment_methods li + li {
  margin-top: 5px;
}
.woocommerce-checkout #payment ul.payment_methods li > label {
  font-weight: 800;
}
.woocommerce-checkout #payment div.payment_box {
  margin: 9px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #f0f1f3;
  color: #535b63;
  font-size: 12px;
}
.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #f0f1f3;
}
.woocommerce-checkout #payment .place-order {
  padding: 14px;
}
.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.woocommerce-checkout #payment #place_order {
  float: none;
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 850;
}

/* Доставка, если методы настроены в WooCommerce. */
.woocommerce-checkout ul#shipping_method {
  display: grid;
  gap: 7px;
  margin: 0;
}
.woocommerce-checkout ul#shipping_method li {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.woocommerce-checkout ul#shipping_method input {
  accent-color: var(--accent);
}

/* Ошибки и уведомления checkout. */
.woocommerce-checkout .woocommerce-error {
  margin-bottom: 18px;
  border-top-color: var(--danger);
  border-radius: 9px;
  background: #fff7f7;
}
.woocommerce-checkout .woocommerce-error::before {
  color: var(--danger);
}

@media (max-width: 980px) {
  .woocommerce-checkout form.checkout.woocommerce-checkout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
  }
  .woocommerce-checkout form.checkout #customer_details,
  .woocommerce-checkout form.checkout #order_review_heading,
  .woocommerce-checkout form.checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }
  .woocommerce-checkout form.checkout #order_review {
    position: static;
  }
}

@media (max-width: 700px) {
  body.woocommerce-cart .content-card,
  body.woocommerce-checkout .content-card {
    padding: 15px;
  }
  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-shipping-fields,
  .woocommerce-checkout .woocommerce-additional-fields,
  .gz-vehicle-section,
  .woocommerce-checkout form.checkout #order_review {
    padding: 15px;
    border-radius: 11px;
  }
  .woocommerce-checkout form .form-row-first,
  .woocommerce-checkout form .form-row-last {
    float: none;
    width: 100%;
  }
  .woocommerce-cart table.cart td.actions .coupon {
    float: none;
    width: 100%;
    margin-bottom: 10px;
  }
  .woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 480px) {
  body.woocommerce-cart .content-card,
  body.woocommerce-checkout .content-card {
    padding: 12px;
    border-radius: 11px;
  }
  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-shipping-fields,
  .woocommerce-checkout .woocommerce-additional-fields,
  .gz-vehicle-section,
  .woocommerce-checkout form.checkout #order_review {
    padding: 12px;
  }
  .woocommerce-checkout form.checkout #order_review_heading {
    font-size: 20px;
  }
  .woocommerce-cart table.shop_table_responsive tr td.product-price,
  .woocommerce-cart table.shop_table_responsive tr td.product-subtotal {
    font-size: 14px;
  }
  .woocommerce-cart table.cart .product-price .amount,
  .woocommerce-cart table.cart .product-subtotal .amount {
    font-size: 14px;
  }
}


/* =========================================================
   G-ZapAvto 1.2 — checkout polish after live visual test
   ========================================================= */

/* WooCommerce сам добавляет «(необязательно)» для необязательных полей.
   В теме label хранится без этой приписки, поэтому дублирования больше нет. */
.woocommerce-checkout .optional {
  color: var(--muted);
  font-weight: 500;
}

/* Если доставка на отдельный адрес выключена, Woo может оставить пустой контейнер.
   Не показываем из него пустую карточку между billing и «Детали». */
.woocommerce-checkout .woocommerce-shipping-fields:empty,
.woocommerce-checkout .woocommerce-shipping-fields:not(:has(input, select, textarea, label, h3, p, .shipping_address)) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.woocommerce-checkout .woocommerce-shipping-fields:empty + .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-shipping-fields:not(:has(input, select, textarea, label, h3, p, .shipping_address)) + .woocommerce-additional-fields {
  margin-top: 0 !important;
}

/* Контактные поля должны оставаться парой даже при локальных настройках WooCommerce. */
.woocommerce-checkout #billing_phone_field,
.woocommerce-checkout #billing_email_field {
  width: 48%;
}
.woocommerce-checkout #billing_phone_field {
  float: left;
  clear: left;
}
.woocommerce-checkout #billing_email_field {
  float: right;
  clear: right;
}
.woocommerce-checkout #billing_country_field {
  clear: both;
}

/* Чуть плотнее визуальная иерархия блока VIN. */
.gz-vehicle-section label .optional {
  color: var(--muted);
}
.gz-vehicle-section .woocommerce-input-wrapper {
  display: block;
}

/* «Детали» не должны выглядеть как второй крупный billing-блок. */
.woocommerce-checkout .woocommerce-additional-fields {
  margin-top: 16px;
}
.woocommerce-checkout .woocommerce-additional-fields h3 {
  margin-bottom: 12px !important;
}

@media (max-width: 700px) {
  .woocommerce-checkout #billing_phone_field,
  .woocommerce-checkout #billing_email_field {
    float: none;
    clear: both;
    width: 100%;
  }
}


/* =========================================================
   G-ZapAvto 1.3 — ФИО получателя: Имя / Отчество / Фамилия
   ========================================================= */
@media (min-width: 701px) {
  .woocommerce-checkout #billing_first_name_field,
  .woocommerce-checkout #billing_middle_name_field,
  .woocommerce-checkout #billing_last_name_field {
    float: left;
    clear: none;
    width: 31.5%;
  }
  .woocommerce-checkout #billing_first_name_field,
  .woocommerce-checkout #billing_middle_name_field {
    margin-right: 2.75%;
  }
  .woocommerce-checkout #billing_first_name_field {
    clear: left;
  }
  .woocommerce-checkout #billing_last_name_field {
    float: right;
  }
  .woocommerce-checkout #billing_phone_field {
    clear: left;
  }
}

@media (max-width: 700px) {
  .woocommerce-checkout #billing_first_name_field,
  .woocommerce-checkout #billing_middle_name_field,
  .woocommerce-checkout #billing_last_name_field {
    float: none;
    clear: both;
    width: 100%;
  }
}


/* =========================================================
   G-ZapAvto 1.4 — обязательный телефон и стабильный порядок Checkout
   ========================================================= */
.woocommerce-checkout #billing_phone_field abbr.required,
.woocommerce-checkout #billing_phone_field .required {
  display: inline !important;
}
.woocommerce-checkout #billing_phone_field .optional {
  display: none !important;
}

@media (min-width: 701px) {
  /* Вторая строка контактов сразу после ФИО. */
  .woocommerce-checkout #billing_phone_field,
  .woocommerce-checkout #billing_email_field {
    width: 48%;
    margin-top: 2px;
  }
  .woocommerce-checkout #billing_phone_field {
    float: left;
    clear: left;
  }
  .woocommerce-checkout #billing_email_field {
    float: right;
    clear: none;
  }
  .woocommerce-checkout #billing_country_field {
    clear: both;
  }
}

/* =========================================================
   G-ZapAvto 1.5 — жёсткий визуальный порядок контактных полей
   ========================================================= */
@media (min-width: 701px) {
  .woocommerce-checkout #billing_phone_field,
  .woocommerce-checkout #billing_email_field {
    box-sizing: border-box;
    width: 48% !important;
    margin-top: 0;
  }
  .woocommerce-checkout #billing_phone_field {
    float: left !important;
    clear: left !important;
  }
  .woocommerce-checkout #billing_email_field {
    float: right !important;
    clear: none !important;
  }
  /* Первый адресный блок всегда начинает новую строку после контактов. */
  .woocommerce-checkout #billing_country_field,
  .woocommerce-checkout #billing_city_field {
    clear: both;
  }
}

/* =========================================================
   G-ZapAvto 1.6 — способы доставки
   ========================================================= */
.woocommerce ul#shipping_method {
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce ul#shipping_method li {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  line-height: 1.4;
}
.woocommerce ul#shipping_method li:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245, 82, 34, .08);
}
.woocommerce ul#shipping_method input[type="radio"] {
  margin-right: 8px;
  accent-color: var(--accent);
}
.woocommerce ul#shipping_method label {
  font-weight: 750;
  cursor: pointer;
}
.gzap-shipping-note {
  margin: 5px 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td {
  vertical-align: top;
}

@media (max-width: 700px) {
  .woocommerce ul#shipping_method li {
    padding: 11px 12px;
  }
  .gzap-shipping-note {
    margin-left: 23px;
  }
}

/* =========================================================
   G-ZapAvto 1.7 — компактная доставка, тип доставки, ПВЗ
   ========================================================= */
@media (min-width: 981px) {
  .woocommerce-checkout form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 12px 24px;
  }
}

.woocommerce-checkout #order_review table.shop_table th.product-total,
.woocommerce-checkout #order_review table.shop_table td.product-total {
  width: 112px;
  white-space: nowrap;
}
.woocommerce-checkout #order_review .product-name {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.woocommerce ul#shipping_method li {
  padding: 10px 12px;
  border-radius: 10px;
}
.woocommerce ul#shipping_method label {
  font-size: 13px;
  line-height: 1.3;
}
.gzap-shipping-note {
  margin: 3px 0 0 24px;
  font-size: 11px;
  line-height: 1.35;
}

.gzap-delivery-service-panel {
  display: none;
  margin: 9px 0 1px 24px;
  padding-top: 9px;
  border-top: 1px solid #eceff1;
}
.woocommerce ul#shipping_method li.is-selected .gzap-delivery-service-panel,
.woocommerce ul#shipping_method li:has(input.shipping_method:checked) .gzap-delivery-service-panel {
  display: block;
}
.gzap-delivery-service-title {
  margin-bottom: 6px;
  color: #495057;
  font-size: 11px;
  font-weight: 800;
}
.gzap-delivery-service-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gzap-delivery-service-choices .gzap-service-choice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #dfe3e6;
  border-radius: 8px;
  background: #fff;
  color: #343a40;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.gzap-delivery-service-choices .gzap-service-choice:has(input:checked) {
  border-color: var(--accent);
  background: #fff7f3;
  color: var(--ink);
}
.gzap-delivery-service-choices input[type="radio"] {
  margin: 0 !important;
  width: 13px;
  height: 13px;
}

.gzap-delivery-point-row,
.gzap-delivery-door-note {
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f7f8f9;
}
.gzap-delivery-point-row {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 9px;
  align-items: center;
}
.gzap-delivery-service-panel.is-point-mode .gzap-delivery-point-row {
  display: grid;
}
.gzap-delivery-service-panel.is-point-mode .gzap-delivery-door-note {
  display: none;
}
.gzap-delivery-point-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.gzap-delivery-point-copy strong {
  font-size: 11px;
}
.gzap-delivery-point-status,
.gzap-delivery-door-note,
.gzap-delivery-point-row small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}
.gzap-delivery-point-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gzap-delivery-point-row small {
  grid-column: 1 / -1;
}
.gzap-point-button.button {
  min-height: 32px !important;
  padding: 5px 9px !important;
  border: 1px solid #d8dde1 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #8a9299 !important;
  font-size: 10.5px !important;
  font-weight: 750 !important;
  cursor: not-allowed !important;
  opacity: .85;
}
.gzap-delivery-door-note {
  display: block;
}

@media (max-width: 700px) {
  .gzap-delivery-service-panel {
    margin-left: 22px;
  }
  .gzap-delivery-service-choices {
    gap: 5px;
  }
  .gzap-delivery-point-row {
    grid-template-columns: 1fr;
  }
  .gzap-point-button.button {
    width: 100%;
  }
}


/* =========================================================
   G-ZapAvto 1.8 — доставка в корзине без перегрузки интерфейса
   ========================================================= */
.woocommerce-cart .cart-collaterals .cart_totals {
  width: min(100%, 620px);
  max-width: 620px;
}
.woocommerce-cart .cart_totals table.shop_table th {
  width: 145px;
  padding-right: 14px;
  vertical-align: top;
}
.woocommerce-cart .cart_totals table.shop_table td {
  vertical-align: top;
}
.woocommerce-cart .cart_totals ul#shipping_method li {
  margin-bottom: 7px;
  padding: 9px 11px;
  border-radius: 9px;
}
.woocommerce-cart .cart_totals ul#shipping_method li:last-child {
  margin-bottom: 0;
}
.woocommerce-cart .cart_totals ul#shipping_method label {
  font-size: 13px;
  line-height: 1.3;
}
.woocommerce-cart .gzap-delivery-service-panel,
.woocommerce-cart .gzap-shipping-note {
  display: none !important;
}
.gzap-cart-delivery-hint-row td {
  padding-top: 4px !important;
  border-top: 0 !important;
}
.gzap-cart-delivery-hint {
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff7f3;
  color: #6c554b;
  font-size: 12px;
  line-height: 1.4;
}
.woocommerce-cart .woocommerce-shipping-destination,
.woocommerce-cart .woocommerce-shipping-calculator {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .woocommerce-cart .cart-collaterals .cart_totals {
    width: 100%;
    max-width: none;
  }
  .woocommerce-cart .cart_totals table.shop_table th {
    width: 112px;
  }
}


/* =========================================================
   G-ZapAvto 1.9 — доставка на Checkout на всю ширину итога
   WooCommerce по умолчанию помещает варианты доставки во вторую
   ячейку строки таблицы, из-за чего они получают только часть ширины.
   На Checkout разворачиваем эту строку в самостоятельный блок.
   ========================================================= */
.woocommerce-checkout #order_review table.shop_table tr.woocommerce-shipping-totals.shipping {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}
.woocommerce-checkout #order_review table.shop_table tr.woocommerce-shipping-totals.shipping > th,
.woocommerce-checkout #order_review table.shop_table tr.woocommerce-shipping-totals.shipping > td {
  display: block;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  text-align: left !important;
}
.woocommerce-checkout #order_review table.shop_table tr.woocommerce-shipping-totals.shipping > th {
  padding: 14px 8px 7px;
  border-bottom: 0;
  font-size: 13px;
}
.woocommerce-checkout #order_review table.shop_table tr.woocommerce-shipping-totals.shipping > td {
  padding: 0 0 12px !important;
}
.woocommerce-checkout #order_review tr.woocommerce-shipping-totals ul#shipping_method {
  width: 100%;
  max-width: none;
  margin: 0;
}
.woocommerce-checkout #order_review tr.woocommerce-shipping-totals ul#shipping_method li {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px;
}
.woocommerce-checkout #order_review tr.woocommerce-shipping-totals ul#shipping_method li:last-child {
  margin-bottom: 0;
}
.woocommerce-checkout #order_review tr.woocommerce-shipping-totals .gzap-delivery-service-panel {
  margin-right: 0;
}
.woocommerce-checkout #order_review tr.woocommerce-shipping-totals .gzap-delivery-point-row {
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 981px) {
  .woocommerce-checkout form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 460px);
    gap: 12px 26px;
  }
  .woocommerce-checkout form.checkout #order_review {
    padding: 18px;
  }
}
@media (max-width: 980px) {
  .woocommerce-checkout #order_review table.shop_table tr.woocommerce-shipping-totals.shipping > th {
    padding-left: 0;
    padding-right: 0;
  }
}


/* =========================================================
   G-ZapAvto 1.10 — итоговые суммы Checkout без переноса
   После разворачивания доставки на всю ширину WooCommerce может
   слишком сильно сжать ценовую колонку таблицы. Фиксируем её ширину
   для подытога/итога и запрещаем перенос денежных значений.
   ========================================================= */
.woocommerce-checkout #order_review table.shop_table {
  width: 100%;
  table-layout: auto;
}
.woocommerce-checkout #order_review table.shop_table th.product-total,
.woocommerce-checkout #order_review table.shop_table td.product-total {
  width: 132px;
  min-width: 132px;
  white-space: nowrap;
  text-align: right;
}
.woocommerce-checkout #order_review table.shop_table tr.cart-subtotal > td,
.woocommerce-checkout #order_review table.shop_table tr.order-total > td {
  width: 132px !important;
  min-width: 132px;
  white-space: nowrap !important;
  text-align: right !important;
}
.woocommerce-checkout #order_review table.shop_table tr.order-total .amount,
.woocommerce-checkout #order_review table.shop_table tr.cart-subtotal .amount,
.woocommerce-checkout #order_review table.shop_table .product-total .amount {
  display: inline-block;
  white-space: nowrap !important;
  word-break: keep-all;
}
.woocommerce-checkout #order_review table.shop_table tr.order-total > th,
.woocommerce-checkout #order_review table.shop_table tr.cart-subtotal > th {
  width: auto !important;
}
@media (min-width: 981px) {
  .woocommerce-checkout form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1fr) minmax(450px, 480px);
  }
}
@media (max-width: 480px) {
  .woocommerce-checkout #order_review table.shop_table th.product-total,
  .woocommerce-checkout #order_review table.shop_table td.product-total,
  .woocommerce-checkout #order_review table.shop_table tr.cart-subtotal > td,
  .woocommerce-checkout #order_review table.shop_table tr.order-total > td {
    width: 112px !important;
    min-width: 112px;
  }
}

/* =========================================================
   G-ZapAvto 2.0 — реальный СДЭК API / выбор ПВЗ
   ========================================================= */
.gzap-point-button.button.is-ready {
  border-color: var(--accent) !important;
  background: #fff !important;
  color: var(--accent) !important;
  cursor: pointer !important;
  opacity: 1;
}
.gzap-point-button.button.is-ready:hover {
  background: #fff4ef !important;
}
.gzap-cdek-modal[hidden] { display: none !important; }
.gzap-cdek-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
}
.gzap-cdek-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .56);
}
.gzap-cdek-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.gzap-cdek-modal__dialog h3 { margin: 0 44px 4px 0; font-size: 24px; }
.gzap-cdek-modal__city { margin: 0 0 14px; color: var(--muted); }
.gzap-cdek-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f5;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.gzap-cdek-modal__search {
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.gzap-cdek-modal__status { padding: 16px 0; color: var(--muted); }
.gzap-cdek-modal__list {
  min-height: 120px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}
.gzap-cdek-point {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.gzap-cdek-point:hover { border-color: #ffc2ad; background: #fffaf8; }
.gzap-cdek-point__name { font-weight: 800; }
.gzap-cdek-point__address { color: #343a40; font-size: 13px; }
.gzap-cdek-point__time { color: var(--muted); font-size: 11px; }
.gzap-cdek-point__choose, .gzap-dpd-point__choose, .gzap-dellin-point__choose, .gzap-rpost-point__choose {
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
html.gzap-modal-open { overflow: hidden; }
@media (max-width: 700px) {
  .gzap-cdek-modal { padding: 10px; align-items: end; }
  .gzap-cdek-modal__dialog { max-height: 88vh; padding: 18px; border-radius: 18px 18px 10px 10px; }
  .gzap-cdek-point { grid-template-columns: 1fr; }
  .gzap-cdek-point__choose, .gzap-dpd-point__choose, .gzap-dellin-point__choose, .gzap-rpost-point__choose { grid-column: 1; grid-row: auto; width: 100%; }
}


/* =========================================================
   G-ZapAvto 2.3 — improved CDEK pickup-point selector
   ========================================================= */
.gzap-cdek-modal__hint {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.gzap-cdek-point {
  grid-template-columns: minmax(0,1fr) auto;
  gap: 5px 16px;
}
.gzap-cdek-point__head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.gzap-cdek-point__head small { color: var(--muted); font-weight: 700; }
.gzap-cdek-point__type {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff0ea;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.gzap-cdek-point__note { color: var(--muted); font-size: 11px; }
.gzap-cdek-point__actions {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: grid;
  gap: 7px;
  align-self: center;
  min-width: 112px;
}
.gzap-cdek-point__map {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.gzap-cdek-point__map:hover { border-color: #ffc2ad; color: var(--accent); }
.gzap-cdek-point__choose, .gzap-dpd-point__choose, .gzap-dellin-point__choose, .gzap-rpost-point__choose {
  grid-row: auto;
  grid-column: auto;
  min-width: 112px;
}
.gzap-delivery-point-status {
  display: block;
  line-height: 1.35;
}
@media (max-width: 700px) {
  .gzap-cdek-point__actions { grid-column: 1; grid-row: auto; grid-template-columns: 1fr 1fr; min-width: 0; }
  .gzap-cdek-point__choose, .gzap-dpd-point__choose, .gzap-dellin-point__choose, .gzap-rpost-point__choose, .gzap-cdek-point__map { width: 100%; min-width: 0; }
}

/* G-ZapAvto 2.5 — delivery summary on thank-you / account order pages */
.gzap-order-delivery-card{margin-top:28px}
.gzap-delivery-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.gzap-delivery-card-item{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:10px;background:#f7f8fa;min-width:0}
.gzap-delivery-card-item.is-wide{grid-column:1/-1}
.gzap-delivery-card-item span{font-size:12px;color:#6b7280}
.gzap-delivery-card-item strong{font-size:14px;color:#111827;line-height:1.35;overflow-wrap:anywhere}
.gzap-delivery-card-item small{font-size:13px;color:#4b5563;line-height:1.4}
.gzap-track-number{font-size:18px!important;letter-spacing:.02em}
.gzap-track-link{display:inline-flex;width:max-content;margin-top:5px;font-weight:700;color:#f4511e;text-decoration:none}
.gzap-track-link:hover{text-decoration:underline}
@media(max-width:640px){.gzap-delivery-card-grid{grid-template-columns:1fr;padding:12px}.gzap-delivery-card-item.is-wide{grid-column:auto}}


/* ===== G-ZapAvto v4.0: order lifecycle + account tracking ===== */
.gzap-stage-badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;background:#eef1f4;color:#29313a;font-size:12px;font-weight:800;line-height:1.2;white-space:nowrap}
.gzap-stage-badge.is-preparing{background:#fff3e8;color:#9a4d13}.gzap-stage-badge.is-shipped{background:#eef4ff;color:#315f9b}.gzap-stage-badge.is-transit{background:#e9f4ff;color:#125f9d}.gzap-stage-badge.is-ready{background:#eaf8ef;color:#187344}.gzap-stage-badge.is-delivered{background:#e6f7ed;color:#12663b}.gzap-stage-badge.is-created{background:#f0f1f3;color:#5b626b}
.gzap-order-stage-card{margin-top:28px}.gzap-order-timeline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;margin:18px 0 8px;overflow:hidden}.gzap-order-timeline__step{position:relative;text-align:center;color:#8a929b;font-size:12px;font-weight:700;padding-top:28px}.gzap-order-timeline__step:before{content:"";position:absolute;left:0;right:0;top:10px;height:3px;background:#e4e7eb}.gzap-order-timeline__step:first-child:before{left:50%}.gzap-order-timeline__step:last-child:before{right:50%}.gzap-order-timeline__step i{position:absolute;top:4px;left:50%;z-index:2;width:15px;height:15px;margin-left:-7.5px;border-radius:50%;background:#d7dce1;border:3px solid #fff;box-shadow:0 0 0 1px #d7dce1}.gzap-order-timeline__step.is-done,.gzap-order-timeline__step.is-current{color:#17212b}.gzap-order-timeline__step.is-done:before,.gzap-order-timeline__step.is-current:before{background:#f4511e}.gzap-order-timeline__step.is-done i,.gzap-order-timeline__step.is-current i{background:#f4511e;box-shadow:0 0 0 1px #f4511e}.gzap-order-timeline__step.is-current i{width:19px;height:19px;top:2px;margin-left:-9.5px}
.gzap-stage-history{margin-top:16px;border:1px solid #e6e9ed;border-radius:10px;padding:12px 14px}.gzap-stage-history summary{cursor:pointer;font-weight:800}.gzap-stage-history ul{list-style:none;margin:12px 0 0;padding:0}.gzap-stage-history li{display:grid;grid-template-columns:145px 180px 1fr;gap:12px;padding:9px 0;border-top:1px solid #eef0f2;font-size:13px}.gzap-stage-history li time{color:#7a838d}.gzap-stage-history li span{color:#646e78}
.gzap-account-heading{margin-bottom:18px}.gzap-account-heading h2{margin-bottom:4px}.gzap-tracking-orders{display:grid;gap:16px}.gzap-tracking-order{border:1px solid #e2e6ea;border-radius:14px;padding:18px;background:#fff}.gzap-tracking-order__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.gzap-tracking-order__head strong{display:block;font-size:17px}.gzap-tracking-order__head small{display:block;margin-top:3px;color:#7b838c}.gzap-tracking-order__meta{display:flex;flex-wrap:wrap;gap:10px 20px;margin:14px 0;font-size:13px}.gzap-tracking-order__actions{display:flex;justify-content:flex-end;margin-top:12px}.gzap-order-timeline.is-compact{margin:14px 0 2px}.gzap-order-timeline.is-compact .gzap-order-timeline__step{font-size:10px;padding-top:24px}
.gzap-account-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 24px}.gzap-account-stats a{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:16px;border:1px solid #e4e7ea;border-radius:12px;text-decoration:none;background:#fff;color:#1b252e}.gzap-account-stats strong{font-size:28px;line-height:1;color:#f4511e}.gzap-account-stats span{font-size:13px;color:#66717b}.gzap-my-orders-track{display:block;margin-top:4px;color:#707880}
@media (max-width:760px){.gzap-order-timeline{grid-template-columns:1fr;gap:0}.gzap-order-timeline__step{text-align:left;padding:7px 0 7px 30px}.gzap-order-timeline__step:before{left:8px!important;right:auto!important;top:0;bottom:0;width:3px;height:auto}.gzap-order-timeline__step i{left:9.5px;top:9px}.gzap-order-timeline__step.is-current i{left:9.5px;top:7px}.gzap-stage-history li{grid-template-columns:1fr;gap:2px}.gzap-account-stats{grid-template-columns:1fr}.gzap-tracking-order__head{flex-direction:column}.gzap-order-timeline.is-compact .gzap-order-timeline__step{font-size:12px;padding-top:7px}}

/* ===== G-ZapAvto 4.1: supplier search / Core integration ===== */
.gz-search-page .gz-search-head{align-items:flex-end}.gz-search-page .gz-search-head h1{margin:.2rem 0 .35rem}.gz-search-page .gz-search-head p,.gz-search-suppliers .section-head p{margin:.25rem 0 0;color:var(--muted,#6b7280)}.gz-search-block{margin-top:24px}.gz-search-suppliers{margin-top:44px}.gzap-offers-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.gzap-offer-card{background:#fff;border:1px solid #e3e7eb;border-radius:12px;padding:18px;display:flex;flex-direction:column;min-height:220px;box-shadow:0 4px 18px rgba(18,28,45,.04)}.gzap-offer-card:hover{border-color:#ff5a24}.gzap-offer-card__brand{font-size:12px;font-weight:700;color:#7b8491;text-transform:uppercase;letter-spacing:.04em}.gzap-offer-card h3{font-size:16px;line-height:1.35;margin:7px 0}.gzap-offer-card__sku{font-size:12px;color:#7b8491}.gzap-offer-card__meta{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0;font-size:12px}.gzap-offer-card__meta span{background:#f4f6f8;padding:6px 9px;border-radius:7px}.gzap-offer-card__bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}.gzap-offer-card__bottom strong{font-size:20px}.gzap-offers-empty{background:#fff;border:1px dashed #d7dde3;border-radius:10px;padding:22px;color:#667085}.gzap-parts-search__form{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:22px}.gzap-parts-search__form input{min-height:48px;border:1px solid #d7dde3;border-radius:8px;padding:0 14px;font-size:16px}.gzap-parts-search__form button{border:0;border-radius:8px;background:#f4511e;color:#fff;padding:0 26px;font-weight:700;cursor:pointer}
@media(max-width:900px){.gzap-offers-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.gzap-offers-grid{grid-template-columns:1fr}.gzap-parts-search__form{grid-template-columns:1fr}.gzap-parts-search__form button{min-height:46px}.gz-search-page .gz-search-suppliers .section-head{align-items:flex-start;gap:12px;flex-direction:column}}
/* G-ZapAvto v4.2: VIN & garage integration */
.vin-box--live{display:grid;grid-template-columns:.8fr 1.2fr;gap:24px;align-items:center}.vin-box__copy h2{margin:8px 0 10px;font-size:30px}.vin-box__copy p{color:var(--muted);margin:0}.header-action--garage{font-size:18px}@media(max-width:820px){.vin-box--live{grid-template-columns:1fr}.header-action--garage{display:none}}
