:root {
    --bg-color: #f5f5f5;
    --text-color: #6c757d;
    --accent-color: #ffd333;
    --contrast-color: #3d464d;
    --gray-color: #ccc;
    --red-color: #ee6e73;
    --light-grey-color: #eee;
}

html,
body {
    height: 100%;
}

body {
    min-width: 320px;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}


a {
    color: var(--text-color);
    text-decoration: underline;
}

textarea {
    resize: none;
}

a:hover {
    text-decoration: none;
}

a.edit {
    background-color: var(--accent-color);
    color: var(--contrast-color);
}

a.edit:hover {
    color: #fff;
}


img {
    max-width: 100%;
    height: auto;
}

.btn,
.dropdown-menu,
.form-control,
.form-select {
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    color: var(--text-color);
    border-color: var(--accent-color);
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--gray-color);
}

.btn-warning {
    background-color: var(--accent-color);
    color: var(--contrast-color);
}

.btn-outline-warning {
    border-color: var(--accent-color);
}

.bg-warning {
    background-color: var(--accent-color) !important;
}

.btn-outline-warning:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
}

/* ============================= General rules ============================ */
.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main.main {
    flex: 1 1 auto;
}


section {
    padding: 30px 0;
}

.section-title {
    position: relative;
    /*text-transform: uppercase;*/
    color: var(--contrast-color);
    font-weight: 700;
}

.section-title span {
    background-color: var(--bg-color);
    padding-right: 1rem;
    position: relative;
    z-index: 1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 100%;
    top: 50%;
    left: 0;
    border-top: 1px dashed var(--text-color);
}

label.required::before {
    content: '* ';
    color: #dc3545;
    font-weight: bold;
}

/* ============================= General rules ============================ */

/* ============================= Header ============================ */

.header-top-phone a {
    text-decoration: none;
}

.header-top-phone a:hover {
    text-decoration: underline;
}

ul.social-icons {
    list-style: none;
    margin-bottom: 0;
    padding: 0;
}

ul.social-icons li {
    margin-right: 10px;
}

ul.social-icons a {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    float: left;
    text-align: center;
    transition: all .3s;
}

ul.social-icons a:hover {
    background-color: var(--contrast-color);
    color: var(--accent-color);
}

.header-top .btn {
    background-color: #fff;
}

.header-logo img {
    max-height: 60px;
    height: auto;
    width: auto;
}


.header-logo {
    text-decoration: none;
    /* text-transform: uppercase;*/
    color: var(--contrast-color);
    transition: all .3s;
}

.header-logo:hover {
    color: var(--accent-color);
}

.custom-logo {
    max-height: 70px; /* уменьшает высоту */
    height: auto;
    width: auto;
}

@media (max-width: 767px) {
    .custom-logo {
        max-height: 50px;
    }
}


 .icon-info-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    border: 2px solid currentColor; /* контур круга цветом текста */
    border-radius: 50%;
    background-color: transparent;
    color: #333; /* начальный цвет иконки */
    font-weight: bold;
    font-size: 20px;
    user-select: none;
    transition: color 0.3s, border-color 0.3s;
  }

  button:hover .icon-info-circle,
  button:focus .icon-info-circle,
  button:active .icon-info-circle {
    color: accent-color;
    border-color: accent-color;
  }

.cart-buttons .btn {
    color: var(--contrast-color);
    transition: all .3s;
}

.cart-buttons .btn:hover {
    border: 1px solid var(--contrast-color);
}

.offcanvasCart-table .product-img-td {
    width: 70px;
    text-align: center;
}

.offcanvasCart-table img {
    max-width: 50px;
}

.offcanvasCart-table a {
    text-decoration: none;
    display: block;
}

.offcanvasCart-table a:hover {
    text-decoration: underline;
}

.header-bottom {
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 10px 10px rgba(0, 0, 0, .3);
}

.header-bottom .navbar,
.header-bottom .navbar .dropdown-menu {
    background-color: var(--contrast-color) !important;
}

.header-bottom .nav-item:first-child .nav-link {
    padding-left: 0;
}

.header-bottom .navbar .nav-link {
    color: #fff;
    transition: .3s all;
    letter-spacing: .1rem;
}

.header-bottom .navbar .nav-link:hover {
    color: var(--accent-color);
}

.header-bottom .navbar .nav-link.active {
    color: var(--accent-color);
}

.header-bottom .navbar .dropdown-menu {
    margin-top: 7px;
}

