:root {
    --primary-color: #ff7eb9;
    --primary-light: #ffafcc;
    --primary-dark: #e75480;
    --secondary-color: #ffd6e7;
    --white: #ffffff;
    --light-bg: #fff9fb;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #f0e6ea;
    --shadow: 0 5px 20px rgba(255, 126, 185, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    --danger: #f44336;
    --success: #4CAF50;
    --warning: #ff9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
    border: none;
    overflow-x: hidden;
    height: 100%;
}

html::after,
html::before {
    display: none !important;
    content: none !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    border: none;
    height: auto;
    min-height: 100vh;
    position: relative;
}

body::after,
body::before {
    display: none !important;
    content: none !important;
}

.product-modal::after,
.product-detail-modal::after,
.catalog-product-detail-modal::after,
.cart-modal::after {
    display: none !important;
    content: none !important;
}

.footer::after,
.footer::before {
    display: none !important;
    content: none !important;
}

.container::after,
.container::before {
    display: none !important;
    content: none !important;
}

div[style*="position: fixed"][style*="bottom"],
div[style*="position:fixed"][style*="bottom"],
div[style*="position: sticky"][style*="bottom"],
div[style*="position:sticky"][style*="bottom"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: auto !important;
}

div.cart-total:not(.cart-modal .cart-total),
div[class*="bottom"]:not(.footer-bottom):not(.product-modal):not(.product-detail-modal):not(.catalog-product-detail-modal):not(.cart-modal):not(.zoom-overlay):not(.order-success-modal) {
    position: relative !important;
    bottom: auto !important;
    z-index: 1 !important;
}

body > *:not(.header):not(.footer):not(.product-modal):not(.product-detail-modal):not(.catalog-product-detail-modal):not(.cart-modal):not(.zoom-overlay):not(.notification):not(main.catalog-page):not(.order-success-modal):not(.product-photo-fullscreen):not(#productPhotoFullscreen):not(.contact-fab-wrap):not(.site-nav-sidebar):not(.site-nav-overlay) {
    position: relative !important;
}

main.catalog-page {
    position: static !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    min-height: 100vh !important;
}

main.catalog-page > .container.catalog-layout {
    position: relative !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-height: 100vh !important;
}

main.catalog-page > *:not(.container.catalog-layout) {
    position: static !important;
}

* {
    box-sizing: border-box;
}

*::after,
*::before {
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow: visible;
}

html.modal-open,
body.modal-open {
    overflow: hidden !important;
    touch-action: none;
}

.container.catalog-layout {
    overflow: visible !important;
    position: relative !important;
    display: grid !important;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn {
    margin-top: 24px;
    display: inline-block;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 126, 185, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #388e3c;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(255, 126, 185, 0.1);
    padding: 18px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
}

.logo img {
}

.logo span {
    font-size: 0.83em;
    line-height: 1;
    text-transform: uppercase;
}

.logo i {
    font-size: 28px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 auto;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    font-size: 15px;
    padding: 6px 0;
    transition: var(--transition);
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-left: auto;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(255, 126, 185, 0.4);
    border: 2px solid white;
}

.admin-link {
    font-size: 22px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.admin-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.admin-link::after {
    content: 'Профиль';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.admin-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.site-nav-overlay,
.site-nav-sidebar {
    display: none;
}

.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 0px;
    color: var(--text-light);
    max-width: 500px;
}

.hero-image {
    flex: 1;
    animation: float 6s ease-in-out infinite;
    height: 500px;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.catalog-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    margin-top: 10px;
}

.catalog-hero-title {
    font-size: 48px;
    margin-bottom: 15px;
    color: white;
}

.catalog-hero-subtitle {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-container .btn {
    padding: 15px 40px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.view-all-container .btn i {
    transition: transform 0.3s ease;
}

.view-all-container .btn:hover i {
    transform: translateX(5px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-header {
    text-align: center;
    margin-bottom: 40px;
}

.catalog-header .section-title {
    color: var(--text-color);
    margin-bottom: 10px;
}

.catalog-header .section-subtitle {
    color: var(--text-light);
    margin-bottom: 0;
}


.category-products-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    position: relative;
    overflow: hidden;
}

.category-sets-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

.category-sweet-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.category-section-header .section-title {
    margin-bottom: 0;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 126, 185, 0.1);
    white-space: nowrap;
}

.view-all-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 126, 185, 0.3);
}

.view-all-link i {
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(5px);
}

.category-slider-container {
    position: relative;
    padding: 20px 0 40px;
    overflow: hidden;
}

.category-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
}

.category-slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    align-items: stretch;
}

.category-slider-product-card.slider-product-card {
    flex: 0 0 auto;
    width: 280px;
    min-width: 250px;
    max-width: 320px;
    height: auto;
    cursor: pointer;
    margin-bottom: 0;
}

.category-slider-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 126, 185, 0.2);
    z-index: 10;
}

.category-slider-nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 126, 185, 0.4);
}

.category-slider-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.category-slider-prev-btn {
    left: -15px;
}

.category-slider-next-btn {
    right: -15px;
}

.category-slider-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.category-slider-empty i {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.category-slider-empty p {
    font-size: 16px;
    margin: 0;
}

.category-slider-product-image .popular-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 126, 185, 0.3);
}

