/*
Theme Name: M2W Shop
Template: astra
Version: 3.1.10
*/

:root {
  /* Astra's own primary palette — still its factory blue since we never
     touched the Customizer. Native controls (checked radio/checkbox,
     the scroll-to-top button) read straight from these, so retint them
     here instead of chasing every individual selector. */
  --ast-global-color-0: #00a046;
  --ast-global-color-1: #00842f;

  --tvg-ink: #221f1f;
  --tvg-ink-2: #3f4247;
  --tvg-muted: #75797e;
  --tvg-faint: #9aa0a6;
  --tvg-bg: #ffffff;
  --tvg-surface: #f5f6f8;
  --tvg-line: #e5e7ea;
  --tvg-line-soft: #eef0f2;
  --tvg-header: #221f1f;
  --tvg-green: #00a046;
  --tvg-green-dark: #00842f;
  --tvg-green-soft: #e8f6ed;
  --tvg-red: #f84147;
  --tvg-gold: #ffa900;
  --tvg-radius-sm: 4px;
  --tvg-radius: 8px;
  --tvg-radius-lg: 12px;
  --tvg-shadow: 0 1px 2px rgba(34, 31, 31, .06);
  --tvg-shadow-md: 0 4px 14px rgba(34, 31, 31, .1);
  --tvg-shadow-lg: 0 10px 34px rgba(34, 31, 31, .14);
  --tvg-wrap: 1440px;
  --tvg-font: "Manrope", "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--tvg-bg);
  color: var(--tvg-ink);
  font-family: var(--tvg-font);
  font-variant-numeric: tabular-nums;
  accent-color: var(--tvg-green);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.woocommerce-loop-product__title,
.woocommerce div.product .product_title {
  font-family: var(--tvg-font) !important;
  letter-spacing: -.01em;
}

body.tvg-locked {
  overflow: hidden;
}

.tvg-i {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

a {
  color: inherit;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

/* Astra underlines every link inside .entry-content on singular pages. */
.entry-content .tvg-home a,
.entry-content .tvg-page a,
.entry-content .tvg-wishlist a {
  text-decoration: none;
}

/* Astra's ".entry-content ul" default padding-left beats our plain
   ".tvg-cat-list { padding: 0 }" on the homepage rail, pushing the whole
   column off-center. */
.entry-content .tvg-cat-list {
  padding-left: 0;
}

.entry-content .tvg-cat-sub {
  padding-left: 41px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  /* box-shadow instead of outline: outline is always square and ignores
     border-radius, so it cuts across rounded buttons at the corners. */
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 160, 70, .45);
}

.ast-container,
.site-content .ast-container {
  max-width: var(--tvg-wrap);
}

.home .site-content .ast-container {
  display: block;
  max-width: none;
  padding: 0;
}

.home .entry-title,
.tvg-home p:empty {
  display: none;
}

/* .tvg-page supplies its own <h1>; hide Astra's duplicate page-header title. */
body.tvg-own-title .entry-title {
  display: none;
}

/* =========================================================================
   Header
   ====================================================================== */

.tvg-hdr {
  position: sticky;
  top: 0;
  z-index: 60;
}

.tvg-hdr-bar {
  background: var(--tvg-header);
}

.tvg-hdr-in {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(var(--tvg-wrap), 100%);
  margin-inline: auto;
  padding: 11px 16px;
}

.tvg-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--tvg-radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.tvg-burger:hover {
  background: rgba(255, 255, 255, .12);
}

.tvg-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.tvg-logo img {
  display: block;
  width: 158px;
  height: auto;
}

.tvg-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--tvg-radius);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.tvg-catalog-btn:hover,
.tvg-catalog-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .5);
}

.tvg-catalog-btn .tvg-i {
  width: 19px;
  height: 19px;
}

.tvg-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 660px;
  height: 42px;
  padding: 0 5px 0 12px;
  border-radius: var(--tvg-radius);
  background: #fff;
}

.tvg-search-ico {
  width: 20px;
  height: 20px;
  color: var(--tvg-faint);
}

.tvg-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--tvg-ink);
  font-family: inherit;
  font-size: 15px;
}

