/* === 1. Сброс и базовые настройки === */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
    font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #282828;
	background-color: #fff;
}

/* === 2. Текстовые элементы === */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .4em;
	font-weight: 600;
	line-height: 1.3;
	color: #111;
}

h1 { font-size: 2.25rem; } /* 36px */
h2 { font-size: 2rem; }    /* 32px */
h3 { font-size: 1.5rem; }  /* 24px */
h4 { font-size: 1.25rem; } /* 20px */
h5 { font-size: 1.125rem; }/* 18px */
h6 { font-size: 1rem; }    /* 16px */

p {
	margin: 0 0 1.25em;
}

a {
	color: #0073e6;
	text-decoration: none;
}

a:hover,
a:focus {
	color: #005bb5;
	text-decoration: underline;
}

ul, ol {
	margin: 0 0 1.25em 1.5em;
	padding: 0;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

blockquote {
	margin: 0 0 1.25em;
	padding: 0 0 0 1.5em;
	border-left: 3px solid #0073e6;
	color: #555;
	font-style: italic;
}

/* === 3. Контейнер и основная разметка === */
.site {
	display: flex;
	flex-direction: column;
}

.site-header {
	background: #fff;
	border-bottom: 1px solid #eee;
}

.site-main {
	flex: 1;
	padding: 20px 0;
}

.site-footer {
	padding: 20px 0;
	background: #f8f8f8;
	border-top: 1px solid #eee;
	font-size: 0.875rem;
	color: #666;
}

/* === 4. Утилиты === */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* === 5. Адаптивная сетка (минималистичная) === */
.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 .2em;
}

/* === 6. Кнопки (базовые) === */
.button,
.btn,
a.button {
	padding: 8px 16px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: #0073e6;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.button:hover,
.button:focus {
	background: #005bb5;
	color: #fff;
	text-decoration: none;
}

/* === 7. Таблицы === */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.25em;
}

th,
td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

th {
	font-weight: 500;
	color: #111;
}

/* === 8. Изображения === */
img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* === 9. Формы (минимум) === */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 6px 8px;
	font-family: inherit;
	font-size: .9rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-bottom: 10px;
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid #0073e6;
	outline-offset: 2px;
}

/* === 10. Пагинация === */
.pagination {
	margin: 20px 0;
	text-align: center;
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 4px;
	text-decoration: none;
	color: #0073e6;
	border: 1px solid #ddd;
	min-width: 36px;
	text-align: center;
}

.pagination .current {
	background: #0073e6;
	color: #fff;
	border-color: #0073e6;
}

.pagination a:hover {
	background: #f0f0f0;
}

/* === 11. Хлебные крошки === */
.woocommerce-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3em;
}
.woocommerce-breadcrumb li:not(:last-child)::after {
    content: " » ";
    color: #333;
}

@media (max-width: 768px) {
    .woocommerce-breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .woocommerce-breadcrumb li,
    .woocommerce-breadcrumb li:not(:last-child)::after {
        flex-shrink: 0;
    }
}

/* === 12. Комментарии и отзывы === */
#comments,
#reviews {
	margin-top: 40px;
}

.comment-list,
.woocommerce-Reviews .commentlist {
	list-style: none;
	padding: 0;
	margin: 0;
}

.comment,
.pingback,
.trackback,
.woocommerce-Reviews .review {
	margin-bottom: 24px;
}

.comment .comment_container,
.review .comment_container {
	display: flex;
	gap: 16px;
}

.comment .comment-text,
.review .comment-text {
	flex: 1;
}

.comment .meta,
.review .meta {
	font-size: 0.875rem;
	color: #666;
	margin-bottom: 8px;
}

.star-rating {
	display: block;
	height: 1em;
	line-height: 1;
	font-size: 1em;
	overflow: hidden;
	position: relative;
}

.star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	white-space: nowrap;
	overflow: hidden;
}

/* === 13. Адаптивность === */
@media (max-width: 768px) {
    h1 { font-size: 1.875rem; } /* 30px */
	h2 { font-size: 1.625rem; } /* 26px */
	h3 { font-size: 1.375rem; } /* 22px */

	.container {
		padding: 0 15px;
	}
}

/* === 14. Совместимость с админ-панелью WordPress === */
.body.admin-bar .site-header {
	margin-top: 32px;
}

/* Стили для кнопок избранное сравнение */
.related.products .ajax_add_to_list[data-type="compare"],
.archive-products .ajax_add_to_list[data-type="compare"] {
  top: 32px !important;
}

.related.products .ajax_add_to_list,
.archive-products .ajax_add_to_list {
  border-radius: .8em;
  font-size: .8em;
  width: 2.1em;
  height: 2.1em;
  line-height: 1;
  padding: 0;
  background-color: rgba(163, 162, 162, 0.6) !important;
  color: #fff !important;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  z-index: 9 !important;
}

/* Наведение */
.related.products .ajax_add_to_list:hover,
.archive-products .ajax_add_to_list:hover {
  transform: scale(1.06);
}

/* Состояние "в списке" */
.related.products .ajax_add_to_list.in-compare,
.related.products .ajax_add_to_list.in-wishlist,
.archive-products .ajax_add_to_list.in-compare,
.archive-products .ajax_add_to_list.in-wishlist {
  background-color: rgba(0, 0, 0, 0.55) !important;
}

/* закрыто Стили для кнопок избранное сравнение */


/* Кнопка в корзину */
.archive-products .add_to_cart_button,
.related.products .add_to_cart_button {
    font-size: .9em!important;
  padding: 4px 10px!important;
align-self: flex-start !important;
}