/* GRIMET UKRAINE — design tokens (see /design/README.md) */
:root {
  --gr-blue: #0070ba;
  --gr-blue-dark: #00538a;
  --gr-navy: #0b2233;
  --gr-text: #3a4a58;
  --gr-text-muted: #6b7c8c;
  --gr-on-dark: #c4d2dd;
  --gr-on-dark-muted: #9fb2c0;
  --gr-bg-section: #f4f6f8;
  --gr-bg-page: #eef2f5;
  --gr-border: #e2e8ee;
  --gr-border-field: #d3dde5;
  --gr-yellow: #ffb100;
  --gr-green: #2e9e5b;
  --gr-nav-active-bg: #eef5fb;
}

body, p, li, span, input, select, textarea, button {
  font-family: 'Manrope', sans-serif;
}
h1, h2, h3, h4, h5, h6,
.ast-oswald,
.site-title,
.main-header-menu a {
  font-family: 'Oswald', sans-serif;
}

/* Header wordmark next to round logo */
.site-header .site-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .5px;
  color: var(--gr-navy) !important;
}
.site-header .custom-logo-link img,
.ast-site-identity .custom-logo-link img {
  border-radius: 50%;
  object-fit: cover;
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
}
.main-header-menu a {
  font-weight: 600;
  font-size: 15px;
  color: var(--gr-text) !important;
}
.main-header-menu .current-menu-item > a,
.main-header-menu .current_page_item > a {
  color: var(--gr-blue) !important;
}