@media (max-width: 992px) {
    .category-products-section {
        padding: 60px 0;
    }
    
    .category-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .view-all-link {
        align-self: flex-end;
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .category-slider-product-card.slider-product-card {
        width: 260px;
        min-width: 240px;
        max-width: 300px;
    }
    
    .category-slider-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
    
    .category-slider-prev-btn {
        left: 0;
    }
    
    .category-slider-next-btn {
        right: 0;
    }
}

@media (max-width: 768px) {
    .category-products-section {
        padding: 50px 0;
    }
    
    .category-section-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .category-slider-container {
        padding: 15px 0 30px;
    }
    
    .category-slider-wrapper {
        padding: 10px 50px;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .category-slider-track {
        gap: 20px;
    }
    
    .category-slider-product-card.slider-product-card {
        width: 220px;
        min-width: 200px;
        max-width: 260px;
    }
    
    .category-slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .category-slider-prev-btn {
        left: 5px;
    }
    
    .category-slider-next-btn {
        right: 5px;
    }
    
    .view-all-link {
        font-size: 13px;
        padding: 7px 14px;
    }
}

@media (max-width: 480px) {
    .category-products-section {
        padding: 40px 0;
    }
    
    .category-section-header {
        margin-bottom: 20px;
    }
    
    .category-slider-wrapper {
        padding: 10px 45px;
    }
    
    .category-slider-track {
        gap: 15px;
    }
    
    .category-slider-product-card.slider-product-card {
        width: 200px;
        min-width: 180px;
        max-width: 240px;
    }
    
    .category-slider-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .view-all-link {
        font-size: 12px;
        padding: 6px 12px;
    }
}


.simple-swiper-container {
    position: relative;
    padding: 20px 0 50px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.simple-swiper {
    overflow: hidden;
    padding: 10px;
    position: relative;
    width: 100%;
}

.simple-swiper .swiper-wrapper {
    display: flex;
    transition-timing-function: ease;
    align-items: stretch;
}

.simple-swiper .swiper-slide {
    flex-shrink: 0;
    height: auto;
    transition: opacity 0.3s ease;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
}

.simple-swiper-buttons {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
    padding: 0 8px;
}

/* Home slider */
.home-slider-section {
    padding: 60px 0;
}

.home-slider-container {
    position: relative;
    padding: 10px 0 40px;
}

.home-slider {
    overflow: hidden;
}

.home-slide-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-slide-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.home-slide-title {
    padding: 14px 16px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

.home-slider-buttons {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 10px;
}

.home-slider-button-prev,
.home-slider-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .home-slide-card img {
        height: 180px;
    }
}

/* Product sliders */
.product-slider-section {
    padding: 50px 0;
}

.product-slider-section .container {
    max-width: 1200px;
}

/* Слайдер: слева одна большая карточка, справа три маленькие */
.product-slider-layout {
    display: flex;
    align-items: stretch;
    gap: 24px;
    max-width: 100%;
}

.product-slider-main {
    order: 0;
}

.product-slider-thumbs {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 0 380px;
    min-width: 0;
    justify-content: space-between;
}

.product-slider-thumb {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 3px solid transparent;
    background: var(--light-bg);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.product-slider-thumb picture {
    flex-shrink: 0;
    display: block;
}

.product-slider-thumb img {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.product-slider-thumb-caption {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    line-height: 1.35;
    color: var(--text-color);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.product-slider-thumb:hover,
.product-slider-thumb-active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 126, 185, 0.3);
}

.product-slider-main {
    flex: 1;
    min-width: 0;
    order: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.product-slider-main-inner {
    position: relative;
    width: 100%;
    max-width: 640px;
    min-width: 0;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--light-bg);
    touch-action: pan-y;
}

.product-slider-main-inner > picture {
    display: block;
    width: 100%;
    height: 100%;
}

.product-slider-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-slider-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: none;
}

.product-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
}

.product-slider-prev {
    left: 12px;
}

.product-slider-next {
    right: 12px;
}

@media (max-width: 768px) {
    .product-slider-layout {
        flex-direction: column;
        gap: 16px;
    }
    
    .product-slider-thumbs {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
        flex: 0 0 auto;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    
    .product-slider-thumb {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        padding: 8px 6px;
        justify-content: center;
    }
    
    .product-slider-thumb img {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
    
    .product-slider-thumb-caption {
        display: none;
    }
    
    .product-slider-main-inner {
        max-width: 320px;
    }
    
    .product-slider-main {
        justify-content: center;
    }
    
    .product-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .product-slider-prev { left: 8px; }
    .product-slider-next { right: 8px; }
}

.product-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.product-slider-wrapper {
    position: relative;
    padding: 10px 0 40px;
}

.product-slider {
    overflow: hidden;
}

.product-slider-buttons {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 10px;
}

.product-slider-button-prev,
.product-slider-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    pointer-events: auto;
}

/* Product modal gallery — большая область изображения, картинка заполняет (object-fit: cover) */
.product-detail-image {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    flex: 0 0 760px;
    height: 760px;
}

.product-detail-gallery-wrap {
    position: relative;
    width: 100%;
    height: 760px;
    min-height: 760px;
    max-height: 760px;
    cursor: pointer;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f5f5f5;
    border: none;
    outline: none;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.product-detail-gallery-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 0;
    overflow: hidden;
}

.product-detail-gallery-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
    outline: none;
}

.product-detail-swipe-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 24px;
    white-space: nowrap;
    z-index: 4;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.product-detail-swipe-hint.hidden {
    opacity: 0;
    visibility: hidden;
}

@media (min-width: 769px) {
    .product-detail-swipe-hint {
        display: none;
    }
}

.product-detail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.product-detail-nav.prev {
    left: 10px;
}

.product-detail-nav.next {
    right: 10px;
}

/* Стрелки поверх слоя с картинкой (иначе абсолютный inner перекрывает клики на десктопе) */
.product-detail-gallery-inner {
    z-index: 1;
}

.product-detail-gallery-wrap > .product-detail-nav {
    z-index: 25;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .product-detail-nav {
        display: inline-flex;
        width: 44px;
        height: 44px;
        z-index: 8;
        background: rgba(255, 255, 255, 0.95);
        color: var(--primary-color);
    }
    .product-detail-nav.prev {
        left: 12px;
    }
    .product-detail-nav.next {
        right: 12px;
    }
    .product-detail-gallery-wrap {
        touch-action: pan-y;
    }
}

@media (max-width: 768px) {
    .product-card {
        cursor: default;
    }
    .product-card .view-detail {
        min-height: 48px;
        padding: 12px 16px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.product-detail-thumbs-wrap {
    display: none;
}

.product-detail-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0;
    scrollbar-width: thin;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.product-detail-thumbs::-webkit-scrollbar {
    height: 6px;
}

.product-detail-thumbs::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

.product-detail-thumbs::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.product-detail-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.product-detail-thumb:hover {
    opacity: 1;
}

.product-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
}

.product-detail-thumb.active {
    opacity: 1;
    border: none;
    box-shadow: none;
}

/* Полноэкранное фото — показ через :target при клике по якорю href="#productPhotoFullscreen" */
.product-photo-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 11000;
    align-items: center;
    justify-content: center;
    padding: 60px 16px 80px;
    box-sizing: border-box;
    touch-action: none;
}

.product-photo-fullscreen:target,
.product-photo-fullscreen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-photo-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 20;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.2s, transform 0.2s;
}

.product-photo-fullscreen-close:hover {
    background: var(--white);
    transform: scale(1.02);
}

.product-photo-fullscreen-close:active {
    transform: scale(0.98);
}

.product-photo-fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-photo-fullscreen-nav.prev {
    left: 18px;
}

.product-photo-fullscreen-nav.next {
    right: 18px;
}

#productPhotoFullscreen.active .product-photo-fullscreen-close,
#productPhotoFullscreen.active .product-photo-fullscreen-nav {
    z-index: 50;
    pointer-events: auto;
}

/* Стрелки в полноэкранном режиме: явный слой поверх картинки (transform/zoom у img) */
#productPhotoFullscreen.active.fullscreen-multiple-images .product-photo-fullscreen-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

#productPhotoFullscreen.active:not(.fullscreen-multiple-images) .product-photo-fullscreen-nav {
    display: none !important;
}

.product-photo-fullscreen-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}

.product-photo-fullscreen-nav:active {
    transform: translateY(-50%) scale(0.97);
}

.product-photo-fullscreen-img {
    position: relative;
    z-index: 0;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.product-photo-fullscreen.is-panning .product-photo-fullscreen-img {
    cursor: grabbing;
}

.product-modal-main-img-wrap {
    display: block;
    outline: none;
    cursor: pointer;
}
.product-modal-main-img-wrap:focus-visible {
    outline: 2px solid var(--accent-color, #c2185b);
    outline-offset: 2px;
}
.product-modal-main-img-wrap img { display: block; vertical-align: middle; }

@media (max-width: 768px) {
    .product-photo-fullscreen {
        padding: 70px 12px 24px;
    }
    .product-photo-fullscreen-close {
        top: 12px;
        right: 12px;
        padding: 12px 18px;
        font-size: 15px;
    }
    .product-photo-fullscreen-img {
        max-height: calc(100vh - 100px);
    }
    .product-photo-fullscreen-nav {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 24px;
        -webkit-tap-highlight-color: transparent;
    }
    .product-photo-fullscreen-nav.prev {
        left: 10px;
    }
    .product-photo-fullscreen-nav.next {
        right: 10px;
    }
}

/* Десктоп: большая область картинки в модалке */
@media (min-width: 1024px) {
    .product-detail-image,
    .catalog-product-detail-image {
        height: 760px;
        min-height: 760px;
        max-height: 760px;
        flex: 0 0 760px;
    }
    .product-detail-gallery-wrap,
    .catalog-product-detail-image .product-detail-gallery-wrap {
        height: 760px;
        min-height: 760px;
        max-height: 760px;
    }
}

@media (max-width: 768px) {
    .simple-swiper-buttons {
        top: 46%;
    }
}

.simple-swiper-button-prev,
.simple-swiper-button-next {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(255, 126, 185, 0.3);
    position: relative;
    z-index: 20;
}

.simple-swiper-button-prev:hover:not(:disabled),
.simple-swiper-button-next:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 126, 185, 0.5);
}

