/* Скидання базових стилів */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основні стилі body */
body {
    font-family: 'Georgia', serif;
    background-color: #f5f3e8;
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(135deg, #d4c4a8 0%, #b8a88a 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #5a4a3a;
    text-decoration: none;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #5a4a3a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #3a2a1a;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5a4a3a;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #5a4a3a;
    cursor: pointer;
}

/* Main content */
main {
    padding: 40px 20px;
}

h1 {
    text-align: center;
    color: #5a4a3a;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Products grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.product {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(90, 74, 58, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(90, 74, 58, 0.15);
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f0e8;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.product h3 {
    color: #5a4a3a;
    font-size: 1.3rem;
    font-weight: 600;
}

.product p {
    color: #8b7355;
    font-size: 1.4rem;
    font-weight: bold;
}

.product a {
    display: inline-block;
    background: linear-gradient(135deg, #d4c4a8 0%, #b8a88a 100%);
    color: #5a4a3a;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.product a:hover {
    opacity: 0.85;
}

.no-products {
    text-align: center;
    color: #5a4a3a;
    font-size: 1.2rem;
    padding: 40px;
    background: white;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(90, 74, 58, 0.1);
}

/* Стилі для головної сторінки */
.container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    width: 100%;
}

.img-container {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.main-image {
    width: 100%;
    max-width: 540px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.text-container {
    text-align: center;
}

.text-en {
    font-size: 2.5rem;
    color: #8b4569;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.text-ua {
    font-size: 2.5rem;
    color: #8b4569;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Адаптивність для планшетів */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #d4c4a8;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    h1 {
        font-size: 2rem;
    }

    .products {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-image {
        max-width: 600px;
        margin-bottom: 30px;
    }
    
    .text-en,
    .text-ua {
        font-size: 2rem;
    }
}

/* Адаптивність для мобільних пристроїв */
@media screen and (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .main-image {
        border-radius: 15px;
        margin-bottom: 25px;
    }
    
    .text-en,
    .text-ua {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
}

/* Адаптивність для дуже маленьких екранів */
@media screen and (max-width: 360px) {
    .text-en,
    .text-ua {
        font-size: 1.2rem;
    }
    
    .main-image {
        margin-bottom: 20px;
    }
}

/* Стилі для сторінки товару */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(90, 74, 58, 0.1);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-detail-info h1 {
    color: #5a4a3a;
    font-size: 2.2rem;
    margin-bottom: 0;
    text-align: left;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: #8b7355;
}

.product-description h3,
.product-ingredients h3 {
    color: #5a4a3a;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-description p,
.product-ingredients p {
    color: #666;
    line-height: 1.6;
}

.product-weight {
    color: #666;
    font-size: 1.1rem;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-add-to-cart {
    flex: 1;
    background: linear-gradient(135deg, #d4c4a8 0%, #b8a88a 100%);
    color: #5a4a3a;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-add-to-cart:hover {
    opacity: 0.85;
}

.btn-back {
    padding: 15px 30px;
    background: white;
    color: #5a4a3a;
    border: 2px solid #d4c4a8;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-back:hover {
    background: #f5f3e8;
}

/* Адаптивність для сторінки товару */
@media screen and (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .product-detail-info h1 {
        font-size: 1.8rem;
    }
    
    .product-price {
        font-size: 1.6rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

/* Стилі для сторінки "Про нас" */
.about-page {
    max-width: 1200px;
    margin: 0 auto;
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h1 {
    color: #5a4a3a;
    font-size: 3rem;
    margin-bottom: 15px;
}

.about-subtitle {
    color: #8b7355;
    font-size: 1.3rem;
    font-style: italic;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(90, 74, 58, 0.1);
}

.about-text h2 {
    color: #5a4a3a;
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-image img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.about-values {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(90, 74, 58, 0.1);
}

.about-values h2 {
    color: #5a4a3a;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background: #f5f3e8;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.value-card h3 {
    color: #5a4a3a;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

.about-mission {
    background: linear-gradient(135deg, #d4c4a8 0%, #b8a88a 100%);
    padding: 50px;
    border-radius: 20px;
}

.mission-content h2 {
    color: #5a4a3a;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.mission-content p {
    color: #3a2a1a;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Стилі для сторінки контактів */
.contacts-page {
    max-width: 1200px;
    margin: 0 auto;
}

.contacts-hero {
    text-align: center;
    margin-bottom: 60px;
}

.contacts-hero h1 {
    color: #5a4a3a;
    font-size: 3rem;
    margin-bottom: 15px;
}

.contacts-subtitle {
    color: #8b7355;
    font-size: 1.3rem;
}

.contacts-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-section,
.contact-info-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(90, 74, 58, 0.1);
}

.contact-form-section h2,
.contact-info-section h2 {
    color: #5a4a3a;
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-form-section p {
    color: #666;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #5a4a3a;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b8a88a;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, #d4c4a8 0%, #b8a88a 100%);
    color: #5a4a3a;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-submit:hover {
    opacity: 0.85;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f5f3e8;
    border-radius: 10px;
}

.info-icon {
    font-size: 2rem;
}

.info-card h3 {
    color: #5a4a3a;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

.info-card a {
    color: #8b7355;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: #5a4a3a;
}

.social-media {
    border-top: 2px solid #d4c4a8;
    padding-top: 20px;
}

.social-media h3 {
    color: #5a4a3a;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #d4c4a8 0%, #b8a88a 100%);
    color: #5a4a3a;
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.map-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(90, 74, 58, 0.1);
}

.map-section h2 {
    color: #5a4a3a;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.map-placeholder {
    border-radius: 15px;
    overflow: hidden;
}

/* Адаптивність для About та Contacts */
@media screen and (max-width: 768px) {
    .about-hero h1,
    .contacts-hero h1 {
        font-size: 2.2rem;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .about-mission {
        padding: 30px 20px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section,
    .contact-info-section,
    .map-section {
        padding: 25px;
    }
}