.tvg-search input[type="search"]::placeholder {
  color: var(--tvg-faint);
}

.tvg-search button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--tvg-green);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tvg-search button:hover {
  background: var(--tvg-green-dark);
}

.tvg-hdr-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
}

.tvg-hdr-act {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--tvg-radius);
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
}

.tvg-hdr-act:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.tvg-hdr-act-ico {
  position: relative;
  display: flex;
}

.tvg-hdr-act .tvg-i {
  width: 24px;
  height: 24px;
}

.tvg-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--tvg-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.tvg-hdr-act-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.tvg-hdr-act-label {
  font-size: 13px;
  font-weight: 700;
}

.tvg-hdr-act-sub {
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
}

.tvg-subbar {
  border-bottom: 1px solid var(--tvg-line);
  background: var(--tvg-surface);
}

.tvg-subbar-in {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(var(--tvg-wrap), 100%);
  margin-inline: auto;
  padding: 0 16px;
  height: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tvg-subbar-in::-webkit-scrollbar {
  display: none;
}

.tvg-subbar-in a {
  flex: 0 0 auto;
  color: var(--tvg-ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tvg-subbar-in a:hover {
  color: var(--tvg-green-dark);
}

.tvg-subbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-weight: 800 !important;
}

.tvg-subbar-phone .tvg-i {
  width: 15px;
  height: 15px;
}

/* Catalog dropdown */

.tvg-cat-panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 70;
  border-bottom: 1px solid var(--tvg-line);
  background: #fff;
  box-shadow: var(--tvg-shadow-lg);
}

.tvg-cat-panel[hidden] {
  display: none;
}

.tvg-cat-panel-in {
  width: min(var(--tvg-wrap), 100%);
  margin-inline: auto;
  padding: 24px 16px 20px;
}

.tvg-cat-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tvg-cat-list--panel > .tvg-cat-item {
  padding-bottom: 10px;
}

.tvg-cat-item > a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: var(--tvg-radius);
  color: var(--tvg-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.tvg-cat-item > a:hover,
.tvg-cat-item.is-current > a {
  background: var(--tvg-green-soft);
  color: var(--tvg-green-dark);
}

.tvg-cat-ico {
  width: 20px;
  height: 20px;
  color: var(--tvg-green);
}

.tvg-cat-name {
  flex: 1 1 auto;
}

.tvg-cat-count {
  color: var(--tvg-faint);
  font-size: 12px;
  font-weight: 600;
}

.tvg-cat-sub {
  margin: 2px 0 0;
  padding: 0 0 0 41px;
  list-style: none;
}

.tvg-cat-sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px 5px 0;
  color: var(--tvg-muted);
  font-size: 13.5px;
  text-decoration: none;
}

.tvg-cat-sub a:hover {
  color: var(--tvg-green-dark);
}

.tvg-cat-panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--tvg-line);
}

.tvg-cat-panel-foot a {
  color: var(--tvg-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.tvg-cat-panel-foot a:hover {
  color: var(--tvg-green-dark);
}

.tvg-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(34, 31, 31, .45);
}

.tvg-scrim[hidden] {
  display: none;
}

/* =========================================================================
   Buttons
   ====================================================================== */

.tvg-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--tvg-radius);
  background: var(--tvg-green);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 22px;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}

.tvg-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.wp-block-button__link:hover {
  background: var(--tvg-green-dark);
  color: #fff;
}

.tvg-button.secondary {
  background: #fff;
  color: var(--tvg-ink);
  border-color: var(--tvg-line);
}

.tvg-button.secondary:hover {
  background: var(--tvg-surface);
  border-color: var(--tvg-faint);
  color: var(--tvg-ink);
}

/* =========================================================================
   Homepage
   ====================================================================== */

.tvg-home {
  width: min(var(--tvg-wrap), 100%);
  margin-inline: auto;
  padding: 0 16px;
}

.tvg-top {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0 4px;
}

.tvg-rail {
  padding: 6px;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius-lg);
  background: #fff;
}

.tvg-rail .tvg-cat-list {
  grid-template-columns: 1fr;
  gap: 0;
}