.simple-swiper-button-prev:disabled,
.simple-swiper-button-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-light);
}

.simple-swiper-button-prev:active:not(:disabled),
.simple-swiper-button-next:active:not(:disabled) {
    transform: scale(0.95);
}

.simple-swiper-button-prev {
    margin-left: 10px;
}

.simple-swiper-button-next {
    margin-right: 10px;
}

.swiper-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    color: var(--text-light);
    font-size: 14px;
}

.swiper-indicator i {
    font-size: 24px;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

.swiper-indicator-text {
    font-weight: 500;
    color: var(--text-color);
}

.swiper-dots {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.swiper-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.swiper-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

@media (min-width: 769px) {
    .simple-swiper-button-prev,
    .simple-swiper-button-next {
        display: flex !important;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

@media (max-width: 768px) {
    .swiper-indicator {
        margin-top: 15px;
        padding: 10px;
    }
    
    .swiper-indicator i {
        font-size: 20px;
    }
    
    .swiper-indicator-text {
        font-size: 13px;
    }
}

.swiper-slide {
    height: auto !important;
    display: flex;
    justify-content: center;
}

/* Карточки в слайдере — те же стили, что и в каталоге (product-card, product-image, product-info) */
.simple-swiper .product-card,
.product-slider-section .product-card {
    height: 100%;
    min-height: 0;
    max-height: none;
    width: 100%;
    max-width: 100%;
}

.simple-swiper .swiper-slide,
.product-slider-section .swiper-slide {
    height: auto;
    align-items: stretch;
}

.slider-product-card {
    height: 560px !important;
    min-height: 560px !important;
    max-height: 560px !important;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 126, 185, 0.15);
    background: var(--white);
    position: relative;
    margin: 0 auto;
    margin-bottom: 25px;
}

.slider-product-image {
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #f5f5f5;
    border-radius: 16px 16px 0 0;
}

.slider-product-image .popular-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    width: 107px;
}

.slider-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.product-image img,
.catalog-product-image img {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.product-image img[src],
.catalog-product-image img[src] {
    opacity: 1;
}

.slider-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
}

.slider-product-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
    color: var(--text-color);
}

.slider-product-description {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--text-light);
}

.slider-product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.slider-product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-shrink: 0;
}

.catalog {
    background-color: var(--white);
    padding: 80px 0;
}

.catalog-page {
    padding: 100px 0 60px;
    min-height: calc(100vh - 200px);
    position: static !important;
    overflow: visible !important;
}

.catalog-layout {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 30px !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
    position: relative !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-height: calc(100vh - 200px) !important;
}

.catalog-sidebar {
    position: relative !important;
    align-self: flex-start !important;
    height: fit-content !important;
    background-color: var(--white) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 0 16px 16px !important;
}

@media (min-width: 993px) {
    .catalog-page {
        overflow: visible !important;
        position: static !important;
        height: auto !important;
    }
    
    .catalog-layout {
        overflow: visible !important;
        position: relative !important;
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 30px !important;
        align-items: flex-start !important;
        align-content: flex-start !important;
        height: auto !important;
        min-height: calc(100vh - 200px) !important;
    }
    
    main.catalog-page {
        overflow: visible !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        position: static !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    main.catalog-page > .container.catalog-layout {
        position: relative !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        height: auto !important;
        min-height: calc(100vh - 200px) !important;
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 30px !important;
        align-items: flex-start !important;
        align-content: flex-start !important;
        padding-top: 0 !important;
    }
    
    /* Блок "Каталог цветов" — в потоке страницы, прокручивается вместе с контентом */
    aside.catalog-sidebar {
        position: relative !important;
        width: 280px !important;
        height: fit-content !important;
        align-self: flex-start !important;
        background-color: var(--white) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
        border-radius: 12px !important;
        padding: 0 16px 16px !important;
    }
    
    .catalog-sidebar .catalog-sidebar-header,
    .catalog-sidebar .catalog-filters {
        pointer-events: auto !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

.catalog-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 15px;
    min-height: 52px;
    padding: 0 4px;
    box-sizing: border-box;
}

.catalog-sidebar .section-title {
    text-align: left;
    margin-bottom: 0;
    flex: 1;
    font-size: 17px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.catalog-mobile-cart-btn {
    display: none !important;
    visibility: hidden !important;
}

.catalog-filters-toggle {
    display: none;
}

.catalog-sidebar-overlay {
    display: none;
}

.catalog-sidebar-close {
    display: none;
}

@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr !important;
        overflow: visible !important;
    }
    
    .catalog-toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: stretch;
    }

    .catalog-filters-toggle {
        grid-column: 1 / -1;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 52px;
        margin: 0;
        padding: 12px 14px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(255, 126, 185, 0.35);
        transition: all 0.2s ease;
        box-sizing: border-box;
    }
    .catalog-filters-toggle i,
    .catalog-filters-toggle span {
        pointer-events: none;
    }
    
    .catalog-filters-toggle:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

    .catalog-toolbar .catalog-current-filter {
        width: 100%;
        min-width: 0;
        grid-column: 1;
    }

    .catalog-sort-wrap {
        grid-column: 2;
        width: 100%;
        min-width: 0;
    }
    
    .catalog-sort-mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 0;
        width: 100%;
        position: relative;
    }
    
    .catalog-sort-mobile-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 16px;
        width: 100%;
        min-width: 0;
        min-height: 52px;
        font-size: 15px;
        font-weight: 600;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        background: var(--white);
        color: var(--text-color);
        cursor: pointer;
        transition: var(--transition);
        text-align: left;
        box-sizing: border-box;
    }
    
    .catalog-sort-mobile-trigger:hover {
        border-color: var(--primary-light);
        color: var(--primary-color);
    }
    
    .catalog-sort-mobile-chevron {
        font-size: 12px;
        transition: transform 0.2s ease;
    }
    
    .catalog-sort-mobile.open .catalog-sort-mobile-chevron {
        transform: rotate(180deg);
    }
    
    .catalog-sort-mobile.open .catalog-sort-mobile-trigger {
        border-color: var(--primary-light);
    }
    
    .catalog-sort-mobile-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 6px;
        min-width: 100%;
        background: var(--white);
        border: 2px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 100;
        overflow: hidden;
    }
    
    .catalog-sort-mobile-dropdown.open {
        display: block;
    }
    
    .catalog-sort-mobile-option {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
        font-weight: 500;
        border: none;
        background: transparent;
        color: var(--text-color);
        cursor: pointer;
        text-align: left;
        transition: background 0.15s ease;
    }
    
    .catalog-sort-mobile-option:hover {
        background: rgba(255, 126, 185, 0.1);
        color: var(--primary-color);
    }
    
    .catalog-sort-mobile-option[aria-selected="true"] {
        background: rgba(255, 126, 185, 0.15);
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .catalog-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .catalog-sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .catalog-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(320px, 85vw) !important;
        max-width: 320px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 1000 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        border-radius: 0 !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15) !important;
        overflow-y: auto !important;
    }
    
    .catalog-sidebar.open {
        transform: translateX(0) !important;
    }
    
    .catalog-sidebar-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: none;
        background: var(--light-bg);
        border-radius: 10px;
        color: var(--text-color);
        cursor: pointer;
        font-size: 18px;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }
    .catalog-sidebar-close i {
        pointer-events: none;
    }
    
    .catalog-sidebar-close:hover {
        background: var(--primary-light);
        color: var(--primary-color);
    }
    
    .catalog-mobile-cart-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .catalog-sidebar-header .cart-count-floating {
        display: none !important;
    }
    
    .catalog-sidebar-header {
        margin-bottom: 20px;
    }
    
    .catalog-sidebar .section-title {
        font-size: 26px;
    }
}

/* Мобильная верстка: увеличиваем заголовок и текст фильтров,
   чтобы их было проще читать на телефонах */
