@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat&family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Orelega+One&display=swap');




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Oswald', sans-serif;

}

html {
    scroll-behavior: smooth;
}
:root {
    --primary-color: #8a5944;
    --transparent-color: rgba(0, 0, 0, 0.4);
    --secondary-color: #d4b8a5;
    --dark-color: #3a2c28;
    --light-color: #f8f3ef;
    --text-color: #646464;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --active-shadow: 0 5px 15px rgba(138, 89, 68, 0.3);
    --accent-color: #C43F44;
    --all-content-width: 1366px;
}

body {

    line-height: 1.2;
    color: var(--text-color);
    background-color: white;
    width: 100%;
    height: 100%;
}
.all_content_wrapper{
    position: relative;
    max-width: var(--all-content-width);
    margin: 0 auto;
    
}

ul {
    list-style: none;

}

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

/* Start Header */
.start_header {
    position: sticky;
    top: 0;
    text-align: center;
    width: 100%;
    height: 250px;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    z-index: 100;
}


.start_header_content_wrapper {
    position: relative;
    max-width: var(--all-content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 3fr;
    justify-items: center;
    align-items: center;
}

.logo_container {
    position: relative;
    height: 230px;
}

.logo_container p {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(1.5rem, 1.379vw + 0.845rem, 2.5rem);
    position: absolute;
    left: clamp(9.063rem, -0.862vw + 9.472rem, 8.438rem);
    bottom: -5px;
    max-width: 320px;
    color: var(--accent-color);
}

.logo_container img {
    display: block;
    height: 100%;
}

.start_nav {
    position: relative;
    height: 100%;
    width: 100%;
}

/*  Nav icon  */
.favorite_box, .cart_box {
    position: relative;
}
.cart_count, .favorite_count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.nav_icon svg, .cart_box svg, .account_box svg, .favorite_box svg {
    width: clamp(1.875rem, 0.641vw + 1.731rem, 2.5rem);
    height:clamp(1.875rem, 0.641vw + 1.731rem, 2.5rem);
}

.nice-btn {
    position: absolute;
    bottom: 1rem;
    left: clamp(2rem, -0.577vw + 2.192rem, 1.5rem);
    background-color: var(--light-color);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    color: var(--accent-color);
}
.nice-btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    box-shadow:  6px 20px 42px -10px rgba(0, 0, 0, 0.28);
}
@media (max-width: 533px) {
    .nice-btn {
        bottom: 3.5rem;
        left: auto;
        right: 1rem;
    }
}

.slogan_wrapper {
    position: relative;
    height: 100%;
    justify-self: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;

}

.slogan,
.slogan_note {
    font-weight: bold;
    font-size: clamp(2rem, 1.379vw + 1.345rem, 3rem);
    color: var(--primary-color);
    text-align: left;
}

.slogan_note {
    color: var(--accent-color);
    align-self: flex-end;
    margin-right: 1rem;
}

.user_icons_wrapper, .nav_icons_wrapper {
    position: absolute;
    right: 1rem;
    top: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    align-items: center;
    justify-items: center;
    z-index: 101;
    margin-top: 1rem;
}

.nav_icons_wrapper {
    left: 1rem; 
    grid-template-columns: repeat(3, 1fr); 
    justify-items: flex-start;
    max-width: 60px;
}

.auth_account_box{
    width: 100%;
    height: 100%;
    padding: 2px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem;
}


.cart_box,
.account_box {
    cursor: pointer;
    z-index: 13;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
}

.cart_popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1rem;
    border-radius: 1rem;
    z-index: 11;
    width: 80%;
    max-width: 300px;
    min-height: 200px;
}


.related_product_gallery {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.063rem, 0.608vw - 0.229rem, 0.5rem);
}

.related_product_link {
    position: relative;
    display: block;
    width: clamp(4.375rem, 3.846vw + 3.51rem, 8.125rem);
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    transition: transform 0.3s;
}
.mini_price, .mini_color {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem;
    font-size: 0.8rem;
    max-height: max-content;
    border-radius: 0.5rem;
    opacity: 0;
    border: 1px solid var(--light-color);
}
.mini_color {
    top:0;
}

