:root {
  --bg: #e8dbc9;
  --ink: #25231d;
  --brand: #cfac7c;
  --muted: #efdecd;
  --radius: 12px;
  --gap: 24px;
  --h1: clamp(32px, 3.2vw, 37px);
  --h2: clamp(22px, 2.2vw, 32px);
  --h3: 18px;
  --font-base: clamp(1rem, 0.4vw+0.8rem, 1.125rem);
  --font-h1: clamp(2rem, 2.5vw+1rem, 3rem);
  --font-h2: clamp(1.75rem, 2vw+0.8rem, 2.5rem);
  --font-h3: clamp(1.5rem, 1.5vw+0.7rem, 2rem);
  --font-h4: clamp(1.25rem, 1.2vw+0.6rem, 1.6rem);
  --font-h5: clamp(1.125rem, 1vw+0.5rem, 1.4rem);
  --font-h6: clamp(1rem, 0.9vw+0.4rem, 1.2rem);
  --bg-dark: #cfac7c2f;
  --bg-medium: #cebba0;
  --bg-light: #f2e6d6;
  --ink-weak: #3b3128;
  --ink-strong: #111;
  --border: 1px solid var(--bg-dark);
  --shadow: 0 2px 4px var(--bg-dark);
}

input,
select {
  background-color: var(--bg-light) !important;
}


a img,
figure img,
button img {
  mix-blend-mode: multiply;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image {
  background: #e8dbc9;
  isolation: isolate;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image>img {
  display: block;
  max-width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  background: transparent;
  object-fit: contain;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

html {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px
}

body {
  font-size: var(--font-base);
  line-height: 1.6;
  color: var(--ink);
  margin: 0
}

h1 {
  font-size: var(--font-h1);
  line-height: 1.2
}

h2 {
  font-size: var(--font-h2);
  line-height: 1.25
}

h3 {
  font-size: var(--font-h3);
  line-height: 1.3
}

h4 {
  font-size: var(--font-h4);
  line-height: 1.4
}

h5 {
  font-size: var(--font-h5);
  line-height: 1.5
}

h6 {
  font-size: var(--font-h6);
  line-height: 1.6
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  margin: 0
}

a {
  color: var(--ink);
  text-decoration: none
}

button,
.button,
.add_to_cart_button {
  background: var(--bg-medium);
  color: var(--ink);
  padding: .8rem 1.2rem;
  border: var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

button:hover {
  background: var(--bg-medium)
}

.container {
  width: 100%;
  max-width: clamp(320px, 95vw, 1600px);
  margin-inline: auto;
  padding-inline: 16px;
}

.price-slider-wrap {
  position: relative;
  height: 36px
}

#price-range-min,
#price-range-max {
  position: absolute;
  width: 100%;
  top: 0;
  background: none;
  pointer-events: all;
  z-index: 2;
  -webkit-appearance: none;
  color: var(--bg-light);
 background-color: transparent !important;
}

#price-range-min {
  z-index: 3
}

#slider-bar {
  position: absolute;
  top: 18px;
  height: 6px;
  background: #1e9d67;
  border-radius: 3px;
  left: 0;
  right: 0;
  z-index: 1
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: #333;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff
}

input[type="range"]:focus {
  outline: 0
}

.range-price {
  margin-top: 10px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: var(--border);
  background: var(--bg-medium);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}


/* ===== WooCommerce глобально ===== */
.woocommerce .woocommerce-notices-wrapper {
  margin: 8px 0 16px
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  background: var(--muted);
  border: var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  color: var(--ink)
}

.woocommerce .woocommerce-error li {
  margin: 0
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: var(--border);
  background: var(--bg-medium);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none
}

.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--brand);
  border-color: transparent
}

.woocommerce .input-text,
.woocommerce select,
.woocommerce textarea {
  width: 100%;
  height: 44px;
  border: var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink)
}

.woocommerce textarea {
  min-height: 120px;
  padding: 10px 12px
}

.woocommerce .woocommerce-Price-amount {
  font-weight: 700
}

.woocommerce a.remove {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  line-height: 1;
  border-radius: 12px;
  border: var(--border);
  background: #fff;
  color: var(--ink)
}

.woocommerce a.remove:hover {
  background: var(--bg-dark);
  color: var(--ink)
}

.woocommerce .cross-sells ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

@media (max-width:900px) {
  .woocommerce .cross-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:520px) {
  .woocommerce .cross-sells ul.products {
    grid-template-columns: 1fr
  }
}

.woocommerce .cross-sells ul.products li.product {
  background: #fff;
  border: var(--border);
  border-radius: 16px;
  padding: 12px
}

.woocommerce .cross-sells ul.products li.product .button {
  width: 100%
}