@media (max-width: 768px) {
    .catalog-sidebar .section-title {
        font-size: 28px;
    }
    
    .catalog-filters {
        gap: 10px;
    }
    
    .filter-btn {
        font-size: 16px;
        padding: 11px 18px;
    }
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
    padding: 12px;
    background-color: var(--light-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-height: 420px;
    overflow-y: auto;
}

.catalog-filters::-webkit-scrollbar {
    width: 6px;
}

.catalog-filters::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 3px;
}

.catalog-filters::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.filter-btn {
    padding: 10px 16px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    white-space: nowrap;
}

.filter-btn[data-category="all"] {
    flex-basis: 100%;
    font-weight: 600;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 126, 185, 0.1);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 126, 185, 0.2);
}

/* Блок подкатегорий — визуально привязан к родительской категории */
.filter-subgroup {
    width: 100%;
    margin: 6px 0 12px 0;
    padding: 10px 0 4px 14px;
    border-left: 4px solid var(--primary-color);
    background: rgba(255, 126, 185, 0.06);
    border-radius: 0 12px 12px 0;
    box-sizing: border-box;
}

.filter-subgroup-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    padding-left: 2px;
}

.filter-subgroup-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-subgroup .filter-btn-sub {
    margin-left: 0;
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    text-align: left;
}

.filter-btn-sub {
    margin-left: 14px;
    font-size: 15px;
}

.filter-btn-sub::before {
    content: '↳ ';
    opacity: 0.8;
    color: var(--primary-color);
}

/* Фильтр по цене в сайдбаре */
.catalog-price-filter {
    margin-top: 20px;
    padding: 14px 12px;
    background-color: var(--light-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.catalog-price-filter-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-price-filter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.catalog-price-filter-inputs-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.catalog-price-filter-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.catalog-price-filter-side-to {
    align-items: flex-end;
}

.catalog-price-filter-side-to .catalog-price-input {
    text-align: right;
}

.catalog-price-filter-slider-row {
    width: 100%;
}

.catalog-price-filter-slider-row .catalog-price-range {
    width: 100%;
}

.catalog-price-filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.catalog-price-filter-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
}

.catalog-price-filter-reset {
    flex: 1;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.catalog-price-filter-reset:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.catalog-price-filter-label {
    font-size: 13px;
    color: var(--text-light);
}

.catalog-price-range {
    flex: 1;
    min-width: 80px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
}

.catalog-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 126, 185, 0.4);
}

.catalog-price-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.catalog-price-input {
    width: 90px;
    padding: 8px 10px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-align: right;
}

.catalog-price-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Панель: фильтры и «Все товары» в одну линию, одинаковая высота */
.catalog-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    min-height: 52px;
}

@media (max-width: 992px) {
    .catalog-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
    }

    .catalog-filters-toggle {
        grid-column: 1 / -1;
        width: 100%;
    }

    .catalog-toolbar .catalog-current-filter {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }

    .catalog-sort-wrap {
        grid-column: 2;
        width: 100%;
        min-width: 0;
    }
}

.catalog-sort-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    position: relative;
    overflow: visible;
}

/* Десктопная сортировка: выпадающий список */
.catalog-sort-desktop {
    display: none;
    position: relative;
    overflow: visible;
}

@media (min-width: 993px) {
    .catalog-sort-desktop {
        display: block;
    }
    .catalog-sort-mobile {
        display: none !important;
    }
}

.catalog-sort-desktop-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    min-width: 160px;
    min-height: 52px;
    height: 100%;
    font-size: 17px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.catalog-sort-desktop-trigger:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.catalog-sort-desktop.open .catalog-sort-desktop-trigger {
    border-color: var(--primary-light);
}

.catalog-sort-desktop-chevron {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.catalog-sort-desktop.open .catalog-sort-desktop-chevron {
    transform: rotate(180deg);
}

.catalog-sort-desktop-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 100%;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    overflow: hidden;
}

.catalog-sort-desktop.open .catalog-sort-desktop-dropdown {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

.catalog-sort-desktop-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.catalog-sort-desktop-option:hover {
    background: rgba(255, 126, 185, 0.1);
    color: var(--primary-color);
}

.catalog-sort-desktop-option[aria-selected="true"] {
    background: rgba(255, 126, 185, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

/* Мобильная сортировка: видна только на мобильных */
@media (min-width: 993px) {
    .catalog-sort-mobile {
        display: none !important;
    }
}

/* Текущая категория/подкатегория над сеткой товаров */
.catalog-toolbar .catalog-current-filter {
    margin-bottom: 0;
}

.catalog-current-filter {
    margin-bottom: 0;
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 16px;
    background: rgba(255, 126, 185, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    box-sizing: border-box;
}

.catalog-current-filter.is-all {
    background: var(--light-bg);
    border-left-color: var(--border-color);
    font-weight: 500;
    color: var(--text-light);
}

.catalog-current-filter-label,
.catalog-current-filter-breadcrumb {
    display: inline-block;
}

.catalog-current-filter-breadcrumb .fa-chevron-right {
    font-size: 0.75em;
    margin: 0 4px;
    color: var(--primary-color);
    opacity: 0.9;
}

/* Блок каталога */
.catalog-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 18px;
    margin-bottom: 40px;
    align-items: stretch;
}

.products-grid .product-actions {
    flex-direction: column;
}

.products-grid .product-actions .btn {
    width: 100%;
    flex: 0 0 auto;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    min-height: 0;
    max-height: none;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer !important;
}

.catalog-product-card,
.product-card.catalog-product-card {
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
}

.product-card:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.product-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    border-radius: var(--radius) var(--radius) 0 0;
}

.product-card .product-image,
.simple-swiper .product-image,
.product-slider-section .product-card .product-image {
    border-radius: var(--radius) var(--radius) 0 0;
}

.product-image picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
    transition: none;
    padding: 0;
    box-sizing: border-box;
    border-radius: var(--radius) var(--radius) 0 0;
}

.product-card:hover .product-image img {
    transform: none;
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: 12px 14px 14px;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: var(--white);
}

.product-info-text {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-title-slot,
.product-description-slot {
    flex: 0 0 auto;
    overflow: hidden;
}

.product-title-slot {
    font-size: 17px;
    height: calc(1.25em * 2);
}

.product-description-slot {
    font-size: 13px;
    line-height: 1.45;
    height: calc(1.45em * 3);
    min-height: calc(1.45em * 3);
    overflow: hidden;
    flex: 0 0 auto;
    margin-bottom: 2px;
}

.product-title {
    font-size: 1em;
    margin: 0;
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-height: 100%;
}

.product-description {
    color: var(--text-light);
    font-size: 1em;
    margin: 0;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-height: 100%;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    margin-top: auto;
    flex: 0 0 auto;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
    background: var(--white);
    padding-top: 4px;
}

.product-category {
    background: rgba(255, 126, 185, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    flex: 0 0 auto;
}

.product-actions .btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    margin: 0 !important;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 15px 40px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-3px);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about {
    background-color: var(--light-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 17px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.footer {
    background-color: #2c2c2c;
    color: #ddd;
    padding: 60px 0 20px;
    margin: 0;
    border: none;
    position: relative;
    z-index: 150;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col p,
.footer-col a {
    margin-bottom: 10px;
    display: block;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-col i {
    margin-right: 10px;
    color: var(--primary-light);
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ddd;
    text-decoration: none;
}

.social-links a i {
    font-size: 18px;
}

.social-links a:hover {
    color: var(--primary-light);
    transform: none;
    background: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none !important;
    margin-bottom: 0 !important;
    font-size: 14px;
    color: #aaa;
    position: relative !important;
    bottom: auto !important;
    z-index: 1;
    background-color: #2c2c2c !important;
}

/* Убеждаемся, что footer не создает белую полосу */
.footer {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
    border-bottom: none !important;
}

.footer:after,
.footer:before {
    display: none !important;
    content: none !important;
}

.footer-bottom:after,
.footer-bottom:before {
    display: none !important;
    content: none !important;
}

.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
    align-items: stretch;
    backdrop-filter: blur(4px);
}

.cart-modal-content {
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--white);
    padding: 30px;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.close-cart {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

.close-cart:hover {
    color: var(--text-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    min-height: 0;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 16px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-info h4 {
    font-weight: 600;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    word-wrap: break-word;
    color: var(--text-color);
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    background: var(--light-bg);
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
}

.cart-item-quantity button {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 126, 185, 0.3);
    position: relative;
    overflow: hidden;
}

.cart-item-quantity button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.cart-item-quantity button:hover::before {
    width: 100%;
    height: 100%;
}

.cart-item-quantity button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 126, 185, 0.5);
}

.cart-item-quantity button:active {
    transform: scale(0.95);
}

.cart-item-quantity span {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-color);
    background: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    color: var(--text-color);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.remove-item {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-left: auto;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.2);
}

.remove-item:hover {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
    border-color: #f44336;
}

.remove-item:active {
    transform: scale(0.95);
}

.cart-total {
    margin-top: auto;
    padding: 20px;
    border-top: 2px solid var(--border-color);
    text-align: right;
    flex-shrink: 0;
    background: linear-gradient(to top, var(--white) 0%, var(--light-bg) 100%);
    position: relative !important;
    bottom: auto !important;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.cart-total p {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.total-price {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 126, 185, 0.25);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 126, 185, 0.4);
}

.checkout-form {
    margin-top: 16px;
}

.checkout-form-row {
    margin-bottom: 10px;
}

.checkout-form-row label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

.checkout-form-row input[type="text"],
.checkout-form-row input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.checkout-form-row input[type="text"]:focus,
.checkout-form-row input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 126, 185, 0.2);
}

.checkout-delivery-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.checkout-delivery-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.checkout-form-note {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
}

.checkout-form-message {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.checkout-delivery-address {
    margin-top: 10px;
    margin-bottom: 10px;
}

.checkout-delivery-address label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

.checkout-delivery-address input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.checkout-delivery-address input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 126, 185, 0.2);
}

.checkout-pickup-info {
    margin-top: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
    background: rgba(255, 126, 185, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-weight: 600;
    line-height: 1.5;
}

.order-success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.order-success-modal.active {
    display: flex;
}

.order-success-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
    position: relative;
}

.order-success-modal-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.order-success-modal-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 18px;
}