.related_product_link:hover {
    transform: scale(1.2);
    z-index: 100;
    border: 1px solid var(--light-color);
    transition: transform 0.3s;
}
.related_product_link:hover .mini_price,
.related_product_link:hover .mini_color {
    opacity: 1;
    transition: opacity 0.3s;
}

.related_product_image {
    height: 100%;
    width: auto;
    object-fit: cover;
}

.close_icon {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    position: absolute;
    top: 5px;
    right: 10px;
}

@media (max-width: 768px) {
    .start_header_content_wrapper {
        grid-template-columns: 1fr 1fr;
        margin-right: 0.5rem;
    }

    .slogan_wrapper {
        display: none;
    }
}



/* Header */
header {
    height: 60px;
    background-color: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo_box p {
    font-family: 'Great Vibes', cursive;
    color: var(--accent-color);
    font-weight: 400;
    font-size: 24px;
}

.header_content_wrapper {
    position: relative;
    max-width: var(--all-content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 4fr 1fr;
    align-items: center;
    justify-items: center;
}

/* Menu */
#menu {
    background: var(--light-color);
    height: 60px;
    margin: 0 auto;
    border-radius: 10px;
}

#menu ul,
#menu li {
    margin: 0 auto;
    padding: 0;
    list-style: none
}

#menu ul {
    width: 100%;
    text-align: left;
}

#menu li {
    display: inline-block;
    position: relative;
}

#menu a {
    display: block;
    line-height: 60px;
    padding: 0 14px;
    text-decoration: none;
    color: #646464;
    font-size: 16px;
}

#menu a.dropdown-arrow:after {
    content: "\25BE";
    margin-left: 5px;
}

#menu li a:hover {
    color: #C43F44;
    background: #F2F2F2;
}

#menu input {
    display: none;
    margin: 0;
    padding: 0;
    height: 60px;
    width: 100%;
    opacity: 0;
    cursor: pointer
}

#menu label {
    display: none;
    line-height: 60px;
    text-align: center;
    position: absolute;
    left: 35px
}

#menu label:before {
    font-size: 1.6em;
    color: #646464;
    content: "\2261";
    margin-left: 20px;
}

#menu ul.sub-menus {
    height: auto;
    overflow: hidden;
    width: 170px;
    background: #444444;
    position: absolute;
    z-index: 99;
    display: none;
}

#menu ul.sub-menus li {
    display: block;
    text-align: left;
    width: 100%;
}

#menu ul.sub-menus a {
    color: #FFFFFF;
    font-size: 16px;
}

#menu li:hover ul.sub-menus {
    display: block
}

#menu ul.sub-menus a:hover {
    background: #F2F2F2;
    color: #444444;
}

@media screen and (max-width: 520px) {
    #menu {
        position: relative
    }

    #menu ul {
        background: #444444;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 3;
        height: auto;
        display: none;
        text-align: left;
    }

    #menu ul.sub-menus {
        width: 100%;
        position: static;
    }

    #menu ul.sub-menus a {
        padding-left: 30px;
    }

    #menu li {
        display: block;
        float: none;
        width: auto;
    }

    #menu input,
    #menu label {
        position: absolute;
        top: 0;
        left: 0;
        display: block
    }

    #menu input {
        z-index: 4
    }

    #menu input:checked+label {
        color: #646464
    }

    #menu input:checked+label:before {
        content: "\00d7"
    }

    #menu input:checked~ul {
        display: block
    }
}

.header_cart_box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header_cart_box img {
    width: 100%;
    height: 100%;
}


section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}