.headernav-scroll.header-bottom .navbar .offcanvas:not(.show) .nav-link {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.sticky-search {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    padding: 10px 0;
}


/* ============================= Carousel ============================ */
.carousel-caption {
    text-shadow: 0 0 2px rgba(0, 0, 0, 1);
}

.carousel-caption p {
    font-size: 1.5rem;
}

/* ============================= Carousel ============================ */


/* ============================= Advantages ============================ */

.advantages .item {
    background-color: #fff;
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all .3s;
}

.advantages .item:hover {
    box-shadow: 0 15px 30px -20px rgba(0, 0, 0, .5);
}

.advantages i {
    font-size: 70px;
    color: var(--accent-color);
}

/* ============================= Advantages ============================ */

/* ============================= Featured products ============================ */

/* ============================= Product card ============================ */
.product-card {
    transition: all .3s;
    background-color: transparent;
    position: relative;
}

.product-card {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    height: 100%;
}

/* Стабильные размеры для карточек товаров */
.products .product {
    display: flex;
    flex-direction: column;
}

.products .product .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Стабильные размеры для изображений */
.product-thumb {
    text-align: center;
    height: 300px; /* Возвращаем прежнюю высоту */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет всю область, обрезая края */
    border-radius: 10px;
    display: block;
    transition: all 0.3s ease;
}

/* Стабильные размеры для деталей товара */
.product-details {
    margin-left: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-details h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-details h4 a {
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
    transition: all .3s;
    line-height: 1.2;
}

.product-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.product-bottom-details {
    border-top: 1px solid var(--light-grey-color);
    padding-top: 1rem;
    margin-top: auto; /* Прижимает к низу */
    flex-shrink: 0;
}

.product-card:hover {
    box-shadow: 0 10px 20px -15px rgba(0, 0, 0, 0.75);
}

.product-card-offer {
    color: #fff;
    position: absolute;
    top: 5px;
    right: 5px;
}

.product-card-offer>div {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-price {
    padding-right: 1rem;
}

.offer-hit {
    background-color: var(--red-color);
}

.offer-new {
    background-color: var(--accent-color);
}

.product-details h4 a:hover {
    color: var(--accent-color);
}

h4.product-title {
    margin-bottom: 0.5rem;
	font-size: 1.3rem;
}


.product-price {
    font-size: 25px;
    color: var(--red-color);
    font-weight: 600;
}

.product-price small {
    color: var(--gray-color);
    font-weight: 400;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.owl-carousel-full .owl-item img {
    display: inline-block;
    width: auto;
}

/* ============================= Product card ============================ */

/* ============================= Featured products ============================ */

/* ============================= About Us ============================ */
.about-us {
    background-color: #fff;
}

.about-us .section-title span,
.sidebar .section-title span,
.bg-white .section-title span {
    background-color: #fff;
}

/* ============================= About Us ============================ */

/* ============================= Footer ============================ */
footer {
    background-color: var(--contrast-color);
    padding: 50px 0;
    color: #fff;
    margin-bottom: 60px;
}

footer h4 {
    color: var(--accent-color);
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: all .3s;
}

footer a:hover {
    color: var(--accent-color);
}

.footer-icons {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    font-size: 20px;
}

/* ============================= Footer ============================ */

#top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    opacity: .5;
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 0;
    font-size: 25px;
    transition: all .5s;
    z-index: 10;
    display: none;
}

#top:hover {
    opacity: 1;
}

/* ============================= Main ============================ */

/* ============================= Category Page ============================ */
.breadcrumbs {
    margin: 30px 0;
    background-color: #fff;
    padding: 1rem;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--contrast-color);
    transition: all .5s;
    margin-right: 0.5rem;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.breadcrumbs a::after {
    content: "/";
    padding-left: 0.5rem;
    color: var(--contrast-color);
}

.sidebar {
    background-color: #fff;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.filter-block:not(:last-child) {
    margin-bottom: 2rem;
}

.filter-block .form-check {
    margin-bottom: 0.5rem;
}

.form-check-input[type="checkbox"] {
    border-radius: 0;
    border-color: var(--gray-color);
}

.form-check-input:focus {
    border-color: var(--gray-color);
    box-shadow: none;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.filter-block .badge {
    color: var(--text-color);
}

.page-link {
    color: var(--contrast-color);
}

.page-link:hover {
    color: #fff;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.active>.page-link,
.page-link.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.sidebar .collapse-filters-btn {
    color: var(--contrast-color);
}

/*подкатегории */
.product-category img {
    border-radius: 12px;
}


/* ============================= Category Page ============================ */


/* ============================= Product Page ============================ */

.product-content .product-price {
    font-size: 25px;
}



.product-content .card i {
    color: var(--accent-color);
}

.product-content .card {
    padding-left: 20px;
    font-size: 14px;
}

.product-content .card ul li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
}

.nav-tabs .nav-link {
    border-radius: 0;
    color: var(--contrast-color);
}

.tab-content {
    padding-top: 20px;
}

/* ============================= Product Page ============================ */


/* ============================= Cart Page ============================ */
.cart-content table img {
    max-width: 50px;
}

.cart-content table th {
    text-align: center;
}

.cart-content table td {
    padding: 1rem;
}

.cart-content-title {
    text-decoration: none;
    display: block;
}

.cart-qty {
    width: 50px;
}

.btn-coupon {
    color: var(--text-color);
    text-decoration: none;
}

.btn-coupon:hover {
    color: var(--contrast-color);
}

.cart-summary h3 {
    color: #000;
}



/* Уменьшаем ширину поля ввода количества */
.woocommerce .quantity .qty {
    width: 50px !important; /* Задай нужную ширину */
    padding: 5px !important; /* Опционально: уменьшаем отступы */
    text-align: center !important; /* Выравнивание текста по центру */
}

.woocommerce-cart table.shop_table tfoot tr,
.woocommerce-cart table.shop_table tfoot td {
  border: none !important;
}


/* ============================= Cart Page ============================ */

@media only screen and (min-width : 992px) {
    .header-bottom .navbar .dropdown-menu-end {
        margin-left: 0;
        border: 0;
    }

    .header-bottom .navbar .nav-link {
        padding: 1rem;
    }
}

@media only screen and (max-width : 991.98px) {
    .header-bottom .navbar .dropdown-menu {
        padding-left: 1rem;
    }
}

@media only screen and (min-width : 768px) {
    .sidebar .collapse-filters {
        display: block;
    }

    .sidebar .collapse-filters-btn {
        display: none;
    }
}

@media only screen and (max-width : 500px) {
    .product-content-details .nav-tabs .nav-link {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 768px) {
  .woocommerce-cart button[name="update_cart"] {
    display: none !important;
  }
}


/*============================ Карусель================================= */
#carousel {
    position: relative;
}

/* Стили для квадратных индикаторов со скруглением */
.carousel-indicators-container {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
}

.carousel-indicators {
    position: relative;
    display: inline-flex;
    gap: 8px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
}

.carousel-indicators [data-bs-target] {
    width: 24px;
    height: 12px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 3px;
    background-color: #ccc;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
    text-indent: -9999px;
}

.carousel-indicators [data-bs-target]:hover {
    opacity: 1;
}

.carousel-indicators .active {
    background-color: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
    border-radius: 4px; /* Сохраняем скругление для активного */
}


/*============================= Star Rating ============================*/

/* Star rating styles */
.huntpro-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    line-height: normal;
}

.woostudy-rating-count {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 1em;
    margin-left: 3px;
}

/* comments */

@font-face {
    font-family:star;
    src:url(../fonts/star.eot);
    src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");
    font-weight:400;
    font-style:normal;
    font-display: swap;
}

@font-face {
    font-family: WooCommerce;
    src: url(../fonts/WooCommerce.eot);
    src: url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"), url(../fonts/WooCommerce.woff) format("woff"), url(../fonts/WooCommerce.ttf) format("truetype"), url(../fonts/WooCommerce.svg#WooCommerce) format("svg");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.products .product .star-rating {
    font-size: .857em;
}
.woocommerce .star-rating {
    float: right;
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    font-family: star;
}
.woocommerce .star-rating::before {
    content: "sssss";
    color: #d3ced2;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}
.woocommerce .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}
.woocommerce .star-rating span::before {
    content: "SSSSS";
    top: 0;
    position: absolute;
    left: 0;
    color: #FFD333;
}
.woocommerce .woocommerce-product-rating {
    line-height: 2;
    display: block;
}
.woocommerce .woocommerce-product-rating::after,
.woocommerce .woocommerce-product-rating::before {
    content: " ";
    display: table;
}
.woocommerce .woocommerce-product-rating::after {
    clear: both;
}
.woocommerce .woocommerce-product-rating .star-rating {
    margin: .5em 4px 0 0;
    float: left;
}
.woocommerce .products .star-rating {
    display: block;
    float: none;
}
.woocommerce .hreview-aggregate .star-rating {
    margin: 10px 0 0;
}
/* comments */
.woocommerce p.stars {
    margin-top: 1rem;
}
.woocommerce p.stars a {
    position: relative;
    height: 1em;
    width: 1em;
    text-indent: -999em;
    display: inline-block;
    text-decoration: none;
}

.woocommerce p.stars a::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-family: WooCommerce;
    content: "\e021";
    text-indent: 0;
}

.woocommerce p.stars a:hover ~ a::before {
    content: "\e021";
}

.woocommerce p.stars:hover a::before {
    content: "\e020";
    color: var(--accent-color);
}

.woocommerce p.stars.selected a.active::before {
    content: "\e020";
    color: var(--accent-color);
}

.woocommerce p.stars.selected a.active ~ a::before {
    content: "\e021";
}

.woocommerce p.stars.selected a:not(.active)::before {
    content: "\e020";
    color: var(--accent-color);
}
/*============================= Price on Product card ============================*/

span.price {
    display: block;
    text-align: center;
}

span.price,
.price ins {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--red-color);
}