.tvg-rail .tvg-cat-item > a {
  font-size: 14px;
  padding: 10px;
}

.tvg-rail .tvg-cat-sub {
  display: none;
}

.tvg-rail-foot {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--tvg-line);
}

.tvg-rail-foot a {
  padding: 8px 10px;
  border-radius: var(--tvg-radius);
  color: var(--tvg-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.tvg-rail-foot a:hover {
  background: var(--tvg-surface);
  color: var(--tvg-green-dark);
}

.tvg-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--tvg-radius-lg);
  background: linear-gradient(115deg, #e8f6ed 0%, #eef1f5 58%, #f3f4f6 100%);
}

.tvg-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
  align-items: center;
  gap: 28px;
  padding: 34px 0 34px 40px;
}

.tvg-banner-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--tvg-radius-sm);
  background: var(--tvg-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tvg-banner h1 {
  margin: 14px 0 10px;
  color: var(--tvg-ink);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.12;
  font-weight: 800;
  text-wrap: balance;
}

.tvg-banner p {
  max-width: 46ch;
  margin: 0;
  color: var(--tvg-ink-2);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.tvg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tvg-banner-media {
  position: relative;
  aspect-ratio: 4 / 3;
  align-self: stretch;
  min-height: 240px;
}

.tvg-banner-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trust strip */

.tvg-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: var(--tvg-line);
}

.tvg-trust > div {
  background: #fff;
  padding: 16px 18px;
}

.tvg-trust strong {
  display: block;
  color: var(--tvg-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
}

.tvg-trust span {
  display: block;
  margin-top: 5px;
  color: var(--tvg-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Sections */

.tvg-section {
  padding: 34px 0 0;
}

.tvg-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.tvg-section h2,
.entry-content .tvg-section h2 {
  margin: 0;
  color: var(--tvg-ink);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  font-weight: 800;
}

.tvg-section-head p {
  max-width: 52ch;
  margin: 0;
  color: var(--tvg-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.tvg-section-head a {
  flex: 0 0 auto;
  color: var(--tvg-green-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* Category tiles */

.tvg-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tvg-category-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #222;
  color: #fff;
  text-decoration: none;
}

.tvg-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.tvg-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 20, 20, .82), rgba(20, 20, 20, .04) 58%);
}

.tvg-category-card:hover img {
  transform: scale(1.05);
}

.tvg-category-card div {
  position: relative;
  z-index: 1;
  padding: 18px;
}

.tvg-category-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.tvg-category-card span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

/* Service panels */

.tvg-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tvg-feature-panel {
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
  padding: 22px;
}

.tvg-feature-panel h2 {
  font-size: 18px !important;
  margin-bottom: 8px !important;
}

.tvg-feature-panel p,
.tvg-feature-panel li {
  color: var(--tvg-ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.tvg-feature-panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.tvg-feature-panel li {
  margin-bottom: 7px;
}

/* =========================================================================
   Catalog: toolbar, filters, grid
   ====================================================================== */

.woocommerce .woocommerce-breadcrumb {
  margin: 16px 0 8px;
  color: var(--tvg-muted);
  font-size: 13px;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--tvg-muted);
  text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--tvg-green-dark);
}

.post-type-archive-product .woocommerce-products-header__title,
.tax-product_cat .woocommerce-products-header__title,
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-account .entry-title {
  margin-bottom: 14px !important;
  font-size: clamp(24px, 2.6vw, 32px) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -.01em !important;
}

.woocommerce .woocommerce-result-count {
  float: none;
  margin: 0;
  color: var(--tvg-muted);
  font-size: 14px;
}

.woocommerce .woocommerce-result-count strong {
  color: var(--tvg-ink);
  font-weight: 800;
}

.woocommerce .woocommerce-ordering {
  float: none;
  margin: 0;
}

.woocommerce .woocommerce-ordering select {
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background-color: #fff;
  color: var(--tvg-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.woocommerce .products ~ .woocommerce-ordering,
.woocommerce .products ~ .woocommerce-result-count {
  display: none;
}

.tvg-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0 2px;
}

.tvg-toolbar .woocommerce-ordering {
  margin-left: auto;
}

.site-content > .ast-container {
  padding-top: 14px;
}

/* Astra gives the main content column its own 64px top margin by default —
   on top of the container padding above it, that's a huge gap under the header. */
#primary.content-area {
  margin-top: 0;
}

.tvg-filters-open {
  display: none;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0 0 12px;
  padding: 0 16px;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
  color: var(--tvg-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tvg-shop-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 14px;
  clear: both;
}

.tvg-shop-side {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 10px;
}

.tvg-filters-close {
  display: none;
}

.tvg-filter {
  padding: 16px;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
}

.tvg-filter-title {
  margin: 0 0 12px;
  color: var(--tvg-ink);
  font-size: 15px;
  font-weight: 800;
}

.tvg-filter ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tvg-filter ul li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin: 0;
}

/* Astra decorates list items with arrows; the filter list reads better plain. */
.tvg-filter ul li::before,
.tvg-filter ul li::after {
  content: none !important;
}

.tvg-filter ul li > a {
  flex: 1 1 0%;
  min-width: 0;
  padding: 7px 0;
  color: var(--tvg-ink-2);
  font-size: 14px;
  text-decoration: none;
}

.tvg-filter ul li > a:hover,
.tvg-filter ul li.current-cat > a {
  color: var(--tvg-green-dark);
  font-weight: 700;
}

.tvg-filter ul li > .count {
  flex: 0 0 auto;
  color: var(--tvg-faint);
  font-size: 12px;
}

.tvg-filter ul.children {
  flex: 1 1 100%;
  margin: 0 0 0 2px;
  padding-left: 12px;
  border-left: 1px solid var(--tvg-line);
}

.tvg-filter .price_slider_wrapper {
  padding-top: 4px;
}

.tvg-filter .price_slider_amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.tvg-filter .price_slider_amount .price_label {
  order: 1;
  width: 100%;
  color: var(--tvg-muted);
}

.tvg-filter .price_slider_amount button.button {
  order: 2;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 14px;
}

.tvg-filter .price_slider_amount .clear {
  order: 3;
  color: var(--tvg-muted);
  font-size: 13px;
}

.woocommerce .widget_price_filter .ui-slider,
.tvg-filter .ui-slider {
  position: relative;
  height: 5px;
  margin: 16px 6px 18px;
  border: 0;
  border-radius: 3px;
  background: var(--tvg-line);
  text-align: left;
}

.tvg-filter .ui-slider .ui-slider-range {
  position: absolute;
  top: 0;
  height: 100%;
  border: 0;
  border-radius: 3px;
  background: var(--tvg-green);
}

.tvg-filter .ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  margin-left: -7px;
  cursor: ew-resize;
  outline: none;
  background: var(--tvg-green);
  border: 2px solid #fff;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  background: var(--tvg-green);
}

.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
  background: var(--tvg-line);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  width: 15px;
  height: 15px;
  top: -5px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(34, 31, 31, .3);
}

/* Product grid */

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.tvg-shop-main ul.products,
.tvg-wishlist ul.products {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.woocommerce nav.woocommerce-pagination {
  margin: 28px 0 0;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li {
  margin: 0;
  border: 0;
}

/* .page-numbers is on both the <ul> wrapper and each button — scope to the
   actual link/span so the button style doesn't also wrap the whole list. */
.woocommerce nav.woocommerce-pagination a.page-numbers,
.woocommerce nav.woocommerce-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
  color: var(--tvg-ink-2);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce nav.woocommerce-pagination a.page-numbers:hover {
  border-color: var(--tvg-green);
  background: var(--tvg-green);
  color: #fff;
}

.woocommerce nav.woocommerce-pagination span.page-numbers.current {
  border-color: var(--tvg-green);
  background: var(--tvg-green);
  color: #fff;
}

.woocommerce nav.woocommerce-pagination span.page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative;
  width: auto !important;
  min-height: 100%;
  margin: 0 !important;
  float: none !important;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
  padding: 12px !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.woocommerce ul.products li.product:hover {
  border-color: transparent;
  box-shadow: var(--tvg-shadow-md);
}

/* Astra wraps the card in a thumbnail block and a summary block. */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.woocommerce ul.products li.product .ast-loop-product__link {
  text-decoration: none;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 0 10px;
  border-radius: var(--tvg-radius-sm);
  background: #fff;
}

.woocommerce ul.products li.product .ast-woo-product-category {
  margin-bottom: 3px;
  color: var(--tvg-faint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  margin: 0 0 8px;
  padding: 0;
  color: var(--tvg-ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--tvg-green-dark);
}

/* Sale badge */

.woocommerce span.onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 4px 8px;
  border-radius: var(--tvg-radius-sm);
  background: var(--tvg-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Wishlist heart */

.tvg-wish {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--tvg-radius);
  background: transparent;
  color: var(--tvg-faint);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}

.tvg-wish:hover {
  background: var(--tvg-surface);
  color: var(--tvg-gold);
}

.tvg-wish.is-active {
  color: var(--tvg-gold);
}

.tvg-wish.is-active .tvg-i {
  fill: var(--tvg-gold);
}

.tvg-wish--wide {
  position: static;
  width: auto;
  gap: 8px;
  padding: 0 16px;
  height: 44px;
  border: 1px solid var(--tvg-line);
  color: var(--tvg-ink-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

/* Price + cart row */

.tvg-card-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.tvg-card-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.woocommerce ul.products li.product .price,
.tvg-card-price .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  margin: 0;
  color: var(--tvg-ink);
  font-size: 19px;
  font-weight: 800;
}

.woocommerce .price del {
  display: block;
  margin: 0 0 1px;
  color: var(--tvg-faint);
  font-size: 13px;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 1;
}

.woocommerce .price ins {
  display: block;
  background: transparent;
  color: var(--tvg-red);
  font-weight: 800;
  text-decoration: none;
}

.woocommerce a.button.tvg-card-cart,
.woocommerce ul.products li.product .button.tvg-card-cart {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--tvg-green);
  border-radius: var(--tvg-radius);
  background: #fff;
  color: var(--tvg-green);
}

.woocommerce a.button.tvg-card-cart:hover,
.woocommerce ul.products li.product .button.tvg-card-cart:hover {
  background: var(--tvg-green);
  color: #fff;
}

.woocommerce a.button.tvg-card-cart.loading,
.woocommerce a.button.tvg-card-cart.added {
  background: var(--tvg-green);
  color: #fff;
}

.woocommerce a.button.tvg-card-cart .tvg-i {
  width: 21px;
  height: 21px;
}

.woocommerce ul.products li.product .added_to_cart {
  display: none;
}

/* =========================================================================
   Single product
   ====================================================================== */

.woocommerce div.product {
  margin-top: 8px;
}

.woocommerce div.product div.images img {
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
  object-fit: contain;
}

.woocommerce div.product .product_title {
  margin-bottom: 10px;
  color: var(--tvg-ink);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
  font-weight: 800;
}

.woocommerce div.product .summary {
  padding: 24px;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 28px;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.woocommerce .quantity .qty {
  min-height: 44px;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  font-family: inherit;
}

.tvg-single-wish {
  margin-top: 14px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border-radius: var(--tvg-radius) var(--tvg-radius) 0 0;
}

.woocommerce-tabs,
.related.products,
.upsells.products {
  clear: both;
}

.related.products > h2,
.upsells.products > h2 {
  font-size: 22px;
  font-weight: 800;
}

.woocommerce div.product .product_meta {
  color: var(--tvg-muted);
  font-size: 13px;
}

/* =========================================================================
   Cart / checkout
   ====================================================================== */

.woocommerce table.shop_table,
.woocommerce-cart .cart-collaterals .cart_totals {
  border-color: var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--tvg-line);
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  margin-bottom: 48px;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border: 1px solid var(--tvg-line);
  border-top: 3px solid var(--tvg-green);
  border-radius: var(--tvg-radius);
  background: #fff;
  color: var(--tvg-ink-2);
  box-shadow: var(--tvg-shadow);
}

.woocommerce form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, .72fr);
  gap: 28px;
  align-items: start;
  padding: 0;
  border: 0;
  background: transparent;
}

.woocommerce form.checkout .col2-set,
.woocommerce form.checkout #customer_details,
.woocommerce form.checkout #order_review,
.woocommerce form.checkout #order_review_heading {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}

.woocommerce form.checkout #customer_details,
.woocommerce form.checkout #order_review,
.woocommerce form.checkout #order_review_heading {
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
}

.woocommerce form.checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 24px;
}

.woocommerce form.checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 -1px;
  padding: 22px 24px 0;
  border-bottom: 0;
  border-radius: var(--tvg-radius) var(--tvg-radius) 0 0;
  font-size: 22px;
  font-weight: 800;
}