/* Utility bar above the header (see grimet-design-tokens.php) */
.gr-utility-bar {display: none; background: var(--gr-navy); color: var(--gr-on-dark); font-size: 13px; }
.gr-utility-inner {
  max-width: 1180px; margin: 0 auto; padding: 8px 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.gr-utility-inner .left { display: flex; gap: 22px; flex-wrap: wrap; }
.gr-utility-inner .right { display: flex; gap: 22px; align-items: center; }
.gr-utility-inner .right a { color: var(--gr-on-dark); }
.gr-utility-inner .right a:hover { color: #fff; }
.gr-utility-inner .gr-lang-switch { color: var(--gr-on-dark-muted); font-weight: 600; }
.gr-utility-inner .gr-lang-switch.active { color: var(--gr-yellow); }
.site-below-footer-wrap{padding: 0!important; min-height: 30px !important;}
.ast-footer-copyright{font-size: 12px;}
.ast-builder-grid-row-full .ast-builder-grid-row{min-height: 30px !important;}
/* Phone block appended to the primary menu (see grimet-design-tokens.php) */
.main-header-menu li.gr-phone-item {
  margin-left: 22px;
  pointer-events: auto;
}
.gr-phone-block { text-align: right; line-height: 1.2; }
.gr-phone-block .num {
  font-family: 'Oswald', sans-serif; font-size: 19px; font-weight: 600; color: var(--gr-navy) !important;
}
.gr-phone-block .call {
  font-size: 13px; color: var(--gr-blue) !important; font-weight: 400 !important;
}

/* Footer */
.site-footer, footer.site-footer {
  background: var(--gr-navy) !important;
  color: var(--gr-on-dark-muted) !important;
}
.site-footer a { color: var(--gr-on-dark-muted) !important; }
.site-footer a:hover { color: #fff !important; }
.site-footer h2, .site-footer h3, .site-footer .widget-title {
  color: #fff !important;
  font-family: 'Oswald', sans-serif;
}
.gr-footer-columns-wrap { background: var(--gr-navy); color: var(--gr-on-dark-muted);margin-top: 30px; }
.gr-footer-columns-wrap a { color: var(--gr-on-dark-muted); }
.gr-footer-columns-wrap a:hover { color: #fff; }
.gr-footer-columns {
  max-width: 1180px; margin: 0 auto; padding: 44px 24px 26px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
}
.gr-footer-columns .brand {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 22px; color: #fff; letter-spacing: .5px;
}
.gr-footer-columns .col p { font-size: 14px; line-height: 1.6; margin: 12px 0 0; max-width: 260px; }
.gr-footer-columns .title { color: #fff; font-weight: 700; margin-bottom: 12px; }
.gr-footer-columns .links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.gr-footer-columns .phone {
  font-family: 'Oswald', sans-serif; font-size: 22px; color: #fff; margin-top: 2px;
}
.gr-footer-columns .email { font-size: 14px; margin-top: 8px; }
@media (max-width: 900px) {
  .gr-footer-columns { grid-template-columns: 1fr 1fr; }
}

/* ---- GRIMET custom sections (Home 1C) ---- */
.gr-hero {
  background: var(--gr-navy);
  margin: 25px 0;
  border-radius: 25px; }
.gr-hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; align-items: stretch;
}
.gr-hero-copy { padding: 64px 48px 64px 0; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.gr-hero-copy h1 {
  font-weight: 700; font-size: 56px; line-height: 1.02; color: #fff;
  margin: 18px 0 16px; text-transform: uppercase; overflow-wrap: anywhere;
}
.gr-hero-copy p { color: var(--gr-on-dark); font-size: 18px; line-height: 1.55; margin: 0 0 28px; max-width: 460px; }
.gr-hero-stats { display: flex; gap: 26px; }
.gr-hero-stats .num { font-weight: 700; font-size: 32px; color: var(--gr-yellow); font-family: 'Oswald', sans-serif; }
.gr-hero-stats .label { font-size: 13px; color: var(--gr-on-dark-muted); }

.gr-hero-form {
  align-self: center; background: #fff; border-radius: 14px; padding: 30px; margin: 36px 0;
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.gr-hero-form h3 { font-weight: 700; font-size: 22px; margin: 0 0 4px; text-transform: uppercase; color: var(--gr-navy); }
.gr-hero-form > p { color: var(--gr-text-muted); font-size: 14px; margin: 0 0 18px; }
.gr-hero-form .wpcf7-form-control-wrap { display: block; }
.gr-hero-form input[type=text],
.gr-hero-form input[type=tel],
.gr-hero-form input[type=email],
.gr-hero-form select,
.gr-hero-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--gr-border-field); border-radius: 8px;
  font-family: 'Manrope', sans-serif; font-size: 15px; color: var(--gr-text); outline: none; margin-bottom: 12px;
  box-sizing: border-box;
}
.gr-hero-form input[type=submit], .gr-hero-form .wpcf7-submit {
  background: var(--gr-blue); color: #fff; border: none; font-family: 'Oswald', sans-serif;
  font-weight: 600; letter-spacing: .8px; font-size: 16px; padding: 15px; border-radius: 8px;
  cursor: pointer; width: 100%;
}
.gr-hero-form input[type=submit]:hover, .gr-hero-form .wpcf7-submit:hover { background: var(--gr-blue-dark); }
.gr-hero-form .gr-consent { font-size: 12px; color: var(--gr-on-dark-muted); text-align: center; margin-top: 10px; }
.gr-hero-form .wpcf7-response-output { font-size: 13px; border-radius: 8px; margin-top: 10px; }

.gr-section { max-width: 1180px; margin: 0 auto; padding: 40px 24px 10px; }
.gr-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.gr-section-head h2 { font-weight: 700; font-size: 28px; text-transform: uppercase; margin: 0; color: var(--gr-navy); }
.gr-section-head a { font-weight: 600; }

.gr-cat-scroller { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.gr-cat-card { flex: 0 0 200px; text-decoration: none; color: inherit; }
.gr-cat-card .thumb {
  height: 190px; border-radius: 10px; overflow: hidden; background: var(--gr-bg-page);
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px solid var(--gr-border); transition: border-color .15s, box-shadow .15s;
}
.gr-cat-card:hover .thumb { border-color: var(--gr-blue); box-shadow: 0 12px 30px rgba(11,34,51,.12); }
.gr-cat-card .name { font-weight: 600; font-size: 17px; margin-top: 10px; color: var(--gr-navy); font-family: 'Oswald', sans-serif; }

.gr-steps-wrap { background: var(--gr-bg-section); margin-top: 34px; padding: 44px 24px; }
.gr-steps-wrap .gr-section-inner { max-width: 1180px; margin: 0 auto; }
.gr-steps-wrap h2 { text-align: center; margin: 0 0 24px; }
.gr-steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.gr-step { background: #fff; border-radius: 10px; padding: 24px; }
.gr-step .n { font-weight: 700; font-size: 38px; color: var(--gr-blue); font-family: 'Oswald', sans-serif; }
.gr-step .t { font-weight: 600; font-size: 18px; margin: 8px 0 6px; font-family: 'Oswald', sans-serif; color: var(--gr-navy); }
.gr-step .d { font-size: 14px; color: var(--gr-text-muted); line-height: 1.5; }

.gr-projects-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.gr-projects-grid .ph { height: 170px; border-radius: 10px; overflow: hidden; background: var(--gr-bg-page); }

.gr-btn-yellow {
  background: var(--gr-yellow); color: var(--gr-navy); border: none; font-family: 'Oswald', sans-serif;
  font-weight: 600; letter-spacing: .8px; font-size: 16px; padding: 15px 30px; border-radius: 6px; cursor: pointer;
  text-transform: uppercase; display: inline-block; text-decoration: none;
}
.gr-btn-outline-light {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4);
  font-family: 'Oswald', sans-serif; font-weight: 500; letter-spacing: .8px; font-size: 16px;
  padding: 15px 26px; border-radius: 6px; cursor: pointer; text-transform: uppercase;
  display: inline-block; text-decoration: none;
}

/* Astra renders a duplicate mobile-header block in the DOM; it should stay
   hidden above the responsive breakpoint but was leaking into view. */
#ast-mobile-header { display: none !important; }
@media (max-width: 921px) {
  #ast-mobile-header { display: block !important; }
}

@media (max-width: 900px) {
  .gr-hero-inner { grid-template-columns: 1fr; }
  .gr-hero-copy { padding: 40px 0; }
  .gr-hero-copy h1 { font-size: 34px; }
  .gr-hero-form { margin: 0 0 32px; }
  .gr-steps-grid, .gr-projects-grid { grid-template-columns: repeat(2,1fr); }
}

/* ---- Single product page (Товар.dc.html) ---- */
nav.woocommerce-breadcrumb {
  background: var(--gr-bg-section);
  border-bottom: 1px solid var(--gr-border);
  padding: 16px 24px;
  font-size: 13px;
  color: var(--gr-text-muted);
  display: block;
}
nav.woocommerce-breadcrumb a { color: var(--gr-text-muted); }

.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper {
  border: 1px solid var(--gr-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gr-bg-section);
}
.woocommerce-product-gallery__image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.flex-control-thumbs li { margin: 0; }
.flex-control-thumbs li img {
  height: 88px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--gr-border);
}
.flex-control-thumbs li img.flex-active { border-color: var(--gr-blue); border-width: 2px; }

/* Astra's shop-loop "modern card" style renders its own separate, unstyled
   "Sale!" badge (class ast-onsale-card) that calls get_sale_flash_markup()
   directly instead of through the woocommerce_sale_flash filter — so our
   featured-product badge text override doesn't reach it. We already show our
   own styled badge via .onsale (below); hide this duplicate. */
.ast-onsale-card { display: none !important; }

.onsale {
  background: var(--gr-blue) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  text-transform: uppercase;
  min-height: unset !important;
  min-width: unset !important;
  height: auto !important;
  width: auto !important;
  line-height: normal !important;
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  position: absolute !important;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .3px;
}

.summary.entry-summary { padding-top: 4px; }
.summary.entry-summary > .product_meta { display: none; }
.gr-sku-row {
  display: flex; align-items: center; gap: 12px; margin: 0 0 8px;
  font-size: 13px; color: var(--gr-text-muted);
}
.gr-sku-row strong { color: var(--gr-navy); }
.gr-sku-row .stock { color: var(--gr-green); font-weight: 700; }

.gr-quickspecs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin: 18px 0 24px;
}
.gr-quickspecs .tile { background: var(--gr-bg-section); border-radius: 8px; padding: 12px 14px; }
.gr-quickspecs .k { font-size: 12px; color: var(--gr-text-muted); }
.gr-quickspecs .v { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px; color: var(--gr-navy); }

.gr-price-card {
  border: 1px solid var(--gr-border); border-radius: 12px; padding: 22px;
  background: #fff; box-shadow: 0 12px 30px rgba(11,34,51,.06); margin-top: 4px;
}
.gr-price-heading { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 26px; color: var(--gr-blue); }
.gr-price-card p { font-size: 13px; color: var(--gr-text-muted); margin: 4px 0 16px; }
.gr-price-card .enquiry-btn,
.gr-price-card .catalogx-enquiry-btn {
  background: var(--gr-yellow) !important; color: var(--gr-navy) !important;
  font-family: 'Oswald', sans-serif !important; font-weight: 600; letter-spacing: .6px;
  font-size: 16px; padding: 14px 26px; border-radius: 8px !important; text-transform: uppercase;
  display: inline-block; border: none !important; cursor: pointer;
}
.gr-price-card .enquiry-btn:hover,
.gr-price-card .catalogx-enquiry-btn:hover { background: #e6a000 !important; }
.gr-price-benefits {
  display: flex; gap: 20px; margin-top: 16px; font-size: 13px; color: var(--gr-text); flex-wrap: wrap;
}

.gr-specs-layout {
  clear: both;
  display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; margin-top: 16px;
}
.gr-specs-layout .woocommerce-tabs { margin: 0; }
/*
 * Astra's own woocommerce-grid.min.css targets `.woocommerce-js div.product
 * .woocommerce-tabs ul.tabs li a` (specificity 0,4,4) with font-weight:700 and
 * color:#515151 on every tab regardless of active state, plus its own
 * absolutely-positioned ::before/::after "folder tab" bars and an extra
 * ul.tabs::before bottom border. That out-specifies our plain
 * `.woocommerce-tabs ul.tabs li a` (0,2,3) rule below, so both the
 * active/inactive color split and the design's clean single underline were
 * being silently lost — !important + explicitly killing Astra's pseudo-elements
 * is required, not just matching its declarations.
 */
.woocommerce-tabs ul.tabs {
  border-bottom: 2px solid var(--gr-border); margin: 0 0 22px; padding: 0;
  display: flex; gap: 24px; list-style: none; overflow: visible;
}
.woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0; }
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li a {
  font-family: 'Oswald', sans-serif !important; font-weight: 600 !important; font-size: 20px !important;
  text-transform: uppercase; color: var(--gr-on-dark-muted) !important; padding: 0 0 12px !important; display: inline-block;
}
.woocommerce-tabs ul.tabs li.active a {
  color: var(--gr-navy) !important; font-weight: 700 !important;
  border-bottom: 3px solid var(--gr-blue); margin-bottom: -2px;
}
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 15px; }
.woocommerce-product-attributes tr { border-bottom: 1px solid var(--gr-bg-page); }
.woocommerce-product-attributes tr:nth-child(even) { background: #f8fafb; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 12px 4px; }
.woocommerce-product-attributes th { color: var(--gr-text-muted); font-weight: 400; width: 45%; text-align: left; }
.woocommerce-product-attributes td { font-weight: 600; }

.gr-consult-card {
  border: 1px solid var(--gr-border); border-radius: 12px; padding: 22px; background: var(--gr-bg-section);
}
.gr-consult-card .t {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 18px; text-transform: uppercase;
  margin: 0 0 6px; color: var(--gr-navy);
}
.gr-consult-card p { font-size: 14px; color: var(--gr-text); line-height: 1.5; margin: 0 0 16px; }
.gr-consult-card .phone { font-family: 'Oswald', sans-serif; font-size: 24px; color: var(--gr-navy); margin-bottom: 12px; }
.gr-consult-card .btn {
  display: block; text-align: center; width: 100%; box-sizing: border-box;
  background: var(--gr-blue); color: #fff; font-family: 'Oswald', sans-serif; font-weight: 600;
  letter-spacing: .6px; padding: 13px; border-radius: 8px;
}
.gr-consult-card .btn:hover { background: var(--gr-blue-dark); color: #fff; }

.related.products {
  margin-top: 44px;
}
.related.products > h2 {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 26px; text-transform: uppercase;
}

@media (max-width: 900px) {
  .gr-specs-layout { grid-template-columns: 1fr; }
  .gr-quickspecs { grid-template-columns: 1fr; }
}

/* ---- Catalog / archive pages (Каталог.dc.html) ---- */
nav.woocommerce-breadcrumb:has(+ header.woocommerce-products-header) {
  border-bottom: none;
  padding-bottom: 6px;
}
header.woocommerce-products-header {
  background: var(--gr-bg-section);
  border-bottom: 1px solid var(--gr-border);
  padding: 6px 24px 20px;
  margin: 0 0 20px;
}
.woocommerce-products-header__title.page-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 34px;
  text-transform: uppercase;
  margin: 0;
  color: var(--gr-navy);
}

.gr-catalog-layout {
  clear: both;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}

.gr-cat-sidebar {
  border: 1px solid var(--gr-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.gr-cat-sidebar .head {
  background: var(--gr-blue);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: .6px;
  padding: 14px 18px;
  font-size: 16px;
  text-transform: uppercase;
}
.gr-cat-sidebar .cat-list { display: flex; flex-direction: column; padding: 6px 0; }
.gr-cat-sidebar .cat-list a {
  padding: 11px 18px;
  color: var(--gr-text);
  font-size: 14px;
}
.gr-cat-sidebar .cat-list a .count { color: var(--gr-on-dark-muted); }
.gr-cat-sidebar .cat-list a.active {
  color: var(--gr-blue);
  font-weight: 700;
  background: var(--gr-nav-active-bg);
}
.gr-cat-sidebar .filter-block { border-top: 1px solid var(--gr-border); padding: 18px; }
.gr-cat-sidebar .filter-block .title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--gr-navy);
}
.gr-cat-sidebar .filter-block label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--gr-text);
  cursor: pointer;
}
.gr-cat-sidebar .filter-block input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--gr-blue); }
.gr-cat-sidebar .filter-block .range-row { display: flex; gap: 8px; align-items: center; }
.gr-cat-sidebar .filter-block .range-row input {
  width: 100%; padding: 9px 10px; border: 1px solid var(--gr-border-field); border-radius: 7px;
  font-family: 'Manrope', sans-serif; font-size: 14px; outline: none; box-sizing: border-box;
}
.gr-cat-sidebar .filter-block .range-row span { color: var(--gr-on-dark-muted); }
.gr-cat-sidebar .filter-actions { padding: 0 18px 20px; }
.gr-cat-sidebar .filter-actions .apply {
  width: 100%; background: var(--gr-blue); color: #fff; border: none; font-family: 'Oswald', sans-serif;
  font-weight: 600; letter-spacing: .6px; padding: 13px; border-radius: 8px; cursor: pointer; text-transform: uppercase;
}
.gr-cat-sidebar .filter-actions .reset {
  width: 100%; background: none; color: var(--gr-text-muted); border: none; font-size: 13px; margin-top: 8px; cursor: pointer;
}

