* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #FAF9F6;
    color: #4a4a4a;
    line-height: 1.5;
}

:root {
    --pink: #F9C6D4;
    --pink-light: #fce4ec;
    --off-white: #FAF9F6;
    --white: #ffffff;
    --text: #4a4a4a;
    --text-light: #8a8a8a;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.06);
    --radius: 1.2rem;
    --radius-sm: 0.8rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Шапка */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--pink-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #d48b9c; /* приглушённый розовый */
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--pink);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--off-white);
    border-radius: 2rem;
    padding: 0.5rem 1.2rem;
    flex: 1;
    max-width: 420px;
    border: 1px solid #e8e0e2;
    transition: 0.2s;
}

.search-bar:focus-within {
    border-color: var(--pink);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(249, 198, 212, 0.2);
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text);
}

.search-bar button {
    background: none;
    border: none;
    color: var(--pink);
    cursor: pointer;
    font-size: 1.1rem;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icon {
    font-size: 1.3rem;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    text-decoration: none;
}

.nav-icon:hover {
    color: #d48b9c;
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #d48b9c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.categories-nav {
    display: flex;
    gap: 1.8rem;
    justify-content: center;
    padding: 0.6rem 0;
    background: var(--off-white);
    overflow-x: auto;
    white-space: nowrap;
    border-top: 1px solid #f0e6e9;
}

.categories-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

.categories-nav a:hover {
    color: #d48b9c;
    border-bottom-color: var(--pink);
}

/* Слайдер */
.slider {
    margin: 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #f9c6d4 0%, #f5e2e8 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    padding: 2.5rem;
    color: var(--text);
    box-shadow: var(--shadow);
}

.slider-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #4a4a4a;
}

.slider-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #5a4a50;
}

.slider .btn {
    display: inline-block;
    background: var(--white);
    color: #d48b9c;
    padding: 0.7rem 2.2rem;
    border-radius: 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid transparent;
}

.slider .btn:hover {
    background: #fff5f7;
    border-color: var(--pink);
}

.slider-dots {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Секции */
.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 2.5rem 0 1.2rem;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8d5db;
}

/* Категории */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.8rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
    border: 1px solid #f1e5e9;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--pink);
}

.category-icon {
    font-size: 2.2rem;
    color: #d48b9c;
    margin-bottom: 0.5rem;
}

.category-name {
    font-weight: 600;
    color: var(--text);
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
    border: 1px solid #f1e5e9;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--pink-light);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #faf4f6;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.04);
}

.quick-view {
    position: absolute;
    bottom: -45px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    text-align: center;
    padding: 0.7rem;
    font-weight: 600;
    color: #d48b9c;
    cursor: pointer;
    transition: bottom 0.3s;
    border: none;
    width: 100%;
    font-size: 0.9rem;
}

.product-card:hover .quick-view {
    bottom: 0;
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #b0a7aa;
    font-size: 1rem;
    transition: 0.2s;
}

.wishlist-btn:hover {
    color: #d48b9c;
    background: white;
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
}

.product-name:hover {
    color: #d48b9c;
}

.price-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.current-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #4a4a4a;
}

.old-price {
    font-size: 0.95rem;
    color: #b5a2a7;
    text-decoration: line-through;
}

.add-to-cart {
    margin-top: 0.4rem;
    background: var(--white);
    border: 1px solid var(--pink);
    color: #d48b9c;
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    font-size: 0.95rem;
}

.add-to-cart:hover {
    background: var(--pink);
    color: white;
    border-color: var(--pink);
}

/* Подвал */
.footer {
    background: var(--white);
    margin-top: 3rem;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid #f0e6e9;
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: #d48b9c;
    margin-bottom: 0.8rem;
}

.footer-col a {
    display: block;
    color: inherit;
    text-decoration: none;
    margin-bottom: 0.4rem;
}

.footer-col a:hover {
    color: #d48b9c;
}

@media (max-width: 640px) {
    .header-inner {
        justify-content: center;
    }
    .search-bar {
        order: 3;
        margin: 0.5rem 0 0;
        max-width: 100%;
        flex: 100%;
    }
    .slider {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    .slider-content {
        max-width: 100%;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}