.woocommerce del {
	color: var(--gray-color); /* Замените на нужный вам цвет */
}

/*
span.price del {
    color: var(--gray-color);
    font-weight: 400;
    font-size: .8rem;
    text-decoration: line-through;
}*/

.product-bottom-details a {
    font-size: 1rem;
}

/* Общий стиль для ссылок на групповые товары (как кнопка) */
.button.product_type_grouped {
    display: inline-block;
    padding: 5px 20px;
    background-color: var(--accent-color);
    color: var(--contrast-color) !important;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Ховер эффект */
.button.product_type_grouped:hover {
    background-color: #e6c12d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* При нажатии */
.button.product_type_grouped:active {
    transform: translateY(0);
}

/* Иконка перед текстом (по желанию, например "глаз" для "просмотреть") */
.button.product_type_grouped:before {
    content: "\f06e"; /* иконка "глаз" */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
}

/* Кнопка для внешних товаров (product_type_external) */
.button.product_type_external {
    display: inline-block;
    padding: 5px 20px;
    background-color: #6c757d; /* серый цвет */
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Ховер эффект */
.button.product_type_external:hover {
    background-color: #5a6268; /* темнее серого */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Активное состояние */
.button.product_type_external:active {
    transform: translateY(0);
}

/* Иконка (по желанию) */
.button.product_type_external:before {
    content: "\f08e"; /* иконка "внешняя ссылка" */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
}


a.added_to_cart {
    font-size: .9rem;
    margin-left: 5px;
}


@media only screen and (min-width : 992px) {
    .header-bottom .navbar .dropdown-menu-end {
        margin-left: 0;
        border: 0;
    }

    .header-bottom .navbar .nav-link {
        padding: 1rem;
    }
}

@media only screen and (max-width : 991.98px) {
    .header-bottom .navbar .dropdown-menu {
        padding-left: 1rem;
    }
}

@media only screen and (min-width : 768px) {
    .sidebar .collapse-filters {
        display: block;
    }

    .sidebar .collapse-filters-btn {
        display: none;
    }
}

@media only screen and (max-width : 500px) {
    .product-content-details .nav-tabs .nav-link {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Стили для кнопки "В корзину" */
.add_to_cart_button {
    display: inline-block;
    padding: 10px 70px;
    background-color: var(--accent-color);
    color: var(--contrast-color) !important;
    border: none;
    border-radius: 8px; /* Степень скругления углов */
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.add_to_cart_button:hover {
    background-color: #e6c12d; /* Темнее на 10% */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.add_to_cart_button:active {
    transform: translateY(0);
}

.add_to_cart_button:before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
}

/* Для товаров в корзине */
.added_to_cart {
    display: inline-block;
    padding: 10px 10px;
    background-color: #28a745;
    color: white !important;
    border-radius: 8px;
}

.add_to_cart_button.added {
    display: none !important;
}

.single_add_to_cart_button.added {
    display: none !important;
}


.products .added_to_cart, .product-bottom-details .added_to_cart {
    display: inline-block;
    padding: 10px 40px;
    background-color: #28a745;
    color: white !important;
    border-radius: 8px;
}
 
@media (max-width: 768px) {
    .add_to_cart_button {
        padding: 10px 70px;
        font-size: 14px;
    }
}

/*================================ Search form ==========================================*/

.aws-container .aws-search-form {
    border: 2px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    display: flex; /* важно для точного контроля */
    align-items: center;
    padding: 0; /* убери внутренний отступ, если есть */
}

.aws-container .aws-search-field {
    border: none; /* убрать внутренние границы */
    outline: none;
    background-color: transparent;
    flex-grow: 1;
    height: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
}


/*================Mobile Bottom Nav============================*/
/* Основная панель навигации внизу для мобильных */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #ddd;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 64px; /* чуть выше для удобства */
}

/* Ссылка‑элемент: теперь колонкой, чтобы подпись шла под иконкой */
.mobile-bottom-nav .nav-item {
    flex-grow: 1;
    display: flex;
    flex-direction: column;   /* иконка над подписью */
    justify-content: center;
    align-items: center;
    text-decoration: none;
    position: relative;
    padding-top: 8px;
    padding-bottom: 4px;      /* пространство под подпись */
    transition: background-color 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover {
    background-color: #f0f0f0;
}

.mobile-bottom-nav .nav-item svg {
    width: 30px;
    height: 30px;
    stroke: #666666;
    stroke-width: 2.5; /* толще линии */
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover svg {
    stroke: var(--accent-color, #ffd333);
    transform: scale(1.1);
}

/* Обёртка иконки */
.nav-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Активный пункт меню — яркий фон иконки + иконка с акцентным цветом */
.nav-item--active .nav-icon-wrapper {
    background-color: var(--accent-color, #ffd333);
    box-shadow: 0 4px 10px rgba(255, 211, 51, 0.6);
}

.nav-item--active svg {
    stroke: #fff;
    transform: scale(1.15);
}

/* Бейдж корзины */
.cart-badge {
    position: absolute;
    top: 2px;                /* чуть ниже, чтобы не мешал подписи */
    right: 16px;             /* подкорректируйте при необходимости */
    font-size: 0.85rem;      /* чуть больше шрифт */
    font-weight: 700;
    color: #fff;
    background-color: #e53935; /* ярко-красный */
    padding: 5px 9px;          /* увеличим внутренние отступы */
    border-radius: 9999px;
   /* box-shadow: 0 0 8px rgba(229, 57, 53, 0.8);*/
    min-width: 20px;
    text-align: center;
    line-height: 1;
    user-select: none;
}

/* Подписи под иконками */
.mobile-bottom-nav .nav-label {
    display: block;
    margin-top: 4px;      /* расстояние между иконкой/бейджем и текстом */
    font-size: 12px;
    line-height: 1;
    color: #666;
    user-select: none;
}

/* Мелкая настройка для очень узких экранов */
@media (max-width: 480px) {
    .mobile-bottom-nav .nav-label {
        margin-top: 2px;
        font-size: 11px;
    }
}

/* Скрываем навбар на планшетах и десктопах */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/*================Spiner Loader============================

.product-card .ajax-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, .5);
    z-index: 2;
    display: none;
}

.product-card .ajax-loader img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-100px, -100px);
}

===================Ctegory on Home=======================*/

section.widget {
    padding-top: 0;
    padding-bottom: 0;
}

.home-categories a {
    text-decoration: none;
}

.home-categories a:hover {
    text-decoration: underline;
}

.home-categories .product-category img {
    width: 120px; /* или нужное значение */
    height: 120px;
    object-fit: contain; /* или cover */
    border-radius: 10px; /* по желанию скругление */
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .home-categories .products {
      display: flex;
      flex-wrap: wrap;
    }
  
    .home-categories .product-category {
      width: 50% !important;
      flex: 0 0 50% !important;
      max-width: 50% !important;
    }
  }
 
  /*=========================Icon Contacts========================*/
  .contact-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--contrast-color);
    transition: fill 0.3s;
  }
  
  .contact-icon:hover svg {
    fill:var(--accent-color);
  }
  
  /* =====================Стили для модального окна контактов ============*/
  
#contactModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#contactModal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px;
}

#contactModal .modal-title {
    font-weight: 600;
    color: #333;
    font-size: 1.4rem;
}

#contactModal .modal-body {
    padding: 25px;
}

/* Стили для контактной информации */
#contactModal p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#contactModal i.fa-solid {
    margin-right: 12px;
    color: #4a6cf7;
    font-size: 1.3rem;
    min-width: 24px;
    text-align: center;
}

#contactModal a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contactModal a:hover {
    color: #4a6cf7;
}

/* Стили для социальных иконок */
#contactModal .social-icons {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

#contactModal .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    transition: all 0.3s ease;
}

#contactModal .social-icons a:hover {
    background: #4a6cf7;
    color: white;
    transform: translateY(-3px);
}

