/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #5B595A;
    --color-white: #fff;
    --color-gray: #666;
    --color-light-gray: #ddd;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-bg-light: #F8F8F8;

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 8px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-xxl: 40px;

    /* Font sizes */
    --font-sm: 16px;
    --font-md: 18px;
    --font-lg: 20px;
    --font-xl: 32px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 20px;
    --radius-lg: 30px;

    /* Transitions */
    --transition-default: 0.3s;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/makeawish/assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Condensed";
    src: url('/wp-content/themes/makeawish/assets/fonts/RobotoCondensed-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

/* Global */
html {
    height: 100%;
}

body {
    font-family: 'Inter';
    color: black;
    background: #F5F5F5;
    height: 100%;
}

#page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

header {
    /* 0 flex-grow, 0 flex-shrink, auto flex-basis */
    flex: 0 0 auto;
}

main {
    /* 1 flex-grow, 0 flex-shrink, auto flex-basis */
    flex: 1 0 auto;
}

footer {
    /* 0 flex-grow, 0 flex-shrink, auto flex-basis */
    flex: 0 0 auto;
}

a {
    color: black;
    text-decoration: none;
}

p,
address {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

li::marker {
    font-size: 0px;
}

.btn {
    border: none;
    border-radius: 16px;
    background: #93764c;
    padding: 16px 24px;
    color: #FFF;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 125%;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #685236;
}

.product__btn_g {
    background: #00C842;
}

.block {
    padding: 60px 0;
}

.page_padding {
    padding: 0;
}

.title {
    color: var(--Black, #0D0D0D);
    font-family: "Roboto Condensed";
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    /* 48px */
    letter-spacing: -0.96px;
}

@media (width < 768px) {
    .title{
        font-size: 40px;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--Grey80, #C5C5C5);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 133.3%;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--Grey80, #313131);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 133.3%;
    /* 23.994px */
}

.breadcrumbs__link {
    color: var(--color-gray);
    text-decoration: none;
}

.breadcrumbs__separator {
    margin: 0 var(--spacing-sm);
    color: var(--color-gray);
}

.breadcrumbs__current {
    color: var(--color-primary);
}

.container {
    max-width: 1440px;
    padding: 0 80px;
    margin: 0 auto;
}

@media (width < 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media(width < 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Products */
.products__header {
    height: 58px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}


.products__filter {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: 40px;
    overflow-x: auto;
}

.products__filter::-webkit-scrollbar {
    width: 5px;
    /* Ширина полосы скролла */
    height: 6px;
    cursor: grab;
}

.products__filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* Фоновый цвет трека */
}

.products__filter::-webkit-scrollbar-thumb {
    background: #888;
    /* Цвет ползунка */
    border-radius: 4px;
}

.products__filter::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* Цвет ползунка при наведении */
}

.products__filter-btn {
    padding: 8px 12px;
    border-radius: 120px;
    background: var(--beige, #EDE7E0);
    color: var(--Dark-gray, #313131);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    display: flex;
    align-items: center;
    border: none;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-bottom: 5px;
    /* 22.4px */
}

.products__filter-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.products__filter-btn--active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Product Card */

.product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: all 0.3s;
    border-radius: var(--radius-lg);
    aspect-ratio: 1/1;
}

.product-card {
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card__price {
    font-weight: bold;
    font-size: var(--font-lg);
}

.products__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 40px;
}

.products__pagination_m {
    margin-top: 40px;
}

.products__pagination .page-numbers {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #313131;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    text-decoration: none;
    /* 22.4px */
}

.products__pagination .current {
    background: #EDE7E0;
}

.products__pagination .next {
    position: absolute;
    right: 0;
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 6px;
}

.products__pagination .prev {
    position: absolute;
    left: 0;
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 6px;
}




/* Каталог */
.catalog-page {
    padding: 60px 0;
}


/* Прелоадер */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader-inner {
    width: 40px;
    height: 40px;
}

.preloader-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #333;
    border-top-color: rgba(255, 255, 255, 0.7);
    border-right-color: rgba(255, 255, 255, 0.7);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.preloader_active {
    display: flex;
}

.page-contacts {
    padding: 60px 0;
}

.splide__track--nav>.splide__list>.splide__slide.is-active {
    border: none;
}

.delivery__wrapper {
    position: fixed;
    z-index: -1;
    opacity: 0;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100vh;
    transition: all 0.5s;
}

.delivery__wrapper_active {
    z-index: 99;
    opacity: 1;
}

.delivery__content {
    background: white;
    padding: 60px 32px;
    border-radius: 20px;
}

.delivery__close {
    display: flex;
    justify-content: flex-end;
}

.delivery__close-icon {
    cursor: pointer;
}

.delivery__descr {
    margin-top: 32px;
    color: var(--Grey60, #626262);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    /* 25.2px */
}

.delivery__descr p a {
    color: #93764c;
}

.delivery__icons {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (width < 1200px) {
    .page__bottom {
        padding-top: 40px;
        border-radius: 40px 40px 0px 0px;
    }

    .catalog-page {
        padding: 40px 0;
    }

}

@media(width < 768px) {
    .breadcrumbs {
        margin-bottom: 24px;
    }

    .products__header {
        height: 100px;
        align-items: flex-start;
    }

    .products__title {
        font-size: 40px;
    }

    .page-contacts {
        padding: 32px 0;
    }

    .page__bottom {
        border-radius: 28px 28px 0 0;
        padding-top: 20px;
    }

    .catalog-page {
        padding: 32px 0;
    }

    .delivery__content{
        width: 100%;
    }

    .delivery__icons{
        flex-wrap: wrap;
    }
    .delivery__wrapper{
        background: white;
    }
    .delivery__content{
        padding: 60px 0;
    }
}

.swiper-slide {
    cursor: grab;
}