:root {
    --primary: #ff8f4d;
    --secondary: #08acab;
    --dark: #034249;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fef7f0 0%, #f0fdfc 50%, #f8fafc 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn, .menu-btn {
    background: none;
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover, .menu-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Main Content */
.main-content {
    padding: 20px 0 60px 0;
}

/* Banner Slider Styles */
.banner-section {
    margin-bottom: 40px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
}

.slider-caption {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.slider-description {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.125rem;
    color: var(--dark);
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-nav.prev {
    left: 16px;
}

.slider-nav.next {
    right: 16px;
}

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Auto-play indicator */
.slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    transition: width linear;
    z-index: 10;
}

/* Section Styles */
.categories-section, .deals-section {
    margin-bottom: 40px;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary);
}

.view-all-btn {
    background: none;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.view-all-btn:hover {
    background: var(--secondary);
    color: white;
}

/* Horizontal Scroll Container */
.horizontal-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) var(--gray-100);
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Categories Grid */
.categories-grid {
    display: flex;
    gap: 16px;
    padding-bottom: 10px;
    min-width: fit-content;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    min-width: 160px;
    max-width: 160px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

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

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

.category-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 2px solid var(--gray-200);
}

.category-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

/* Deals Grid */
.deals-grid {
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
    min-width: fit-content;
}

.deal-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

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

.deal-image-container {
    position: relative;
    overflow: hidden;
    height: 160px;
}

.deal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 143, 77, 0.3);
}

.supplier-logo {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
}

.supplier-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.deal-content {
    padding: 32px 16px 16px 16px;
}

.deal-title {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.deal-desc {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--secondary);
}

.original-price {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.deal-progress {
    margin-bottom: 12px;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.join-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 143, 77, 0.3);
}

/* Loading States */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--gray-600);
    min-width: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: var(--dark);
}

.loading-content .spinner {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 24px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand {
    font-weight: bold;
    color: var(--dark);
}

.footer-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    text-align: right;
}

.footer-text p {
    margin-bottom: 4px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.instagram:hover {
    background: #e4405f;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.whatsapp:hover {
    background: #25d366;
}

/* Update responsive design for footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-text {
        text-align: center;
        order: 2;
    }
    
    .footer-social {
        order: 1;
        justify-content: center;
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        padding: 12px 0;
    }

    .brand-text {
        font-size: 1.25rem;
    }

    .main-content {
        padding: 16px 0 40px 0;
    }

    .banner-slider {
        height: 200px;
        border-radius: 12px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

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

    .view-all-btn {
        align-self: flex-end;
    }

    .categories-section, .deals-section {
        margin-bottom: 32px;
    }

    .category-card {
        min-width: 140px;
        max-width: 140px;
        padding: 16px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .category-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .category-name {
        font-size: 0.8rem;
    }

    .deal-card {
        min-width: 250px;
        max-width: 250px;
    }

    .deal-image-container {
        height: 140px;
    }

    .deal-content {
        padding: 28px 12px 12px 12px;
    }

    .deal-title {
        font-size: 0.9rem;
    }

    .deal-desc {
        font-size: 0.8rem;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .slider-nav.prev {
        left: 12px;
    }

    .slider-nav.next {
        right: 12px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        height: 180px;
    }

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

    .category-card {
        min-width: 120px;
        max-width: 120px;
        padding: 12px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .category-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }

    .category-name {
        font-size: 0.75rem;
    }

    .deal-card {
        min-width: 220px;
        max-width: 220px;
    }

    .deal-image-container {
        height: 120px;
    }
}