* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Шапка и навигация */
header {
    border-bottom: 10px solid #27ae60; /*linear-gradient(135deg, #8e2de2, #4a00e0);*/
    padding: 0;
    min-height: 230px;
    margin-bottom: 2rem;
}

h2{
margin-top: 2rem;
}

.ah2__{
color: #e74c3c;
text-decoration: none;
border-bottom: #e74c3c 3px solid;
}

.ah2_{
display: block;
color: #fff;
text-decoration: none;
background: #e74c3c;
padding: 0.5rem;
border-radius: 12px;
}

.ah2{
display: block;
color: #e74c3c;
text-decoration: none;
border-bottom: 3px solid #e74c3c;
padding: 0.5rem;
}

.ah2:hover{
opacity: 0.7;
}

.alla{
display: block;
color: #fff!important;
text-decoration: none;
background: #e74c3c;
padding: 1rem;
border-radius: 12px;
font-size: 1rem;
text-align: center;
font-weight: 700;
margin-bottom: 3rem;
border: none!important;
}

.alla:hover{
text-decoration: underline;
opacity: 0.9;
}

.alllink{
margin-top: 1rem;
margin-bottom: 4rem;
}

.alllink a{
color: #000;
}

.alllink a:hover{
text-decoration: none;
}

.logo{
float:left;
}

.menu {
    display: flex;
    list-style: none;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    /*gap: 0.5rem;*/
    font-size: 1.1rem;
    line-height: 1.9;
}

.menu li {
    margin: 0;
}

.menu a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    border-bottom: #111 solid 1px;
}

.menu a:hover {
    color: #27ae60;
    border-bottom: none;
}

.mobile {
  display: none;
}

.subcats {
background: rgba(255,156,0,0.1);
border-radius: 12px;
padding: 1rem;
box-shadow: 0 2px 0px rgba(0, 0, 0, 0.05);
}

.subcats span{
font-weight: bold;
}

.subcats a{
  display: inline-block;
  text-decoration: none;
  color: #e74c3c;
  border-bottom: #e74c3c solid 1px;
  margin: 0 0.5rem;
}

.subcats a:hover{
  border: none;
}

.subcatdesc a{
text-decoration: none;
color: #e74c3c;
border-bottom: #e74c3c solid 1px;
}

.subcatdesc a:hover{
  border: none;
}

/* Основной контент */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1, .h1-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #e74c3c;
    font-size: 2.5rem;
}

.h1-title a{
  text-decoration: none;
  font-weight: 900;
  color: #e74c3c;
}

.h1-main {
text-align: left;
margin-bottom: 1.5rem;
color: #2c3e50;
font-size: 2rem;
}

p {
    /*text-align: center;*/
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: #555;
}

/* Фильтры */
.filters {
    padding: 1.5rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filters label {
    margin: 0 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.filters select,
.filters input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.page-info p{
margin-bottom: 1rem!important;
}

.page-info h1{
color: #e74c3c!important;
}

.page-info a{
  text-decoration: none;
  color: #333;
  border-bottom: #333 solid 1px;
}

.page-info a:hover{
  color: #27ae60;
  border: none;
}

.page-info ul, .page-info ol{
  margin-left: 1rem;
}

.page-info ul li, .page-info ol li{
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1rem;
}

.page-info h3{
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.why{
  background: rgba(0,255,66,0.1);
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 24px;
}

.why h2{
  color: #27ae60;
  margin-bottom: 1rem;
  margin-top: 1rem;
  line-height: 1.15;
}

/* Отзывы */
.review{
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.review img{
  max-width: 50%;
  border-radius: 12px;
}

.review_stars{
  display: inline-block;
  float: right;
}

.review p[itemprop='name']{
  color: #e74c3c;
  font-weight: bold;
}

.review div[itemprop='reviewRating']{
  font-weight: bold;
}

.review time{
  color: #ccc;
}

div[itemprop="aggregateRating"], div[itemtype="https://schema.org/Organization"]{
  margin-bottom: 2rem;
}

#vk_groups_mobile{
  display:none;
}

/* Витрина товаров */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.product-card {
    border: 1px solid #eaeaea;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding-bottom: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.product-card:hover a{
    text-decoration: none;
}

.product-card img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
    transition: opacity 0.3s;
}

.product-card:hover img {
    opacity: 0.9;
}

.product-card .category{
margin:0!important;
}

.product-card h3, .product-card .h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    color: #e74c3c;
    min-height: 4rem;
    font-weight: 700;
}

.product-card h3 a, .product-card .h3 a  {
    /*text-decoration: none;*/
    color: inherit;
    transition: color 0.3s;
}

.product-card h3 a:hover, .product-card .h3 a:hover {
    /*color: #27ae60; #8e2de2;*/
    text-decoration: none;
}

.description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    min-height: 60px;
}

