/* EcoPaint catalogue styling — loaded only on WooCommerce pages (shop, category, product).
   Brand colours taken from the can artwork: teal #17464b, coral #e8452c. */

body.woocommerce {
  --eco-teal: #17464b;
  --eco-teal-dark: #0f3236;
  --eco-teal-soft: #e8f0f0;
  --eco-coral: #e8452c;
  --eco-ink: #1d2b2d;
  --eco-muted: #64777a;
  --eco-line: #e3e9ea;
  --eco-font: 'Noto Sans Georgian', 'Lato', system-ui, sans-serif;
}

/* ---------- Page title banner: calm teal, readable white title ---------- */
body.woocommerce #pxl-page-title-elementor .elementor-top-section {
  background-image: none !important;
  background-color: var(--eco-teal) !important;
}
body.woocommerce #pxl-page-title-elementor .elementor-top-section > .elementor-background-overlay {
  display: none !important;
}
body.woocommerce #pxl-page-title-elementor .pxl-item--title {
  color: #fff !important;
  font-family: var(--eco-font) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}
body.woocommerce #pxl-page-title-elementor .pxl-breadcrumb,
body.woocommerce #pxl-page-title-elementor .pxl-breadcrumb a,
body.woocommerce #pxl-page-title-elementor .pxl-breadcrumb span,
body.woocommerce #pxl-page-title-elementor .pxl-breadcrumb li {
  color: #cfe0e1 !important;
  font-family: var(--eco-font) !important;
}

/* ---------- Catalogue (shop + category archives) ---------- */
body.woocommerce.archive #pxl-sidebar-area { display: none !important; }
body.woocommerce.archive #pxl-content-area {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}
body.woocommerce.archive .pxl-shop-topbar-wrap { display: none !important; }

.ecopaint-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-family: var(--eco-font);
}
.ecopaint-pill {
  border: 1px solid var(--eco-line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--eco-muted) !important;
  background: #fff;
  text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s;
}
.ecopaint-pill:hover { border-color: var(--eco-teal); color: var(--eco-teal) !important; }
.ecopaint-pill.is-active { background: var(--eco-teal); border-color: var(--eco-teal); color: #fff !important; }
.ecopaint-count { margin-left: auto; font-size: 13px; color: var(--eco-muted); }

body.woocommerce.archive ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 48px !important;
  padding: 0 !important;
}
body.woocommerce.archive ul.products::before,
body.woocommerce.archive ul.products::after { display: none !important; content: none !important; }

body.woocommerce.archive ul.products li.product {
  position: relative;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--eco-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
body.woocommerce.archive ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(23, 70, 75, .12);
}
/* whole card is clickable */
body.woocommerce.archive ul.products li.product > a.woocommerce-LoopProduct-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
body.woocommerce.archive ul.products li.product .woocommerce-product-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.woocommerce.archive ul.products li.product .woocommerce-product-header {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--eco-teal-soft);
}
body.woocommerce.archive ul.products li.product .woocommerce-product-header a { display: block; }
body.woocommerce.archive ul.products li.product .woocommerce-product-header img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
}
body.woocommerce.archive ul.products li.product .woocommerce-product-content {
  padding: 16px 16px 18px !important;
  text-align: left !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}
body.woocommerce.archive ul.products li.product .woocommerce-product--title {
  margin: 0 !important;
  font-family: var(--eco-font) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}
body.woocommerce.archive ul.products li.product .woocommerce-product--title a { color: var(--eco-ink) !important; }
body.woocommerce.archive ul.products li.product .woocommerce-product-content::after {
  content: "დეტალურად →";
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--eco-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--eco-teal);
}
body.woocommerce.archive ul.products li.product .woocommerce-product--rating,
body.woocommerce.archive ul.products li.product .woocommerce-product-meta,
body.woocommerce.archive ul.products li.product .price,
body.woocommerce.archive ul.products li.product .onsale { display: none !important; }

@media (max-width: 1024px) { body.woocommerce.archive ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { body.woocommerce.archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* ---------- Single product ---------- */
body.single-product .summary.entry-summary { font-family: var(--eco-font); }
body.single-product .summary .product_title {
  font-family: var(--eco-font) !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: var(--eco-ink) !important;
  margin: 0 0 14px !important;
}
body.single-product .summary p.price:empty,
body.single-product .summary .product_meta:empty { display: none !important; }
body.single-product .summary .woocommerce-product-details__short-description {
  font-size: 16px;
  line-height: 1.6;
  color: #33474a;
}
body.single-product .summary .woocommerce-product-details__short-description hr { display: none; }
body.single-product .woocommerce-product-gallery { border-radius: 16px; overflow: hidden; }

.ecopaint-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; font-family: var(--eco-font); }
.ecopaint-btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1.5px solid var(--eco-teal);
  background: #fff;
  color: var(--eco-teal) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: filter .15s, transform .15s;
}
.ecopaint-btn:hover { filter: brightness(.95); transform: translateY(-1px); }
.ecopaint-btn--call { background: var(--eco-coral); border-color: var(--eco-coral); color: #fff !important; }
.ecopaint-btn--wa { background: #1fa855; border-color: #1fa855; color: #fff !important; }
.ecopaint-note { margin: 12px 0 0 !important; font-size: 13px; color: var(--eco-muted); font-family: var(--eco-font); }

/* description: one clean panel instead of a lone "Description" tab */
body.single-product .woocommerce-tabs ul.tabs { display: none !important; }
body.single-product .woocommerce-tabs #tab-description > h2:first-child { display: none !important; }
body.single-product .woocommerce-tabs #tab-description {
  font-family: var(--eco-font);
  font-size: 15.5px;
  line-height: 1.65;
  color: #33474a;
  border: 1px solid var(--eco-line);
  border-radius: 14px;
  padding: 26px 30px !important;
  margin-top: 34px;
  background: #fff;
}
body.single-product .woocommerce-tabs #tab-description p { margin: 0 0 10px; }
body.single-product .woocommerce-tabs #tab-description p > strong:first-child { color: var(--eco-teal); font-weight: 700; }
body.single-product .woocommerce-tabs #tab-description a { color: var(--eco-coral); word-break: break-all; }
