/* Shop-specific styles */

/* Active navigation link */
.nav-link.active {
    color: var(--primary-color);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Cart link styling */
.cart-link {
    position: relative;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
    color: white !important;
    transition: var(--transition);
}

.cart-link:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

.cart-text {
    margin-left: 0.5rem;
    font-weight: 600;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    border: 2px solid white;
}

/* Shop Hero Section */
.shop-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f8fafc 50%, var(--bg-secondary) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KPGcgZmlsbD0iIzA4OTFiMiIgZmlsbC1vcGFjaXR5PSIwLjAzIj4KPHBhdGggZD0iTTM2IDM0djEwaDEwVjM0SDM2ek0xNCAxNHYxMGgxMFYxNEgxNHoiLz4KPC9nPgo8L2c+Cjwvc3ZnPg==') repeat;
    opacity: 0.5;
}

.shop-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, rgba(255, 251, 2, 0.2), rgba(8, 145, 178, 0.2));
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--accent-color), var(--primary-color)) 1;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--accent-color);
    animation: sparkle 2s ease-in-out infinite;
}

.shop-hero-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-main {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
}

.title-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    color: #7ba0c7;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.shop-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(8, 145, 178, 0.2);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.animated-counter {
    display: inline-block;
    min-width: 60px;
    text-align: center;
    transition: transform 0.2s ease;
    transform-origin: center;
}

.animated-counter:hover {
    transform: scale(1.05);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Floating Products Animation */
.hero-image-shop {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.floating-products {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 600px;
}

.floating-product {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    z-index: 1;
}

.floating-product-1 {
    top: -10%;
    left: 0%;
    animation-duration: 5s;
}

.floating-product-2 {
    top: 15%;
    right: 10%;
    animation-duration: 6s;
}

.floating-product-3 {
    bottom: 9%;
    left: 6%;
    animation-duration: 5.5s;
}

.floating-product-4 {
    bottom: -10%;
    right: -1%;
    animation-duration: 6.5s;
}

.product-preview {
    width: 210px;
    height: 210px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 25px 50px rgba(8, 145, 178, 0.2);
    border: 4px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
    transition: transform 0.3s ease;
}

.floating-product:hover .product-preview {
    transform: scale(1.05);
}

.product-preview img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-25px) rotate(3deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
    75% { transform: translateY(-20px) rotate(1.5deg); }
}

/* Glow animation disabled */

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(8, 145, 178, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 251, 2, 0.1), transparent);
    transition: left 0.8s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(8, 145, 178, 0.2);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    animation: iconBounce 0.6s ease-in-out;
}



.category-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.category-info p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.product-count {
    display: inline-block;
    background: linear-gradient(45deg, rgba(8, 145, 178, 0.1), rgba(255, 251, 2, 0.1));
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Filter Section */
.filter-section {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: white;
    border: 2px solid rgba(8, 145, 178, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-color);
    /* Safari compatibility fixes */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.sort-select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(8, 145, 178, 0.2);
    border-radius: 10px;
    background: white;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    /* Safari compatibility fixes */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: inherit;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.sort-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Themed Filter Section */
.filter-section-themed {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(8, 145, 178, 0.1);
}



.themed-filter-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.themed-filter-tab {
    background: white;
    border: 2px solid rgba(8, 145, 178, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Safari compatibility fixes */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    outline: none;
}

.themed-filter-tab:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 251, 2, 0.05), rgba(8, 145, 178, 0.05));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.themed-filter-tab:hover {
    border-color: var(--primary-color);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.2);
}

.themed-filter-tab:hover:before {
    opacity: 1;
}

.themed-filter-tab.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(8, 145, 178, 0.3);
}

.themed-filter-tab.active:before {
    opacity: 0;
}