/* Advantages Section */
.advantages {
    max-width: var(--all-content-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
}

.advantage {
    width: 260px;
    margin: 10px;
    text-align: center;
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.advantage h4 {

    margin-bottom: 0.5rem;

}

/* Categories Section */
.categories,
.catalog 
.container {
    padding: clamp(15px, 5vh, 40px) 0;
    background-color: #f9f5f1;
    text-align: center;
    

}

.section-title,
.sales_hits-title,
.catalog-title {
    margin-bottom: 1rem;
}

.categories-grid,
.sales_hits-grid,
.catalog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(3px, 2vw, 24px); 
    width: 100%;
    margin: 0 auto;
    justify-content: center;
}

.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: clamp(150px, 45vw, 280px);
    flex-grow: 1; /* Чтобы карточки красиво заполняли пустоты */
    max-width: 280px; /* Ограничиваем сверху, чтобы на больших экранах не стали гигантскими */
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    cursor: pointer;
    /* Добавляем фиксированное соотношение сторон */
    aspect-ratio: 3 / 5; /* или другое соотношение, например 4/3 */
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px;
}

.category-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
}


/* Product Card Section */

.product-card {
    position: relative;
    width: clamp(150px, 45vw, 280px);
    flex-grow: 1; /* Чтобы карточки красиво заполняли пустоты */
    max-width: 280px; /* Ограничиваем сверху, чтобы на больших экранах не стали гигантскими */
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0px 0px 74px 30px rgba(136, 119, 111, 0.3);
    transition: 0.3s;
   

}

.product-card img{
   transition: 0.3s; 
}
.product-card:hover img{
    transform: scale(1.2);
    transition: 0.3s;
    box-shadow: var(--active-shadow);
}

.product-image-container {
    position: relative;
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    
}

.ribbon {
    position: absolute;
    top: 18px;
    right: -75px;
    width: 220px;
    text-align: center;
    transform: rotate(45deg);
    line-height: 24px;
    background: #C43F44;
    color: #FFFFFF;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    
}

.product-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    
}

.favorite-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}


.favorite-btn svg {
    width: 24px;
    height: 24px;
    stroke: #333;
    stroke-width: 2;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
}

.shake-animation {
  animation: shake 0.3s ease-in-out;
  border: 1px solid rgba(255, 0, 0, 0.3); /* Опционально: легкое покраснение границ */
}


.discount-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0px 0px 30px 8px rgba(255, 255, 255, 1);
}

.product-info {
    position: relative;
    padding: clamp(0.5rem, 0.513vw + 0.385rem, 1rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.25rem, 0.256vw + 0.192rem, 0.5rem);
}



.price-container {
    display: flex;
    align-items: baseline;
    gap: clamp(0.5rem, 0.256vw + 0.442rem, 0.75rem);

}

.current-price {
    font-size: clamp(1rem, 0.513vw + 0.885rem, 1.5rem);
    font-weight: 700;
    color: var(--accent-color);
}

.old-price {
    font-size: clamp(0.75rem, 0.256vw + 0.692rem, 1rem);
    color: #999;
    text-decoration: line-through;
}


.product-title {
    font-size: clamp(1rem, 0.256vw + 0.942rem, 1.25rem);
    color: #333;
    line-height: 1.4;
    text-align: left;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    /* Ограничение в 1 строку */
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    /* Настройте под ваш дизайн */
    max-height: 1.5em;
    /* 1 строка * line-height */
}

.rating-wrapper {

    text-align: left;
}

.add-to-cart-btn, .page-add-to-cart-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: clamp(0.375rem, 0.256vw + 0.317rem, 0.625rem);
    border-radius: clamp(0.375rem, 0.385vw + 0.288rem, 0.75rem);
    font-size: clamp(1rem, 0.256vw + 0.942rem, 1.25rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.25rem, 0.256vw + 0.192rem, 0.5rem);
    transition: background 0.2s;
}


.add-to-cart-btn:hover, .page-add-to-cart-btn:hover {
    background: var(--accent-color);
}

.add-to-cart-btn svg , .page-add-to-cart-btn svg {
    width: 25px;
    height: 25px;
    fill: white;
}

.delivery-date {
    font-size: 14px;
    color: var(--secondary-color);

}
.mini-add-to-cart-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: var(--primary-color);
    align-self: flex-end;
    padding: 4px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
}

.mini-add-to-cart-btn:hover {
    background: var(--accent-color);
}

.mini-add-to-cart-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