.gr-catalog-main .woocommerce-result-count,
.gr-catalog-toolbar { color: var(--gr-text-muted); font-size: 14px; margin: 0; }
.gr-catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.gr-catalog-main .woocommerce-result-count strong { color: var(--gr-navy); }
.gr-catalog-main .woocommerce-ordering select,
.woocommerce-ordering select {
  padding: 10px 14px; border: 1px solid var(--gr-border-field); border-radius: 8px;
  font-family: 'Manrope', sans-serif; font-size: 14px; color: var(--gr-text); outline: none; background: #fff;
}

/* Scoped to the shop/category archive specifically — WooCommerce/Astra give
   the loop "columns-4" by default there too, but design wants a 3-up grid on
   the catalog while other [products] shortcode usages (e.g. the home page
   "Лідери продажу" section) should keep their own explicit column count. */
.ast-woo-shop-archive ul.products.columns-4,
.ast-woo-shop-archive ul.products.columns-3 { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }
ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }

/*
 * WooCommerce/Astra renders shop-loop cards as (in source order):
 *   .astra-shop-thumbnail-wrap  ->  our .gr-price-request span  ->  the enquiry
 *   button  ->  .astra-shop-summary-wrap (category + title)
 * i.e. the button comes BEFORE the title in the DOM, and Astra opens/closes its
 * own wrapper divs at the same action priorities we'd need to bracket a custom
 * wrapper div at, so any hand-rolled <div> around price+button reliably ends up
 * mismatched. CSS Grid areas place each of these direct children wherever we
 * want regardless of DOM order, sidestepping the problem entirely.
 */