.woocommerce form.checkout #order_review {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: 116px;
  padding: 68px 24px 24px;
}

.woocommerce form.checkout #order_review table,
.woocommerce form.checkout #order_review .woocommerce-checkout-payment {
  width: 100%;
}

.woocommerce form.checkout h3 {
  color: var(--tvg-ink);
  font-size: 20px;
  font-weight: 800;
}

.woocommerce form .form-row {
  margin-bottom: 14px;
}

.woocommerce form .form-row label {
  margin-bottom: 6px;
  color: var(--tvg-ink-2);
  font-size: 14px;
  font-weight: 700;
}

.woocommerce form .form-row .required {
  color: var(--tvg-red);
}

.woocommerce-checkout-review-order-table {
  border: 0 !important;
}

.woocommerce-checkout-payment {
  border-radius: var(--tvg-radius) !important;
  background: transparent !important;
}

.woocommerce-checkout-payment ul.payment_methods {
  border-color: var(--tvg-line) !important;
}

.woocommerce-privacy-policy-text {
  color: var(--tvg-muted);
  font-size: 13px;
  line-height: 1.5;
}

.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper {
  overflow-wrap: anywhere;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: 100% !important;
  padding: 20px;
}

.woocommerce-cart .cart-collaterals {
  width: 100%;
}

