/* QR Menu Index Page Styles */
body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    background: var(--hero-gradient);
    padding: 40px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

/* Search Section */
.search-section {
    background: white;
    border-radius: 24px;
    padding: 20px;
    margin: -60px 20px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 20;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 2px solid #f1f5f9;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), #FF8F6B);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

/* Enhanced Slider Section */
.slider-section {
    margin: 50px 20px;
    position: relative;
}

.slider-container {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: #1f2937;
}

.swiper {
    border-radius: 28px;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    height: 320px;
    background: linear-gradient(45deg, #1f2937, #374151);
    overflow: hidden;
}

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

.swiper-slide-active .slide-image {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(255, 107, 53, 0.3) 0%, 
        rgba(46, 196, 182, 0.2) 50%, 
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 5;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 40px;
    color: white;
    z-index: 10;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
}

.slide-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    line-height: 1.3;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1s ease-out 0.3s forwards;
}

.slide-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    max-width: 350px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1s ease-out 0.5s forwards;
}

.slide-button {
    background: linear-gradient(135deg, #FF6B35, #FF8F6B);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1s ease-out 0.7s forwards;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #FF8F6B, #FF6B35);
}

.slide-button span {
    position: relative;
    z-index: 2;
}

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

/* Enhanced Pagination */
.swiper-pagination {
    bottom: 25px !important;
    z-index: 20;
}

.swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    opacity: 1;
    margin: 0 8px !important;
    transition: all 0.4s ease;
}

.swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Enhanced Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    width: 55px !important;
    height: 55px !important;
    border-radius: 50%;
    margin-top: -27px !important;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: 900;
}

/* Parallax Effect */
.slide-bg-element {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 3;
}

.slide-bg-element:nth-child(1) {
    top: -150px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.slide-bg-element:nth-child(2) {
    bottom: -100px;
    left: -150px;
    animation: float 20s ease-in-out infinite reverse;
}

/* Categories Grid */
.categories-section {
    margin: 50px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-image-wrapper {
    height: 120px;
    position: relative;
    overflow: hidden;
}

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

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-info {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.category-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.category-count {
    color: #6b7280;
    font-size: 13px;
    transition: color 0.3s ease;
}

.category-card:hover .category-name,
.category-card:hover .category-count {
    color: #374151;
}

/* Featured Products */
.featured-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin: 40px 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.featured-item {
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
}

.featured-item::after {
    content: '⭐';
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
}

.featured-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.featured-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-item:hover .featured-image {
    transform: scale(1.1);
}

.featured-info {
    padding: 20px;
}

.featured-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 15px;
    margin-bottom: 8px;
}

.featured-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 16px;
}

/* Product Categories */
.category-products {
    background: white;
    border-radius: 24px;
    padding: 30px;
    margin: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
}

.view-all-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

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

.products-scroll {
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.products-scroll::-webkit-scrollbar {
    height: 8px;
}

.products-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.products-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.products-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.products-flex {
    display: flex;
    gap: 20px;
    min-width: max-content;
    padding: 5px;
}

.product-item {
    width: 160px;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.image-count-indicator {
    display: none;
}

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

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

.product-details {
    padding: 15px;
}

.product-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price-like {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
}

.product-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0 60px;
    }
    
    .search-section {
        margin: -40px 15px 30px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .slide-title {
        font-size: 1.6rem;
    }
    
    .slide-content {
        padding: 25px 20px;
    }

    .slide-title {
        font-size: 1.4rem;
        max-width: 280px;
    }

    .slide-text {
        font-size: 0.85rem;
        max-width: 260px;
    }

    .slide-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .slider-container {
        border-radius: 20px;
    }

    .swiper {
        border-radius: 20px;
    }

    .swiper-slide {
        height: 250px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

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

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