ul.products li.product {
  border: 1px solid var(--gr-border); border-radius: 10px; overflow: hidden; background: #fff;
  padding: 0 !important; margin: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  grid-template-rows: auto 1fr auto !important;
  grid-template-areas: "thumb thumb" "summary summary" "price button" !important;
  align-items: center;
}
ul.products li.product > .astra-shop-thumbnail-wrap {
  grid-area: thumb !important;
  position: relative; height: 270px; background: var(--gr-bg-section); overflow: hidden;
}
ul.products li.product > .astra-shop-thumbnail-wrap img { height: 100%; width: 100%; object-fit: cover; }
ul.products li.product > .astra-shop-summary-wrap {
  grid-area: summary !important; align-self: start; padding: 14px 16px 0;
}
ul.products li.product .ast-woo-product-category { display: none; }
ul.products li.product h2.woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
  font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--gr-navy); margin: 0;
}
ul.products li.product .gr-card-sub { font-size: 13px; color: var(--gr-text-muted); margin: 8px 0 0; }
ul.products li.product > .gr-price-request {
  grid-area: price !important; align-self: center; padding: 14px 0 16px 16px;
  font-family: 'Oswald', sans-serif; font-weight: 600; color: var(--gr-blue); font-size: 15px; white-space: nowrap;
}
/* .catalogx-enquiry-btn (used on category archives, via the [catalogx_enquiry_button]
   shortcode) is wrapped in its own <div id="catalogx-enquiry">, which is the
   actual direct child of li.product — .enquiry-btn (shop page loop) is a direct
   child itself. Grid-place the wrapper; style the button (direct or nested). */