.woocommerce-cart table.cart img {
  width: 76px;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
}

.wpcf7 input,
.wpcf7 textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-cart .coupon input[type="text"] {
  width: 100%;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
  color: var(--tvg-ink);
  font-family: inherit;
  padding: 12px 13px;
}

/* A native <select> needs more of its box height for line-box than a text
   input does — the same 12px top/bottom padding leaves too little room and
   the option text (e.g. "Україна") gets clipped at the top. */
.woocommerce form .form-row select {
  min-height: 44px;
  padding: 8px 13px;
  line-height: 1.4;
}

/* =========================================================================
   Static pages + wishlist
   ====================================================================== */

.tvg-page {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 26px 0 60px;
}

.tvg-page--wide {
  width: 100%;
}

.tvg-page h1 {
  margin-bottom: 16px;
  color: var(--tvg-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}

.tvg-page h2 {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 800;
}

.tvg-page p,
.tvg-page li {
  color: var(--tvg-ink-2);
  font-size: 15px;
  line-height: 1.65;
}

.tvg-page-card {
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
  padding: 24px;
}

.tvg-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 14px;
}

.tvg-contact-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.tvg-contact-list a,
.tvg-contact-list span {
  display: block;
  padding: 13px 14px;
  border-radius: var(--tvg-radius);
  background: var(--tvg-surface);
  color: var(--tvg-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.tvg-contact-list a:hover {
  background: var(--tvg-green-soft);
  color: var(--tvg-green-dark);
}

.wpcf7 label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--tvg-ink-2);
  font-size: 14px;
  font-weight: 700;
}