@media (max-width: 533px) {
    .add-to-cart-btn {
        display: none;
    }
    .mini-add-to-cart-btn {
        display: block;
    }
}



/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0 30px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}


.footer-col h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

/* Star Rating Styles */
.star-container {
    display: inline-block;
    font-size: clamp(1rem, 0.513vw + 0.885rem, 1.5rem);
    line-height: 1;
    position: relative;
    font-family: "Times New Roman", Times, serif;
}

.stars-empty {
    color: #d1d1d1;
}

.stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    /* Теперь это значение будет браться из инлайнового стиля конкретной карточки */
    width: calc(var(--rating-val) / 5 * 100%);
    overflow: hidden;
    white-space: nowrap;
    color: var(--accent-color);
}
.rating-value{
    font-size: clamp(0.875rem, 0.513vw + 0.769rem, 1.125rem);
}

.reviews-count{
    margin-left: 10px;
}

/* Product Page Styles */
.product_page_container {
    max-width: var(--all-content-width);
    margin: 0 auto;
    padding: clamp(0rem, 1.282vw - 0.288rem, 1.25rem);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(0.5rem, 0.769vw + 0.327rem, 1.25rem);
    justify-items: center;
}
/* Product Page Info */
.product_page_info_wrapper {
    order:1;
}

.product_page_info_wrapper,
.other_products_wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.product_page_category {
    font-size: 0.8rem;
    color: var(--transparent-color);
    padding-right: 15px;
}


.product_info_popup {
    position: fixed;
    top:1rem;
    left: clamp(0.25rem, 17.692vw - 3.731rem, 17.5rem);
    z-index: 40;
    width: clamp(21.25rem, 7.051vw + 19.663rem, 28.125rem);
    height: auto;
    background-color: white;
    padding: clamp(0.5rem, 0.769vw + 0.327rem, 1.25rem);
    border-radius: 12px;
    font-size: 0.9rem;

}

.product_info_popup p {
    font-size: 0.8rem;
    text-align: justify;
}

.product_page_image_wrapper {
    position: relative;
    width: 100%;
    order:2;
}
.main_image_wrapper {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    border-radius: 16px;
}

.main_image_wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.color_info {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--light-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    z-index: 10;
}

.all_info_button {
    background-color: var(--light-color);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.all_info_button:hover {
    background-color: var(--accent-color);
    color: white;
}
.other_products_wrapper {
    order:3;
}
@media (max-width: 768px) {
    .product_page_container {
        grid-template-columns: 1fr;
        
    }
    .product_page_info_wrapper {
    order:3;
}
.other_products_wrapper {
    order:2;
}

}

/* Specs Grid Styles */
.spec-item {
    position: relative;
    display: flex;
    align-items: baseline;
    /* Выравнивание по тексту */
    margin-bottom: 8px;
}

.spec-label {
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
    /* Чтобы название не переносилось */
}

.spec-dots {
    flex-grow: 1;
    /* Занимает всё свободное место */
    border-bottom: 1px dotted var(--transparent-color);
    /* Сами точки */
    margin: 0 10px;
    position: relative;
    top: 0px;
    /* Поднимаем точки до уровня середины текста */
    height: 1px;
}

.spec-value {
    white-space: normal;   /* РАЗРЕШЕН перенос текста значения */
    word-break: break-word; /* Перенос длинных слов */
    text-align: right;     /* Выравнивание значения по правому краю (опционально) */
    flex-shrink: 1;        /* РАЗРЕШЕНО сжиматься этому блоку, чтобы текст переносился */
    /* Важно: блок значения должен иметь возможность уменьшиться в ширину,
       тогда текст внутри него пойдет на вторую строку */
}
.product_page_discount {
    color: var(--accent-color);
    font-weight: 600;
}

/* Gallery Styles */

.swiper {
    width: clamp(21.875rem, 8.681vw + 17.708rem, 28.125rem);
    height: auto;
    aspect-ratio: 2 / 3;
}
.swiper-slide{
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    
}
.swiper-slide img{
    
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 2 / 3;
}
.swiper-button-next, .swiper-button-prev {
    color: white;
    height: 2rem;
    background-color: var(--transparent-color);
    padding: 0.5rem;
    border-radius: 2rem;
    
}
.swiper-pagination-bullet {
    background: white;
    height: 0.7rem;
    width: 0.7rem;
    opacity: 0.5;
}
.swiper-pagination-bullet-active{
    height: 1rem;
    width: 1rem;
    opacity: 1;
}


/*forms section */
.all_form_content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form_container{
    margin-top: 1.5rem;
    margin-inline: auto;
    width: clamp(300px, 30%, 500px);
    text-align: center;
    max-width: var(--all-content-width);
}
.form_title {
    margin-bottom: 1rem;
    text-align: center;
}



/* input text
-------------------------- */
.group {
  position: relative;
  margin-bottom: 25px;
  width: 100%;
}

input[type="text"],
input[type="password"] {
  font-size: 18px;
  padding: 10px 10px 10px 5px;
  display: block;
  width: clamp(240px, 100%, 500px);
  border: none;
  border-bottom: 1px solid #757575;
}

/* LABEL ======================================= */
input[type="text"]~label,
input[type="password"]~label {
  color: #999;
  font-size: 18px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  right: 5px;
  top: 10px;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
}

/* active state */
input[type="text"]:focus~label,
input[type="password"]:focus~label,
input[type="password"]:valid~label {
  top: -20px;
  font-size: 14px;
  color: var(--primary-color);
}

/* BOTTOM BARS ================================= */
.bar {
  position: relative;
  display: block;
  width: 100%;
}

.bar:before,
.bar:after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: #5264AE;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
}

