:root {
  --bg: #f3f3f0;
  --card: #ffffff;
  --text: #1f2b1f;
  --muted: #5e6b5e;
  --accent: #2f6f3a;
  --accent-2: #6fb86b;
  --surface-soft: #f7f9f4;
  --surface-strong: #ffffff;
  --border-soft: #d6dfd0;
  --border-strong: #cfd8c8;
  --danger: #c43f3f;
  --danger-strong: #b62f2f;
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 10px 22px rgba(0, 0, 0, 0.12);

  --ui-font-size: 15px;
  --ui-line-height: 1.25;
  --ui-title-size: clamp(34px, 5vw, 56px);
  --ui-page-title-size: clamp(34px, 4.6vw, 46px);
  --ui-page-lead-size: clamp(18px, 2.3vw, 24px);
  --ui-body-size: clamp(16px, 1.55vw, 20px);

  --ui-control-height: 42px;
  --ui-control-radius: 12px;
  --ui-control-padding-x: 12px;
  --ui-control-border: 1px solid var(--border-strong);

  --ui-card-radius: 16px;
  --ui-card-padding: 18px;
  --ui-btn-radius: 22px;
  --ui-btn-height: 42px;
  --ui-btn-padding-x: 18px;

  --ui-gap-xs: 6px;
  --ui-gap-sm: 10px;
  --ui-gap-md: 14px;
  --ui-gap-lg: 18px;
  --ui-gap-xl: 24px;

  --ui-qty-btn-size: 38px;
  --ui-qty-input-width: 58px;
  --dev-banner-height: 40px;
  --site-header-height: 96px;
}

