/* Файл: style.css */

/* --- ОБЩИЕ СТИЛИ --- */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #ffffff;
    color: #000;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- ЗАСТАВКА И ХЕДЕР --- */
.splash-screen {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ffffff;
    z-index: 1000;
    transition: opacity 1s ease-in-out, visibility 1s;
}
.splash-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    z-index: 900;
    text-align: center;
    padding: 10px 0;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
.site-header.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.header-content h1 {
    font-size: 24px;
    font-weight: 600;
    color: rgb(62, 119, 71);
    margin: 0;
}
.header-link {
    text-decoration: none;
}

/* --- СЕКЦИЯ С ТОВАРАМИ (ГЛАВНАЯ) --- */
.product-section {
    padding: 100px 20px 105px; /* Увеличен верхний отступ для хедера */
    opacity: 0; 
    transition: opacity 0.7s ease-in-out;
}
.product-section.is-visible {
    opacity: 1;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 150px;
    max-width: 960px;
    margin: 0 auto;
}
.product-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}
.product-card > a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-image {
    position: relative;
    padding-bottom: 153.8%;
    overflow: hidden;
    border-radius: 50px 50px 0 0;
}
.product-image .img-main, .product-image .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease-in-out;
}
.product-image .img-hover {
    opacity: 0;
}
.product-card:hover .img-hover {
    opacity: 1;
}
.product-info {
    padding-top: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-info h2 {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
}
.product-price {
    margin-top: 12px;
}
.price-current {
    font-size: 16px;
    font-weight: 400;
    margin-right: 10px;
}
.price-old {
    font-size: 16px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}
.product-buttons {
    margin-top: 19px;
}
.buy-button {
    width: 100%;
    box-sizing: border-box;
    display: inline-block;
    background-color: #5b745f;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 5px;
    border: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.buy-button:hover {
    box-shadow: 0px 15px 30px -10px rgba(0, 11, 48, 0.2);
    transform: translateY(-2px);
}
/* ... анимированные карточки ... */
.animate-on-scroll { opacity: 0; transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1); }
.animate-fadeinup { transform: translateY(100px); }
.animate-fadeinup.is-visible { opacity: 1; transform: translateY(0); }
.product-card:nth-child(2) { transition-delay: 0.1s; }

/* --- СТРАНИЦА ДОСТАВКИ --- */
.delivery-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}
.delivery-container h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}
.product-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.product-display img {
    width: 100px;
    height: 154px;
    object-fit: cover;
    border-radius: 10px;
}
.product-display .product-info .price {
    font-size: 20px;
    font-weight: 500;
    margin-top: 10px;
}
.delivery-form .form-group {
    margin-bottom: 25px;
}
.delivery-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.delivery-form input[type="text"],
.delivery-form textarea,
.delivery-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}
.quantity-selector {
    display: flex;
    align-items: center;
}
.quantity-selector button {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 20px;
}
.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-left: none;
    border-right: none;
    box-sizing: border-box;
    font-size: 16px;
    -moz-appearance: textfield;
}
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: normal;
}
.radio-group input {
    margin-right: 10px;
}
.summary-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.summary-section p {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}
.summary-section p.total {
    font-size: 20px;
    font-weight: 600;
    margin-top: 10px;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 960px) { .product-grid { gap: 90px; } }
@media (max-width: 640px) {
    .product-grid { grid-template-columns: 1fr; gap: 60px; }
    .product-section { padding: 80px 20px 90px; }
}