ul.products li.product > .enquiry-btn,
ul.products li.product > #catalogx-enquiry {
  grid-area: button !important; justify-self: end; align-self: center; margin: 14px 16px 16px 8px;
}
ul.products li.product .enquiry-btn,
ul.products li.product .catalogx-enquiry-btn {
  background: var(--gr-blue) !important; color: #fff !important; border: none !important;
  font-family: 'Oswald', sans-serif !important; font-weight: 500; letter-spacing: .5px;
  padding: 9px 14px; border-radius: 6px !important; cursor: pointer; text-transform: uppercase;
  font-size: 13px; white-space: nowrap; line-height: 1.3; display: inline-block;
}
ul.products li.product .enquiry-btn:hover,
ul.products li.product .catalogx-enquiry-btn:hover { background: var(--gr-blue-dark) !important; }

.woocommerce-pagination ul.page-numbers {
  display: flex; gap: 8px; justify-content: center; margin: 30px 0 4px; list-style: none; padding: 0;
}
.woocommerce-pagination .page-numbers li { display: contents; }
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--gr-border-field); color: var(--gr-text); font-weight: 600;
}
.woocommerce-pagination .page-numbers .current,
.woocommerce-pagination .page-numbers a:hover {
  background: var(--gr-blue); color: #fff; border-color: var(--gr-blue);
}

