/* ============================================
   EyeShop Frontend - Apple Glassmorphism Design
   ============================================ */

:root {
    --eyeshop-primary: #0071e3;
    --eyeshop-primary-hover: #0077ED;
    --eyeshop-dark: #1d1d1f;
    --eyeshop-gray: #86868b;
    --eyeshop-light: #f5f5f7;
    --eyeshop-white: #ffffff;
    --eyeshop-glass: rgba(255, 255, 255, 0.72);
    --eyeshop-glass-border: rgba(255, 255, 255, 0.18);
    --eyeshop-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --eyeshop-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
    --eyeshop-radius: 20px;
    --eyeshop-radius-sm: 12px;
    --eyeshop-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --eyeshop-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   HERO SECTION
   ============================================ */
.eyeshop-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--eyeshop-radius);
    margin: 20px;
    padding: 80px 40px;
}

.eyeshop-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.eyeshop-hero-title {
    font-family: var(--eyeshop-font);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
}

.eyeshop-hero-subtitle {
    font-family: var(--eyeshop-font);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 40px;
    font-weight: 400;
    line-height: 1.5;
}

.eyeshop-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--eyeshop-transition);
    font-family: var(--eyeshop-font);
}

.eyeshop-hero-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.eyeshop-hero-blur-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.eyeshop-hero-blur-1 {
    width: 400px;
    height: 400px;
    background: #ff6b6b;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.eyeshop-hero-blur-2 {
    width: 300px;
    height: 300px;
    background: #4ecdc4;
    bottom: -80px;
    left: -80px;
    animation-delay: 2s;
}

.eyeshop-hero-blur-3 {
    width: 200px;
    height: 200px;
    background: #ffd93d;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.eyeshop-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.eyeshop-section-title {
    font-family: var(--eyeshop-font);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--eyeshop-dark);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.eyeshop-section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--eyeshop-primary), #764ba2);
    border-radius: 2px;
    margin: 0 auto;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.eyeshop-products-section {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.eyeshop-featured-section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.eyeshop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    padding: 4px;
}

.eyeshop-products-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.eyeshop-products-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* ============================================
   PRODUCT CARD - Apple Glassmorphism
   ============================================ */
.eyeshop-product-card {
    perspective: 1000px;
}

.eyeshop-product-card-inner {
    position: relative;
    background: var(--eyeshop-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--eyeshop-glass-border);
    border-radius: var(--eyeshop-radius);
    overflow: hidden;
    transition: var(--eyeshop-transition);
    box-shadow: var(--eyeshop-shadow);
}

.eyeshop-product-card-inner:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--eyeshop-shadow-hover);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Sale Badge */
.eyeshop-badge-sale {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
}

/* Product Image */
.eyeshop-product-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
}

.eyeshop-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.eyeshop-product-card-inner:hover .eyeshop-product-image {
    transform: scale(1.08);
}

.eyeshop-product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8c8c8;
}

/* Product Info */
.eyeshop-product-info {
    padding: 20px 24px 12px;
}

.eyeshop-product-brand {
    font-family: var(--eyeshop-font);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--eyeshop-primary);
    display: block;
    margin-bottom: 6px;
}

.eyeshop-product-name {
    font-family: var(--eyeshop-font);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--eyeshop-dark);
    margin: 0 0 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eyeshop-product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyeshop-product-price {
    font-family: var(--eyeshop-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--eyeshop-dark);
}

.eyeshop-price-sale {
    color: #ee5a24;
}

.eyeshop-product-price-old {
    font-family: var(--eyeshop-font);
    font-size: 0.9rem;
    color: var(--eyeshop-gray);
    text-decoration: line-through;
}

/* Product Actions */
.eyeshop-product-actions {
    padding: 12px 24px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.eyeshop-btn-cart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--eyeshop-primary);
    color: white;
    border: none;
    border-radius: var(--eyeshop-radius-sm);
    font-family: var(--eyeshop-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--eyeshop-transition);
}

