/* =========================================
   GLASSMORPHISM THEME - PREMIUM & MINIMAL
   ========================================= */

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-hover-bg: rgba(255, 255, 255, 0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Category Section - Glass Theme */
.category-section-glass {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.category-section-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Minimal Header */
.section-header-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.header-content {
    flex: 1;
}

.section-title-glass {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.35rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.section-subtitle-glass {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.btn-view-all-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-view-all-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 1);
    color: #667eea;
}

.btn-view-all-glass i {
    transition: transform 0.3s ease;
}

.btn-view-all-glass:hover i {
    transform: translateX(4px);
}

/* Glass Category Grid */
.category-grid-glass {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}

/* Glass Category Card */
.category-card-glass {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    text-decoration: none;
    color: #1e293b;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.category-glass-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
}

.category-card-glass:hover .category-glass-bg {
    opacity: 1;
    transform: scale(1.2);
}

.category-glass-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.category-icon-glass {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    font-size: 1.75rem;
    color: #667eea;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-icon-glass::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.category-card-glass:hover .category-icon-glass {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.category-card-glass:hover .category-icon-glass::before {
    opacity: 0.2;
}

.category-name-glass {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s ease;
}

.category-card-glass:hover .category-name-glass {
    color: #667eea;
    transform: translateY(-2px);
}

.category-card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Active State */
.category-card-glass:active {
    transform: translateY(-4px);
}

/* Empty State */
.category-card-glass.empty {
    background: rgba(248, 250, 252, 0.9);
    color: #94a3b8;
    cursor: default;
}

/* Responsive */
@media (max-width: 1200px) {
    .category-grid-glass {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .category-section-glass {
        padding: 3rem 0;
    }
    
    .section-header-minimal {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2rem;
    }
    
    .section-title-glass {
        font-size: 1.5rem;
    }
    
    .section-subtitle-glass {
        font-size: 0.9rem;
    }
    
    .category-grid-glass {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.85rem;
    }
    
    .category-card-glass {
        padding: 1.5rem 1rem;
        min-height: 130px;
    }
    
    .category-icon-glass {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .category-name-glass {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .category-grid-glass {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-view-all-glass {
        width: 100%;
        justify-content: center;
    }
}

/* Loading State (Optional) */
.category-card-glass.loading {
    pointer-events: none;
}

.category-card-glass.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* =========================================
   PRODUCT CARDS - GLASS THEME
   ========================================= */

.products-glass-section {
    padding: 3rem 0;
    background: #ffffff;
    position: relative;
}

.products-glass-section.featured-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.products-glass-section.free-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Subtle background pattern for professionalism */
.products-glass-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.products-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.product-card-glass {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.product-card-glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.75);
}

/* Product Image - Smaller */
.product-glass-image {
    position: relative;
    width: 100%;
    padding-top: 55%; /* Reduced from 65% */
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    overflow: hidden;
}

.product-glass-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-glass:hover .product-glass-image img {
    transform: scale(1.03);
}

/* Product Overlay - Minimal */
.product-glass-overlay {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    right: 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

/* Badges - Smaller & Subtle */
.badge-new,
.badge-featured,
.badge-free,
.badge-version {
    padding: 0.3rem 0.65rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.badge-new {
    background: rgba(59, 130, 246, 0.85);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-new i {
    font-size: 0.65rem;
}

.badge-featured {
    background: rgba(251, 191, 36, 0.85);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-featured i {
    font-size: 0.65rem;
}

.badge-free {
    background: rgba(16, 185, 129, 0.85);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-free i {
    font-size: 0.65rem;
}

.badge-version {
    background: rgba(15, 23, 42, 0.75);
    color: white;
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

/* Product Body - Compact */
.product-glass-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.product-glass-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.product-glass-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7rem; /* Consistent height */
}

.product-glass-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
}

.product-glass-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.product-glass-price.free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.9rem;
}

.product-glass-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    color: #667eea;
    font-size: 0.8rem;
    transition: all 0.25s ease;
}

.product-card-glass:hover .product-glass-arrow {
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(2px);
}

/* Empty State */
.empty-state-glass {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    font-size: 1rem;
}

/* =========================================
   FOOTER - SIMPLE & COMPACT DESIGN
   ========================================= */

.footer-simple {
    background: #1f2937;
    color: #d1d5db;
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand */
.footer-brand-simple {
    flex: 1;
    max-width: 400px;
}

.footer-logo-simple {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.footer-logo-simple img {
    height: 32px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-description-simple {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #9ca3af;
    margin: 0;
}

/* Quick Links */
.footer-links-simple {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links-simple a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.footer-links-simple a:hover {
    color: white;
}

/* Social Icons */
.footer-social-simple {
    display: flex;
    gap: 0.65rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.social-icon:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* Copyright */
.footer-bottom-simple {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-bottom-simple p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content-simple {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .footer-brand-simple {
        max-width: 100%;
    }
    
    .footer-links-simple {
        gap: 1.25rem;
    }
    
    .footer-social-simple {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-simple {
        padding: 2rem 0 1.25rem;
    }
    
    .footer-links-simple {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
}

/* Print Styles */
@media print {
    .category-section-glass::before,
    .footer-elegant {
        display: none;
    }
    
    .category-card-glass,
    .product-card-glass {
        break-inside: avoid;
    }
}

