/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e8e8e8;
    color: #333;
}

/* Загальні стилі для шапки та корзини */
header {
    background-color: white;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.logo {
    margin-right: 20px;
}

.logo img {
    height: 120px; 
    width: auto;
}

.menu {
    display: flex;
    gap: 15px; 
    padding-right: 200px;
}

/* Стиль для активного пункту меню */
.menu a {
    color: #333; 
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5em;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.2s;
}

.menu a.active, .menu a:hover {
    color: #333; 
}

.menu a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #01e3a3;
}


.content.blurred {
    filter: blur(5px); 
    transition: filter 0.3s ease; 
}

/* Стилі для модального вікна корзини */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    overflow: auto; 
    transition: opacity 0.3s ease;
    scrollbar-width: none; 
}

/* Відображення кошика */
.cart-modal.show {
    display: flex;
    opacity: 1;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Напівпрозорий фон */
    z-index: 1000;
}

.cart-modal h2 {
    margin-bottom: 10px;
}

.cart-summary {
    margin-top: 20px;
    font-weight: bold;
}

.cart-summary button {
    background-color: #01e3a3;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 15px; 
    transition: background-color 0.2s;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-icon {
    width: 70px;
    height: 70px;
    background-color: #01e3a3;
    background-image: url('img/cart.png');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
}

/* Контейнер для контенту кошика */
.cart-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    position: relative;
    z-index: 1001;
    max-height: 80vh; 
    overflow-y: auto; 
}

.cart-item-details {
    display: flex;
    align-items: center;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 4px;
    object-fit: cover;
}

/* Main content */
main {
    padding: 20px;
    text-align: center;
}

/* Стилі для секцій продуктів */


.product-section h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #01e3a3;

}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    transform: scale(0.90);
    transform-origin: top center;
}

.product-item {
    background-color: white;
    padding: 10px;
    border-radius: 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s, border 0.2s; 
    border: 2px solid transparent; /* Прозора границя в нормальному стані */
    gap: 10px;
}


.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #01e3a3; 
}

.product-item img {
    width: 85%;
    border-radius: 30px;
}

.product-item h3 {
    margin-top: 10px;
    font-size: 1em;
}

.product-item p {
    font-size: 0.8em;
    color: #666;
}

.price {
    font-size: 0.9em;
    font-weight: bold;
    color: #01e3a3;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.old-price {
    text-decoration: line-through;
    color: gray;
}

.new-price {
    font-weight: bold;
    color: #01e3a3;
}

button {
    background-color: #01e3a3;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #01e3a3;
}

.cart-notification {
    position: fixed;
    bottom: 20px; 
    right: 20px; 
    background-color: #01e3a3; 
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px); 
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}


.cart-notification.show {
    opacity: 1;
    transform: translateY(0); 
}

.order-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #01e3a3;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.order-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Стиль для кнопок кількості */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px; 
    justify-content: center; 
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #01e3a3;
    border-radius: 50%;
    background-color: white;
    color: #01e3a3;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.quantity-btn:hover {
   background-color: #01e3a3;
    color: white;
}


.increase-btn {
    margin-left: 5px;
}

.decrease-btn {
    margin-right: 5px;
}

.order-info label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.order-info select,
.order-info input[type="text"],
.order-info input[type="tel"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1em;
}

.delivery-options {
    margin-top: 10px;
}

.delivery-options label {
    display: flex;
    align-items: center;
    margin-top: 5px;
    font-size: 1em;
}

#addressField {
    margin-top: 10px;
}

.order-info p {
    margin: 0; 
    line-height: 1.5; 
    font-size: 1.3em;
}

.how-to-order {
    background-color: white; 
    padding: 40px;
    text-align: center;
    color: black;
    border-radius: 20px;
}

.how-to-order h2 {
    color: #01e3a3; 
    font-size: 2em;
    margin-bottom: 20px;
    
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;

}

.step {
    flex: 1;
    max-width: 200px;
    text-align: center;
    padding: 0; 
    margin: 0; 
    border-radius: 8px;
    transition: transform 0.3s;
}

.step:hover {
    transform: scale(1.05); 
}

