﻿@import "fonts/Gilroy/stylesheet.css";
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@font-face {
    font-family: 'Photograph Signature';
    src: url('fonts/Photograph-Signature.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Against Regular';
    src: url('fonts/against-regular.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz@9..40&family=Inter:wght@400;600&display=swap");

* {
    padding: 0px;
    margin: 0px;
    border: none;
}

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

/* Links */
a, a:link, a:visited {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

/* Common */
aside, nav, footer, header, section, main {
    display: block;
}

h1, h2, h3, h4, h5, h6, p {
    font-size: inherit;
    font-weight: inherit;
}

ul, ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

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

address {
    font-style: normal;
}

/* Form */
input, textarea, button, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

    input::-ms-clear {
        display: none;
    }

    button, input[type=submit] {
        display: inline-block;
        box-shadow: none;
        background-color: transparent;
        background: none;
        cursor: pointer;
    }

        input:focus, input:active,
        button:focus, button:active {
            outline: none;
        }

        button::-moz-focus-inner {
            padding: 0;
            border: 0;
        }

label {
    cursor: pointer;
}

legend {
    display: block;
}

:root {
    --text-color: #1e1e1e;
    --text-muted: #8d8d8d;
    --text-card-dark-blue: #0d1b39;
    --accent: #e58411;
    --header-text-color: #ffffff;
    --footer-accent: #f6973f;
    --footer-bg: #bf9469;
    --footer-text-color: rgba(255, 255, 255, 0.8);
    --ui-orange: #e58411;
    --ui-biruza: #00d6c9;
    --ui-gray: #7c7c7c;
    --ui-dark-blue: #0d1b39;
    --font-main: "Gilroy", sans-serif;
    --font-cards: "Inter", sans-serif;
    --font-footer-accent: "DM Sans", sans-serif;
}

html,
body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #F7F3E8;
}

.container {
    max-width: 1310px;
    padding: 0 15px;
    margin: 0 auto;
}

.container--small {
    max-width: 1094px;
}

.none {
    display: none !important;
}

.title-2 {
    font-weight: 700;
    font-size: clamp(32px, 1.702rem + 1.49vw, 42px);
}

.header {
    position: relative;
    padding-top: 40px;
    background-color: var(--footer-bg);
    background-size: cover;
    height: 120px;
    width: auto;
    color: var(--header-text-color);
}

    .header a {
        color: var(--header-text-color);
    }


.header__nav {
    margin-bottom: clamp(20px, 0.071rem + 5.89vw, 86px);
}

.header__content {
    text-align: center;
}

.header__title {
    margin-bottom: 14px;
    font-weight: 700;
    font-size: clamp(28px, 0.821rem + 4.64vw, 80px);
    text-wrap: balance;
    line-height: 130%; /* 104px */
    letter-spacing: -0.8px;
    text-transform: capitalize;
}

.header__content p {
    margin: 0 auto;
    max-width: 606px;
    opacity: 0.8;
    font-size: clamp(16px, 0.857rem + 0.71vw, 24px);
    line-height: 160%; /* 38.4px */
    text-wrap: balance;
}


.nav__logo {
    display: flex;
    align-items: center; /* Вирівнює логотип і текст по центру */
    gap: 8px; /* Проміжок між логотипом і текстом */
}

.logo {
    display: flex;
    align-items: center; /* Гарантує, що зображення не зникає */
}

.logo img {
    height: clamp(40px, 5vw, 50px); /* Висота адаптивна */
    width: auto; /* Зберігає пропорції */
    max-width: 180px; /* Запобігає розтягуванню */
    display: block; /* Усунення проблем із відображенням */
}
.logo {
    font-family: 'Against Regular', cursive !important;
    font-weight: 700;
    font-size: clamp(18px, 0.946rem + 0.89vw, 28px);
    letter-spacing: 0.28px;
    text-transform: capitalize;
    color: #fff !important;
    
  }
.logo__text {
    
    font-family: 'Photograph Signature', cursive !important;
    font-size: 24px;
    font-weight: normal;
    color: white;
    display: none; /* Ховає на ПК */
}
@media (max-width: 430px) { 
    .logo__text {
        padding-left: 58px;
        display: inline-block; 
        font-size: 30px;
        font-weight: 400;
        color: white;
        white-space: nowrap; 
    }
}
@media (max-width: 390px) { /* Відображати лише на телефонах */
    .logo__text {
        padding-left: 35px;
        display: inline-block; /* Показує текст в одному рядку з логотипом */
        font-size: 30px;
        font-weight: 400;
        color: white;
        white-space: nowrap;
    }
}
@media (max-width: 350px) { /* Відображати лише на телефонах */
    .logo__text {
        padding-left: 18px;
        display: inline-block; /* Показує текст в одному рядку з логотипом */
        font-size: 30px;
        font-weight: 400;
        color: white;
        white-space: nowrap;
    }
}




.nav {
    display: grid;
    grid-template-columns: 2fr 8fr 2fr;
    gap: 20px;
}

.nav__btn {
    display: none;
}

@media (max-width: 767px) {
    .nav__btn {
        display: block !important;
    }
    .nav__btn img {
        max-width: fit-content;
        display: block;
    }
}

.nav-list {
    align-self: center;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 65px;
    font-weight: 500;
    font-size: 18px;
}

@media (max-width: 767px) {
    .nav-list {
        display: none;
    }
}

.nav-list__item {
    position: relative;
    padding: 10px 0;
}

.nav-list__link {
    transition: opacity 0.1s ease-in;
}

    .nav-list__link:hover {
        opacity: 0.7;
    }

.nav-list__link--dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nav-list__link--dropdown::after {
        content: url("img/icons/arrow-down.svg");
        height: 18px;
    }

.nav-list__sub-nav {
    opacity: 0;
    width: 160px;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 100%;
    transform: translate(0%, 10%);
    transition: all 0.2s ease-in;
}

.nav-list__item:hover .nav-list__sub-nav {
    pointer-events: all;
    opacity: 1;
    transform: translate(0%, 0%);
}

.sub-nav {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    font-size: 16px;
}

    .sub-nav a {
        color: var(--footer-text-color);
        transition: color 0.1s ease-in;
    }

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

.cart {
    align-self: center;
    justify-self: end;
    position: relative;
}

.cart__count {
    position: absolute;
    top: 3px;
    right: -6px;
    display: inline-block;
    height: 25px;
    padding: 0 6px;
    border-radius: 40px;
    background-color: var(--accent);
    font-weight: 700;
    line-height: 25px;
    font-family: var(--font-cards);
    font-size: 16px;
}



.footer {
    padding: clamp(60px, 2.024rem + 8.63vw, 118px) 0 56px;
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.6;
}

    .footer a {
        color: var(--footer-text-color);
        transition: opacity 0.1s ease-in;
    }

        .footer a:hover {
            opacity: 0.6;
        }

.footer__grid {
    margin-bottom: clamp(60px, 2.024rem + 8.63vw, 118px);
    display: grid;
    grid-template-columns: 3fr 1fr 2fr 2fr 2fr;
    gap: 60px 20px;
}

@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 4fr 1fr 3fr 3fr;
    }
}

@media (max-width: 629px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer__desc p + p {
    margin-top: 1em;
}

@media (max-width: 629px) {
    .footer__desc {
        grid-column: 1/3;
    }
}

.footer__logo {
    margin-bottom: 29px;
}

.footer__nav--services {
    grid-column-start: 3;
}

@media (max-width: 629px) {
    .footer__nav--services {
        grid-column-start: auto;
    }
}

.footer__nav-title {
    margin-bottom: 20px;
    color: var(--footer-accent);
    font-family: var(--font-footer-accent);
    font-size: 17px;
    letter-spacing: -0.232px;
}

.footer__list {
    display: grid;
    gap: 16px;
}

.footer__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 629px) {
    .footer__row {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 20px;
    }
}

.footer__copyright {
    font-family: var(--font-footer-accent);
    font-size: 15px;
    letter-spacing: -0.205px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

@media (max-width: 629px) {
    .footer__links {
        gap: 20px;
    }
}

.mobile-nav-wrapper {
    display: none;
    position: absolute;
    z-index: 9;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    padding: 30px 30px;
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
}

    .mobile-nav-wrapper a {
        color: var(--footer-text-color);
        transition: color 0.1s ease-in;
    }

        .mobile-nav-wrapper a:hover {
            color: #fff;
        }

.mobile-nav-wrapper--open {
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-cart {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 22px;
    font-weight: 500;
}

/* Nav */
.mobile-nav {
    display: grid;
    gap: 20px;
    font-size: 22px;
}

/* Sub nav */
.mobile-sub-nav {
    padding: 20px 0 0 20px;
    display: grid;
    gap: 14px;
    font-size: 16px;
}
/*# sourceMappingURL=main.css.map */
:root {
    --primary-color: #010712;
    --secondary-color: #818386;
    --bg-color: #FCFDFD;
    --button-color: #3B3636;
    --h1-color: #3F444C;
}

[data-theme="dark"] {
    --primary-color: #FCFDFD;
    --secondary-color: #818386;
    --bg-color: #010712;
    --button-color: #818386;
    --h1-color: #FCFDFD;
}
.wrapper {
    margin: 40px 0;
    margin-inline: 120px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    justify-content: center;
    place-items: center;
}


.card {
    border-radius: 40px;
    padding: 2rem 1rem;
    width: 360px; 
    height: 440px; 
    position: relative;
    align-items: flex-end;
    transition: 0.5s ease-in-out;
    display: flex;
}

.card:hover {
    transform: translateY(20px);
}

.card:before {
    border-radius: 40px;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(230, 200, 170, 0.7), rgba(180, 140, 100, 0.9));
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
}

.card:hover:before {
    opacity: 1;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 40px;
}

.card .info {
    position: relative;
    z-index: 3;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
}
  
.card:hover .info {
    opacity: 1;
    transform: translateY(0px);
}

.card .info h1 {
    font-size: 35px;
    font-weight: bold;
}

.card .info p {
    font-size: 18px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 8.5rem;
    height: 3rem;
    font-size: 13px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    border-radius: 5rem;
    background-size: 300% 300%;
    cursor: pointer;
    position: relative;
    transition: 0.5s;
    animation: gradient_301 6s ease infinite;
    border: double 3px transparent;
    background-image: linear-gradient(#3a2f2f, #3a2f2f),
      linear-gradient(
        137.48deg,
        #ffebb8 10%,
        #f9c58d 45%,
        #e19f7a 67%,
        #f7c7cc 87%
      );
    background-origin: border-box;
    background-clip: content-box, border-box;
    overflow: hidden;
    z-index: 1;
  }
  
  .btn span {
    z-index: 2;
    letter-spacing: 2px;
    text-shadow: 0 0 3px white;
    font-family: Arial, sans-serif;
  }
  
  #container-stars {
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: 0.5s;
    border-radius: 5rem;
  }
  
  #glow {
    position: absolute;
    display: flex;
    width: 100%;
    z-index: 0;
  }
  
  .circle {
    width: 100%;
    height: 30px;
    filter: blur(1.5rem);
    animation: pulse_3011 4s infinite;
    z-index: -1;
  }
  
  .circle:nth-of-type(1) {
    background: rgba(255, 200, 100, 0.4);
  }
  
  .circle:nth-of-type(2) {
    background: rgba(255, 160, 120, 0.4);
  }
  
  .btn:hover #container-stars {
    z-index: 1;
    background-color: #3a2f2f;
  }
  
  .btn:hover {
    transform: scale(1.05);
  }
  
  .btn:active {
    border: double 3px #f7c7cc;
    animation: none;
  }
  
  .btn:active .circle {
    background: #f7c7cc;
  }
  
  #stars {
    position: relative;
    background: transparent;
    width: 200rem;
    height: 200rem;
  }
  
  #stars::after {
    content: "";
    position: absolute;
    top: -10rem;
    left: -100rem;
    width: 100%;
    height: 100%;
    animation: animStarRotate 90s linear infinite;
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
  }
  
  #stars::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 170%;
    height: 500%;
    animation: animStar 60s linear infinite;
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
    opacity: 0.4;
  }
  
  @keyframes animStar {
    from {
      transform: translateY(0);
    }
  
    to {
      transform: translateY(-135rem);
    }
  }
  
  @keyframes animStarRotate {
    from {
      transform: rotate(360deg);
    }
  
    to {
      transform: rotate(0);
    }
  }
  
  @keyframes gradient_301 {
    0% {
      background-position: 0% 50%;
    }
  
    50% {
      background-position: 100% 50%;
    }
  
    100% {
      background-position: 0% 50%;
    }
  }
  
  @keyframes pulse_3011 {
    0% {
      transform: scale(0.75);
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }
  
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
  
    100% {
      transform: scale(0.75);
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
  }
  
.bp {
    display: flex;
    justify-content: space-around;
    padding-inline-start: 30px;
}

.card .price p {
    font-size: 28px;
    padding-inline-start: 60px;
}



@media (max-width: 1335px) {
    .wrapper {
        gap: 100px;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 678px) {
    .card {
        height: 400px;
        width: 320px;
    }
    .card .price p {
    font-size: 28px;
    padding-inline-start: 110px;
    }
    .bp {
    display: flex;
    justify-content: space-around;
    padding-inline-start: 10px;
    }
}

@media (max-width: 600px) {
    .card {
        width: 300px;
        height: 380px;
    }
    .card .price p {
    font-size: 28px;
    padding-inline-start: 35px;
    }
    .bp {
    display: flex;
    justify-content: space-around;
    padding-inline-start: 10px;
    }
}
@media (max-width: 390px) {
    
    .card {
        width: 240px;
        height: 320px;
    }
    .card .price p {
    font-size: 28px;
    padding-inline-start: 20px;
    }
    .bp {
    display: flex;
    justify-content: space-around;
    padding-inline-start: 0px;
    }

}
.TKVY img{
    height: 300px;
    width: 1280px;
}
.TKVY {
    padding-top: 20px;
    display: flex;
    flex-direction: column; /* Елементи будуть розташовані вертикально */
    justify-content: center; 
    align-items: center;
    text-align: center;
}
.TKVY p {
    padding-top: 40px;
    font-weight: bold;
    display: block; /* Гарантує, що текст розділений */
    text-align: center;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Контент модального вікна */

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Таблиця стилів */
table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background: #f4f4f4;
}

/* Кнопки */
button {
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#checkout {
    background: #fbc02d;
    color: white;
}
/* Обмежуємо висоту кошика і додаємо прокрутку */
/* Збільшуємо розмір модального вікна */
/* Збільшуємо розмір модального вікна */
.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 95%; /* Було 90%, тепер ще ширше */
    max-width: 1000px; /* Було 800px */
    text-align: center;
    position: relative;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
}

/* Блокуємо прокрутку фону при відкритому кошику */
body.modal-open {
    overflow: hidden;
}

/* Додаємо прокрутку для таблиці */
.cart-table-container {
    max-height: 500px; /* Збільшуємо висоту */
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 10px;
}

/* Покращуємо таблицю */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 20px; /* Збільшуємо текст */
}