#contactModal .social-icons i {
    font-size: 1.1rem;
}

/*=====================Product Details===========================*/
.product-content .onsale {
    background: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    margin-bottom: 10px;
    display: inline-block;
}

.product-content .price > span > bdi,
.product-content .price ins,
.woocommerce-grouped-product-list-item__price ins {
    color: var(--red-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 25px;
}
.woocommerce-grouped-product-list-item__price ins {
    font-size: 18px;
}
.product-content .price > del > span {
    color: var(--gray-color);
    font-weight: 500;
    text-decoration: line-through;
    font-size: 1.2rem;
}

.product_meta {
    margin-top: 20px;
}

.product_meta > span {
    display: block;
}

.woocommerce-message {
    background-color: var(--accent-color);
    padding: 1rem;
    margin-bottom: 1rem;
    color: #000;
}

.woocommerce-message .button {
    float: right;
    color: #000;
    text-decoration: underline;
}

.woocommerce-message .button:hover {
    text-decoration: none;
}

p.price {
    text-align: right !important;
    margin-bottom: 0;
}

.thumbnail-item {
    border: none !important;
    cursor: pointer;
    /* Можно оставить, если надо визуальный отклик при наведении */
    /* например, легкий затемнённый эффект */
    transition: filter 0.3s ease;
  }
  
  .thumbnail-item:hover {
    filter: brightness(0.9);
  }
  
  .thumbnail-item.active {
    border: none !important;
  }
  
  .custom-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9;
    backdrop-filter: blur(10px);
  }
  
  .custom-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
  
  .carousel-control-prev.custom-carousel-btn {
    left: 20px;
  }
  
  .carousel-control-next.custom-carousel-btn {
    right: 20px;
  }
  
  .custom-carousel-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
  }
  
  .gallery-thumb {
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    width: 60px;
    height: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .gallery-thumb:hover {
    border-color: #007bff;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
  }
  
  .gallery-thumb.active {
    border-color: #007bff;
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
    transform: scale(1.05);
  }
  
  .custom-carousel-btn:active svg,
  .custom-carousel-btn:focus svg {
    fill: white;
    color: white;
  }
  
  /* Счетчик слайдов */
  .carousel-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  /* Стили для галереи */
  .product-gallery {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .gallery-item {
    border-radius: 12px;
    overflow: hidden;
  }
  
  .gallery-item img {
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.02);
  }
  
  /* Мобильные стили для галереи */
  @media (max-width: 768px) {
    .custom-carousel-btn {
      width: 40px;
      height: 40px;
    }
    
    .carousel-control-prev.custom-carousel-btn {
      left: 10px;
    }
    
    .carousel-control-next.custom-carousel-btn {
      right: 10px;
    }
    
    .custom-carousel-btn svg {
      width: 16px;
      height: 16px;
    }
    
    .carousel-counter {
      top: 15px;
      left: 15px;
      font-size: 12px;
      padding: 6px 12px;
    }
    
    .gallery-thumb {
      width: 50px !important;
      height: 50px !important;
    }
  }

.add2cart-btn {
    margin-left: 25px;
    border-radius: 10px;
}



/* Убираем стрелки во всех полях .qty */
input.qty::-webkit-outer-spin-button,
input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.qty[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-group > * {
    border-radius: 8px !important;
}

.input-group .form-control {
    margin-left: 5px !important; 
    margin-right: 5px !important;
}


.product-content .variations label {
    margin-right: 10px;    
    vertical-align: middle; /* или top / bottom */
}
    
.product-content .reset_variations {
    display: inline-block;
    margin-bottom: 3px;
   
}

.product-content .woocommerce-variation-price span.price {
    text-align: left;
}

.grouped_form .add2cart-btn,
.product-type-external .add2cart-btn {
    margin-left: 0;
}

/* Отзывы */

.product-review {
    margin-bottom: 20px;
}

.product-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.comment-author-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
}

.comment-author-rating .author-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.comment-author-rating .author-rating {
    flex-shrink: 0;
    margin-left: 10px;
}

.product-review-header .avatar {
    max-height: 60px;
}

.product-review .card-text {
    margin-top: 20px;
}

.comment-author-rating .meta {
    margin-bottom: 5px;
}



/* Серая кнопка для woostudy-rating-count в деталях товара */
.product-content .woostudy-rating-count {
    display: inline-block;
    padding: 3px 12px;
    background-color: #6c757d; /* Серый цвет */
    color: #fff !important;
    border-radius: 12px;
    font-size: 0.9em;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.product-content .woostudy-rating-count:hover {
    background-color: #5a6268; /* Темнее серого */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.author-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.numeric-rating {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 600;
}

/* Стили для textarea в отзывах */
.review-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    resize: vertical;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

@media (max-width: 767px) {
    .review-textarea {
        min-height: 150px;
        margin: 0;
        font-size: 14px;
    }
}

/* Выравнивание кнопки отправить отзыв справа */
p.form-submit {
    text-align: right; /* Выравниваем содержимое по правому краю */
    margin: 15px 0 60px !important;
}

.woocommerce-product-details__short-description {
    margin-bottom: 1rem; /* или 2px, 10px — подбери нужное */
}


/*=================Cart page=====================*/
.shop_table th {
    color: var(--text-color);
    font-weight: 500;
}

.shop_table td {
      font-weight: 500;
}

.shop_table ul {
    list-style: none;
    padding-left: 0;
}

.shop_table ul input {
    margin-left: 5px;
    
}

.woocommerce-notices-wrapper ul {
    list-style: none;
}

.woocommerce-notices-wrapper .woocommerce-error {
    color: #fff !important;
    background: #dc3545;
    padding: 1rem;
}

/*кнопка обновить в корзине
form.woocommerce-cart-form button[name="update_cart"] {
    display: none !important;
  }
  
  

/*раздел в корзине Доставка*/

#shipping_method li,
.woocommerce-shipping-methods li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px; /* Отступ снизу каждого элемента */
}

#shipping_method li:last-child,
.woocommerce-shipping-methods li:last-child {
    margin-bottom: 0;
}

.order-total th h4,
.order-total td h4 {
    color: var(--contrast-color);
}




/*========================Checkout page========================*/

ul.woocommerce-error a {
    color: #fff !important; 
    background: #fa3737;
    list-style: none;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.woocommerce-billing-fields__field-wrapper p,
.woocommerce-additional-fields__field-wrapper p,
.woocommerce-shipping-fields__field-wrapper p {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
    flex-direction: column;
}

.woocommerce-checkout p .input-text,
.woocommerce-address-fields p .input-text {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.woocommerce-checkout p .input-text:focus {
    color: #495057;
    background-color: #fff;
    border-color: #ffefb3;
    outline: 0;
    box-shadow: none;
}

.woocommerce-checkout p .select2-container--default .select2-selection--single,
.woocommerce-address-fields p .select2-container--default .select2-selection--single {
    border-radius: 0;
}

.woocommerce-checkout p .select2-container .select2-selection--single,
.woocommerce-address-fields p .select2-container .select2-selection--single {
    height: 38px;
}

.woocommerce-checkout p .select2-container .select2-selection--single .select2-selection__rendered,
.woocommerce-address-fields p .select2-container .select2-selection--single .select2-selection__rendered {
    padding-top: 4px;
}

.woocommerce-checkout p .select2-container--default .select2-selection--single .select2-selection__arrow,
.woocommerce-address-fields p .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 5px;
}


.woocommerce-additional-fields__field-wrapper p {
    flex: 100%;
    max-width: 100%;
}

.woocommerce-checkout textarea {
    min-height: 100px;
}

/* Уменьшение шрифта лейблов на странице оформления заказа */
.woocommerce-checkout label,
.woocommerce-billing-fields__field-wrapper label,
.woocommerce-shipping-fields__field-wrapper label,
.woocommerce-additional-fields__field-wrapper label {
    font-size: 0.750rem !important;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.25rem;
}

/* Специально для лейблов с иконками (WhatsApp) */
.woocommerce-checkout label i,
.woocommerce-billing-fields__field-wrapper label i,
.woocommerce-shipping-fields__field-wrapper label i {
    font-size: 0.750rem;
}

@media only screen and (max-width : 768px) {
    .woocommerce-checkout p {
        flex: 100%;
        max-width: 100%;
    }
}

.d-grid .checkout-button {
    margin-bottom: 50px !important;
    padding: 10px;
    font-weight: bold;
}

/* ===========Страница подтверждения, блок списка товаров===========*/

.woocommerce-checkout-review-order-table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* Колонка "Кол-во" */
.woocommerce-checkout-review-order-table th.product-quantity {
    width: 10% !important;
    min-width: 40px !important;
    text-align: center !important;  /* Выравнивание текста по центру */
    vertical-align: middle !important;  /* Выравнивание по вертикали */
    word-break: break-word !important;
}

/* Колонка "Товар" */
.woocommerce-checkout-review-order-table th.product-name {
    width: 50% !important;
    padding-right: 10px !important;
}

/* Колонка "Цена" */
.woocommerce-checkout-review-order-table th.product-price {
    width: 15% !important;
    text-align: center !important;
}

/* Колонка "Сумма" */
.woocommerce-checkout-review-order-table th.product-total {
    width: 25% !important;
    text-align: center !important;
    vertical-align: middle !important; 
}

/* Скрываем валюту только в таблице заказа и только для товаров */
.woocommerce-checkout-review-order-table tr.cart_item .woocommerce-Price-currencySymbol {
    display: none !important;
}

/* Базовый стиль для всей таблицы */
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
    font-size: 14px ;
    font-family: inherit;
    color: #333 ;
}

.woocommerce-checkout-review-order-table td.product-name {
    white-space: nowrap !important;  /* Запрещаем перенос */
    overflow: hidden !important;
    text-overflow: ellipsis !important;  /* Добавляем "..." */
    max-width: 200px !important;
}

/* Убираем перенос для input-group в таблице корзины */
.woocommerce-cart-form__cart-item .input-group {
    flex-wrap: nowrap !important;
    display: flex !important; /* На всякий случай */
}

/*Заказ принят*/

.woocommerce-thankyou-order-received {
    background: var(--accent-color);
    color: var(--contrast-color);
    padding: 10px;
}

.woocommerce-order-details,
.woocommerce-customer-details {
    padding: 20px 0;
}

.cart-product-title-row .cart-product-title-cell {
    font-weight: bold;
    font-size: 16px;
    padding-top: 18px;
    padding-bottom: 4px;
    text-align: left;
    border-bottom: none;
    background: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



body.woocommerce-cart .woocommerce-cart-form__contents .btn-minus,
body.woocommerce-cart .woocommerce-cart-form__contents .btn-plus {
    display: none !important;
}

@media (max-width: 767px) {
    .woocommerce-cart-form__contents thead {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .cart-content table td {
        padding: 0.5rem;
    }
}

/* Цена и подитог в таблице корзины WooCommerce */
@media (max-width: 767px) {
.woocommerce-cart-form__contents .product-price,
.woocommerce-cart-form__contents .product-subtotal {
    font-size: 15px !important;
    font-weight: normal;
}
.woocommerce-cart-form__contents .product-price .woocommerce-Price-amount,
.woocommerce-cart-form__contents .product-subtotal .woocommerce-Price-amount {
    font-size: 15px !important;
    font-weight: normal;
}
}
/* валюта в корзине*/
@media (max-width: 767px) {
    .woocommerce-cart-form__contents .woocommerce-Price-currencySymbol {
        font-size: 0;
        position: static;
        vertical-align: baseline;
        margin-left: 2px;
    }
    .woocommerce-cart-form__contents .woocommerce-Price-currencySymbol::after {
        content: "с."; /* или нужный символ */
        font-size: 13px;
        font-weight: normal;
        position: static;
        vertical-align: baseline;
        margin-left: 2px;
        display: inline;
    }
}
/* Иконка мусорки в корзине*/
.woocommerce-cart-form__contents .product-remove .fa-trash-alt{
    color: #ff0000 !important;
    font-size: 18px !important;
   
}
/* Иконка глаз в регистрации*/
.woocommerce form .password-input,
.woocommerce-page form .password-input {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.woocommerce form .password-input input[type=password],
.woocommerce-page form .password-input input[type=password] {
  padding-right: 2.5rem;
}

.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
  position: absolute;
  right: 0.7em;
  top: 0.7em;
  cursor: pointer;
}

.woocommerce form .show-password-input::after,
.woocommerce-page form .show-password-input::after {
  font-family: dashicons;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  margin-left: 0.618em;
  content: "\f177";
  text-decoration: none;
}

.show-password-input {
  border: none;
  outline: none;
  background: none;
  box-shadow: none;
  padding: 0;
}
.show-password-input:focus {
  outline: none;
  box-shadow: none;
}
.show-password-input:active {
  outline: none;
  box-shadow: none;
}

/* Пароль в регистрации */

.woocommerce-password-strength.bad,
.woocommerce-password-strength.short {
    color: #cc0000;
}

.woocommerce-password-strength.good {
    color: #00A8EF;
}

.woocommerce-password-strength.strong {
    color: #00A510;
}

.woocommerce-password-hint {
    border: 1px solid #ccc;
    display: block;
    padding: 10px;
}

/*===================================== Личный кобинет================*/
/* Общие стили */

.responsive-account-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

/* Кнопки */
.account-button {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border-radius: 6px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s ease;
    border: 1px solid #ddd;
}

.account-button:hover {
    background-color: #e0e0e0;
    color: #000;
}

.account-button.active {
    background-color: #ffd333;
    color: #3d464d;
    font-weight: 500;
    border-color: #ffd333;
}

/*адреса*/
.woocommerce-Address {
    width: 100%;
}

.woocommerce-form-register__submit {
    display: block;      /* чтобы margin работал корректно */
    margin-left: auto;   /* авто отступ слева */
    margin-right: 0;     /* ноль отступ справа */
}


@media (max-width: 768px) {  /* для экранов до 768px шириной */
    .woocommerce-form-register__submit {
      margin-bottom: 40px;  /* отступ снизу */
    }
}

/*======================Archive product ==================================*/

.woocommerce-pagination ul.page-numbers {
    display: flex;
    list-style: none;
    padding-left: 0;
}

.woocommerce-pagination li .page-numbers {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--accent-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
}

.woocommerce-pagination span.page-numbers {
    z-index: 3;
    color: #fff;
    background-color: #FFD333;
    border-color: #FFD333;
}

.woocommerce-pagination a.page-numbers:hover {
    z-index: 2;
    color: #e6b400;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.woocommerce-ordering {
	display: inline-block;
	position: relative;
	margin-bottom: 1rem;
}

.woocommerce-ordering .orderby {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 8px 40px 8px 16px;
	font-size: 1rem;
	border: 1px solid var(--accent-color, #ffd333);
	border-radius: 10px;
	background-color: #fff;
	color: #333;
	cursor: pointer;
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.woocommerce-ordering .orderby:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 211, 51, 0.4);
	border-color: var(--accent-color, #ffd333);
}

a.button.product_type_variable {
	display: inline-block;
	background-color: #f0f0f0;        /* светло-серый фон */
	color: #333;                      /* тёмно-серый текст */
	border: 1px solid #ccc;           /* тонкая рамка */
	padding: 8px 25px;
	border-radius: 10px;             
	text-align: center;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

a.button.product_type_variable:hover {
	background-color: #e0e0e0;        /* чуть темнее при наведении */
	color: #000;                      /* подчёркиваем активность */
	border-color: #bbb;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/*========================Slider================================*/

@media (max-width: 768px) {
  #carousel {
    max-height: 300px; /* или нужная тебе высота */
    overflow: hidden;
  }

  #carousel .carousel-item img {
    height: 300px;
    object-fit: cover; /* сохраняет пропорции и заполнение */
    width: 100%;
  }

  /* Уменьшаем подписи */
  #carousel .carousel-caption {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  #carousel .carousel-caption h2 {
    font-size: 1.2rem;
  }
}

.btn-install {
  background-color: #2563eb;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn-install:hover {
  background-color: #1d4ed8;
}

/*рамка в оформлении*/
.woocommerce .form-row .woocommerce-input-wrapper input.input-text {
    border: 1px solid #0073aa; /* Цвет рамки, например, синий */
    border-radius: 8px; /* Скругление углов */
    padding: 10px; /* Внутренний отступ для красоты */
    box-sizing: border-box; /* Чтобы padding не увеличивал размер */
}

.select2-container .select2-selection--single {
    border: 1px solid #0073aa !important; /* Цвет рамки, например, синий */
    border-radius: 8px !important; /* Скругление углов */
    box-sizing: border-box;
}

/*=======================модальное окно регистрации======================*/
/* Стили для модального окна логина */
#loginModal .modal-content {
    background: var(--bg-color); /* #f5f5f5 */
    border-radius: 8px;
    padding: 1rem;
}

#loginModal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

#loginModal .modal-title {
    font-weight: 700;
    color: var(--contrast-color); /* #3d464d */
    position: relative;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}


#loginModal .modal-title span {
    background: var(--bg-color); /* #f5f5f5 */
    padding-right: 1rem;
    position: relative;
    z-index: 1;
}

