
:root {
    --primary-color: #f68b1e;
    --secondary-color: #f68b1e;
    --accent-color: #ff6b35;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.top-header {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 40px;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-box input {
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    padding: 12px 50px 12px 20px;
}

.search-box .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23dee2e6" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.categories-section .container {
    position: relative;
    z-index: 2;
}

/* Category Cards */
.category-links {
    display: block;
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    text-decoration: none;
    color: var(--dark-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.category-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-links:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
    color: white;
}

.category-links:hover::before {
    opacity: 1;
}

.category-links:hover .titles {
    color: white !important;
}

.category-links:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.category-links .titles {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.category-links img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Category Grid Responsive */
.category-link {
    margin-bottom: 20px;
}

/* Enhanced Category Cards for Static Content */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

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

.category-card:hover .category-icon {
    background: white;
    color: var(--primary-color);
}

.category-card:hover h5,
.category-card:hover p {
    color: white;
    position: relative;
    z-index: 2;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.category-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.category-card p {
    color: #6c757d;
    margin-bottom: 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Featured Products */
.products-section {
    padding: 60px 0;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-image {
    margin-bottom: 15px;
    position: relative;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-image {
    width: 100%;
}

.thumbnail-images {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail-img {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.thumbnail-img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.thumbnail-img.active {
    opacity: 1;
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-rating {
    color: var(--warning-color);
    margin-bottom: 15px;
}

/* Deals Section */
.deals-section {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 60px 0;
}

.deal-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.countdown-item {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    min-width: 60px;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-section h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-box {
        margin: 15px 0;
    }
    
    .hero-section {
        padding: 40px 0;
    }
}

/* Mobile Toggle Button */
.mobile-toggle {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Mobile Search */
.mobile-search {
    background: white;
    border-top: 1px solid #eee;
    padding: 15px 0;
    display: none;
}

.mobile-search.show {
    display: block;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1050;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-sidebar.show {
    left: 0;
}

.sidebar-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h5 {
    margin: 0;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255,255,255,0.1);
}

.sidebar-content {
    padding: 20px 0;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    padding: 0 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-menu a:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 25px;
}

.sidebar-menu i {
    width: 20px;
    margin-right: 15px;
    color: var(--primary-color);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Custom animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.bounce-in {
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Category Loading Animation */
.category-link {
    animation: categorySlideIn 0.6s ease-out;
    animation-fill-mode: both;
}

.category-link:nth-child(1) { animation-delay: 0.1s; }
.category-link:nth-child(2) { animation-delay: 0.2s; }
.category-link:nth-child(3) { animation-delay: 0.3s; }
.category-link:nth-child(4) { animation-delay: 0.4s; }
.category-link:nth-child(5) { animation-delay: 0.5s; }
.category-link:nth-child(6) { animation-delay: 0.6s; }
.category-link:nth-child(7) { animation-delay: 0.7s; }
.category-link:nth-child(8) { animation-delay: 0.8s; }

@keyframes categorySlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Category Loading Skeleton */
.category-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 20px;
    height: 200px;
}

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

/* Category Hover Effects Enhancement */
.category-links {
    position: relative;
    overflow: hidden;
}

.category-links::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.category-links:hover::after {
    width: 300px;
    height: 300px;
}

/* Category Image Enhancement */
.category-links img {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-links:hover img {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.1) contrast(1.1);
}

/* Category Title Enhancement */
.category-links .titles {
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-links:hover .titles {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Search Functionality */
.search-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.search-container .input-group {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.search-container .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 0;
    box-shadow: none;
}

.search-container .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.search-container .btn {
    padding: 15px 25px;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
}

.search-container .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.search-container .btn-primary:hover {
    background: #e55a2b;
    border-color: #e55a2b;
    transform: translateY(-2px);
}

.search-container .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.search-container .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
}

.search-results-info {
    margin-top: 15px;
}

.search-results-info .alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 0;
}

.search-results-info .alert-info {
    background: #e3f2fd;
    color: #0d47a1;
}

.search-results-info .alert-success {
    background: #e8f5e8;
    color: #1b5e20;
}

.search-results-info .fa {
    margin-right: 8px;
}

/* Responsive search adjustments */
@media (max-width: 767px) {
    .search-container {
        padding: 20px 15px;
    }
    
    .search-container .input-group {
        flex-direction: column;
    }
    
    .search-container .form-control {
        border-radius: 10px 10px 0 0;
        margin-bottom: 10px;
    }
    
    .search-container .btn {
        border-radius: 0 0 10px 10px;
        width: 100%;
    }
}

/* Enhanced Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-box {
        margin: 15px 0;
    }
    
    .hero-section {
        padding: 40px 0;
    }

    .navbar-brand img {
        height: 35px;
    }

    .mobile-toggle {
        margin-right: 15px;
    }

    .nav-link {
        padding: 8px 12px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .mobile-sidebar {
        width: 280px;
        left: -280px;
    }

    .navbar-brand img {
        height: 30px;
    }

    .categories-section {
        padding: 40px 0;
    }

    .category-links {
        padding: 20px 15px;
    }

    .category-links .titles {
        font-size: 1rem;
    }

    .category-links img {
        height: 100px;
    }

    .category-card {
        padding: 25px 15px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Category Grid Responsive Breakpoints */
@media (min-width: 1200px) {
    .category-link {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .category-link {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .category-link {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .category-link {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 575px) {
    .category-link {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
