/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100svh; /* Для мобильных браузеров */
}

/* Фиксы для Telegram WebApp */
html {
    height: 100%;
    overflow: hidden;
}

body.tg-viewport {
    height: 100%;
    overflow: auto;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.active {
    display: block !important;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 120px;
    overflow-y: auto;
    background: #ffffff;
}

.tab-content {
    display: none;
    min-height: calc(100vh - 120px);
    width: 100%;
    background: #ffffff;
}

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

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

/* Logo Header */
.logo-header {
    background: #ffffff;
    padding: 2rem 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    margin-bottom: 0.5rem;
    object-fit: contain;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

.header-search-btn {
    position: absolute;
    top: 2rem;
    right: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    color: #495057;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-search-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Gender Section */
.gender-section {
    padding: 2rem 1.5rem 3rem;
    background: #ffffff;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.gender-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.gender-card {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 3rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gender-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.gender-card:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.gender-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.gender-card[data-gender="men"] {
    background-image: url('assets/men-category.jpg');
}

.gender-card[data-gender="women"] {
    background-image: url('assets/women-category.jpg');
}

.gender-card[data-gender="kids"] {
    background-image: url('assets/kids-category.jpg');
}

.gender-card[data-gender="men"]:not([style*="background-image"]) {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.gender-card[data-gender="women"]:not([style*="background-image"]) {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.gender-card[data-gender="kids"]:not([style*="background-image"]) {
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
}

.gender-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.gender-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gender-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Info Blocks */
.info-section {
    padding: 3rem 1.5rem;
    background: #f8fafc;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 64px;
    height: 64px;
    background: #000000;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.info-content p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Products Layout */
.products-header {
    background: #ffffff;
    color: #1a1a1a;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.back-button {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    color: #495057;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: inherit;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background: #e9ecef;
    transform: translateX(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.products-title {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.products-controls {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-button {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    color: #495057;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sort-button:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sort-button.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

.sort-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    margin-top: 0.5rem;
}

.sort-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.sort-option:hover {
    background: #f8f9fa;
}

.sort-option.active {
    background: #000000;
    color: white;
}

.filters-button {
    background: #000000;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filters-button:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Active Filters */
.active-filters {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #f0f0f0;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    display: flex;
    align-items: center;
    background: #000;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-tag .remove-filter {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    line-height: 1;
    margin-left: 0.25rem;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-tag .remove-filter:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: #f8fafc;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f8fafc;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.like-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    z-index: 3;
    padding: 0;
}

.like-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.like-btn:active {
    transform: scale(0.92);
}

.like-btn.liked {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    animation: likeAnimation 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.like-btn.liked:hover {
    background: rgba(220, 38, 38, 1);
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}

.like-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.product-info {
    padding: 1.5rem;
}

.product-brand {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.product-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-weight: 400;
}

.product-sizes {
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
}

/* НОВЫЕ СТИЛИ ДЛЯ ОБНОВЛЕННОГО МОДАЛЬНОГО ОКНА ТОВАРА */

.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
}

.product-detail-content {
    background: white;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 100vh;
    border-radius: 0;
    overflow-y: auto;
    animation: slideUpModal 0.4s ease-out;
    position: relative;
}

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

.product-detail-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #f8f9fa;
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.product-detail-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex: 1;
    text-align: center;
}

.product-detail-close {
    width: 44px;
    height: 44px;
    background: #f8f9fa;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-close:hover {
    background: #e9ecef;
    color: #1a1a1a;
    transform: scale(1.05);
}

.product-detail-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: calc(100vh - 80px);
}

.product-detail-image-section {
    position: relative;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 2rem;
}

/* Product Image Carousel */
.product-image-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

.carousel-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke: #1a1a1a;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: #1a1a1a;
    width: 32px;
    border-radius: 4px;
}

.product-favorite-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-favorite-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.product-favorite-btn.liked {
    background: #ef4444;
    color: white;
}

.product-favorite-btn svg {
    width: 24px;
    height: 24px;
}

.product-detail-info-section {
    padding: 2rem;
    background: white;
}

.product-detail-brand {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-detail-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-detail-price-container {
    margin-bottom: 2rem;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.product-detail-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    margin-left: 1rem;
    font-weight: 400;
}

.product-detail-sale-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-left: 1rem;
}

.product-detail-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #000;
}

.product-detail-sizes {
    margin-bottom: 2rem;
}

.product-detail-sizes h4,
.product-detail-specs h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.75rem;
}

.size-option {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #666;
    position: relative;
    overflow: hidden;
}

.size-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.size-option:hover::before {
    left: 100%;
}

.size-option:hover {
    border-color: #000;
    color: #000;
    transform: translateY(-2px);
}

.size-option.selected {
    background: #000;
    color: white;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-detail-specs {
    margin-bottom: 2rem;
}

.specs-grid {
    display: grid;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
    text-align: right;
}

.color-swatches {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e0e0e0;
}

.product-detail-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 1rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.buy-btn {
    flex: 1;
    background: #000;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    min-height: 56px;
}

.buy-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.buy-btn:active {
    transform: translateY(0);
}

.share-btn {
    width: 56px;
    height: 56px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.share-btn:hover {
    background: #e9ecef;
    color: #000;
    transform: translateY(-2px);
}

.similar-products {
    padding: 2rem;
    background: #f8fafc;
    border-top: 8px solid #f0f0f0;
}

.similar-products h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.similar-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.similar-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.similar-product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f8fafc;
    transition: transform 0.4s ease;
}

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

.similar-product-info {
    padding: 1rem;
}

.similar-product-brand {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.similar-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.similar-product-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Loading state for images */
.product-detail-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.product-detail-image[src] {
    background: none;
    animation: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Custom scrollbar for modal */
.product-detail-content::-webkit-scrollbar {
    width: 8px;
}

.product-detail-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.product-detail-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.product-detail-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Account Section */
.account-content {
    padding: 2rem;
    background: #f8fafc;
}

.account-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.account-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: #000000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.user-details p {
    color: #666;
    font-weight: 400;
    font-size: 0.85rem;
}

.support-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.support-text {
    flex: 1;
}

.support-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.support-text p {
    color: #666;
    font-size: 0.85rem;
}

/* User Stats */
.user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-box {
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.user-id {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

/* Saved Addresses */
.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

.address-info {
    flex: 1;
}

.address-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.address-details {
    font-size: 13px;
    color: #666;
}

.delete-address-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #999;
    border-radius: 4px;
}

.delete-address-btn:hover {
    background: #ffebee;
    color: #f44336;
}

.empty-addresses {
    text-align: center;
    padding: 20px;
    color: #666;
}

.empty-addresses p {
    margin: 0 0 5px 0;
}

.empty-addresses .empty-subtitle {
    font-size: 12px;
    color: #999;
}

.add-btn {
    background: #000;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
}

.add-btn:hover {
    background: #333;
}

/* Checkbox label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-box {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.modal-box .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e4e8;
}

.modal-box .modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e1e4e8;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.secondary-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.primary-btn {
    background: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.primary-btn:hover {
    background: #333;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Orders List */
.orders-list {
    min-height: 150px;
}

.empty-orders {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.empty-orders svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-orders p {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.empty-subtitle {
    font-size: 0.85rem !important;
    color: #999 !important;
    font-weight: 400 !important;
}

.order-item {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.order-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-id {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
}

.order-date {
    font-size: 0.75rem;
    color: #999;
}

.order-details {
    font-size: 0.85rem;
    color: #666;
}

.order-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin-top: 0.5rem;
}

/* Support Section */
.support-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.support-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.support-text {
    flex: 1;
}

.support-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.support-text p {
    color: #666;
    font-size: 0.85rem;
}

.support-button {
    background: #0088cc;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.support-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    background: #0077b3;
}

/* File Upload */
.file-input {
    display: none;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #000;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: inherit;
    color: #000;
    font-weight: 500;
    text-decoration: none;
}

.upload-btn:hover {
    background: #000;
    color: white;
    transform: translateY(-1px);
}

.upload-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.upload-status.success {
    background: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #d4e6d4;
}

.upload-status.error {
    background: #fff0f0;
    color: #8b3a3a;
    border: 1px solid #e6d4d4;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.close-button {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.categories-list {
    padding: 1rem 0;
}

.category-item {
    display: block;
    width: 100%;
    padding: 1.2rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.category-item:hover {
    background: #f8fafc;
    padding-left: 2.5rem;
    color: #000000;
}

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

/* Search Modal */
.search-input-container {
    padding: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #666;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.search-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-btn {
    padding: 0.8rem 1.5rem;
    background: #000;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: inherit;
    font-weight: 500;
}

.search-btn:hover {
    background: #333;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 44px;
}

.search-result-item:hover {
    background: #f8f8f8;
}

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

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
    background: #f8f8f8;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #000;
    line-height: 1.3;
}

.search-result-brand {
    font-size: 0.65rem;
    color: #666;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.search-result-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: #000;
}

/* Filter Modal */
.clear-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: inherit;
    font-weight: 500;
}

.clear-btn:hover {
    background: #f0f0f0;
    color: #000;
}

.filter-content {
    padding: 1.5rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    position: relative;
}

.filter-checkbox:hover {
    background: #f8f8f8;
}

.filter-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox input:checked + .checkmark {
    background: #000;
    border-color: #000;
}

.filter-checkbox input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox span:last-child {
    font-size: 0.8rem;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* Price Range Inputs */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.price-range-inputs input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.price-range-inputs span {
    color: #999;
    font-weight: 500;
}

/* Color Filters */
.color-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.color-filter {
    width: 44px;
    height: 44px;
    border: 3px solid #f0f0f0;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    background: white;
}

.color-filter:hover {
    border-color: #666;
    transform: scale(1.05);
}

.color-filter.active {
    border-color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.color-filter::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 16px;
    background-color: var(--color);
}

/* Size Filters */
.size-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.size-filter {
    padding: 0.6rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    text-align: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: inherit;
    font-weight: 500;
}

.size-filter:hover {
    border-color: #666;
    background: #f8f8f8;
}

.size-filter.active {
    background: #000;
    color: white;
    border-color: #000;
}

.apply-filters-btn {
    width: 100%;
    padding: 1rem;
    background: #000;
    color: white;
    border: none;
    border-radius: 0 0 24px 24px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: inherit;
    font-weight: 600;
    position: sticky;
    bottom: 0;
}

.apply-filters-btn:hover {
    background: #333;
}

/* Load More Button */
.load-more-btn {
    width: calc(100% - 4rem);
    padding: 1rem;
    background: white;
    border: 1px solid #000;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    margin: 2rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: inherit;
    color: #000;
    font-weight: 500;
}

.load-more-btn:hover {
    background: #000;
    color: white;
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: white;
    margin: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    font-size: 0.85rem;
    max-width: 300px;
    line-height: 1.4;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    display: flex;
    z-index: 1000;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    min-width: 70px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.nav-icon {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn.active .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.nav-btn.active .nav-text {
    opacity: 1;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-image {
        height: 50px;
    }

    .header-search-btn {
        top: 1.5rem;
        right: 1rem;
        padding: 0.6rem;
    }

    .bottom-nav {
        bottom: 10px;
        padding: 6px;
        border-radius: 22px;
    }

    .nav-btn {
        padding: 8px 16px;
        min-width: 60px;
        border-radius: 16px;
    }

    .nav-icon svg {
        width: 20px;
        height: 20px;
    }

    .nav-text {
        font-size: 9px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .product-image-container {
        height: 180px;
    }

    .product-info {
        padding: 1rem;
    }

    .gender-grid {
        gap: 1rem;
    }

    .gender-card {
        padding: 2rem 1.5rem;
        min-height: 150px;
    }

    .gender-title {
        font-size: 1.3rem;
    }

    .gender-subtitle {
        font-size: 0.8rem;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .modal {
        padding: 1rem;
    }

    .modal-content {
        border-radius: 20px;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .category-item {
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }

    .category-item:hover {
        padding-left: 2rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .color-filters {
        grid-template-columns: repeat(3, 1fr);
    }

    .size-filters {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-controls {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        padding: 1rem;
    }

    .sort-dropdown {
        width: 100%;
    }

    .sort-button {
        width: 100%;
        min-width: auto;
    }

    .sort-options {
        left: 0;
        right: 0;
    }

    /* Mobile Product Detail Modal */
    .product-detail-content {
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100vh;
    }

    .product-detail-image-section {
        padding: 1.5rem;
        min-height: 40vh;
    }

    .product-detail-info-section {
        padding: 1.5rem;
    }

    .product-detail-name {
        font-size: 1.5rem;
    }

    .product-detail-price {
        font-size: 1.25rem;
    }

    .size-options {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-detail-actions {
        position: static;
        padding: 1rem 1.5rem 2rem;
        box-shadow: none;
        border-top: none;
        margin-top: 1rem;
    }

    .similar-products {
        padding: 1.5rem;
    }

    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .similar-product-image {
        height: 120px;
    }

    /* Carousel responsive */
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: 8px;
    }

    .carousel-next {
        right: 8px;
    }

    .carousel-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .product-image-carousel {
        max-width: 100%;
    }

    .carousel-container {
        border-radius: 12px;
    }

    .back-btn span {
        display: none;
    }

    .back-btn {
        padding: 0.5rem;
    }

    .product-detail-header {
        padding: 1rem;
    }

    .product-detail-header h3 {
        font-size: 0.95rem;
    }

    .product-detail-image-section {
        padding: 1rem;
        min-height: 40vh;
    }

    .product-favorite-btn {
        width: 48px;
        height: 48px;
        top: 1rem;
        right: 1rem;
    }
}

@media (min-width: 769px) {
    .gender-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .products-controls {
        padding: 2rem;
    }

    .main-content {
        padding-bottom: 100px;
    }

    .bottom-nav {
        bottom: 30px;
        padding: 10px;
        border-radius: 30px;
    }

    .nav-btn {
        padding: 12px 24px;
        min-width: 80px;
        border-radius: 20px;
    }

    .nav-icon svg {
        width: 24px;
        height: 24px;
    }

    .nav-text {
        font-size: 10px;
    }

    /* Desktop Product Detail Modal */
    .product-detail-content {
        border-radius: 24px;
        max-height: 90vh;
        height: auto;
        margin: 2rem;
        width: calc(100% - 4rem);
    }

    .product-detail-body {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
    }

    .product-detail-image-section {
        min-height: 60vh;
        padding: 3rem;
    }

    .product-detail-info-section {
        padding: 3rem;
    }

    .product-detail-name {
        font-size: 2.5rem;
    }

    .product-detail-actions {
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 0;
        margin-top: 2rem;
    }

    .similar-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .size-options {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1200px) {
    .products-grid {
        padding: 3rem;
        gap: 2.5rem;
    }

    .gender-section,
    .info-section {
        padding: 4rem 2rem;
    }

    .logo-image {
        height: 70px;
    }

    .product-detail-content {
        max-width: 1400px;
    }

    .product-detail-image-section {
        padding: 4rem;
    }

    .product-detail-info-section {
        padding: 4rem;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Better button states */
button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button:active {
    transform: scale(0.98);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(even) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .header-search-btn {
        background: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }
    
    .header-search-btn:hover {
        background: #404040;
    }
}

/* Print styles */
@media print {
    .bottom-nav,
    .header-search-btn,
    .modal,
    .product-detail-modal {
        display: none !important;
    }
    
    .main-content {
        padding-bottom: 0;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
/* ===== CART STYLES ===== */

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff3b30;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    animation: cartBadgePulse 0.3s ease-out;
}

@keyframes cartBadgePulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Cart Content */
.cart-content {
    padding: 20px;
    padding-bottom: 100px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Cart Item Card */
.cart-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 15px;
    animation: slideInUp 0.3s ease-out;
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-brand {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.cart-item-size {
    font-size: 13px;
    color: #999;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: auto;
}

.cart-item-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    margin-right: 8px;
}

.cart-item-sale-price {
    color: #4caf50;
    font-weight: 700;
}

.cart-item-savings {
    font-size: 12px;
    color: #4caf50;
    margin-top: 4px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff3b30;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: #ffe5e5;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 4px;
}

.quantity-btn {
    background: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quantity-btn:hover {
    background: #f0f0f0;
}

.quantity-value {
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Cart Summary */
.cart-summary {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #f0f0f0;
    z-index: 100;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.checkout-btn {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.checkout-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.clear-cart-btn {
    width: 100%;
    background: white;
    color: #ff3b30;
    border: 1px solid #ff3b30;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-cart-btn:hover {
    background: #ffe5e5;
}

/* Empty Cart State */
#emptyCart {
    margin-top: 60px;
}

/* Checkout Modal будет добавлен позже */


/* ===== CHECKOUT PAGE STYLES ===== */

.checkout-page-header {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-page-content {
    padding: 20px;
    padding-bottom: 100px;
}

.checkout-totals {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

/* ===== CHECKOUT MODAL STYLES (Legacy) ===== */

.checkout-modal-content {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-content {
    padding: 20px 0;
}

.checkout-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-section:last-of-type {
    border-bottom: none;
}

.checkout-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.checkout-order-summary {
    margin-bottom: 15px;
}

.checkout-order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.checkout-order-item-name {
    flex: 1;
    padding-right: 10px;
}

.checkout-order-item-price {
    font-weight: 600;
    color: #1a1a1a;
}

.checkout-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 10px 0;
}

.checkout-delivery {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 10px 0;
    color: #666;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    margin-top: 15px;
}

.calculate-delivery-btn {
    width: 100%;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.calculate-delivery-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.delivery-cost-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 8px;
    margin-top: 10px;
}

.delivery-cost-result.hidden {
    display: none;
}

.delivery-cost-value {
    font-weight: 700;
    font-size: 16px;
    color: #2e7d32;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option:hover {
    border-color: #999;
}

.delivery-option.selected {
    border-color: #000;
    background: #f5f5f5;
}

.delivery-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9f9f9;
}

.delivery-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.delivery-option-content {
    flex: 1;
}

.delivery-option-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.delivery-option-time {
    font-size: 12px;
    color: #666;
}

.delivery-option-price {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.delivery-option.disabled .delivery-option-price {
    color: #999;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #999;
}

.payment-option.selected {
    border-color: #000;
    background: #f5f5f5;
}

.payment-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.payment-option-content {
    flex: 1;
}

.payment-option-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.payment-option-desc {
    font-size: 12px;
    color: #666;
}

.checkout-notice {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

.submit-order-btn {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.submit-order-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ==================
   USER PROFILE QUOTES
   ================== */

.quote-card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.quote-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.quote-number {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}

.quote-date {
    font-size: 13px;
    color: #666;
}

.quote-status {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.quote-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.quote-final-price strong {
    font-size: 16px;
    color: #1a1a1a;
}

.quote-eur {
    font-size: 12px;
    color: #666;
    margin-left: 4px;
}

.quote-estimated {
    font-weight: 600;
    color: #666;
}

.quote-payment {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.payment-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.payment-address {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    word-break: break-all;
}

.quote-message {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.message-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.message-text {
    font-size: 13px;
    color: #333;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-container .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e4e8;
    position: sticky;
    top: 0;
    background: white;
}

.modal-container .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

/* Quote Detail Styles */
.quote-detail-content {
    display: grid;
    gap: 20px;
}

.quote-detail-header {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e4e8;
}

.quote-detail-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.quote-detail-status {
    font-size: 16px;
    font-weight: 600;
}

.quote-detail-section {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.quote-detail-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
}

.quote-items-list {
    display: grid;
    gap: 10px;
}

.quote-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.quote-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.quote-item-info {
    flex: 1;
}

.quote-item-brand {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.quote-item-name {
    font-size: 13px;
    font-weight: 500;
    margin: 2px 0;
}

.quote-item-details {
    font-size: 12px;
    color: #666;
}

.quote-item-price {
    font-weight: 600;
    font-size: 14px;
}

.quote-delivery-info {
    display: grid;
    gap: 8px;
    font-size: 14px;
}

.quote-pricing .price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.quote-pricing .price-row.total {
    font-weight: 700;
    font-size: 16px;
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 8px;
}

.quote-pricing .price-row.estimated {
    color: #666;
}

.pricing-note {
    font-size: 12px;
    color: #666;
    margin: 8px 0 0 0;
    font-style: italic;
}

.quote-payment-info .payment-method {
    font-size: 14px;
    margin-bottom: 8px;
}

.payment-address-box {
    background: white;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
}

.admin-message-box {
    background: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