th, td {
    border-bottom: 1px solid #ddd;
    padding: 15px; /* Більший відступ */
    text-align: center;
}

th {
    background: #f8f8f8;
    font-size: 22px; /* Більший заголовок */
    font-weight: bold;
}

/* Збільшуємо зображення товару */
td img {
    width: 100px; /* Було 80px */
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

/* Кнопки + / - */
.quantity-btn {
    font-size: 20px;
    padding: 8px 15px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 5px;
}

.quantity-btn:hover {
    background: #ddd;
}

/* Кнопка Видалити */
.remove-btn {
    font-size: 20px;
    background: none;
    border: none;
    color: red;
    cursor: pointer;
}

.remove-btn:hover {
    color: darkred;
}

/* Кнопки оформлення замовлення */
.cart-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cart-buttons button {
    padding: 14px 25px;
    font-size: 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#continueShopping {
    margin-right: 10px;
    background: #7a4318;
    color: white;
}

#continueShopping:hover {
    background: #5e3212;
}

#checkout:hover {
    background:  #c9a600;
}
/* Стилі для анімаційного сповіщення */
.added-to-cart-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
    z-index: 1001;
}

/* Анімація появи */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Стиль галочки */
.checkmark {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

/* Кнопки */
.cart-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cart-buttons button {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#continueShoppingFromPopup {
    background: #007bff;
    color: white;
}

#goToCart {
    background: #28a745;
    color: white;
}

