:root {
    --main-color: #2196f3;
    --back-color: #080321;
    --sec-back-color: #051726;
    --text-color: white;
    --sec-text-color: #e3e3e3;
    --main-transition: 0.3s;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 25px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 30px rgba(33, 150, 243, 0.3);
    --gradient-primary: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Dark theme adjustments */
.dark-theme {
    --back-color: #f8f9fa;
    --sec-back-color: #ffffff;
    --text-color: #080321;
    --sec-text-color: #4a5568;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
    --gradient-card: linear-gradient(145deg, rgba(33, 150, 243, 0.03) 0%, rgba(33, 150, 243, 0.01) 100%);
}

/* Store Hero Section */
.store-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(8, 3, 33, 0.9) 100%);
    padding: 6rem 0 5rem;
    text-align: center;
    margin-bottom: 3rem;
    overflow: hidden;
}

.dark-theme .store-hero {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(248, 249, 250, 0.95) 100%);
}

.store-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.15) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(25%); }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--sec-text-color);
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Store Content & Controls */
.store-content {
    min-height: 60vh;
}

.store-content .container {
    padding: 0 20px;
}

.store-controls {
    margin-bottom: 2.5rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 55px;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(33, 150, 243, 0.2);
    border-radius: 50px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all var(--main-transition);
    font-family: 'Marhey', cursive;
}

.search-input:focus {
    outline: none;
    border-color: var(--main-color);
    background: rgba(33, 150, 243, 0.08);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: var(--sec-text-color);
    opacity: 0.7;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    color: var(--main-color);
    font-size: 1.2rem;
    pointer-events: none;
}

.clear-search {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(33, 150, 243, 0.2);
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--main-transition);
}

.clear-search:hover {
    background: var(--main-color);
    transform: translateY(-50%) scale(1.1) rotate(90deg);
}

.results-count {
    color: var(--sec-text-color);
    font-weight: 500;
    font-size: 1rem;
}

/* Categories */
.categories-section {
    margin-bottom: 3rem;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-btn {
    padding: 12px 24px;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(33, 150, 243, 0.2);
    color: var(--sec-text-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--main-transition);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Marhey', cursive;
}

.category-btn i {
    font-size: 1.1rem;
}

.category-btn:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.25);
}

.category-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--main-color);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
    transform: translateY(-3px);
}

/* Products Grid */
.products-section {
    margin-bottom: 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.6s ease-out;
}

/* Product Card */
.product-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--main-transition);
    border: 2px solid rgba(33, 150, 243, 0.1);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--main-transition);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(33, 150, 243, 0.3);
}

.product-image-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(33, 150, 243, 0.02) 100%);
}

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

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 3, 33, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--main-transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--main-transition);
    font-family: 'Marhey', cursive;
    transform: translateY(20px);
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.9rem;
    color: var(--sec-text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.product-rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-text {
    color: var(--sec-text-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.product-price {
    margin-bottom: 1rem;
}

.product-price .price {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--main-transition);
    border: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Marhey', cursive;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    flex: 1;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    flex: 1;
}

.btn-secondary:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-2px);
}

.btn-disabled {
    background: rgba(128, 128, 128, 0.2);
    color: var(--sec-text-color);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Featured Product */
.featured-product {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #080321;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    z-index: 10;
}

.featured-badge i {
    font-size: 0.9rem;
}

/* Loading, Empty, and Error States */
.loading-products,
.no-products,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--sec-text-color);
}

.loading-spinner {
    margin-bottom: 1rem;
}

.loading-spinner i {
    font-size: 3.5rem;
    color: var(--main-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-products i,
.error-message i {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-products h3,
.error-message h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.no-products p,
.error-message p {
    font-size: 1.1rem;
    color: var(--sec-text-color);
    margin-bottom: 1.5rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
    border: 2px solid rgba(33, 150, 243, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-color: #4caf50;
}

.toast-success i {
    color: #4caf50;
    font-size: 1.3rem;
}

.toast-info i {
    color: var(--main-color);
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .store-hero {
        padding: 4rem 0 3rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .categories-grid {
        gap: 8px;
    }

    .category-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .product-image-container {
        height: 220px;
    }
}

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .toast {
        right: 15px;
        left: 15px;
        bottom: 15px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
.products-grid::-webkit-scrollbar {
    width: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: var(--sec-back-color);
}

.products-grid::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
    background: #1976d2;
}

/* Modern Footer Styles */
#footer {
    position: relative;
    background: linear-gradient(135deg, rgba(8, 3, 33, 0.95) 0%, rgba(5, 23, 38, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(33, 150, 243, 0.1);
    margin-top: 4rem;
    overflow: hidden;
}

.dark-theme #footer {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-top: 1px solid rgba(33, 150, 243, 0.15);
}

.footer-container {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

.footer-brand .brand-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.footer-brand .logo-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.2) 0%, transparent 70%);
    animation: logoPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logoPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--sec-text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--sec-text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--main-color);
    transform: translateX(5px);
}

.footer-social .social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.1);
    border: 2px solid rgba(33, 150, 243, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link img {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.social-link:hover img {
    filter: brightness(1);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(33, 150, 243, 0.1);
}

.footer-copyright p {
    color: var(--sec-text-color);
    font-size: 0.9rem;
    margin: 0;
}

.brand-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.heart {
    color: #ff4757;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

.particle:nth-child(6) {
    bottom: 10%;
    left: 70%;
    animation-delay: 5s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

.wave-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%232196f3"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%232196f3"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%232196f3"></path></svg>');
    background-size: cover;
    opacity: 0.1;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        order: -1;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 3rem 0 1.5rem;
    }

    .footer-main {
        gap: 1.5rem;
    }

    .footer-brand img {
        width: 60px;
        height: 60px;
    }

    .footer-brand h3 {
        font-size: 1.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link img {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 2rem 0 1rem;
    }

    .footer-main {
        gap: 1rem;
    }

    .footer-brand h3 {
        font-size: 1.3rem;
    }

    .footer-links a,
    .footer-brand p {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .social-link img {
        width: 16px;
        height: 16px;
    }

    .footer-copyright p {
        font-size: 0.8rem;
    }
}