:root {
    --pink: #ff69b4;
    --dark-pink: #ff1493;
    --bg: #fff5f9;
    --text: #4a2f3d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Rounded MT Bold', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Приветственный блок */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(45deg, var(--pink), var(--dark-pink));
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Блок товаров - ОБНОВЛЕНО */
.products-container {
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.product {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255,105,180,0.1);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;              /* Добавлено */
    flex-direction: column;     /* Добавлено */
    min-height: 320px;          /* Добавлено */
}

.product:hover {
    transform: translateY(-5px);
}



.product {
    min-height: 180px; /* Было 320px */
    padding: 1rem 0.5rem; /* Упрощенные отступы */
}
.product h3 {
    font-size: 1.1rem;
    margin: 0.3rem 0;
    min-height: auto;
    padding: 0.8rem;
    line-height: 1.4;
}

.price {
    margin: 1rem 0;
    font-size: 1.4rem;
}

.add-to-cart {
    padding: 10px 20px;
    font-size: 1rem;
}
.price {
    color: var(--dark-pink);
    font-weight: bold;
    margin: 0.5rem 0 1rem;     /* Изменено */
    font-size: 1.1rem;         /* Добавлено */
}

.add-to-cart {
    background: var(--pink);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    width: calc(100% - 2rem);  /* Добавлено */
    margin: auto 0 0;          /* Изменено */
}

.add-to-cart:hover {
    background: var(--dark-pink);
}

/* Корзина */
.cart-icon {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--pink);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,105,180,0.3);
    z-index: 1000;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: scale(0);
    transition: transform 0.3s;
    max-width: 300px;
    width: 90%;
    z-index: 999;
}

/*----------------------------------------------------*/


.cart.active {
    transform: scale(1);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

#buyButton {
    background: var(--dark-pink);
    width: 100%;
    padding: 12px;
    margin-top: 1rem;
    border: none;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: opacity 0.3s;
}

#buyButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Анимация добавления */
@keyframes flyToCart {
    0% { transform: scale(1) translate(0, 0); opacity: 1; }
    100% { transform: scale(0.3) translate(100px, -80px); opacity: 0; }
}

.flying-heart {
    position: fixed;
    pointer-events: none;
    animation: flyToCart 1s ease-in-out;
}

/* Удаление из корзины */
.remove-item {
    background: none;
    border: none;
    color: #ff4040;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 10px;
    transition: transform 0.2s;
}

.remove-item:hover {
    transform: scale(1.2);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .product {
        min-height: 280px;      /* Добавлено */
    }

    .product img {
        width: 100%;
        height: 120px;          /* Изменено */
    }

    .product h3 {
        font-size: 0.9rem;     /* Добавлено */
        min-height: 4em;       /* Добавлено */
    }

    .add-to-cart {
        font-size: 0.8rem;     /* Добавлено */
        padding: 8px 12px;     /* Добавлено */
    }

    .cart {
        bottom: 1rem;
        right: 1rem;
    }
}
.product h3 {
    text-shadow: 
        -0.8px -0.8px 0 var(--text),
        0.8px -0.8px 0 var(--text),
        -0.8px 0.8px 0 var(--text),
        0.8px 0.8px 0 var(--text);
    color: white;
    padding: 0.3rem 0.5rem;
    display: inline-block;
    border-radius: 8px;
    background: var(--pink);
    margin: 0.5rem auto;
}
/* Стили для блока напоминаний */
.reminders-container {
    padding: 2rem 1rem;
    background: #fff5f9;
    margin-top: 3rem;
}

.reminders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reminder-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255,105,180,0.1);
    transition: transform 0.2s;
    border: 2px solid #ffb6c1;
}

.reminder-card:hover {
    transform: translateY(-3px);
}

.reminder-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ff69b4;
}

.reminder-text {
    font-size: 1.1rem;
    color: #4a2f3d;
    margin: 0.5rem 0;
    min-height: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reminder-price {
    color: #ff1493;
    font-weight: bold;
    margin: 1rem 0;
}

.reminder-btn {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white !important;
    border-radius: 20px;
    padding: 8px 16px;
}
/* Стили для заголовка напоминалок */
.reminders-hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(45deg, #ff9ebb, #ff69b4);
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin: 2rem 0;
}

.reminders-hero .section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Адаптация карточек напоминалок */
.reminder-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(255,105,180,0.1);
    transition: all 0.3s;
    border: 2px solid #ffb6c1;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.reminder-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 10px 30px rgba(255,105,180,0.2);
}

.reminder-btn {
    margin-top: auto;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}
/* Стили для секции */
.memories-section {
    padding: 4rem 1rem;
    background: linear-gradient(45deg, #fff0f5, #fff9fb);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.memories-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
}

.memories-header .section-title {
    font-size: 2.5rem;
    color: #ff1493;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.memories-subtitle {
    font-size: 1.2rem;
    color: #4a2f3d;
    opacity: 0.9;
}

.hearts {
    animation: heartFloat 2s ease-in-out infinite;
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Стили для блока карусели */
/* Основные стили */
.carousel1 {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Заголовок */
.memories-header {
    text-align: center;
    margin: 50px 0 30px;
    position: relative;
    padding-bottom: 20px;
}

.memories-header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ffb8b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.memories-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffb8b8);
    border-radius: 2px;
}

/* Карусель */
.carousel-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: white;
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
    height: 500px;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    transition: transform 0.5s ease;
}

.carousel-item.active img {
    transform: scale(1.02);
}

/* Подпись к фото */
.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
    z-index: 2;
}

.carousel-item.active .photo-caption {
    transform: translateY(0);
    opacity: 1;
}

.photo-caption h3 {
    font-size: 1.8rem;
    margin: 0 0 8px;
    font-weight: 600;
}

.photo-caption p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Навигация */
.carousel-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    padding: 0 20px;
    box-sizing: border-box;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: #ff6b6b;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    color: #ff4757;
}

/* Индикаторы */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* Эффекты */
.heart-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 100px;
    color: white;
    opacity: 0;
    z-index: 20;
    pointer-events: none;
    text-shadow: 0 0 20px #ff6b6b;
    animation: none;
}

.heart-effect.active {
    animation: heartBeat 0.8s ease-out;
}

@keyframes heartBeat {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .memories-header h1 {
        font-size: 2.5rem;
    }
    
    .carousel-container {
        height: 400px;
        width: 95%;
    }
    
    .photo-caption h3 {
        font-size: 1.5rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .memories-header h1 {
        font-size: 2rem;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .photo-caption {
        padding: 15px;
    }
    
    .photo-caption h3 {
        font-size: 1.2rem;
    }
    
    .photo-caption p {
        font-size: 0.9rem;
    }
}