.order-success-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #777;
}

.order-success-ok {
    width: 100%;
    justify-content: center;
}

.order-success-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.order-success-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
}

/* Плавающая кнопка связи (звонок, WhatsApp, Instagram) */
.contact-fab-wrap {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.contact-fab-wrap > * {
    pointer-events: auto;
}

.contact-fab-panel {
    display: none;
    flex-direction: column;
    gap: 6px;
    min-width: min(280px, calc(100vw - 32px));
    padding: 10px;
    background: var(--white, #fff);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-fab-wrap.is-open .contact-fab-panel {
    display: flex;
}

.contact-fab-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #2c2c2c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    transition: background 0.2s ease;
}

.contact-fab-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.contact-fab-link i {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-size: 20px;
}

.contact-fab-link--phone i {
    color: var(--primary-color, #c2185b);
}

.contact-fab-link--wa i {
    color: #25d366;
}

.contact-fab-link--ig i {
    color: #e4405f;
}

.contact-fab-num {
    font-weight: 600;
    white-space: nowrap;
}

.contact-fab-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--primary-color, #c2185b);
    color: #fff;
    box-shadow: 0 4px 20px rgba(194, 24, 91, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-fab-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(194, 24, 91, 0.5);
}

.contact-fab-toggle:active {
    transform: scale(0.98);
}

.contact-fab-wrap.is-open .contact-fab-toggle {
    background: #555;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.admin-header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.admin-nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.admin-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding: 150px 0 80px;
    display: flex;
    align-items: center;
}

.admin-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.admin-box {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.admin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.admin-logo i {
    font-size: 32px;
}

.admin-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.admin-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.admin-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 126, 185, 0.1);
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.admin-info {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: var(--radius);
    font-size: 14px;
    text-align: left;
    border-left: 4px solid var(--primary-color);
}

.admin-info p {
    margin-bottom: 8px;
}

.admin-info code {
    background-color: var(--secondary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.admin-main {
    min-height: calc(100vh - 80px);
    background-color: #f8f9fa;
    padding: 40px 0;
}

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.admin-sidebar {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-image {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.profile-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.profile-info p {
    font-size: 14px;
    color: var(--text-light);
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
}

.menu-item i {
    width: 20px;
    text-align: center;
    color: var(--text-light);
}

.menu-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.menu-item.active {
    background-color: var(--primary-color);
    color: white;
}

.menu-item.active i {
    color: white;
}

.admin-content {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-header h2 {
    font-size: 28px;
    color: var(--text-color);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 300px;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 126, 185, 0.1);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.products-table {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

thead {
    background-color: var(--light-bg);
}

th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--light-bg);
}

.product-image-cell {
    width: 80px;
}

.product-image-small {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.popular {
    background-color: rgba(255, 126, 185, 0.1);
    color: var(--primary-color);
}

.status-badge.regular {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.action-btn.edit {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.action-btn.edit:hover {
    background-color: #2196f3;
    color: white;
}

.action-btn.delete {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger);
}

.action-btn.delete:hover {
    background-color: var(--danger);
    color: white;
}

.action-btn.cart {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.action-btn.cart:hover {
    background-color: #4CAF50;
    color: white;
}

.notification {
    display: none !important;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.warning {
    background: #ff9800;
}

.notification.info {
    background: #2196F3;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-modal,
.product-detail-modal,
.catalog-product-detail-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.product-modal.active,
.product-detail-modal.active,
.catalog-product-detail-modal.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.product-modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.4s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    overflow: hidden;
    gap: 0;
}

/* Совпадение радиусов: модалка 20px — левые углы блока изображения тоже 20px, без просвета */
.product-modal .product-detail-image {
    border-radius: 20px 0 0 20px;
}
.product-modal .product-detail-image .loading-placeholder {
    border-radius: 20px 0 0 20px;
}

.product-modal-close {
    display: none;
}

.product-modal-share-top {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: calc(14px + env(safe-area-inset-right, 0px));
    z-index: 10003;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 126, 185, 0.28);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-modal-share-top:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(255, 126, 185, 0.28);
}

.product-modal-share-top:active {
    transform: translateY(0);
}

.product-detail-content,
.catalog-product-detail-content {
    background: var(--white);
    border-radius: 24px;
    width: 100%;
    max-width: 1000px;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    margin: auto;
    border: none;
    outline: none;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.product-detail-close,
.catalog-product-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    border: 2px solid rgba(255, 126, 185, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-detail-close:hover,
.catalog-product-detail-close:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 126, 185, 0.4);
}

.product-detail-close:active,
.catalog-product-detail-close:active {
    transform: rotate(90deg) scale(0.95);
}

.product-detail-body,
.catalog-product-detail-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 500px;
    max-height: 95vh;
    overflow: hidden;
    gap: 0;
    width: 100%;
}

.product-detail-image,
.catalog-product-detail-image {
    position: relative;
    overflow: hidden;
    border-radius: 24px 0 0 24px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    height: 760px;
    min-height: 760px;
    max-height: 760px;
    width: 100%;
    border: none;
    outline: none;
    flex: 0 0 760px;
}

.product-detail-gallery-wrap,
.catalog-product-detail-image .product-detail-gallery-wrap {
    border: none;
    outline: none;
    height: 760px;
    min-height: 760px;
    max-height: 760px;
}

/* Десктоп: слева 65% изображение, справа 35% наименование/цена/описание, изображение без обрезки по бокам */
@media (min-width: 769px) {
    .product-modal-body {
        grid-template-columns: 65% 35%;
    }
    .product-detail-body,
    .catalog-product-detail-body {
        grid-template-columns: 65% 35%;
    }
    .product-detail-gallery-inner,
    .catalog-product-detail-image .product-detail-gallery-inner {
        width: 100%;
        min-width: 0;
        left: 0;
        right: 0;
    }
    .product-detail-info,
    .catalog-product-detail-info {
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
    }
    .product-detail-image img,
    .catalog-product-detail-image img {
        object-fit: contain;
    }
    .product-detail-image .product-detail-gallery-inner img,
    .catalog-product-detail-image .product-detail-gallery-inner img {
        object-fit: contain;
    }
}

.product-detail-image img,
.catalog-product-detail-image img {
    width: 100%;
    height: 100%;
    min-height: 760px;
    object-fit: cover;
    object-position: center center;
    transition: opacity 0.15s ease;
    background: #fdf2f7;
    display: block;
    opacity: 0;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

.product-detail-image img.is-upgrading,
.catalog-product-detail-image img.is-upgrading {
    opacity: 1;
}

.product-detail-image .product-detail-gallery-inner img,
.catalog-product-detail-image .product-detail-gallery-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-detail-image img.loaded,
.catalog-product-detail-image img.loaded {
    opacity: 1;
    transform: scale(1);
}

.product-detail-image img:hover,
.catalog-product-detail-image img:hover {
    opacity: 1;
}

.product-detail-image .loading-placeholder,
.catalog-product-detail-image .loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 48px;
    background: linear-gradient(135deg, #fff9fb 0%, #ffffff 100%);
    border-radius: 20px 0 0 20px;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-detail-image .loading-placeholder i,
.catalog-product-detail-image .loading-placeholder i {
    animation: spin 1s linear infinite;
    color: var(--primary-color);
}

.product-detail-image-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9999;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.product-detail-image-zoom:hover {
    background: var(--primary-color);
    color: white;
}

.product-detail-image-zoom * {
    pointer-events: none;
}

.product-detail-info,
.catalog-product-detail-info {
    padding: 50px 40px 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--white);
    max-height: 95vh;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

.product-detail-info::-webkit-scrollbar,
.catalog-product-detail-info::-webkit-scrollbar {
    width: 6px;
}

.product-detail-info::-webkit-scrollbar-track,
.catalog-product-detail-info::-webkit-scrollbar-track {
    background: transparent;
}

.product-detail-info::-webkit-scrollbar-thumb,
.catalog-product-detail-info::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.product-detail-info::-webkit-scrollbar-thumb:hover,
.catalog-product-detail-info::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.product-detail-title,
.catalog-product-detail-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.3;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

.product-color-variants {
    margin: 0 0 22px;
}

.product-color-variants-label {
    font-size: 14px;
    color: var(--text-light, #6b7280);
    margin-bottom: 10px;
}

.product-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    padding: 0;
    cursor: pointer;
    box-shadow: 0 0 0 2px #fff inset;
}

.product-color-swatch.is-active {
    border-color: var(--primary-color, #ff7eb9);
    box-shadow: 0 0 0 2px #fff inset, 0 0 0 3px var(--primary-color, #ff7eb9);
}

.product-detail-price,
.catalog-product-detail-price {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
}

.product-detail-price::after,
.catalog-product-detail-price::after {
    content: '₽';
    font-size: 28px;
    color: var(--text-light);
    font-weight: 500;
}

.product-detail-categories,
.catalog-product-detail-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.product-detail-category,
.catalog-product-detail-category {
    background: linear-gradient(135deg, rgba(255, 126, 185, 0.1) 0%, rgba(255, 126, 185, 0.2) 100%);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 126, 185, 0.3);
}

.product-detail-description,
.catalog-product-detail-description {
    color: var(--text-color);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
    padding: 28px;
    background: #fafafa;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
}

.product-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-detail-meta-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.product-detail-actions,
.catalog-product-detail-actions {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 126, 185, 0.15);
}

/* Модалка товара: «Поделиться» — плавающая кнопка сверху справа; внизу — корзина и «Назад» */
.product-modal .product-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.product-modal .product-detail-actions .product-detail-add-to-cart,
.product-modal .product-detail-actions .product-detail-back {
    width: 100%;
    flex: initial;
}

@media (max-width: 768px) {
    /* На мобильной: скроллим весь контент (изображение + цена + описание),
       кнопки фиксируем внизу экрана */
    .product-modal {
        padding: 0;
    }
    .product-modal-content {
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        overflow: hidden;
    }
    .product-modal-body {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 92px;
        -webkit-overflow-scrolling: touch;
    }
    .product-modal .product-detail-info {
        display: block;
        overflow: visible;
        max-height: none;
        padding: 30px 24px 16px;
    }
    .product-modal .product-detail-scrollable {
        display: block;
    }
    .product-modal .product-detail-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10002;
        margin: 0;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--white);
        border-top: 1px solid rgba(255, 126, 185, 0.2);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    }
}

.product-detail-add-to-cart,
.catalog-product-detail-add-to-cart {
    flex: 1.2;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 126, 185, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-detail-add-to-cart:hover,
.catalog-product-detail-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 126, 185, 0.5);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.product-detail-add-to-cart:active,
.catalog-product-detail-add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 126, 185, 0.3);
}

.product-detail-back,
.catalog-product-detail-back {
    background: white;
    color: var(--text-color);
    border-radius: 14px;
    border: 2px solid rgba(255, 126, 185, 0.2);
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-detail-back:hover,
.catalog-product-detail-back:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 126, 185, 0.2);
}

.product-detail-back:active,
.catalog-product-detail-back:active {
    transform: translateY(0);
}

.zoom-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    pointer-events: none;
}

.zoom-overlay.active {
    display: flex !important;
    pointer-events: auto;
}

.zoom-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.zoom-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.zoom-close:hover {
    background: var(--primary-color);
}

.quick-view-indicator {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.product-card:hover .quick-view-indicator {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-detail-add-to-cart.added {
    animation: pulse 0.5s ease;
}

@media (min-width: 769px) {
    .cart-modal-content {
        max-width: 450px !important;
        width: 450px !important;
    }
}

@media (max-width: 1200px) {
    .simple-swiper-button-prev {
        left: 5px;
    }
    .simple-swiper-button-next {
        right: 5px;
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-title {
        font-size: 36px;
    }
    .section-title {
        font-size: 30px;
    }
    
    .navbar {
        position: relative;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .logo {
        font-size: 40px;
        flex-shrink: 0;
        margin-right: auto !important; /* Логотип слева, остальное отталкивается вправо */
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    /* Скрываем nav-links на мобильных по умолчанию (без active) */
    .nav-links {
        display: none !important;
    }
    
    .nav-actions {
        margin-left: 0 !important; /* Не нужен margin-left, так как logo имеет margin-right: auto */
        gap: 0 !important;
        flex-shrink: 0;
        display: flex !important;
        align-items: center;
    }
    
    .cart-btn {
        padding: 8px;
        font-size: 20px;
        flex-shrink: 0;
    }
    
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 8px;
        transition: var(--transition);
        flex-shrink: 0;
        margin-left: 0 !important; /* Gap в navbar уже создает отступ */
        position: relative;
        z-index: 1220 !important; /* Выше оверлея, чтобы крестик в шапке закрывал меню */
        pointer-events: auto !important;
        cursor: pointer !important;
        background: transparent !important;
        border: none !important;
    }
    
    .menu-toggle:hover {
        background-color: var(--light-bg) !important;
        color: var(--primary-color) !important;
    }
    
    .menu-toggle:active {
        transform: scale(0.95);
    }
    
    .menu-toggle:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .header {
        padding: 16px 0;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: static;
    }
    
    .products-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .product-modal-body,
    .product-detail-body,
    .catalog-product-detail-body {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }
    
    .product-detail-content,
    .catalog-product-detail-content {
        max-height: 98vh;
        max-height: 98dvh;
        border-radius: 20px 20px 0 0;
        margin: 0;
        padding: 0;
    }
    
    .product-detail-image,
    .catalog-product-detail-image {
        border-radius: 20px 20px 0 0;
        height: 420px;
        min-height: 420px;
        max-height: 420px;
        padding: 0;
        margin: 0;
        flex: 0 0 420px;
        border: none;
        outline: none;
    }
    
    .product-detail-gallery-wrap {
        height: 420px;
        min-height: 420px;
        max-height: 420px;
    }
    
    .product-detail-image img,
    .catalog-product-detail-image img {
        min-height: 420px;
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center center;
        border: none;
        outline: none;
        margin: 0;
        padding: 0;
    }
    
    .product-detail-thumbs-wrap {
        display: none;
    }
    
    .product-detail-thumb {
        width: 48px;
        height: 48px;
    }
    
    .product-detail-info,
    .catalog-product-detail-info {
        padding: 30px 24px calc(24px + env(safe-area-inset-bottom, 0px));
        max-height: 58vh;
        max-height: 58dvh;
    }
    
    .product-detail-title,
    .catalog-product-detail-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .product-detail-price,
    .catalog-product-detail-price {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .product-detail-description,
    .catalog-product-detail-description {
        font-size: 16px;
        padding: 14px;
        margin-bottom: 10px;
        line-height: 1.55;
    }
    
    .product-detail-actions,
    .catalog-product-detail-actions {
        flex-direction: column;
        gap: 12px;
        padding-top: 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        position: sticky;
        bottom: 0;
        background: var(--white);
        z-index: 2;
    }

    .product-modal .product-detail-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10002;
        margin: 0;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--white);
        border-top: 1px solid rgba(255, 126, 185, 0.2);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    }
    
    .product-detail-add-to-cart,
    .catalog-product-detail-add-to-cart,
    .product-detail-back,
    .catalog-product-detail-back {
        width: 100%;
        padding: 11px 14px;
        font-size: 14px;
    }
    
    .product-detail-close,
    .catalog-product-detail-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .navbar.active .nav-links {
        display: none !important;
    }

    .site-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1200;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .site-nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .site-nav-sidebar {
        display: flex;
        flex-direction: column;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: min(320px, 85vw) !important;
        max-width: 320px !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        max-height: 100dvh !important;
        background: var(--white) !important;
        z-index: 1210;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-radius: 0 !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15) !important;
        padding: 16px 16px max(20px, env(safe-area-inset-bottom));
        overflow-y: auto;
        box-sizing: border-box;
    }

    .site-nav-sidebar.open {
        transform: translateX(0);
    }

    .site-nav-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding: 0 4px;
        gap: 15px;
        min-height: 52px;
        box-sizing: border-box;
    }

    .site-nav-sidebar-logo {
        font-size: 26px;
        margin-right: 0 !important;
    }

    .site-nav-sidebar-logo img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin-right: 8px;
    }

    .site-nav-sidebar-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 6px;
        margin-bottom: 0;
        padding: 10px 8px;
        background-color: var(--light-bg);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

    .site-nav-sidebar-links a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        margin: 1px;
        padding: 10px 12px;
        min-height: 44px;
        background-color: var(--white);
        border: 2px solid var(--border-color);
        border-radius: 30px;
        cursor: pointer;
        font-weight: 500;
        font-size: 14px;
        color: var(--text-color);
        text-decoration: none;
        text-align: left;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
        transition: var(--transition);
    }

    .site-nav-sidebar-links a::after {
        display: none;
    }

    .site-nav-sidebar-links a:hover,
    .site-nav-sidebar-links a:active {
        transform: none;
        box-shadow: 0 5px 15px rgba(255, 126, 185, 0.1);
        border-color: var(--primary-light);
        color: var(--primary-color);
        background-color: var(--white);
    }

    .site-nav-sidebar-links a.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 5px 15px rgba(255, 126, 185, 0.2);
    }

    body.site-nav-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .hero {
        padding: 130px 0 60px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-image {
        height: 350px;
    }
    .catalog-hero {
        padding: 120px 0 40px;
    }
    .catalog-hero-title {
        font-size: 32px;
    }
    .catalog-hero-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }
    .section-title {
        font-size: 28px;
    }
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .navbar.active .nav-links {
        display: none !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 20px;
    }
    .product-card {
        min-height: 0;
        max-height: none;
    }
    .product-image {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
    }
    .product-info {
        padding: 10px 12px 12px;
    }
    .product-title-slot {
        font-size: 15px;
    }
    .product-description-slot {
        font-size: 12px;
    }
    .product-price {
        font-size: 18px;
    }
    .product-actions .btn {
        margin: 0;
        padding: 9px 10px;
        font-size: 12px;
    }
    .product-actions .view-detail {
        display: none;
    }
    .cart-modal-content {
        max-width: 380px !important;
        width: 380px !important;
        padding: 20px;
    }
    
    .cart-item {
        gap: 12px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-info h4 {
        font-size: 14px;
    }
    
    .cart-item-price {
        font-size: 16px;
    }
    
    .cart-item-quantity {
        gap: 6px;
        padding: 4px;
    }
    
    .cart-item-quantity button {
        min-width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .cart-item-quantity span {
        min-width: 35px;
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .product-detail-actions {
        gap: 10px !important;
        margin-top: 15px !important;
    }
    
    .product-detail-add-to-cart,
    .product-detail-back {
        padding: 11px !important;
        font-size: 14px !important;
    }
    /* Фильтры в каталоге на планшетах/мобильных:
       аккуратная сетка “чипов” */
    .catalog-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 24px;
        padding: 10px;
        max-height: none;
        overflow: visible;
    }
    .filter-btn {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
        padding: 11px 14px;
        font-size: 15px;
        margin: 0;
        min-width: 0;
        white-space: nowrap;
    }
    .catalog-filters .filter-btn-sub {
        font-size: 14px;
    }
    .catalog {
        padding: 50px 0;
    }
    .admin-box {
        padding: 30px 20px;
    }
    .simple-swiper-button-prev,
    .simple-swiper-button-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .simple-swiper-button-prev {
        margin-left: 5px;
    }
    .simple-swiper-button-next {
        margin-right: 5px;
    }
    .product-detail-image {
        height: 380px;
        min-height: 380px;
        max-height: 380px;
        flex: 0 0 380px;
    }
    
    .product-detail-gallery-wrap {
        height: 380px;
        min-height: 380px;
        max-height: 380px;
    }
    
    .product-detail-image img {
        height: 100%;
        min-height: 380px;
        object-fit: cover;
        object-position: center;
    }
    .product-detail-info {
        padding: 25px;
    }
    .product-detail-title {
        font-size: 24px;
    }
    .product-detail-price {
        font-size: 28px;
    }
    .product-detail-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    
    .product-detail-add-to-cart,
    .product-detail-back {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    .hero-image {
        height: 280px;
    }
    .catalog-hero {
        padding: 110px 0 30px;
    }
    .catalog-hero-title {
        font-size: 28px;
    }
    .catalog-hero-subtitle {
        font-size: 14px;
    }
    .section-title {
        font-size: 24px;
    }
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 12px;
    }
    .product-card {
        max-width: none;
        margin: 0;
        min-height: 0;
        max-height: none;
    }
    .product-image {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
    }
    .product-info {
        padding: 8px 8px 8px;
    }
    .product-title-slot {
        font-size: 13px;
    }
    .product-description-slot {
        font-size: 11px;
    }
    .product-price {
        font-size: 15px;
    }
    .product-actions .btn {
        margin: 0;
        padding: 8px 6px;
        font-size: 11px;
        min-height: 0;
    }
    .product-actions .btn i {
        display: none;
    }
    .product-actions .view-detail {
        display: none;
    }
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
    }

    /* Категории и подкатегории в каталоге — удобная мобильная верстка */
    .catalog-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px 8px;
        max-height: none;
        overflow: visible;
    }

    .filter-btn {
        flex: 0 0 auto;
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        white-space: normal;
        padding: 12px 14px;
        font-size: 15px;
        min-height: 44px;
    }

    .filter-btn-sub {
        margin-left: 0;
        font-size: 14px;
        opacity: 0.95;
    }
    .filter-subgroup {
        margin: 8px 0 14px 0;
        padding: 12px 0 8px 16px;
        border-left-width: 4px;
    }
    .filter-subgroup-label {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .filter-subgroup-buttons {
        gap: 8px;
    }
    .catalog-current-filter {
        font-size: 15px;
        padding: 12px 14px;
        margin-bottom: 0;
        min-height: 52px;
    }
    .catalog-filters {
        justify-content: flex-start;
        gap: 6px;
    }
    .filter-btn {
        padding: 10px 12px;
        font-size: 14px;
        margin: 1px;
        min-height: 44px;
    }
    .filter-btn span {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .catalog {
        padding: 40px 0;
    }
    .footer {
        padding: 40px 0 20px;
    }
    .footer-content {
        gap: 30px;
    }
    .popular-products {
        padding: 50px 0;
    }
    .admin-section {
        padding: 120px 0 40px;
    }
    .load-more-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }
    .simple-swiper-button-prev,
    .simple-swiper-button-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .simple-swiper-container {
        padding: 15px 0 40px;
    }
    .product-detail-modal {
        padding: 10px;
    }
    .product-detail-content {
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
    }
    .hero-subtitle {
        font-size: 13px;
    }
    .hero-image {
        height: 220px;
    }
    .section-title {
        font-size: 22px;
    }
    .filter-btn {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 42px;
    }
    .catalog-filters .filter-btn-sub {
        font-size: 13px;
    }
    .product-image {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
    }
    .product-info {
        padding: 6px 6px 8px;
    }
    .product-title-slot {
        font-size: 13px;
    }
    .product-description-slot {
        font-size: 11px;
    }
    .product-price {
        font-size: 16px;
    }
    .product-actions .btn {
        margin: 0;
        padding: 8px 10px;
        font-size: 12px;
        min-height: 0;
    }
    .simple-swiper-button-prev,
    .simple-swiper-button-next {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .product-detail-image {
        height: 340px;
        min-height: 340px;
        max-height: 340px;
        flex: 0 0 340px;
    }
    
    .product-detail-gallery-wrap {
        height: 340px;
        min-height: 340px;
        max-height: 340px;
    }
    
    .product-detail-image img {
        height: 100%;
        min-height: 340px;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    .product-detail-title {
        font-size: 20px;
    }
    .product-detail-price {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .product-detail-info {
        padding: 20px;
    }
    .product-detail-description,
    .catalog-product-detail-description {
        padding: 12px;
        margin-bottom: 8px;
        line-height: 1.5;
    }
    .product-detail-actions,
    .catalog-product-detail-actions {
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 20px;
    }
    .section-title {
        font-size: 20px;
    }
    .catalog-sidebar .section-title {
        font-size: 22px;
    }
    .filter-btn {
        font-size: 14px;
        min-height: 42px;
        padding: 10px 12px;
    }
    .catalog-filters .filter-btn-sub {
        font-size: 13px;
    }
    .products-grid {
        grid-auto-rows: 1fr;
    }
    .product-card {
        min-height: 0;
        max-height: none;
    }
    .simple-swiper .product-card,
    .product-slider-section .product-card {
        min-height: 0;
        max-height: none;
    }
    .product-image {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
    }
    .product-title-slot {
        font-size: 14px;
    }
    .product-description-slot {
        font-size: 11px;
    }
    .product-price {
        font-size: 16px;
    }
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none !important;
    }
    .btn:hover,
    .filter-btn:hover {
        transform: none !important;
    }
    .btn:active,
    .filter-btn:active {
        transform: scale(0.95) !important;
    }
}

@supports (-webkit-touch-callout: none) {
    .catalog {
        height: auto !important;
        min-height: auto !important;
    }
    .product-detail-content {
        max-height: -webkit-fill-available !important;
    }
}

*[class*="bottom"]:not(.footer-bottom):not(.cart-modal):not(.product-modal):not(.product-detail-modal):not(.catalog-product-detail-modal):not(.zoom-overlay):not(.notification) {
    position: relative !important;
    bottom: auto !important;
}

body::after,
html::after,
*::after {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    bottom: auto !important;
    z-index: auto !important;
    display: none !important;
    content: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow-x: hidden;
}

body > *:last-child:not(.footer):not(.product-modal):not(.product-detail-modal):not(.catalog-product-detail-modal):not(.cart-modal):not(.zoom-overlay):not(.notification) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

body > div:last-child:not(.footer):not(.product-modal):not(.product-detail-modal):not(.catalog-product-detail-modal):not(.cart-modal):not(.zoom-overlay):not(.notification) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
}

html > body > div:last-child:not(.footer),
body > div[style*="position"]:last-child:not(.footer) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
}

div.product-detail-image{
    margin-bottom: 0;
}

/* Fallback: при открытом fullscreen глобальные body > * не должны ломать fixed */
#productPhotoFullscreen:target,
#productPhotoFullscreen.active,
.product-photo-fullscreen:target,
.product-photo-fullscreen.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 11000 !important;
}

/* iPhone-first polish (17 line and nearby sizes) */
@media (max-width: 430px) {
    .header {
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
        padding-bottom: 12px;
    }

    .navbar {
        min-height: 52px;
    }

    .logo {
        font-size: 36px;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .cart-btn,
    .menu-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 10px;
    }

    .product-card {
        min-height: 0;
        max-height: none;
        border-radius: 14px;
    }

    .product-image {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
        border-radius: 14px 14px 0 0;
    }

    .product-card .product-image,
    .simple-swiper .product-image,
    .product-image picture,
    .product-image img {
        border-radius: 14px 14px 0 0;
    }

    .product-info {
        padding: 8px 8px 10px;
    }

    .product-title-slot {
        font-size: 14px;
    }

    .product-description-slot {
        font-size: 11px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-actions .btn {
        margin: 0;
        min-height: 36px;
        padding: 8px 6px;
    }

    .product-actions .btn i {
        display: none;
    }

    .product-modal,
    .product-detail-modal,
    .catalog-product-detail-modal,
    .cart-modal {
        padding: 8px;
    }

    .product-modal-content,
    .product-detail-content,
    .catalog-product-detail-content,
    .cart-modal-content {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        border-radius: 16px;
    }

    .product-modal .product-detail-actions,
    .catalog-product-detail-actions {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .product-photo-fullscreen-close {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: 12px;
    }

    .product-photo-fullscreen-nav.prev {
        left: 10px;
    }

    .product-photo-fullscreen-nav.next {
        right: 10px;
    }
}

/* iPhone 17 / 17 Pro width class (~393px) */
@media (max-width: 393px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .products-grid {
        grid-auto-rows: 1fr;
        gap: 9px;
    }

    .product-card {
        min-height: 0;
        max-height: none;
    }

    .product-image {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
    }

    .product-title-slot {
        font-size: 13px;
    }

    .product-description-slot {
        font-size: 10px;
    }

    .catalog-filters-toggle,
    .catalog-sort-mobile-trigger {
        min-height: 52px;
    }
}