#loginModal .modal-body p:not(.text-muted) {
    font-size: 16px;
    color: var(--contrast-color); /* #3d464d */
    margin-bottom: 1rem;
    position: relative;
}

#loginModal .modal-body p:nth-child(3) {
    margin-top: 1rem;
}


#loginModal .login label {
    font-size: 16px;
    color: var(--contrast-color); /* #3d464d */
    display: block;
    margin-bottom: 0.5rem;
}

#loginModal input[type="text"],
#loginModal input[type="password"] {
    border: 1px solid var(--text-color); /* #6c757d */
    border-radius: 8px;
    font-size: 16px;
    padding: 10px;
    width: 100%;
    margin-bottom: 1rem;
}


#loginModal input[type="submit"] {
    border: 1px solid var(--text-color);
    color: var(--contrast-color); /* #3d464d */
    font-weight: 500;
    padding: 8px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto
}

#loginModal input[type="submit"]:hover {
    background: var(--contrast-color);
    color: #fff;
}

#loginModal .text-muted {
    clear: both;
    font-size: 14px;
    color: var(--text-color); /* #6c757d */
}

#loginModal .text-muted a {
    color: var(--contrast-color); /* #3d464d */
    text-decoration: underline;
}

#loginModal .text-muted a:hover {
    color: var(--accent-color); /* #ffd333 */
}