/* Responsive для тематических фильтров */
@media (max-width: 768px) {
    .filter-section-themed {
        margin-top: 1rem;
        padding-top: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .themed-filter-tabs {
        gap: 0.5rem;
    }
    
    .themed-filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .filter-section-title {
        font-size: 0.9rem;
    }
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid rgba(8, 145, 178, 0.1);
    position: relative;
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(8, 145, 178, 0.2);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    transform: translateY(-18px);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Image Gallery Styles */
.image-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
    transform: translateY(-12px);
}

/* Navigation arrows on image */
.gallery-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(22, 163, 192, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(22, 163, 192, 0.3);
}

.gallery-nav-arrow:hover {
    background: rgba(22, 163, 192, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(22, 163, 192, 0.4);
}

.gallery-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav-arrow.prev {
    left: 12px;
}

.gallery-nav-arrow.next {
    right: 12px;
}

.gallery-nav-arrow:disabled {
    background: rgba(150, 150, 150, 0.6);
    cursor: not-allowed;
    box-shadow: none;
}

.gallery-nav-arrow:disabled:hover {
    transform: translateY(-50%);
    background: rgba(150, 150, 150, 0.6);
}

/* Hide arrows when there's only one image */
.image-gallery.single-image .gallery-nav-arrow {
    display: none;
}

/* Color indicator dots */
.gallery-color-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.gallery-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.gallery-color-dot.active {
    background: rgba(22, 163, 192, 1);
    border-color: white;
    transform: scale(1.2);
}

.gallery-color-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-navigation {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.gallery-prev,
.gallery-next {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gallery-prev:hover:not(:disabled),
.gallery-next:hover:not(:disabled) {
    background: var(--primary-color-dark);
    transform: scale(1.1);
}

.gallery-prev:disabled,
.gallery-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.product-badge.new {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.product-badge.sale {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.product-info {
    padding: 1.5rem;
}

/* Product Options - Colors and Sizes */
.product-colors,
.product-sizes {
    margin: 8px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.product-colors {
    gap: 8px; /* Больше расстояние для цветов */
}

.product-sizes {
    gap: 3px; /* Минимальное расстояние для размеров */
}

.options-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-right: 12px;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Color Options */
.color-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    padding: 1px;
    position: relative;
}

.color-option:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Color tooltip */
.color-option::after {
    content: attr(title);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.color-option:hover::after {
    opacity: 1;
    visibility: visible;
}

.color-swatch {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Size Options */
.size-option {
    padding: 3px 5px;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-weight: 700;
    font-size: 12px;
    min-width: 22px;
    text-align: center;
    color: #4a5568;
    line-height: 1;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-option:hover {
    border-color: var(--primary-color);
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary-color);
    transform: scale(1.05);
}

.size-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.02);
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-description-container {
    margin-bottom: 1rem;
    position: relative;
}

.product-description {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    white-space: pre-line;
}

.product-description.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.product-description.collapsed::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60px;
    height: 1.5em;
    background: linear-gradient(to right, transparent, white 50%);
}

.product-description.expanded {
    display: block;
}

.description-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0;
    transition: var(--transition);
    position: absolute;
    right: 0;
    bottom: 0;
    background: white;
    padding-left: 4px;
}

.description-toggle:hover {
    text-decoration: underline;
}

.product-description.expanded + .description-toggle {
    position: static;
    margin-top: 0.5rem;
    background: transparent;
    padding-left: 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* USD currency styling */
.price-usd {
    font-size: 0.7em; /* 70% меньше основного текста */
    opacity: 0.6; /* Более прозрачный */
    font-weight: 500; /* Менее жирный */
    color: var(--text-light) !important;
    -webkit-text-fill-color: var(--text-light) !important;
    background: none !important;
}

.price-original {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.add-to-cart {
    flex: 1;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(8, 145, 178, 0.3);
}



.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, var(--bg-secondary), white);
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-close:hover {
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Cart item styles improvements */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
}

.cart-item:hover {
    background: var(--bg-secondary);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.cart-item-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    flex: 1;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.75rem;
}

.remove-item-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

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

.cart-item-options {
    display: flex;
    gap: 0.75rem;
    margin: 0.25rem 0;
    flex-wrap: wrap;
}

.cart-item-options .item-color,
.cart-item-options .item-size {
    background: var(--bg-secondary);
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.cart-item-options .item-color {
    background: linear-gradient(135deg, var(--bg-secondary), #e8f4f8);
}

.cart-item-options .item-size {
    background: linear-gradient(135deg, var(--bg-secondary), #f8f4e8);
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.cart-item-price .price-usd {
    font-size: 0.7em;
    opacity: 0.6;
    font-weight: 400;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

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

.quantity {
    font-weight: 600;
    color: var(--text-color);
    min-width: 20px;
    text-align: center;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.cart-footer {
    padding: 2rem;
    border-top: 2px solid var(--border-color);
    background: linear-gradient(45deg, var(--bg-secondary), white);
}

.cart-footer .checkout-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
}

.cart-footer .checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

.cart-footer .checkout-btn:active {
    transform: translateY(0);
}

.cart-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}



.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Magnifying Glass Effect for Product Images */
.product-image {
    position: relative;
    overflow: hidden;
}

.product-image .main-image {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.product-image:hover .main-image {
    cursor: none;
}



.magnified-area {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(8, 145, 178, 0.8);
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: 400% 400%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 11;
    box-shadow: 0 0 30px rgba(8, 145, 178, 0.4);
}

.product-image:hover .magnified-area {
    opacity: 1;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes iconBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-2deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .title-main {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    }
    
    .title-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    }
    
    .shop-hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image-shop {
        height: 350px;
    }
    
    .floating-products {
        max-width: 100%;
    }
    
    .product-preview {
        width: 120px;
        height: 120px;
        border-radius: 20px;
        border: 3px solid;
        border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
        background: white;
        box-shadow: 0 15px 30px rgba(8, 145, 178, 0.15);
    }
    
    .floating-product-1 {
        top: 5%;
        left: 5%;
    }
    
    .floating-product-2 {
        top: 10%;
        right: 5%;
    }
    
    .floating-product-3 {
        bottom: 15%;
        left: 10%;
    }
    
    .floating-product-4 {
        bottom: 10%;
        right: 15%;
    }
    
    /* Адаптируем лупу для мобильных устройств */
    .magnified-area {
        width: 120px;
        height: 120px;
        border-width: 2px;
        background-size: 300% 300%;
    }
    
    .hero-features {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Активные состояния категорий и улучшенная фильтрация */
.category-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.05), rgba(255, 251, 2, 0.05));
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(8, 145, 178, 0.15);
}

.category-card.active .category-icon {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 8px 20px rgba(106, 205, 230, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}



/* Улучшенные фильтры */
.filter-tab:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.3);
}

.filter-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* FAQ Section Styles */
.faq-section {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #c0e1ef 100%);
    color: white;
}

.faq-section .section-title {
    color: white !important;
    margin-bottom: 0.5rem;
    background: none !important;
    -webkit-text-fill-color: white !important;
    background-clip: unset !important;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.faq-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.3;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

.faq-icon {
    font-size: 0.9rem;
    transition: transform 0.15s ease;
    flex-shrink: 0;
    margin-left: 0.8rem;
    opacity: 0.8;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease, padding 0.15s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 600px; /* Увеличили для длинных текстов */
    padding: 0 1.5rem 1.2rem;
}

/* Специальный стиль для длинных FAQ блоков (политика возврата) */
.faq-item.active .faq-answer:has(strong) {
    max-height: 800px; /* Еще больше места для политики */
}

.faq-answer p {
    line-height: 1.5;
    opacity: 0.95;
    margin: 0;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.faq-answer strong {
    color: var(--accent-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Mobile responsiveness for FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 0 1.5rem;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 1.2rem;
        line-height: 1.3;
    }
    
    .faq-answer {
        padding: 0 1.2rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.2rem 1rem;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 1.5rem 0 1rem;
    }
    
    .faq-question {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 0.8rem;
    }
    
    .faq-answer p {
        font-size: 0.8rem;
    }
    
    .faq-icon {
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
}

/* Size Guide Modal Styles */
.size-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.size-guide-modal.show {
    opacity: 1;
    visibility: visible;
}

.size-guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.size-guide-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.size-guide-modal.show .size-guide-content {
    transform: translateY(0);
}

.size-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.size-guide-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.size-guide-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-guide-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.size-guide-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.size-guide-table thead {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.size-guide-table th {
    padding: 1rem 0.8rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.size-guide-table td {
    padding: 0.8rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
    color: var(--text-color);
}

.size-guide-table tbody tr:hover {
    background: var(--bg-secondary);
}

.size-guide-table tbody tr:last-child td {
    border-bottom: none;
}

.size-guide-note {
    background: linear-gradient(45deg, rgba(8, 145, 178, 0.1), rgba(255, 251, 2, 0.1));
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Size Guide Button */
.size-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, rgba(8, 145, 178, 0.1), rgba(255, 251, 2, 0.1));
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
}

.size-guide-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.size-guide-btn i {
    font-size: 0.9rem;
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    .filter-tab,
    .themed-filter-tab {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        will-change: transform;
    }
    
    .sort-select {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        /* Дополнительная стилизация стрелки для Safari */
        background-color: white !important;
    }
    
    /* Исправляем проблемы с градиентами в Safari */
    .filter-tab.active,
    .themed-filter-tab.active {
        background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    }
}

/* Дополнительные исправления для всех webkit браузеров */
.filter-tab,
.themed-filter-tab,
.sort-select {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile responsiveness for Size Guide */
@media (max-width: 768px) {
    .size-guide-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .size-guide-header {
        padding: 1rem 1.5rem;
    }
    
    .size-guide-header h3 {
        font-size: 1.1rem;
    }
    
    .size-guide-body {
        padding: 1.5rem;
    }
    
    .size-guide-table th,
    .size-guide-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
    
    .size-guide-note {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .size-guide-content {
        width: 98%;
        border-radius: 15px;
    }
    
    .size-guide-header {
        padding: 0.8rem 1rem;
    }
    
    .size-guide-header h3 {
        font-size: 1rem;
    }
    
    .size-guide-body {
        padding: 1rem;
    }
    
    .size-guide-table th,
    .size-guide-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.8rem;
    }
}

 