/*
Theme Name: Astra Child
Template: astra
*/
/* Общий контейнер */

@media (max-width: 767px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* FAQ */

.faq-container {
  max-width: 100%;
  width: 100%;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.faq-container h2 {
  margin-bottom: 24px;
  font-size: 28px;
  color: #111827;
}

details {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  background-color: #fefefe;
}

details:hover {
  border-color: #3b82f6;
  background-color: #f0f9ff;
}

summary {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer; /* ← курсор-палец при наведении */
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::marker {
  display: none;
}

summary::after {
  content: "➕";
  font-size: 18px;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: "➖";
}

details p {
  margin: 10px 0 0;
  font-size: 16px;
  color: #4b5563;
  line-height: 1.5;
}
/* end FAQ */

/*  HEADER h1 on main page */
.main-h1 {
  font-size: 1.8rem;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  margin: 20px 0;
  color: #222;
}

.main-h1 .highlight {
  color: #c92127;
}

.main-h1 .subline {
  font-weight: 400;
  font-size: 1.2rem;
  color: #555;
}

/* end HEADER h1 on main page */


/* Обёртка для новой и старой цены */

/* Карточка товара */
.ast-woo-product-category {
    color: black !important;
}

.stock.in-stock {
    color: black !important;
}

/* Обёртка для новой и старой цены */
.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

/* Старая цена (перечёркнутая крест-накрест) */
.price-old {
	font-family: Roboto;
	font-weight: normal;
    position: relative;
    font-size: 16px;
    color: #6B6161;
    text-decoration: none;
    margin-bottom: 4px;
}

/* Добавляем крест-накрест через псевдоэлементы */
.price-old::before,
.price-old::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 80%;
    height: 1px;
    background: #000000;
    transform: rotate(25deg);
    transform-origin: center;
}

.price-old::after {
    transform: rotate(-25deg);
}

/* Основная цена — как раньше */
.price-container {
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #A51E3E;
    position: relative;
    display: inline-block;
    line-height: 1;
	padding-left: 22px;
}

.price-big .price-main { font-size: 48px; }
.price-small .price-main { font-size: 24px; }

.price-big .price-fraction{
    font-size: 19px;
    right: -30px;
}
.price-big .price-currency {
    font-size: 13px;
    right: -60px;
}

.price-small .price-fraction{
    font-size: 13px;
    right: -20px;
}
.price-small .price-currency {
    font-size: 9px;
    right: -40px;
}

.price-fraction {
    position: absolute;
    top: 0;
}

.price-currency {
    position: absolute;
    top: 20px;
}

.price-small .price-currency {
    top: 12px;
}
/* Обёртка для новой и старой цены */

/* Обёртка для новой и старой цены в сопутствующих товарах */
.related.products .price-container {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  font-family: inherit;
}

.related.products .price-main {
  font-size: 24px; /* основной размер числа */
  font-weight: bold;
  line-height: 1;
}

.related.products .price-fraction {
  font-size: 16px; /* размер копеек / дробной части */
  line-height: 1;
  right: -21px;
}

.related.products .price-currency {
  font-size: 8px; /* размер валюты */
  line-height: 0.3;
  right: -35px;
}

/* ======================= END================ */

/* Убрать метку РАСПРОДАЖА в категории */
.ast-on-card-button.ast-onsale-card {
    display: none !important;
}
/* Убрать поле ввода логина или почты на чекауте */
.woocommerce-billing-fields-custom {
    display: none !important;
}

/* CSS - Категории товаров WooCommerce под заголовком категории */
.custom-subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
  justify-content: flex-start;
}

.custom-subcategories .subcategory-item {
  background: #f1f1f1;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s;
}

.custom-subcategories .subcategory-item a {
  text-decoration: none;
  color: #333;
}

.custom-subcategories .subcategory-item:hover {
  background: #333;
}

.custom-subcategories .subcategory-item:hover a {
  color: #fff;
}

/* CSS - Блоки категорий на главной*/
.category-products-block {
  display: flex;
  flex-wrap: wrap;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 40px 0;
}

.category-info {
  flex: 1 1 33.3333%;
  padding: 20px;
  background-color: #f3f4f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-info h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #111827;
}

.category-info p {
  font-size: 15px;
  margin-bottom: 20px;
  color: #4b5563;
}

.category-info a.button {
  display: inline-block;
  padding: 10px 18px;
  background-color: #3b82f6;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.category-info a.button:hover {
  background-color: #2563eb;
}

.products-shortcode {
  flex: 1 1 66.6667%;
  padding: 20px;
}

.products-shortcode h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #111827;
}

/* По умолчанию показываем только десктопный шорткод */
.mobile-products {
  display: none;
}
.desktop-products {
  display: block;
}

/* На мобильных — наоборот */
@media (max-width: 768px) {
  .category-products-block {
    flex-direction: column;
  }

  .category-info,
  .products-shortcode {
    flex: 1 1 100%;
    padding: 16px;
  }
	
.mobile-products {
    display: block;
  }

  .desktop-products {
    display: none;
  }
}
