/* ===== CATEGORY PAGE STYLES ===== */



/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 100;
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    border: none;
    outline: none;
}

.back-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.back-button:active {
    transform: scale(0.95);
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.header-spacer {
    width: 60px;
}

/* Main Container - adjust for header */
body {
    padding-top: 60px;
}

/* Category Hero Section */
.category-hero-section {
    background: #f8f9fa;
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(0, 122, 255, 0.1);
}

.category-hero-background {
    display: none;
}

.floating-elements {
    display: none;
}

.category-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-icon-simple {
    margin-bottom: 30px;
}

.category-icon-simple i {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.category-content {
    max-width: 600px;
    margin: 0 auto;
}

.category-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.2;
}

.category-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}



/* Products Section */
.products-section {
    min-height: 500px;
}

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

/* Product Card Styles (extending from api.js) */
.product-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gradient-primary);
}

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

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4757;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge.vegetarian {
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.badge.vegan {
    color: #20c997;
    border-color: rgba(32, 201, 151, 0.3);
}

.badge.gluten-free {
    color: #fd7e14;
    border-color: rgba(253, 126, 20, 0.3);
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--deep-brown);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-description {
    color: var(--light-brown);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: var(--accent-orange);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: lowercase;
}

/* No Products State */
.no-products {
    text-align: center;
    padding: 80px 40px;
    color: var(--light-brown);
}

.no-products i {
    font-size: 4rem;
    color: var(--primary-orange);
    margin-bottom: 25px;
    opacity: 0.7;
}

.no-products h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-brown);
    margin-bottom: 15px;
}

.no-products p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 15px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 1.3rem;
}

.whatsapp-text {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 50px 0;
    background: rgba(255, 248, 243, 0.8);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255, 107, 53, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

/* Loading States */
.loading-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-skeleton {
    background: white;
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.skeleton-image {
    height: 220px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

.skeleton-content {
    padding: 25px;
}

.skeleton-line {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
    border-radius: 10px;
    margin-bottom: 15px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .container,
    .footer-content {
        max-width: 1000px;
        padding: 0 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .category-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Header Optimizations */
    .mobile-header {
        height: 56px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    }
    
    .back-button {
        width: 40px;
        height: 40px;
        margin-left: 8px;
        font-size: 1rem;
    }
    
    .logo-image {
        height: 28px;
    }
    
    body {
        padding-top: 56px;
    }
    
    /* Compact hero section */
    .category-hero-section {
        padding: 40px 0 30px;
        margin-bottom: 30px;
    }

    .category-hero-content {
        padding: 0 15px;
    }

    .category-icon-simple {
        margin-bottom: 20px;
    }

    .category-icon-simple i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .category-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
        line-height: 1.1;
    }

    .category-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Mobile-first product grid */
    .container {
        padding: 0 15px;
    }

    .products-grid,
    .loading-products {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    /* Mobile-optimized product cards */
    .product-card {
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 18px;
    }
    
    .product-name {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .product-description {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 15px;
        -webkit-line-clamp: 2;
    }

    .product-price {
        margin-bottom: 12px;
    }
    
    .current-price {
        font-size: 1.5rem;
    }

    .original-price {
        font-size: 1.1rem;
    }

    .product-tags {
        gap: 6px;
        margin-bottom: 0;
    }

    .tag {
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    /* Badges mobile optimization */
    .discount-badge {
        top: 12px;
        left: 12px;
        padding: 5px 10px;
        font-size: 0.8rem;
        border-radius: 15px;
    }

    .product-badges {
        top: 12px;
        right: 12px;
        gap: 5px;
    }

    .badge {
        padding: 3px 8px;
        font-size: 0.7rem;
        border-radius: 12px;
    }
    
    /* Mobile WhatsApp button */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 15px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-float i {
        font-size: 1.5rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    /* No products state */
    .no-products {
        padding: 50px 20px;
        margin: 20px 0;
    }
    
    .no-products i {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .no-products h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .no-products p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .no-products .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Footer mobile */
    .footer-content {
        padding: 0 15px;
    }

    .social-links {
        gap: 15px;
        margin-bottom: 15px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .footer-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Ultra Mobile Header */
    .mobile-header {
        height: 52px;
        grid-template-columns: 52px 1fr 52px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    }
    
    .back-button {
        width: 36px;
        height: 36px;
        margin-left: 8px;
        font-size: 0.95rem;
    }
    
    .logo-image {
        height: 26px;
    }
    
    body {
        padding-top: 52px;
    }


    
    /* Ultra compact hero */
    .category-hero-section {
        padding: 30px 0 25px;
        margin-bottom: 25px;
    }

    .category-hero-content {
        padding: 0 10px;
    }

    .category-icon-simple {
        margin-bottom: 15px;
    }

    .category-icon-simple i {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .category-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .category-description {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* Ultra mobile container */
    .container {
        padding: 0 10px;
    }

    /* Mobile-first product cards */
    .products-grid,
    .loading-products {
        gap: 15px;
        margin-bottom: 25px;
    }

    .product-card {
        max-width: 350px;
        border-radius: 18px;
    }
    
    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .product-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .product-price {
        margin-bottom: 10px;
    }

    .current-price {
        font-size: 1.3rem;
    }

    .original-price {
        font-size: 1rem;
    }

    /* Compact badges */
    .discount-badge {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .product-badges {
        top: 10px;
        right: 10px;
    }

    .badge {
        padding: 2px 6px;
        font-size: 0.65rem;
    }

    /* Compact WhatsApp */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        padding: 18px;
    }

    .whatsapp-float i {
        font-size: 1.3rem;
    }

    /* Compact no products */
    .no-products {
        padding: 40px 15px;
        margin: 15px 0;
    }

    .no-products i {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .no-products h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .no-products p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .no-products .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Compact footer */
    .footer-content {
        padding: 0 10px;
    }

    .social-links {
        gap: 12px;
        margin-bottom: 12px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-text {
        font-size: 0.85rem;
    }


} 