:root {
    --primary-color: #ff6b9d;
    --primary-dark: #e55989;
    --primary-light: #ffb3d0;
    --secondary-color: #c44569;
    --accent-color: #ffc8dd;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #fef7f9;
    --shadow: 0 2px 15px rgba(255, 107, 157, 0.1);
    --shadow-hover: 0 5px 25px rgba(255, 107, 157, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    padding-top: 60px;
}

/* Кастомные цвета Bootstrap */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

.navbar-brand i {
    font-size: 1.8rem;
    margin-right: 5px;
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Значок корзины */
.cart-badge {
    position: absolute;
    top: 0;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Cart Dropdown */
.cart-dropdown {
    width: 350px;
    max-height: 500px;
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    overflow: hidden;
    padding: 0;
}

.cart-dropdown-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-bottom: none;
}

.cart-dropdown-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.cart-dropdown-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.2s ease;
}

.cart-dropdown-item:hover {
    background: var(--bg-light);
}

.cart-dropdown-item:last-child {
    border-bottom: none;
}

.cart-dropdown-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-dropdown-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-dropdown-info {
    flex: 1;
    min-width: 0;
}

.cart-dropdown-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-dropdown-details {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cart-dropdown-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-dropdown-footer {
    padding: 15px 20px;
    background: var(--bg-light);
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 576px) {
    .cart-dropdown {
        width: 300px;
    }
}

/* Hero Section */
.hero-section {
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(254, 247, 249, 0.7) 0%, rgba(255, 255, 255, 0.8) 100%), url('fashion-background-rz5yk598npa4mho1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-image {
    text-align: center;
    font-size: 10rem;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 157, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Поиск */
.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 992px) {
    .search-box {
        margin: 0;
    }
}

.search-box .input-group-text {
    color: var(--primary-color);
    border: 2px solid var(--primary-light);
}

.search-box .form-control {
    border: 2px solid var(--primary-light);
    padding: 12px 15px;
    font-size: 1rem;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.15);
}

/* Результаты поиска */
.search-results {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 0 12px 12px 0;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #fff5f9;
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.search-result-category {
    font-size: 0.8rem;
    color: #868e96;
    margin-left: 8px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #868e96;
}

/* Адаптивность поиска */
@media (max-width: 575px) {
    .search-result-name {
        font-size: 0.9rem;
    }
    
    .search-result-image {
        width: 40px;
        height: 40px;
    }
}

/* Категории */
.category-card {
    background: white;
    border: 2px solid #f1f3f5;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.category-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-card span {
    font-weight: 600;
    color: var(--text-dark);
}

.category-card:hover,
.category-card.active {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Карточки товаров */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 180px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.btn-add-cart i {
    margin-right: 5px;
}

/* Особенности */
.feature-box {
    padding: 20px;
    text-align: center;
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-box h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--text-light);
    margin: 0;
}

/* Footer */
footer {
    margin-top: 30px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Корзина */
.offcanvas {
    width: 400px !important;
}

@media (max-width: 576px) {
    .offcanvas {
        width: 90% !important;
    }
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f5;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    background-color: var(--bg-light);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.remove-item {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    margin-left: auto;
}

.remove-item:hover {
    color: #e74c3c;
}

.cart-total {
    border-top: 2px solid #f1f3f5;
    padding-top: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .product-image {
        height: 200px;
    }

    .category-card {
        padding: 20px 10px;
    }

    .category-card i {
        font-size: 2rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Скролл плавный */
html {
    scroll-behavior: smooth;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Плавающая кнопка корзины */
.floating-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.5s ease-out;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

.floating-cart-btn:active {
    transform: scale(0.95);
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.floating-cart-btn.pulse {
    animation: pulse 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .floating-cart-btn {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 1.3rem;
    }
}

/* Подсказки адресов */
.address-suggestions {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.address-suggestions.active {
    display: block;
}

.address-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s;
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

.address-suggestion-item:hover {
    background-color: #f8f9fa;
}

.address-suggestion-value {
    font-weight: 500;
    color: #212529;
    margin-bottom: 2px;
}

.address-suggestion-data {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Юридические страницы */
.legal-page {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.legal-page h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.legal-page h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.legal-page p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-page ul {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

.legal-page .requisites {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.legal-page .requisites p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.legal-page a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-page a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Футер */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer h5, .footer h6 {
    font-weight: 600;
}

.footer a {
    transition: color 0.3s, transform 0.3s;
}

.footer a:hover {
    color: var(--primary-dark) !important;
}

.footer .social-links a {
    font-size: 1.5rem;
    display: inline-block;
    transition: transform 0.3s;
}

.footer .social-links a:hover {
    transform: translateY(-3px);
}

/* ========= КОМПАКТНЫЕ ПИЛЛЫ КАТЕГОРИЙ (новый дизайн) ========= */
.categories-section {
    background: linear-gradient(135deg, #fff5f8 0%, #fff 100%);
    border-bottom: 1px solid #fce4ec;
}

.categories-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE/Edge */
    padding-bottom: 4px;
}

.categories-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.categories-pills {
    display: flex;
    gap: 10px;
    padding: 6px 2px 4px;
    flex-wrap: wrap;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #fff;
    border: 2px solid #f0d4de;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    box-shadow: 0 2px 6px rgba(233,84,124,0.08);
    user-select: none;
}

.cat-pill-icon {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: transform 0.25s ease;
}

.cat-pill-label {
    line-height: 1;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-pill:hover {
    border-color: var(--primary-color);
    background: #fff0f5;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(233,84,124,0.18);
}

.cat-pill:hover .cat-pill-icon {
    transform: scale(1.15);
}

.cat-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(233,84,124,0.35);
    transform: translateY(-2px);
}

.cat-pill.active .cat-pill-icon {
    color: #fff;
}

/* Подкатегории */
.subcat-pill {
    font-size: 0.85rem;
    padding: 7px 14px;
    border-color: #e8c4d4;
    background: #fffafc;
    margin-left: 24px;
    position: relative;
}

.subcat-pill::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 2px;
    background: #e8c4d4;
}

.subcat-pill .cat-pill-icon {
    font-size: 0.95rem;
}

.subcat-pill:hover {
    border-color: var(--primary-color);
    background: #ffe9f2;
}

.subcat-pill:hover::before {
    background: var(--primary-color);
}

.subcat-pill.active {
    background: linear-gradient(135deg, #ff8ab0 0%, #ff6b9d 100%);
    border-color: #ff8ab0;
    box-shadow: 0 3px 12px rgba(255,107,157,0.3);
}

.subcat-pill.active::before {
    background: #ff8ab0;
}

@media (max-width: 576px) {
    .categories-pills {
        gap: 6px;
    }
    .cat-pill {
        padding: 6px 12px;
        font-size: 0.78rem;
        gap: 6px;
    }
    .cat-pill-icon {
        font-size: 0.9rem;
    }
    .cat-pill-label {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .subcat-pill {
        margin-left: 18px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    .subcat-pill .cat-pill-label {
        max-width: 100px;
    }
    .subcat-pill::before {
        left: -12px;
        width: 6px;
    }
}
