/*
Theme Name: PETZONE
Theme URI: https://petzone.co.il
Author: PETZONE
Description: Custom PETZONE WooCommerce theme.
Version: 0.2.0
Text Domain: petzone
*/

:root {
  --pz-ink: #1f2933;
  --pz-muted: #64748b;
  --pz-line: #d7e0dc;
  --pz-bg: #f6f8f4;
  --pz-surface: #ffffff;
  --pz-green: #2f7d57;
  --pz-green-dark: #245f43;
  --pz-sage: #dce9df;
  --pz-sky: #d9edf7;
  --pz-coral: #e8795f;
  --pz-gold: #f2bd57;
  --pz-radius: 8px;
  --pz-shadow: 0 14px 36px rgba(31, 41, 51, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--pz-bg);
  color: var(--pz-ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--pz-green);
  text-decoration: none;
}

a:hover {
  color: var(--pz-green-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.pz-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.pz-topbar {
  background: var(--pz-green-dark);
  color: #fff;
  font-size: 14px;
}

.pz-topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pz-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--pz-line);
  backdrop-filter: blur(10px);
}

.pz-header__inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.pz-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pz-ink);
  font-weight: 800;
  letter-spacing: 0;
  font-size: 24px;
}

.pz-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--pz-green);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.pz-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pz-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--pz-ink);
  font-weight: 700;
}

.pz-nav a:hover {
  background: var(--pz-sage);
  color: var(--pz-green-dark);
}

.pz-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pz-button,
.button,
button,
input[type="submit"],
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: var(--pz-green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.pz-button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--pz-green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.pz-button--ghost {
  background: var(--pz-sage);
  color: var(--pz-green-dark);
}

.pz-button--ghost:hover {
  background: var(--pz-sky);
  color: var(--pz-ink);
}

.pz-hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 54px 0;
  background:
    linear-gradient(90deg, rgba(31, 41, 51, 0.76), rgba(31, 41, 51, 0.36)),
    url("assets/petzone-hero.svg") center/cover no-repeat;
  color: #fff;
}

.pz-hero__content {
  max-width: 680px;
}

.pz-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 800;
}

.pz-hero h1 {
  margin: 0 0 18px;
  max-width: 12ch;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.pz-hero p {
  max-width: 590px;
  margin: 0 0 28px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
}

.pz-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pz-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}

.pz-benefit {
  min-height: 96px;
  padding: 20px;
  border-radius: var(--pz-radius);
  background: var(--pz-surface);
  border: 1px solid var(--pz-line);
  box-shadow: var(--pz-shadow);
}

.pz-benefit strong {
  display: block;
  margin-bottom: 4px;
}

.pz-benefit span {
  color: var(--pz-muted);
}

.pz-section {
  padding: 64px 0;
}

.pz-section--white {
  background: var(--pz-surface);
}

.pz-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.pz-section h2,
.woocommerce-products-header__title,
.entry-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

.pz-muted {
  color: var(--pz-muted);
}

.pz-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pz-category {
  min-height: 156px;
  padding: 20px;
  display: flex;
  align-items: end;
  border-radius: var(--pz-radius);
  background: var(--pz-sage);
  border: 1px solid var(--pz-line);
  color: var(--pz-ink);
  font-size: 22px;
  font-weight: 800;
}

.pz-category:nth-child(2) {
  background: var(--pz-sky);
}

.pz-category:nth-child(3) {
  background: #f8e5cf;
}

.pz-category:nth-child(4) {
  background: #f7dcd6;
}

.site-main,
.woocommerce-page .site-main {
  padding: 48px 0;
}

.woocommerce .products ul,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  float: none;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--pz-line);
  border-radius: var(--pz-radius);
  background: var(--pz-surface);
  box-shadow: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--pz-shadow);
  transform: translateY(-2px);
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
  background: var(--pz-bg);
  margin: 0 0 14px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 48px;
  padding: 0;
  color: var(--pz-ink);
  font-size: 17px;
  line-height: 1.25;
}

.woocommerce ul.products li.product .price {
  color: var(--pz-green-dark);
  font-size: 18px;
  font-weight: 900;
}

.woocommerce span.onsale {
  min-height: 34px;
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--pz-coral);
  line-height: 1;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 36px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  width: auto;
  float: none;
}

.woocommerce div.product div.images img {
  border-radius: var(--pz-radius);
  background: var(--pz-surface);
}

.woocommerce div.product .product_title {
  font-size: clamp(32px, 4vw, 48px);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--pz-green-dark);
  font-size: 28px;
  font-weight: 900;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--pz-green);
  border-radius: var(--pz-radius);
  background: var(--pz-surface);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--pz-green);
}

.woocommerce table.shop_table,
.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout-review-order {
  border-radius: var(--pz-radius);
  background: var(--pz-surface);
  border-color: var(--pz-line);
}

.input-text,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--pz-line);
  border-radius: 6px;
  padding: 9px 12px;
  background: #fff;
  color: var(--pz-ink);
}

.pz-footer {
  padding: 48px 0 28px;
  background: #1f2933;
  color: #e2e8f0;
}

.pz-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.pz-footer h2,
.pz-footer h3 {
  margin-top: 0;
  color: #fff;
}

.pz-footer a {
  color: #dce9df;
}

.pz-footer__bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b8c2cc;
  font-size: 14px;
}

[dir="rtl"] .pz-header__inner,
body.rtl .pz-header__inner {
  direction: rtl;
}

@media (max-width: 900px) {
  .pz-header__inner {
    grid-template-columns: 1fr auto;
  }

  .pz-nav {
    grid-column: 1 / -1;
    padding-bottom: 12px;
  }

  .pz-nav ul {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .pz-benefits,
  .pz-category-grid,
  .woocommerce .products ul,
  .woocommerce ul.products,
  .woocommerce div.product,
  .pz-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .pz-container {
    width: min(100% - 22px, 1180px);
  }

  .pz-topbar__inner,
  .pz-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pz-hero {
    min-height: 500px;
    padding: 42px 0 72px;
  }

  .pz-hero h1 {
    font-size: 46px;
  }

  .pz-benefits,
  .pz-category-grid,
  .woocommerce .products ul,
  .woocommerce ul.products,
  .woocommerce div.product,
  .pz-footer__grid {
    grid-template-columns: 1fr;
  }
}