.tvg-wishlist {
  padding: 8px 0 60px;
}

.tvg-wishlist-empty {
  padding: 48px 24px;
  border: 1px solid var(--tvg-line);
  border-radius: var(--tvg-radius);
  background: #fff;
  text-align: center;
}

.tvg-wishlist-empty[hidden] {
  display: none;
}

.tvg-wishlist-empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.tvg-wishlist-empty p {
  margin: 0 0 18px;
  color: var(--tvg-muted);
  font-size: 15px;
}

/* =========================================================================
   Footer
   ====================================================================== */

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--tvg-line);
  background: var(--tvg-surface);
}

.ast-footer-copyright p {
  font-size: 0;
}

.ast-footer-copyright p::before {
  /* Updated by Make2Web - 2026-11-14: the fallback footer text carries the new store identity. */
  content: "© 2026 SafeEnergy. Магазин енергообладнання для резервного живлення.";
  color: var(--tvg-muted);
  font-size: 13px;
}

.ast-footer-copyright a {
  display: none;
}

/* =========================================================================
   Responsive
   ====================================================================== */

@media (max-width: 1280px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .tvg-shop-main ul.products,
  .tvg-wishlist ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .tvg-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .tvg-hdr-act-txt {
    display: none;
  }

  .tvg-hdr-act {
    padding: 0 8px;
  }

  .tvg-top {
    grid-template-columns: 1fr;
  }

  .tvg-rail {
    display: none;
  }

  .tvg-cat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce ul.products,
  .tvg-shop-main ul.products,
  .tvg-wishlist ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .tvg-shop-layout {
    grid-template-columns: 1fr;
  }

  .tvg-filters-open {
    display: inline-flex;
  }

  .tvg-shop-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 80;
    width: min(320px, 88vw);
    padding: 56px 14px 20px;
    overflow-y: auto;
    background: var(--tvg-surface);
    box-shadow: var(--tvg-shadow-lg);
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.16, 1, .3, 1);
  }

  .tvg-shop-side.is-open {
    transform: none;
  }

  .tvg-filters-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--tvg-line);
    border-radius: var(--tvg-radius);
    background: #fff;
    color: var(--tvg-ink);
    cursor: pointer;
  }

  .woocommerce form.checkout {
    grid-template-columns: 1fr;
  }

  .woocommerce form.checkout #customer_details,
  .woocommerce form.checkout #order_review_heading,
  .woocommerce form.checkout #order_review {
    grid-column: auto;
    grid-row: auto;
  }

  .woocommerce form.checkout #order_review {
    position: static;
    padding-top: 24px;
  }
}