.bar:before {
  left: 50%;
}

.bar:after {
  right: 50%;
}

/* active state */
input[type="text"]:focus~.bar:before,
input[type="text"]:focus~.bar:after,

input[type="password"]:focus~.bar:before,
input[type="password"]:focus~.bar:after {
  width: 50%;
}

/* end input text
-------------------------- */



/* Radio
-------------------------- */
.radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: left;
  margin: 15px 0;
  color: #999;
  font-size: 18px;
  padding: 10px 10px 10px 5px;
  border-bottom: 1px solid #757575;
}

.radio-options {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 5px;
}

.radio-option input[type="radio"] {
  margin: 0;
}

input[type="radio"] {
  cursor: pointer;

}

/* end Radio
-------------------------- */


/* input file
-------------------------- */
.file_group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  text-align: left;
  margin: 15px 0;
  color: #999;
  font-size: 18px;
  padding: 10px 10px 10px 5px;
  border-bottom: 1px solid #757575;
  gap: 1.5rem;
}

.users-btn {
  -webkit-appearance: none; /* Убирает системные стили iOS */
  appearance: none;  
  color:var(--text-color) !important;
  background-color: var(--light-color) !important;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  width: 200px;
  margin: 1rem 0;
  text-align: center;
  margin-left: 3rem;
}
.edit-profile-btn, .profile_logaut_btn, .product-page-btn {
  margin-left: 0;
}

.users-btn:hover {
  background-color: var(--accent-color) !important;
  color: white !important;
}
.qty-btn{
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.qty-btn:hover{
  background-color: var(--accent-color) !important;
  color: white !important;
}


/* all profile content */
.profile_title{
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
 
}

.all_profile_content{
    margin-top: 15rem;
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    
}
.profile_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.user_profile_info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.profile_cart_image_wrapper{
    width: auto;
    height: 100px;
    overflow: hidden;
    margin-right: 0.5rem;
    border-radius: 8px;
    aspect-ratio: 3 / 4;
}
.profile_cart_image_wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
   
}

.cart_products_list{
    margin: 1rem  auto;
    display: flex;
    flex-direction: column;
    padding: 3px;
    width: clamp(21.25rem, 16.667vw + 17.5rem, 37.5rem);
    background-color: var(--light-color);
    padding: clamp(0.5rem, 0.513vw + 0.385rem, 1rem);
    border-radius: .5rem;
    
}

