/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Oct 16 2025 | 18:54:48 */
/* ---------- Базовая типографика и отступы ---------- */
.wp-block-column .wp-block-post-title { margin: 0 0 12px; line-height: 1.15; }
.wp-block-post-excerpt { margin: 0 0 16px; color:#4a4a4a; font-size:.95rem; }

/* ---------- Сетка атрибутов (таблица вариаций) ---------- */
.variations { width:100%; border:0; border-collapse:separate; border-spacing:0 10px; }
.variations th, .variations td { border:0; padding:0; vertical-align:middle; }
.variations th { width:110px; font-weight:600; color:#222; }
.variations td .value { width:100%; }
.variations select {
  width:100%; height:44px; padding:0 12px;
  border:1px solid #dcdcdc; border-radius:10px; background:#fff;
  font-size:.95rem; transition: box-shadow .2s ease, border-color .2s ease;
  appearance:none;
}
.variations select:focus { outline:none; border-color:#7aa35a; box-shadow:0 0 0 4px rgba(122,163,90,.15); }

/* Ссылка "Очистить" */
.reset_variations { margin-left:10px; font-size:.9rem; color:#7aa35a; text-decoration:none; }
.reset_variations:hover { text-decoration:underline; }

/* ---------- Цена вариации ---------- */
body:not(.single-product) .wp-block-woocommerce-product-price { display: none !important; } /* скрыть дубликат */
.single_variation .price,
.woocommerce-variation-price .price {
  display:inline-flex; align-items:baseline; gap:6px;
  font-size:1.35rem; font-weight:700; color:#222; margin:8px 0 12px;
}

/* ---------- Количество и кнопка ---------- */
.woocommerce-variation-add-to-cart { display:flex; align-items:center; gap:12px; margin-top:8px; }
.woocommerce-variation-add-to-cart .quantity { position:relative; }
.woocommerce-variation-add-to-cart .quantity .qty{
  width:90px; height:48px; padding:0 12px; text-align:left;
  border:1px solid #dcdcdc; border-radius:12px; font-size:1rem;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.woocommerce-variation-add-to-cart .quantity .qty:focus{
  outline:none; border-color:#7aa35a; box-shadow:0 0 0 4px rgba(122,163,90,.15);
}

/* Кнопка "В корзину" — оформление и анимация */
.single_add_to_cart_button.button{
  min-width:0px; height:48px; padding:0 18px; border-radius:12px; box-sizing:border-box;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:1rem; line-height:1; text-decoration:none; cursor:pointer;
  background:#7aa35a; color:#fff; border:1px solid #7aa35a;
  transition: transform .02s ease, box-shadow .2s ease,
              background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.single_add_to_cart_button.button:hover,
.single_add_to_cart_button.button:focus{
  background:#6a944d; border-color:#6a944d; box-shadow:0 8px 20px rgba(122,163,90,.25);
}
.single_add_to_cart_button.button:active{ transform:translateY(1px); box-shadow:0 4px 12px rgba(122,163,90,.2); }
.single_add_to_cart_button.button.disabled,
.single_add_to_cart_button.button:disabled,
.wc-variation-selection-needed.single_add_to_cart_button.button{
  background:#e9ecef !important; border-color:#e9ecef !important; color:#98a2ad !important;
  box-shadow:none !important; cursor:not-allowed !important; opacity:1 !important;
}

/* A11y */
.wp-block-woocommerce-add-to-cart-form .screen-reader-text{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
@supports(selector(:has(*))){
  .variations tr:has(select:focus) th label{ color:#6a944d; }
}

/* ---------- Адаптив для страницы товара ---------- */
@media (max-width:640px){
  .woocommerce-variation-add-to-cart{ flex-wrap:wrap; gap:10px; }
  .single_add_to_cart_button.button{ flex:1 1 auto; min-width:0px; }
  .woocommerce-variation-add-to-cart .quantity .qty{ width:110px; }
}

/* Тонкая рамка блока характеристик */
.wp-block-woocommerce-add-to-cart-form{
  padding:14px; border:1px solid #efefef; border-radius:14px; background:#fff;
}

/* Всегда считаем от внутренних границ */
.woocommerce-variation-add-to-cart,
.woocommerce-variation-add-to-cart .quantity,
.woocommerce-variation-add-to-cart .quantity .qty,
.single_add_to_cart_button.button{ box-sizing:border-box; }

/* ====== Мобильная колонка на single ====== */
@media (max-width:480px){
  .single-product .woocommerce-variation-add-to-cart{
    display:grid; grid-template-columns:1fr; grid-auto-rows:min-content; gap:10px; width:100%;
  }
  .single-product .woocommerce-variation-add-to-cart .quantity{ width:100%; }
  .single-product .woocommerce-variation-add-to-cart .quantity .qty{ width:100%; height:48px; }
  .single-product .single_add_to_cart_button.button{ width:100%; min-width:0; height:48px; }
  .single-product .variations{ border-spacing:0 8px; }
  .single-product .variations th{ width:auto; display:block; margin:0 0 6px; }
  .single-product .variations td{ display:block; }
  .single-product .variations select{ width:100%; }
}

/* Небольшие экраны/планшеты: 2 колонки на single */
@media (min-width:481px) and (max-width:768px){
  .single-product .woocommerce-variation-add-to-cart{
    display:grid; grid-template-columns:120px 1fr; gap:12px;
  }
  .single-product .woocommerce-variation-add-to-cart .quantity .qty{ width:100%; height:48px; }
  .single-product .single_add_to_cart_button.button{ min-width:0; width:100%; }
}

/* ===== КАТАЛОГ (карточки списка) ===== */
.woocommerce ul.products li.product form.variations_form.cart{ display:block !important; }


.woocommerce ul.products li.product table.variations th{ display:none; }
.woocommerce ul.products li.product table.variations td .value{ display:flex; gap:8px; }
.woocommerce ul.products li.product table.variations select{ width:100%; height:44px; }

/* Кнопки в карточке — на всю ширину + «Просмотр корзины» */
.woocommerce ul.products li.product .single_add_to_cart_button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .wp-element-button{
  display:flex !important; width:100% !important; justify-content:center; align-items:center;
  height:48px; padding:0 16px; border-radius:12px; box-sizing:border-box; white-space:nowrap;
}
.woocommerce ul.products li.product .single_add_to_cart_button:disabled,
.woocommerce ul.products li.product .single_add_to_cart_button.disabled,
.woocommerce ul.products li.product .wc-variation-selection-needed.single_add_to_cart_button{ width:100% !important; }
.woocommerce ul.products li.product a.added_to_cart,
.woocommerce ul.products li.product .added_to_cart.wc-forward{
  display:flex !important; width:100% !important; justify-content:center; align-items:center;
  height:44px; border-radius:12px; box-sizing:border-box; margin-top:8px; text-align:center;
}

/* ===== Страница товара: фиксация выравнивания (слева) ===== */
.single-product .single_variation_wrap .woocommerce-variation-add-to-cart{
  display:flex !important; 
	align-items:center; 
	gap:12px; 
	justify-content:flex-start !important;
	flex-direction: row;
}
.single-product .single_variation_wrap .single_add_to_cart_button{ width:auto !important; margin:0 !important; }

/* Мобилка single — укладываться в столбик */
@media (max-width:640px){
  .single-product .single_variation_wrap .woocommerce-variation-add-to-cart{ flex-wrap:wrap; }
  .single-product .single_variation_wrap .single_add_to_cart_button{ width:100% !important; }
}





/* === "Просмотр корзины" — как кнопка "В корзину" === */

/* базовый стиль (single и каталог) */
a.added_to_cart.wc-forward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  box-sizing: border-box;

  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;

  background: #7aa35a !important;
  border: 1px solid #7aa35a !important;
  color: #fff !important;

  transition: transform .02s ease,
              box-shadow .2s ease,
              background-color .2s ease,
              border-color .2s ease,
              opacity .2s ease;
}

/* hover/focus/active — один в один */
a.added_to_cart.wc-forward:hover,
a.added_to_cart.wc-forward:focus {
  background: #6a944d !important;
  border-color: #6a944d !important;
  box-shadow: 0 8px 20px rgba(122,163,90,.25);
  color: #fff !important;
}
a.added_to_cart.wc-forward:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(122,163,90,.2);
}

/* ширина 100% и отступ в карточках каталога */
.woocommerce ul.products li.product a.added_to_cart.wc-forward,
.wc-block-grid__product a.added_to_cart.wc-forward {
  display: flex !important;
  width: 100% !important;
  justify-content: center;
  margin-top: 8px;
  height: 48px;         /* чтобы совпадала высота */
  border-radius: 12px;  /* как у основной кнопки */
}