.gr-catalog-cta {
  background: var(--gr-blue); border-radius: 12px; padding: 36px 44px; margin: 34px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.gr-catalog-cta h3 {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 26px; color: #fff; margin: 0 0 8px; text-transform: uppercase;
}
.gr-catalog-cta p { color: #cfe4f2; margin: 0; font-size: 16px; }
.gr-catalog-cta a.btn {
  background: var(--gr-yellow); color: var(--gr-navy); font-family: 'Oswald', sans-serif; font-weight: 600;
  font-size: 16px; letter-spacing: .8px; padding: 16px 34px; border-radius: 6px; white-space: nowrap; text-transform: uppercase;
  text-decoration: none; display: inline-block;
}
.gr-catalog-cta a.btn:hover { color: var(--gr-navy); background: #e6a000; }

@media (max-width: 900px) {
  .gr-catalog-layout { grid-template-columns: 1fr; }
  ul.products.columns-4, ul.products.columns-3 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Below ~560px a 2-up product grid leaves each card too narrow for the
   nowrap "price" text + enquiry button to share one row (both need ~280px
   combined) — they were getting clipped by li.product's overflow:hidden.
   Drop to a single column and stack price above the button instead. */
@media (max-width: 560px) {
  .ast-woo-shop-archive ul.products.columns-4,
  .ast-woo-shop-archive ul.products.columns-3,
  ul.products.columns-4,
  ul.products.columns-3 { grid-template-columns: 1fr !important; }

  ul.products li.product {
    grid-template-columns: 1fr auto !important;
    grid-template-areas: "thumb thumb" "summary summary" "price price" "button button" !important;
  }
  ul.products li.product > .gr-price-request {
    padding: 12px 16px 0; white-space: normal;
  }
  ul.products li.product > .enquiry-btn,
  ul.products li.product > #catalogx-enquiry {
    justify-self: stretch; margin: 10px 16px 16px;
  }
  ul.products li.product .enquiry-btn,
  ul.products li.product .catalogx-enquiry-btn {
    display: block; width: 100%; text-align: center; box-sizing: border-box;
  }
}

/* ---- Home page additions (updated Головна.dc.html "1A") ---- */
.gr-usp-strip {
  max-width: 1180px; margin: 20px auto; padding: 0 24px 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gr-usp-strip .tile {
  display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--gr-bg-section); border-radius: 10px;
}
.gr-usp-strip .tile .num { font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 700; color: var(--gr-blue); white-space: nowrap; }
.gr-usp-strip .tile .lbl { font-size: 14px; color: var(--gr-text); line-height: 1.3; }

.gr-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gr-cat-grid .gr-cat-card { flex: none; }
.gr-cat-grid .gr-cat-card .thumb { height: 190px; }

.gr-leaders-head {
  display: flex; align-items: baseline; gap: 24px; margin-bottom: 20px; border-bottom: 2px solid var(--gr-border);
}
.gr-leaders-head .active-tab {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 24px; text-transform: uppercase;
  margin: 0 0 -2px; padding: 0 4px 12px; border-bottom: 3px solid var(--gr-blue); color: var(--gr-navy);
}
.gr-leaders-head a { color: var(--gr-text-muted); font-weight: 600; padding-bottom: 12px; }

.gr-projects-asym {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 150px 150px; gap: 12px;
}
.gr-projects-asym .big { grid-row: span 2; border-radius: 10px; overflow: hidden; }
.gr-projects-asym div img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-projects-asym > div:not(.big) { border-radius: 10px; overflow: hidden; }

@media (max-width: 900px) {
  .gr-usp-strip { grid-template-columns: repeat(2, 1fr); }
  .gr-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gr-projects-asym { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px 150px; }
  .gr-projects-asym .big { grid-row: span 1; grid-column: span 2; }
}

/* ---- Generic custom-page header (Контакти.dc.html etc. — non-WooCommerce pages) ---- */
.gr-page-header { background: var(--gr-bg-section); border-bottom: 1px solid var(--gr-border); padding: 20px 24px; margin: 0 0 24px; }
.gr-page-header .crumb { font-size: 13px; color: var(--gr-text-muted); margin-bottom: 10px; }
.gr-page-header .crumb a { color: var(--gr-text-muted); }
.gr-page-header .crumb span { color: var(--gr-navy); }
.gr-page-header h1 {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 34px; text-transform: uppercase; margin: 0; color: var(--gr-navy);
}

/* ---- Contacts page ---- */
.gr-contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 10px; }
.gr-contact-card { border: 1px solid var(--gr-border); border-radius: 12px; padding: 24px; }
.gr-contact-card .icon {
  width: 46px; height: 46px; background: var(--gr-nav-active-bg); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--gr-blue); font-size: 22px; margin-bottom: 14px;
}
.gr-contact-card .label {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 16px; text-transform: uppercase; color: var(--gr-text-muted); letter-spacing: .5px;
}
.gr-contact-card .data { font-family: 'Oswald', sans-serif; font-size: 24px; margin-top: 8px; color: var(--gr-navy); }
.gr-contact-card .sub { font-size: 13px; color: var(--gr-text-muted); margin-top: 8px; }

.gr-contact-layout { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }

.gr-request-form-card { border: 1px solid var(--gr-border); border-radius: 14px; padding: 30px; }
.gr-request-form-card h2 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 26px; text-transform: uppercase; margin: 0 0 6px; color: var(--gr-navy); }
.gr-request-form-card > p { color: var(--gr-text-muted); margin: 0 0 22px; font-size: 15px; }
.gr-request-form-card .gr-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.gr-request-form-card input[type=text],
.gr-request-form-card input[type=tel],
.gr-request-form-card input[type=email],
.gr-request-form-card select,
.gr-request-form-card textarea {
  width: 100%; padding: 14px; border: 1px solid var(--gr-border-field); border-radius: 8px;
  font-family: 'Manrope', sans-serif; font-size: 15px; color: var(--gr-text); outline: none; box-sizing: border-box;
  margin-bottom: 14px;
}
.gr-request-form-card textarea { resize: vertical; }
.gr-request-form-card .gr-form-submit-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.gr-request-form-card input[type=submit] {
  background: var(--gr-blue); color: #fff; border: none; font-family: 'Oswald', sans-serif; font-weight: 600;
  letter-spacing: .6px; font-size: 16px; padding: 15px 36px; border-radius: 8px; cursor: pointer;
}
.gr-request-form-card input[type=submit]:hover { background: var(--gr-blue-dark); }
.gr-request-form-card .gr-form-consent { font-size: 12px; color: var(--gr-on-dark-muted); max-width: 220px; }

