@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Professional Light Theme Palette */
    --primary-color: #f97316; /* Orange 500 */
    --primary-dark: #ea580c; /* Orange 600 */
    --primary-light: #ffedd5; /* Orange 100 */
    --secondary-color: #fb923c; /* Orange 400 */
    
    --background: #ffffff; /* Pure White */
    --surface-bg: #f8fafc; /* Slate 50 */
    --card-bg: #ffffff;
    
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --text-light: #94a3b8; /* Slate 400 */
    
    --border-color: #e2e8f0; /* Slate 200 */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--surface-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Performance: GPU Acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Lazy Load Image Placeholder */
img[data-src] {
    filter: blur(5px);
    transition: filter 0.3s;
}

img.loaded {
    filter: blur(0);
}

/* Custom scrollbar */
.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}

.scrollbar-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Category Menu Scrollbar Styling */
#categoryMenu::-webkit-scrollbar {
    width: 4px;
}

#categoryMenu::-webkit-scrollbar-track {
    background: transparent;
}

#categoryMenu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Smooth scrolling for category menu */
#categoryMenu.scroll-smooth {
    scroll-behavior: smooth;
}

/* Top Navigation Bar Styles */
.top-nav {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: relative;
    z-index: 50;
}

.top-nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.top-nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.top-nav-link:hover, .top-nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

/* Image Carousel Styles */
.carousel-container {
    position: relative;
    width: 100vw;
    height: 400px; /* Increased height for better impact */
    overflow: hidden;
    background: #e2e8f0;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: fadeInOut 0.5s ease-in-out;
    display: block;
}

/* Responsive carousel heights */
@media (max-width: 1200px) {
    .carousel-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 200px;
    }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Floating Action Button (FAB) - Call Button */
.fab-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 98;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
}

.fab-call:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-dark);
}

.fab-call:active {
    transform: scale(0.95);
}

/* Show FAB only on mobile */
@media (max-width: 768px) {
    .fab-call {
        display: flex;
    }
}

/* Hide FAB and top bar when cart is open */
body.cart-open .fab-call {
    display: none !important;
}

body.cart-open .top-nav {
    display: none;
}

/* Auto Weather Animation Styles */
.snow, .rain {
    position: fixed;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99;
}

.rain {
    width: 2px;
    height: 10px;
    border-radius: 2px;
    background: #a5f3fc;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px);
        opacity: 0;
    }
}

@keyframes rainfall {
    0% {
        transform: translateY(-10vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.snow {
    animation: snowfall 10s linear infinite;
}

.rain {
    animation: rainfall 0.5s linear infinite;
}

/* Product Loading Skeleton */
.product-skeleton {
    background: #ffffff;
    border-radius: 12px;
    height: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.product-skeleton-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.product-skeleton-text {
    padding: 16px;
}

.product-skeleton-title {
    height: 20px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
    width: 80%;
}

.product-skeleton-price {
    height: 16px;
    width: 40%;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modern Card Hover Effects */
.product-card {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Smooth Image Loading */
.product-img-container {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 1;
}

.product-img {
    transition: transform 0.5s ease, opacity 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Pagination Styles */
.pagination-btn {
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Loading Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Sticky header shadow on scroll */
.header-scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-enter {
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-exit {
    animation: slideOutRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Search Input Styling */
#searchInput {
    background-color: var(--background);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

#searchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Category Chips */
.category-chip {
    border-radius: 8px;
    margin-bottom: 4px;
}

.category-chip:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.category-chip.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

/* About Us & Outlets Header */
.header-section {
    background: var(--surface-bg);
    color: var(--text-primary);
    padding: 4rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.header-section h1 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.header-section p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: var(--primary-color);
    border-radius: 2px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.content-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem auto;
}

.footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.back-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 2rem;
}

.back-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Outlets Page */
.outlets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.outlet-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.outlet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.outlet-image {
    width: 100%;
    height: 200px;
    background: var(--surface-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
}

.outlet-content {
    padding: 2rem;
}

.outlet-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.outlet-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.outlet-detail-icon {
    font-size: 1.2rem;
    margin-top: 0.25rem;
    color: var(--primary-color);
}

.outlet-detail p {
    flex: 1;
    line-height: 1.5;
}

.contact-btn {
    display: inline-block;
    background: var(--text-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.contact-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.map-section {
    margin: 3rem 0;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.map-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--surface-bg);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.hours-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.hours-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hours-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.hours-item {
    padding: 1rem;
    background: var(--surface-bg);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.hours-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Product Details Page */
.thumbnail {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    border-radius: 0.5rem;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.thumbnail.active {
    border-color: var(--primary-color);
    border-width: 2px;
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* Image Zoom Feature */
.image-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 1rem;
    background: var(--surface-bg);
}

.image-zoom-container.zoomed {
    cursor: zoom-out;
}

.main-image {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

.image-zoom-container:not(.zoomed) .main-image:hover {
    transform: scale(1.02);
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