/* Стили для новой разметки количества */
.input-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.input-group-label {
    font-weight: 500;
    color: var(--contrast-color);
    white-space: nowrap;
}
.input-group-unit {
    font-weight: 400;
    color: var(--text-color);
    margin-left: 4px;
    white-space: nowrap;
}
.input-group input.qty {
    width: 50px;
    text-align: center;
    border: 1px solid #2563eb;
    height: 38px; /* или какая высота у твоей кнопки */
    line-height: 1;
    padding: 8px 4px;
}

@media (max-width: 480px) {
  .input-group input.qty {
    width: 65px;
    min-width: 0;
    max-width: 65px;
    font-size: 16px;
    padding-left: 0;
    padding-right: 0;
  }
}

/*остаток товара*/
.stock-info {
    font-size: 20px;
    font-weight: 600;
}

/* Стили для галереи товара */
.gallery-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}



/* Модальная галерея - базовые стили */
#productGalleryModal .modal-backdrop {
    background-color: white !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

#productGalleryModal {
    background-color: white !important;
}

/* Остальные стили перенесены в modal-gallery.css */

/* Стили для переключателя языков */
.language-switcher {
    position: relative;
}

.language-switcher .btn {
    color: #333;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher .btn:hover,
.language-switcher .btn:focus {
    color: #007bff;
    background: transparent;
    box-shadow: none;
}

.language-switcher .flag {
    font-size: 1.2em;
    line-height: 1;
}

.language-switcher .lang-name {
    font-weight: 500;
}

.language-switcher .dropdown-menu {
    min-width: 140px;
    padding: 0.5rem 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.language-switcher .dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out;
}

.language-switcher .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.language-switcher .dropdown-item.active {
    background-color: #007bff;
    color: white;
}

.language-switcher .dropdown-item.active:hover {
    background-color: #0056b3;
    color: white;
}

/* Мобильные стили для переключателя языков */
@media (max-width: 768px) {
    .language-switcher .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .language-switcher .lang-name {
        display: none;
    }
    
    .language-switcher .dropdown-menu {
        min-width: 120px;
    }
    
    /* Специальные стили для мобильной версии */
    .language-switcher-mobile .language-switcher .btn {
        padding: 0.25rem;
        font-size: 0.75rem;
        min-width: auto;
    }
    
    .language-switcher-mobile .language-switcher .dropdown-menu {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 200px;
        z-index: 9999;
    }
}