.gr-hours-card { background: var(--gr-navy); border-radius: 14px; padding: 26px; color: var(--gr-on-dark); }
.gr-hours-card .title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 20px; color: #fff; text-transform: uppercase; margin-bottom: 16px; }
.gr-hours-card .row {
  display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.gr-hours-card .row:last-child { border-bottom: none; }
.gr-hours-card .row .val { color: #fff; font-weight: 700; }
.gr-hours-card .row .off { color: var(--gr-yellow) !important; }

.gr-requisites-card { border: 1px solid var(--gr-border); border-radius: 14px; padding: 26px; margin-top: 16px; }
.gr-requisites-card .title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; margin-bottom: 14px; color: var(--gr-navy); }
.gr-requisites-card .data { font-size: 14px; color: var(--gr-text); line-height: 1.8; }

.gr-map-section {
  height: 360px; border: 1px solid var(--gr-border); border-radius: 14px; overflow: hidden; position: relative;
  background: var(--gr-bg-page); margin: 24px 0 10px;
}
.gr-map-section img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-map-card {
  position: absolute; top: 18px; left: 18px; background: #fff; border-radius: 10px; padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(11,34,51,.15); max-width: 260px;
}
.gr-map-card .name { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 16px; text-transform: uppercase; color: var(--gr-navy); }
.gr-map-card .addr { font-size: 14px; color: var(--gr-text); margin-top: 6px; }
.gr-map-card a { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px; }

@media (max-width: 900px) {
  .gr-contact-cards { grid-template-columns: 1fr; }
  .gr-contact-layout { grid-template-columns: 1fr; }
  .gr-request-form-card .gr-form-row-2 { grid-template-columns: 1fr; }
}

/* ---- Production page (Виробництво.dc.html) ---- */
.gr-prod-hero { position: relative; height: 420px; background: var(--gr-navy); overflow: hidden; }
.gr-prod-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-prod-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,34,51,.92) 0%, rgba(11,34,51,.55) 50%, rgba(11,34,51,.15) 100%);
}
.gr-prod-hero-inner { position: relative; height: 100%; display: flex; align-items: center; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.gr-prod-hero-content { max-width: 640px; }
.gr-prod-hero .crumb { font-size: 13px; color: var(--gr-on-dark-muted); margin-bottom: 16px; }
.gr-prod-hero .crumb a { color: var(--gr-on-dark-muted); }
.gr-prod-hero .crumb span { color: var(--gr-on-dark); }
.gr-prod-badge {
  display: inline-block; background: var(--gr-blue); color: #fff; font-family: 'Oswald', sans-serif;
  font-weight: 500; letter-spacing: 1.2px; font-size: 13px; padding: 7px 14px; border-radius: 3px;
}
.gr-prod-hero h1 {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 54px; line-height: 1.03; color: #fff;
  margin: 16px 0 14px; text-transform: uppercase;
}
.gr-prod-hero p { color: var(--gr-on-dark); font-size: 18px; line-height: 1.55; margin: 0; max-width: 520px; }

.gr-stat-band { background: var(--gr-blue); }
.gr-stat-band-inner {
  max-width: 1180px; margin: 0 auto; padding: 26px 24px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; color: #fff;
}
.gr-stat-band .stat { text-align: center; }
.gr-stat-band .stat:not(:first-child) { border-left: 1px solid rgba(255,255,255,.2); }
.gr-stat-band .stat .num { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 40px; line-height: 1; }
.gr-stat-band .stat .lbl { font-size: 14px; color: #cfe4f2; margin-top: 6px; }

.gr-eyebrow { color: var(--gr-blue); font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: 1.5px; font-size: 14px; display: inline-block; }

.gr-prod-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.gr-prod-intro .photo { height: 360px; border-radius: 12px; overflow: hidden; }
.gr-prod-intro .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-prod-intro h2 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 36px; text-transform: uppercase; margin: 12px 0 18px; line-height: 1.05; color: var(--gr-navy); }
.gr-prod-intro > div > p { color: var(--gr-text); font-size: 16px; line-height: 1.65; margin: 0 0 16px; }

.gr-check-list { display: flex; flex-direction: column; gap: 12px; }
.gr-check-list .item { display: flex; gap: 12px; align-items: center; }
.gr-check-list .item .dot {
  width: 26px; height: 26px; background: var(--gr-blue); border-radius: 50%; color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 15px; flex: none;
}
.gr-check-list .item .t { font-weight: 600; }

.gr-process-wrap { background: var(--gr-bg-section); margin-top: 48px; padding: 52px 24px; }
.gr-process-wrap .gr-section-inner { max-width: 1180px; margin: 0 auto; }
.gr-process-head { text-align: center; margin-bottom: 32px; }
.gr-process-head h2 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 34px; text-transform: uppercase; margin: 10px 0 0; color: var(--gr-navy); }
.gr-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gr-process-card { background: #fff; border-radius: 12px; overflow: hidden; }
.gr-process-card .thumb { height: 150px; background: var(--gr-bg-page); }
.gr-process-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-process-card .body { padding: 20px; }
.gr-process-card .num { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 30px; color: var(--gr-blue); }
.gr-process-card .t { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px; margin: 6px 0 6px; color: var(--gr-navy); }
.gr-process-card .d { font-size: 14px; color: var(--gr-text-muted); line-height: 1.5; }

.gr-capabilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gr-cap-tile { border: 1px solid var(--gr-border); border-radius: 12px; padding: 24px; }
.gr-cap-tile .num { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 30px; color: var(--gr-blue); }
.gr-cap-tile .lbl { font-size: 14px; color: var(--gr-text); margin-top: 6px; line-height: 1.4; }

.gr-prod-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 12px; }
.gr-prod-gallery .big { grid-row: span 2; border-radius: 12px; overflow: hidden; }
.gr-prod-gallery > div:not(.big) { border-radius: 12px; overflow: hidden; }
.gr-prod-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .gr-prod-hero h1 { font-size: 36px; }
  .gr-prod-intro { grid-template-columns: 1fr; }
  .gr-process-grid { grid-template-columns: 1fr 1fr; }
  .gr-capabilities-grid { grid-template-columns: 1fr 1fr; }
  .gr-prod-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .gr-prod-gallery .big { grid-row: span 1; grid-column: span 2; }
}