#continueShoppingFromPopup:hover {
    background: #0056b3;
}

#goToCart:hover {
    background: #218838;
}
/* Затемнення фону при відкритті модального вікна */
/* Затемнення фону */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Блокуємо прокрутку сторінки, коли відкрите вікно */
.modal-open {
    overflow: hidden;
}

/* Стилі модального вікна */
.added-to-cart-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    padding-left: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    text-align: center;
    width: 500px;
}

.success-animation {
    margin: 20px auto;
}

/* Анімація зеленого чекмарку */
.checkmark {

    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb71b;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    margin: 0 auto;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb71b;
    fill: #fff;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4bb71b;
    }
}

/* Модальне вікно */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  overflow: auto;
  flex-direction: column; /* ⬅ це потрібно */
}

/* Контейнер всередині модального вікна */
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 95%;
  max-width: 1300px;
  text-align: left;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 95vh;
  overflow-y: auto;
}

/* Закрити */
.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* Основна структура — дві колонки */
.cart-wrapper {
  display: flex;
  flex-direction: row;
  gap: 60px;
}

/* Ліва частина: товари */
.cart-left {
  flex: 2;
  overflow-y: auto;
  max-height: 75vh;
}

/* Права частина: підсумок */
.cart-summary {
  flex: 1;
  background: #b57638;
  color: white;
  padding: 30px;
  border-radius: 16px;
  font-size: 18px;
}