.price {
    font-weight: bold;
    color: #555;
    font-size: 1.4rem;
    display: block;
    margin: 0.8rem 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.label {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0 20px 20px 0;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.labelblock {
position: absolute;
margin-top: -5rem;
}

.add-to-cart {
    background: #27ae60; /*#3498db;*/
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
}

.add-to-cart:hover {
    opacity: 0.75;
    transform: translateY(-2px);
}

.add-to-cart:active {
    transform: translateY(0);
}

#open-cart:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}


.cart-summary-prices{
  display: flex;
  justify-content: space-between;
}

.cart-summary p{
  margin-bottom: 1rem;
}

/* Подвал */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: #111;
    margin-top: 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

footer div{
  max-width: 30%;
}

footer div p{
  color: #777!important;
  font-size: 1rem;
  margin-bottom: 1rem!important;
}

footer b{
  color: #999;
}

footer a{
  text-decoration: none;
  color: #999;
  border-bottom: 1px solid #999;
}

footer a[target='_blank']{
   color: #27ae60;
   border-color: #27ae60;
}

footer a:hover{
  border: none;
}

.footersmall{
  font-size: 0.8rem!important;
  color: #777!important;
}

/* Адаптивность */
@media (max-width: 768px) {

.page-info ul li, .page-info ol li{
  font-size: 1rem;
}

footer{
flex-direction: column;
padding-bottom: 7rem!important;
padding-top: 3rem!important;
}

footer div{
max-width: 100%;
}

.footersmall{
  font-size: 0.7rem!important;
}

#vk_groups_mobile{
  display:block;
}

.review img{
  max-width: 100%;
}

.subcats {
  text-align: center;
}

.subcats span{
display: block;
}

.desktop {display:none;}

#open-cart{
  font-size: 0.7rem!important;
  font-weight: 700;
}

#open-cart img {
  /*display: none;*/
}

.cart-item {
    flex-direction: column;
}

.cart-item img {
  width: 80px!important;
  height: auto!important;
}

.item-quantity{
  justify-content: center;
}

.cart-summary-prices {
flex-direction: column;
}

.cart-summary-prices p, .cart-summary p{
  margin-bottom: 0.5rem;
}

header p{
  margin-bottom: 1rem;
}

.menu_mobile{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.menu_mobile_ a{
  text-decoration: none;
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: rgba(255,156,0,0.1);
  border-radius: 12px;
  color: #e74c3c;
  border-bottom: 1px solid #fba097;
}

.menu_mobile a{
text-decoration: none;
display: inline-block;
padding: 0.3rem 0.6rem;
background: #27ae5f1c;
border-radius: 12px;
color: #27ae60;
border-bottom: 1px solid #27ae60;
}

.menumob_red{
  background: rgba(255,156,0,0.1)!important;
  color: #e74c3c!important;
  border-bottom: 1px solid #fba097!important;
}

.menumob_blue{
  background: #0054ff1a!important;
  color: #0004ff80!important;
  border-bottom-color: #002fffd4 !important;
}

header{border-bottom-style:solid;}

    h1, .h1-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    p {
        font-size: 1rem;
    }

    .filters {
        flex-direction: column;
        gap: 1rem;
    }

    .filters label {
        display: block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 0.5rem;
    }

.logo{
float:none;
}

.product-card h3, .product-card .h3 {
min-height: auto;
}

    .product-card img {
        width: 100%;
        height: auto;
      }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .filters select,
    .filters input {
        width: 100%;
        max-width: 200px;
        margin-top: 0.5rem;
    }
}

/* Дополнительные состояния */
.add-to-cart:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Анимация для метки */
.label {
    /*animation: pulse 2s infinite;*/
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}



/* Стили для корзины */
.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item .item-price {
  flex: 1;
}

.item-info {
    flex: 1;
    margin: 0 1rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-input {
    width: 60px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 0.5rem;
}

.remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
}

.cart-summary {
    /*text-align: right;*/
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Форма оформления заказа */
.checkout-form {
    /*max-width: 700px;*/
    margin: 0 auto;
    padding: 1rem 2rem;
    padding-bottom: 2rem;
    background: rgba(0,255,66,0.1);
    border-radius: 12px;
}

.checkout-form form{
  max-width: 700px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#submit-order {
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
}

#submit-order:hover {
    background: #219955;
}


.ch2{
  margin-bottom: 2rem;
}

.checkoutsmall{
opacity: 0.5;
margin-top: 2rem;
text-align: center;
font-size: 1rem;
margin-bottom: 1rem;
}

.checkoutsmall a{
text-decoration: none;
color: #555;
border-bottom: 1px solid #555;
}

.checkoutsmall a:hover{
border: none;
}

/* Стили пагинатора */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 8px 12px;
    text-decoration: none;
    color: #999; /*#27ae60;*/
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-link:hover:not(.current):not(.disabled) {
    background-color: #e8f5e9;
    border-color: #27ae60;
    color: #27ae60;
}

.pagination-link.current {
    background-color: #111;
    color: #fff;
    border-color: #111;
    font-weight: bold;
}

.pagination-link.disabled {
    color: #9e9e9e;
    border-color: #e0e0e0;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.pagination-link.prev,
.pagination-link.next {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
}

/* Дополнительная информация о пагинации */
.pagination-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
    padding: 10px;
    /*background-color: #e8f5e9;*/
    border-radius: 4px;
}

/* Адаптивность */
@media (max-width: 768px) {

.item-info{
  text-align: center;
}

.ch2{
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.checkoutsmall{
font-size: 0.7rem;
}

    .pagination {
        /*gap: 6px;*/
    }

    .pagination-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}