/* ---- Projects page (Проєкти.dc.html) ---- */
.gr-filter-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.gr-filter-chips a {
  background: var(--gr-bg-section); color: var(--gr-text); font-family: 'Oswald', sans-serif; font-weight: 500;
  letter-spacing: .5px; font-size: 14px; padding: 9px 18px; border-radius: 30px;
}
.gr-filter-chips a.active { background: var(--gr-blue); color: #fff; }

.gr-projects-grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gr-project-card { border: 1px solid var(--gr-border); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .15s; }
.gr-project-card:hover { box-shadow: 0 16px 36px rgba(11,34,51,.14); }
.gr-project-card .thumb { position: relative; height: 220px; background: var(--gr-bg-section); }
.gr-project-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-project-card .tag {
  position: absolute; top: 12px; left: 12px; background: var(--gr-blue); color: #fff; font-size: 11px;
  font-weight: 700; padding: 4px 10px; border-radius: 4px;
}
.gr-project-card .tag.repair { background: var(--gr-yellow); color: var(--gr-navy); }
.gr-project-card .body { padding: 20px; }
.gr-project-card .body .t { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--gr-navy); }
.gr-project-card .body .d { font-size: 14px; color: var(--gr-text-muted); margin: 8px 0 0; line-height: 1.5; }

.gr-load-more { text-align: center; margin: 8px 0 4px; }
.gr-load-more .btn {
  background: #fff; color: var(--gr-blue); border: 2px solid var(--gr-blue); font-family: 'Oswald', sans-serif;
  font-weight: 600; letter-spacing: .6px; font-size: 15px; padding: 13px 34px; border-radius: 8px; cursor: pointer;
  display: inline-block;
}

.gr-testimonial { background: var(--gr-navy); margin-top: 44px; padding: 52px 24px; }
.gr-testimonial-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.gr-testimonial .quote-mark { font-family: 'Oswald', sans-serif; font-size: 64px; color: var(--gr-blue); line-height: .4; display: block; margin-bottom: 18px; }
.gr-testimonial p { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 26px; line-height: 1.4; color: #fff; margin: 0 0 22px; }
.gr-testimonial .person { display: flex; align-items: center; justify-content: center; gap: 14px; }
.gr-testimonial .avatar {
  width: 52px; height: 52px; border-radius: 50%; background: #1c3346; display: flex; align-items: center;
  justify-content: center; color: #fff; font-family: 'Oswald', sans-serif; font-weight: 700; flex: none;
}
.gr-testimonial .who { text-align: left; }
.gr-testimonial .who .name { color: #fff; font-weight: 700; }
.gr-testimonial .who .role { color: var(--gr-on-dark-muted); font-size: 14px; }

@media (max-width: 900px) {
  .gr-projects-grid-cards { grid-template-columns: 1fr 1fr; }
}