.site-dev-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2100;
  min-height: var(--dev-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #f2e2bf;
  color: #5b3e12;
  border-bottom: 1px solid #d9c089;
  text-align: center;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

.product-status-banner {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
  border: 1px solid #d8dfd2;
  background: #f7f8f4;
  color: var(--muted);
}

.product-status-banner.is-sold-out {
  background: #f4ece7;
  border-color: #d9b8a7;
  color: #7f3d24;
}

.product-status-banner.is-low {
  background: #f5f1de;
  border-color: #dcca8b;
  color: #7c6818;
}

.variant-description {
  margin-top: -6px;
  margin-bottom: 8px;
  min-height: 0;
}


.nav a.is-active {
  color: var(--accent);
  font-weight: 700;
}

.catalog-top h1,
.cart-top h1,
.tips-top h1,
.info-top h1,
.faq-top h1 {
  margin: 0;
  font-size: var(--ui-page-title-size);
  line-height: 1.06;
}

.catalog-top p,
.cart-top p,
.tips-top p,
.info-top p,
.faq-top p {
  margin: 8px 0 0;
  font-size: var(--ui-page-lead-size);
  line-height: 1.3;
}

.tips-page,
.info-page,
.faq-page,
.catalog-page,
.cart-page {
  min-width: 0;
}

.btn,
.catalog-item button,
.product-view-actions button,
.home-cart-zone button,
.feedback-actions button,
.checkout-box button,
.promo-row button,
.checkout-actions button,
.faq-ask-btn,
.remove-btn,
.qty-inline button {
  min-height: var(--ui-btn-height);
  padding: 0 var(--ui-btn-padding-x);
  border-radius: var(--ui-btn-radius);
  font-size: var(--ui-font-size);
  line-height: var(--ui-line-height);
}

input,
select,
textarea,
.catalog-controls input,
.catalog-controls select,
.product-view-info select,
.promo-row input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.feedback-form input,
.feedback-form textarea,
.faq-controls select,
.qty-inline input {
  min-height: var(--ui-control-height);
  padding: 0 var(--ui-control-padding-x);
  border: var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  font-size: var(--ui-font-size);
  line-height: var(--ui-line-height);
  background: var(--surface-strong);
  color: var(--text);
}

textarea,
.checkout-form textarea,
.feedback-form textarea {
  min-height: 96px;
  padding: 10px var(--ui-control-padding-x);
  line-height: 1.35;
}

.catalog-item,
.cart-card,
.info-card,
.faq-item,
.tip-card,
.tips-list-card,
.tip-article,
.why-strip-inner,
.checkout-modal,
.product-view-modal .modal-body {
  background: var(--surface-strong);
  border-radius: var(--ui-card-radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.catalog-item,
.info-card,
.tip-card,
.tips-list-card,
.tip-article,
.faq-item {
  overflow: hidden;
}

.catalog-grid,
.tips-list-grid,
.faq-list,
.info-lines,
.cart-items,
.checkout-form,
.feedback-form,
.feedback-actions,
.promo-block,
.price-stack,
.cart-item-name,
.cart-item-unit-price {
  min-width: 0;
}

.catalog-item h3,
.tips-list-card h3,
.cart-item-name strong,
.faq-item summary,
.tip-article h1,
.info-value {
  overflow-wrap: anywhere;
}

.catalog-item-image,
.tip-article-image,
.tips-list-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.qty-inline {
  display: inline-grid;
  grid-template-columns: var(--ui-qty-btn-size) var(--ui-qty-input-width) var(--ui-qty-btn-size);
  gap: var(--ui-gap-xs);
  align-items: center;
}

.qty-inline button {
  width: var(--ui-qty-btn-size);
  min-width: var(--ui-qty-btn-size);
  height: var(--ui-qty-btn-size);
  min-height: var(--ui-qty-btn-size);
  border-radius: 10px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.qty-inline input {
  width: var(--ui-qty-input-width);
  min-width: 0;
  height: var(--ui-qty-btn-size);
  min-height: var(--ui-qty-btn-size);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  padding: 0 8px;
}

.promo-row,
.checkout-actions,
.feedback-actions,
.catalog-item-row,
.price-promo-head {
  align-items: center;
}

.remove-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--danger);
  color: var(--danger);
  background: transparent;
}

.price-old,
.price-old-inline {
  color: #7d8681;
  text-decoration: line-through;
  font-weight: 600;
}

.price-new,
.price-new-inline {
  color: var(--danger-strong);
  font-weight: 800;
}

.price-current,
.catalog-item-price {
  color: var(--accent);
  font-weight: 700;
}

.info-content,
.tip-article-text,
.catalog-item .muted,
.cart-item-name span,
.promo-message,
.faq-answer {
  font-size: var(--ui-body-size);
  line-height: 1.45;
}

@media (max-width: 900px) {
  :root {
    --ui-font-size: 14px;
    --ui-control-height: 40px;
    --ui-btn-height: 40px;
    --ui-card-padding: 16px;
    --ui-qty-btn-size: 36px;
    --ui-qty-input-width: 54px;
  }

  .catalog-top p,
  .cart-top p,
  .tips-top p,
  .info-top p,
  .faq-top p {
    font-size: 18px;
  }

  .faq-item summary {
    font-size: clamp(22px, 4.5vw, 24px);
  }

  .tip-article h1,
  .catalog-item h3,
  .cart-item-name strong {
    font-size: clamp(24px, 5vw, 30px);
  }
}

@media (max-width: 640px) {
  :root {
    --ui-font-size: 13px;
    --ui-control-height: 38px;
    --ui-btn-height: 38px;
    --ui-control-radius: 10px;
    --ui-card-radius: 14px;
    --ui-btn-radius: 18px;
    --ui-page-title-size: clamp(30px, 8vw, 38px);
    --ui-page-lead-size: 16px;
    --ui-body-size: 15px;
    --ui-qty-btn-size: 34px;
    --ui-qty-input-width: 50px;
  }

  .catalog-top p,
  .cart-top p,
  .tips-top p,
  .info-top p,
  .faq-top p,
  .info-content,
  .tip-article-text,
  .faq-answer,
  .catalog-item .muted,
  .cart-item-name span,
  .promo-message {
    font-size: 15px;
  }
}
