:root {
  --bg: #fef7ed;
  --cattery: #ed1c24;
  --petshop: #3a54b4;
  --gold: #e8c44a;
  --muted: #8a8884;
  --ink: #414141;
  --pill: #3a54b4;
}

* { box-sizing: border-box; }

body.gbc-shop {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

body.gbc-shop img { max-width: 100%; }
body.gbc-shop a { color: inherit; }

.gbc-page { width: min(980px, calc(100% - 32px)); margin: 0 auto; }

.gbc-header { padding: 28px 0 8px; text-align: center; }
.gbc-mark { width: 92px; height: 92px; display: block; margin: 0 auto 18px; }

.gbc-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.gbc-nav a { text-decoration: none; color: #6b6b6b; }
.gbc-nav a.on,
.gbc-nav a:hover { color: var(--petshop); }
.gbc-nav .cart-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--petshop);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  justify-content: center;
}

.shop-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  padding: 36px 0 20px;
  align-items: start;
}
.filters h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 400;
  color: #3d3d3d;
}
.filter-block {
  display: block;
  margin: 0 0 18px;
  border-bottom: 1px solid #ebe3d6;
  padding-bottom: 14px;
}
.filter-block.last { border-bottom: 0; }
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: #3d3d3d;
  cursor: pointer;
  text-align: left;
  list-style: none;
}
.filter-head::-webkit-details-marker { display: none; }
.filter-head .mark-icon { font-size: 18px; line-height: 1; color: #888; }
.filter-block[open] .mark-icon { display: none; }
.filter-block[open] .filter-head::after {
  content: "−";
  font-size: 18px;
  line-height: 1;
  color: #888;
}
.filter-block:not([open]) .mark-icon { display: none; }
.filter-block:not([open]) .filter-head::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: #888;
}
.filter-cats {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 14px;
  color: #555;
}
.filter-cats li { margin: 8px 0; }
.filter-cats a,
.filter-cats label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #555;
  cursor: pointer;
}
.filter-cats a.on {
  color: var(--petshop);
  font-weight: 600;
}
.dot {
  width: 12px;
  height: 12px;
  border: 1px solid #bbb;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.filter-cats a.on .dot {
  border-color: var(--petshop);
  background: var(--petshop);
}
.range-inputs {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.range-inputs label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777;
}
.range-inputs input[type="range"] {
  width: 100%;
  accent-color: var(--petshop);
}
.filter-apply {
  margin-top: 4px;
  padding: 8px 12px;
  border: 0;
  background: var(--petshop);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.js .filter-apply { display: none; }
.shop-empty {
  margin: 28px 0;
  color: #777;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card { margin: 0; }
.pic {
  position: relative;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
}
.pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.qv {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  font-size: 13px;
  transform: translateY(100%);
  transition: transform 0.25s;
}
.pic:hover .qv { transform: translateY(0); }
.card h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  font-weight: 400;
  color: #333;
}
.card hr {
  border: 0;
  border-top: 1px solid #ece6db;
  margin: 0 0 8px;
}
.price { margin: 0 0 12px; font-size: 15px; color: #333; }
.add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  background: #3d3d3d;
  color: #fff !important;
  border: 0;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}
.add.added { background: var(--petshop); }

.gbc-copy {
  text-align: center;
  margin: 36px 0 24px;
  color: var(--petshop);
  font-size: 13px;
}

.gbc-panel {
  padding: 28px 0 48px;
}
.gbc-panel h1 {
  margin: 0 0 20px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 32px;
  color: var(--petshop);
}
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.product-hero img {
  width: 100%;
  background: #fff;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.product-hero .add { max-width: 280px; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.gbc-panel .woocommerce {
  font-size: 15px;
}
.woocommerce-message {
  background: #fff;
  border: 1px solid #ebe3d6;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 12px;
  border-bottom: 1px solid #ebe3d6;
  text-align: left;
}
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  background: #3d3d3d;
  color: #fff !important;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}
.woocommerce .button.alt,
.woocommerce button.button.alt {
  background: var(--petshop);
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-cart input.input-text {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d7d0c6;
  background: #fff;
  font: inherit;
  width: 100%;
}

@media (max-width: 800px) {
  .shop-layout { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .product-hero { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .gbc-nav ul { gap: 12px; }
}