.eyeshop-btn-cart:hover {
    background: var(--eyeshop-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}

.eyeshop-btn-quick-view {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eyeshop-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--eyeshop-radius-sm);
    color: var(--eyeshop-dark);
    cursor: pointer;
    transition: var(--eyeshop-transition);
}

.eyeshop-btn-quick-view:hover {
    background: var(--eyeshop-dark);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   NO PRODUCTS STATE
   ============================================ */
.eyeshop-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    background: var(--eyeshop-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--eyeshop-glass-border);
    border-radius: var(--eyeshop-radius);
}

.eyeshop-no-products-icon {
    color: var(--eyeshop-gray);
    margin-bottom: 20px;
    opacity: 0.5;
}

.eyeshop-no-products h3 {
    font-family: var(--eyeshop-font);
    font-size: 1.5rem;
    color: var(--eyeshop-dark);
    margin: 0 0 8px;
}

.eyeshop-no-products p {
    font-family: var(--eyeshop-font);
    color: var(--eyeshop-gray);
    margin: 0;
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.eyeshop-categories-section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.eyeshop-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.eyeshop-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: var(--eyeshop-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--eyeshop-glass-border);
    border-radius: var(--eyeshop-radius);
    text-decoration: none;
    transition: var(--eyeshop-transition);
    box-shadow: var(--eyeshop-shadow);
}

.eyeshop-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--eyeshop-shadow-hover);
    border-color: var(--eyeshop-primary);
}

.eyeshop-category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--eyeshop-primary), #764ba2);
    border-radius: 16px;
    color: white;
    margin-bottom: 16px;
    transition: var(--eyeshop-transition);
}

.eyeshop-category-card:hover .eyeshop-category-icon {
    transform: scale(1.1) rotate(5deg);
}

.eyeshop-category-name {
    font-family: var(--eyeshop-font);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--eyeshop-dark);
    margin: 0 0 6px;
}

.eyeshop-category-desc {
    font-family: var(--eyeshop-font);
    font-size: 0.85rem;
    color: var(--eyeshop-gray);
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .eyeshop-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .eyeshop-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .eyeshop-hero {
        min-height: 50vh;
        padding: 60px 24px;
        margin: 12px;
    }
    
    .eyeshop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .eyeshop-product-info {
        padding: 14px 16px 8px;
    }
    
    .eyeshop-product-name {
        font-size: 0.9rem;
    }
    
    .eyeshop-product-price {
        font-size: 1.05rem;
    }
    
    .eyeshop-product-actions {
        padding: 8px 16px 16px;
        flex-direction: column;
    }
    
    .eyeshop-btn-cart {
        width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .eyeshop-btn-quick-view {
        display: none;
    }
    
    .eyeshop-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .eyeshop-category-card {
        padding: 24px 16px;
    }
    
    .eyeshop-featured-section,
    .eyeshop-categories-section {
        padding: 48px 16px;
    }
}

@media (max-width: 480px) {
    .eyeshop-products-grid {
        grid-template-columns: 1fr;
    }
    
    .eyeshop-hero-title {
        font-size: 2rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.eyeshop-product-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.eyeshop-product-card:nth-child(1) { animation-delay: 0.05s; }
.eyeshop-product-card:nth-child(2) { animation-delay: 0.1s; }
.eyeshop-product-card:nth-child(3) { animation-delay: 0.15s; }
.eyeshop-product-card:nth-child(4) { animation-delay: 0.2s; }
.eyeshop-product-card:nth-child(5) { animation-delay: 0.25s; }
.eyeshop-product-card:nth-child(6) { animation-delay: 0.3s; }
.eyeshop-product-card:nth-child(7) { animation-delay: 0.35s; }
.eyeshop-product-card:nth-child(8) { animation-delay: 0.4s; }

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

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --eyeshop-glass: rgba(30, 30, 30, 0.72);
        --eyeshop-glass-border: rgba(255, 255, 255, 0.08);
        --eyeshop-dark: #f5f5f7;
        --eyeshop-light: #2d2d2d;
        --eyeshop-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        --eyeshop-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
    }
    
    .eyeshop-product-image-wrap {
        background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    }
}