.cart_spec_label{
    white-space: normal;   /* РАЗРЕШЕН перенос текста значения */
    word-break: break-word; /* Перенос длинных слов */
    text-align: right;     /* Выравнивание значения по правому краю (опционально) */
    flex-shrink: 1;        /* РАЗРЕШЕНО сжиматься этому блоку, чтобы текст переносился */
    /* Важно: блок значения должен иметь возможность уменьшиться в ширину,
       тогда текст внутри него пойдет на вторую строку */
    font-size: clamp(0.75rem, 0.671vw + 0.32rem, 1.125rem);  
}
.cart_spec_value{
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: clamp(0.75rem, 0.671vw + 0.32rem, 1.125rem); 
}

.cart_delete_btn{
    position: absolute;
    left:90px;
    top:10px;
   
    background: none;
    border: none;
    cursor: pointer;
    font-size: clamp(0.75rem, 0.671vw + 0.32rem, 1.125rem); 
    color: var(--accent-color);
}
.cart_delete_btn::before{
    content: '×';
    font-size: 1.5rem;
    color: white;
    background-color: var(--accent-color);
    border-radius: 8px;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.start_order_btn{
    margin: 1rem auto;
}


/* search block */


.search_block{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* accordion */
.accordion {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}
/* .cart_section {
    margin-top: 2rem;
} */

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: lighter;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    color: var(--text-color);
}

.accordion-header:hover {
    background-color: #f9fafb;
}

.accordion-header.active {
    background-color: #f0f7ff;
    color: var(--accent-color);
}

.accordion-content {
   
    color: #555;
    line-height: 1.5;
}

/* Иконка стрелочки */
.icon {
    transition: transform 0.3s ease;
}
.rotate {
    transform: rotate(180deg);
}
.no-items {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
   
}


/* Базовый класс перехода */
[x-cloak] { display: none !important; }
.transition-slide-left {
    transition: opacity 0.8s ease, transform 0.4s ease;
}

/* Начальное состояние: скрыт и смещён влево */
.slide-left-start {
    opacity: 0;
    transform: translateX(-200%);
}

/* Конечное состояние: видим и на месте */
.slide-left-end {
    opacity: 1;
    transform: translateX(0);
}

/* Для overlay — только прозрачность */
.transition-opacity {
    transition: opacity 0.4s ease;
}

/* video settings */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    cursor: pointer; /* Показываем, что можно кликнуть */
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стили кнопки Play */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 10; /* Поднимаем кнопку над видео */
    pointer-events: auto; /* ✅ ВКЛЮЧАЕМ клики по кнопке */
    transition: all 0.3s ease;
}

/* Эффект при наведении */
.video-wrapper:hover .play-btn {
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Скрываем кнопку, когда видео играет */
.video-wrapper.is-playing .play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Контейнер пагинации */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Кнопки */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Стрелки */
.pagination-arrow {
    padding: 0 10px;
}

/* Hover эффекты */
.pagination-btn:hover:not(.active):not(.disabled) {
    border-color: var(--primary-color);
    background: #f0f7ff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 217, 0.15);
}

/* Активная страница */
.pagination-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    cursor: default;
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
}