.cart-summary h3 {
  margin-bottom: 25px;
  font-size: 24px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.summary-line.total {
  font-weight: bold;
  font-size: 20px;
  border-top: 1px solid #fff;
  padding-top: 10px;
}

.cart-summary input[type="text"] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid white;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 15px;
  width: 100%;
  margin-top: 6px;
  outline: none;
  transition: border 0.3s ease, background 0.3s ease;
}

.cart-summary input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cart-summary input[type="text"]:focus {
  border-color: #ffe082;
  background-color: rgba(255, 255, 255, 0.25);
}

/* Кнопки в summary */
.cart-summary button {
  margin-top: 18px;
  background: #fdd835;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

/* Заголовок колонок */
.cart-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ddd;
}

/* Товари в кошику */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
}

.cart-item-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.item-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Кількість */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1e4d1;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 5px;
}

.quantity-controls button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Ціна товару */
.item-price {
  padding-top: 35px;
  font-weight: bold;
  font-size: 18px;
}
/* Початкова тонка лінія */
.modal-line {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 4px;
  background-color: #b57638;
  animation: none;
  margin-bottom: 20px;
}

.modal-content.modal-animate {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center center;
  animation: none;
  margin-top: 0;
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 65vw; }
}

@keyframes expandModal {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
.item-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* ⬅ відсуває вправо */
  gap: 70px;
  margin-top: 10px;
}