@media (max-width: 900px) {
  .tvg-burger {
    display: inline-flex;
  }

  .tvg-catalog-btn span {
    display: none;
  }

  .tvg-catalog-btn {
    padding: 0 12px;
  }

  .tvg-banner-inner {
    grid-template-columns: 1fr;
    padding: 26px 22px;
    gap: 20px;
  }

  .tvg-banner-media {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--tvg-radius);
    overflow: hidden;
  }

  .tvg-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tvg-feature-grid,
  .tvg-contact-grid {
    grid-template-columns: 1fr;
  }

  .tvg-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 720px) {
  .tvg-hdr-in {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 10px;
  }

  .tvg-logo {
    margin-right: auto;
  }

  .tvg-logo img {
    width: 132px;
  }

  .tvg-catalog-btn {
    order: 3;
    height: 40px;
  }

  .tvg-search {
    order: 4;
    flex: 1 1 100%;
    max-width: none;
    height: 40px;
  }

  .tvg-search button {
    padding: 0 14px;
  }

  .tvg-subbar {
    display: none;
  }

  .tvg-cat-list {
    grid-template-columns: 1fr;
  }

  .tvg-cat-panel-in {
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
  }

  .woocommerce ul.products,
  .tvg-shop-main ul.products,
  .tvg-wishlist ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tvg-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tvg-category-card {
    min-height: 180px;
  }

  .woocommerce ul.products li.product {
    padding: 10px !important;
  }

  .tvg-card-buy {
    flex-wrap: wrap;
  }

  .woocommerce div.product form.cart {
    position: sticky;
    bottom: 0;
    z-index: 15;
    margin: 16px -24px -24px;
    padding: 12px;
    border-top: 1px solid var(--tvg-line);
    background: #fff;
  }

  .woocommerce div.product form.cart .button {
    flex: 1;
  }
}


/* OKMART category grid polish 2026-08-03 */
.tvg-home .tvg-categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tvg-home .tvg-category-card {
  min-height: 220px;
}
.tvg-home .tvg-category-card div {
  padding: 18px;
}
@media (max-width: 1024px) {
  .tvg-home .tvg-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .tvg-home .tvg-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tvg-home .tvg-category-card { min-height: 180px; }
}