/* Отключенные кнопки */
.pagination-btn.disabled {
    border-color: #f0f0f0;
    background: #fafafa;
    color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Эллипсис */
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #999999;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Контейнер с номерами */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}


/* история заказов */

.order-card { background: #f7f3ed; border: 1px solid #ddd4c4; border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.order-card__header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #ede6db; border-bottom: 1px solid #ddd4c4; flex-wrap: wrap; gap: 8px; }
.order-card__number { font-weight: 500; font-size: 14px; color: #7a3e28; margin-right: 10px; }
.order-card__date { color: #aa8870; font-size: 13px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }

.badge { padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid; }
.badge--delivered, .badge--paid, .badge--confirmed { background: #e8f3ec; color: #3a7a50; border-color: #b8d8c4; }
.badge--shipped, .badge--refunded { background: #e8eef8; color: #3a5a9a; border-color: #b8cce8; }
.badge--cancelled, .badge--failed { background: #f8e8e8; color: #9a3a3a; border-color: #e8b8b8; }
.badge--pending { background: #f8f0e0; color: #8a6020; border-color: #e0cc98; }
.badge--processing { background: #f0e8f8; color: #6a3a9a; border-color: #d0b8e8; }

.order-card__items { padding: 8px 18px; }
.order-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e8e0d4; }
.order-item:last-child { border-bottom: none; }
.order-item__img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #e8e0d4; }
.order-item__info { flex: 1; min-width: 0; }
.order-item__name { display: block; font-size: 14px; color: #3d2a1e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-item__qty { font-size: 12px; color: #aa8870; margin-top: 3px; display: block; }
.order-item__total { font-size: 14px; color: #3d2a1e; font-weight: 500; white-space: nowrap; }

.order-card__footer { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 10px 18px; background: #ede6db; border-top: 1px solid #ddd4c4; }
.order-card__delivery { color: #aa8870; font-size: 13px; }
.order-card__total { font-size: 15px; color: #7a3e28; font-weight: 500; }

/* оформление заказа */
.checkout-wrap { max-width: 1000px; margin: 0 auto; padding: 32px 16px; }
.checkout-title { font-size: 20px; color: #7a3e28; margin-bottom: 24px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-fieldset { border: none; margin-bottom: 24px; }
.checkout-fieldset legend { font-size: 13px; color: #9b6b4a; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: #7a3e28; margin-bottom: 5px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px;
  background: #f7f3ed; border: 1px solid #ddd4c4;
  border-radius: 8px; font-size: 14px; color: #3d2a1e;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: #9b6b4a; }
.form-error { font-size: 12px; color: #9a3a3a; margin-top: 4px; display: block; }

.btn-checkout {
  width: 100%; padding: 14px;
  background: #7a3e28; color: #f7f3ed;
  border: none; border-radius: 8px;
  font-size: 15px; cursor: pointer; transition: background 0.2s;
}
.btn-checkout:hover { background: #5e2e1a; }

/* Итоговая сводка */
.checkout-summary {
  background: #f7f3ed; border: 1px solid #ddd4c4;
  border-radius: 10px; padding: 20px;
  height: fit-content; position: sticky; top: 20px;
}
.summary-title { font-size: 15px; color: #7a3e28; margin-bottom: 16px; }
.summary-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.summary-img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.summary-item__info { flex: 1; min-width: 0; }
.summary-item__name { display: block; font-size: 13px; color: #3d2a1e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-item__qty { font-size: 12px; color: #aa8870; }
.summary-item__price { font-size: 13px; color: #3d2a1e; font-weight: 500; white-space: nowrap; }
.summary-divider { border: none; border-top: 1px solid #ddd4c4; margin: 14px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #7a5a48; margin-bottom: 8px; }
.summary-total { font-weight: 500; font-size: 16px; color: #7a3e28; margin-top: 8px; }

/* Отзывы */
.btn-review {
  padding: 5px 14px;
  font-size: 12px;
  color: #7a3e28;
  border: 1px solid #ddd4c4;
  border-radius: 20px;
  background: #f7f3ed;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-review:hover { background: #ede6db; }
.review-done { font-size: 12px; color: #aa8870; white-space: nowrap; }

.review-product-header {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; margin-bottom: 24px;
  background: #f7f3ed; border: 1px solid #ddd4c4; border-radius: 10px;
}
.review-product-img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.review-product-name { font-size: 15px; color: #3d2a1e; }


/* ===== ЗАГЛУШКА ОПЛАТЫ — УДАЛИТЬ ===== */
.payment-stub {
  border: 2px dashed #9a3a3a;
  border-radius: 10px;
  padding: 20px;
  background: #f8e8e8;
  text-align: center;
  margin: 200px auto;
  max-width: 600px;
}
.payment-stub__label {
  font-size: 13px;
  color: #9a3a3a;
  margin-bottom: 14px;
}
/* ===== КОНЕЦ ЗАГЛУШКИ ===== */