.step img {
    width: 50px; 
    margin-bottom: 10px;
}

.step h3 {
    color: #01e3a3;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.step p {
    color: black; 
    font-size: 0.9em;
}

.social-links {
    display: flex;
    gap: 15px; 
    align-items: center;
    margin-right: 50px; 
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1); 
}


.skill-level {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    justify-content: center;
}

.skill-level label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.skill-image {
    width: 50px; 
    height: 50px;
    border-radius: 30%; 
    margin-top: 15px; 
    margin-bottom: 8px; 
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.skill-label {
    font-weight: bold;
    color: #333;
    font-size: 1em;
}

.skill-level input[type="radio"] {
    display: none;
}

.skill-level input[type="radio"] + .skill-image {
    border-color: transparent; 
}

.skill-level input[type="radio"]:checked + .skill-image {
    border-color: #01e3a3; 
}

.skill-level input[type="radio"] + .skill-label {
    padding: 8px 15px;
    border: 2px solid #01e3a3;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.skill-level input[type="radio"]:checked + .skill-label {
    background-color: #01e3a3;
    color: white;
}

.form-warning {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}


/* Кругла кнопка меню */
.menu-button {
    position: fixed;
    top: 80px; 
    right: 10px; 
    z-index: 1000;
    display: none; 
}

#menu-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #01e3a3;
    border: none;
    cursor: pointer;
    background-image: url('img/other.png'); /* Іконка меню */
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#menu-toggle:hover {
    transform: scale(1.1);
}

/* Випадаюче меню */
.menu-dropdown {
    position: absolute;
    top: 80px; 
    right: 0;
    width: 200px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    animation: dropdown 0.3s ease-in-out;
}

.menu-dropdown a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu-dropdown a:hover {
    background-color: #01e3a3;
    color: white;
}

@keyframes dropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






@media (max-width: 768px) {
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }

    
    .menu {
        display: none; 
    }

   
    .social-icon {
        width: 30px; 
        height: 30px;

    }

    .order-info {
        font-size: 0.7em; 
    }

    .social-links, .cart-icon {
        margin-left: 0; 
        gap: 5px; 
    }
   
    .header-center {
        display: flex;
        align-items: center;
        justify-content: space-between; 
    }

    .cart-icon {
        display: none;
        position: fixed;
        bottom: 20px;
        left: 20px; 
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-size: 50%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
        z-index: 1000; 
    }

    .cart-icon.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    
    .logo img {
        height: 70px; 
        width: auto;
        margin-left: 15px; 
    }

    .menu-button {
        display: block; 
        margin-top: 50px;
    }

    .menu-dropdown {
        right: 10px; 
    }
}


@media (max-width: 1024px) {

    
    .cart-icon {
        display: none;
        position: fixed;
        bottom: 20px;
        left: 20px; 
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-size: 50%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000; 
    }

    
    .cart-icon.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    
    .how-to-order h2 {
        font-size: 1.8em; 
    }

    
    .steps .step h3 {
        font-size: 1.2em; 
    }

    
    .steps .step p {
        font-size: 0.95em; 
    }

   
    .steps .step img {
        width: 45px;
        margin-bottom: 8px;
    }

    
    .menu a {
        font-size: 1.3em;
    }

    .order-info p {
        font-size: 0.9em; 
    }

    
    .logo img {
        height: 100px; 
        width: auto;
    }

    .social-links {
        margin-right: 50px;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    
    .cart-icon {
        display: none;
        position: fixed;
        bottom: 20px;
        left: 20px; 
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-size: 50%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000; 
    }

   
    .cart-icon.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
   
    .how-to-order h2 {
        font-size: 2em; 
    }

    
    .steps .step h3 {
        font-size: 1.3em; 
    }

    
    .steps .step p {
        font-size: 1em; 
    }

   
    .steps .step img {
        width: 50px; 
        margin-bottom: 8px;
    }

    
    .menu a {
        font-size: 1.4em; 
    }

    .order-info p {
        font-size: 1em; 
    }

   
    .logo img {
        height: 110px; 
        width: auto;
    }

}