.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9f0e2;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: background 0.2s;
  min-width: 100px;
}

.quantity-controls:hover {
  background: #f2e6d7;
}

.quantity-controls button {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  transition: color 0.2s;
}

.quantity-controls button:hover {
  color: #000;
}

.quantity-controls span {
  min-width: 14px;
  text-align: center;
}


.remove-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #b30000;
  cursor: pointer;
  margin-left: auto;
  transition: color 0.2s, transform 0.2s;
}

.remove-btn:hover {
  color: #ff0000;
  transform: scale(1.2);
}
.product-description {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
  margin-bottom: 5px;
  line-height: 1.4;
}
.product-description span {
  display: block;
}
.item-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.info-and-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 38px;
}

.item-description {
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 70px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8eedd;
  padding: 10px 14px;
  border-radius: 8px;
}

.remove-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #b30000;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.remove-btn:hover {
  color: #ff0000;
  transform: scale(1.2);
}
.free-ship {
  margin: 15px 0;
  font-size: 14px;
  color: #fff; /* текст білий, щоб контрастував із коричневим фоном */
}

.free-ship-text {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.free-ship-amount {
  color: #ffcc33; /* золотистий акцент під стиль кнопки */
  font-weight: bold;
}

.free-ship-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.25); /* світлий напівпрозорий фон */
  border-radius: 5px;
  overflow: hidden;
}

.free-ship-fill {
  height: 100%;
  width: 0%;
  background: #ffcc33; /* золотий заповнювач */
  border-radius: 5px;
  transition: width 0.3s ease-in-out;
}