/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One:wght@400&family=Jost:wght@400;500;600;800;900&display=swap');

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

html {
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: transparent;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Main content wrapper to ensure footer stays at bottom */
.main-content {
    flex: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 25%, #3b82f6 50%, #6366f1 100%);
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.1) 0%, rgba(76, 29, 149, 0.1) 100%);
    z-index: 1;
}

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

.hero h1 {
    font-family: 'Rubik Mono One', monospace;
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 0;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(96, 165, 250, 0.2);
    letter-spacing: 2px;
    position: relative;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(96, 165, 250, 0.2);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 0 60px rgba(96, 165, 250, 0.3);
    }
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #cbd5e1;
}

/* Category Selector - Hidden by default */
.category-selector {
    /* Removed background to let body background show through */
    padding: 20px 0;
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    display: none;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-btn {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: #cbd5e1;
    padding: 10px 20px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.category-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #8b5cf6 100%);
    color: white;
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.category-btn.active:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #6366f1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Products Section */
.products {
    padding: 22px 0 48px 0;
    /* Removed background to let body background show through */
}

.products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #f1f5f9;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 260px);
    gap: 20px;
    justify-content: center;
}

/* When showing all categories, switch to flexbox for vertical stacking */
.products-grid.all-categories {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Category sections for 'All' view */
.category-section {
    margin-bottom: 30px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2.0rem;
    margin-bottom: 10px;
    color: #f1f5f9;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-weight: 900;
    font-style: italic;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 260px);
    gap: 20px;
    justify-content: center;
}

/* Large Category Grid - Much Larger and Wider Cards */
.category-grid.large-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    max-width: 1104px;
    min-width: 800px;
    width: 92%;
    margin: 0 auto;
}

.category-grid.large-grid .product-card {
    max-width: 800px;
    min-width: none;
    width: 100%;
}

.category-grid.large-grid .product-card img {
    height: 400px;
    padding: 25px;
}

.category-grid.large-grid .product-info {
    padding: 15px;
}

.category-grid.large-grid .product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.category-grid.large-grid .product-info p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.category-grid.large-grid .price {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.category-grid.large-grid .btn {
    padding: 15px 25px;
    font-size: 1rem;
}

/* Large grid when viewing large category alone */
#products-grid.large-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    max-width: 1104px;
    min-width: 800px;
    width: 92%;
    margin: 0 auto;
}

#products-grid.large-grid .product-card {
    max-width: 800px;
    min-width: none;
    width: 100%;
}

#products-grid.large-grid .product-card img {
    height: 400px;
    padding: 25px;
}

#products-grid.large-grid .product-info {
    padding: 15px;
}

#products-grid.large-grid .product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

#products-grid.large-grid .product-info p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

#products-grid.large-grid .price {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

#products-grid.large-grid .btn {
    padding: 15px 25px;
    font-size: 1rem;
}

/* Product Cards */
.product-card {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(96, 165, 250, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(96, 165, 250, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 440px;
    min-width: 260px;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    padding: 15px;
}

.product-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 3px;
    color: #f1f5f9;
    font-weight: 600;
}

.product-info p {
    color: #cbd5e1;
    margin-bottom: 5px;
    font-size: 0.85rem;
    flex-grow: 1;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3px;
    text-align: center;
}

.btn {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #8b5cf6 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #6366f1 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
    scale: 1.02;
}

/* Cart Button */
.cart-container {
    position: fixed;
    top: 17px;
    right: 17px;
    z-index: 1000;
}

.cart-btn {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.cart-btn:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 50%, #64748b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(96, 165, 250, 0.3);
}

/* Coming Soon Message */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(96, 165, 250, 0.2);
    backdrop-filter: blur(10px);
}

.coming-soon-svg {
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(96, 165, 250, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

.coming-soon h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #f1f5f9;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.coming-soon p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    flex-shrink: 0;
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Snipcart Custom Styling */
#snipcart,
#snipcart *,
.snipcart,
.snipcart * {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Snipcart cart sidebar styling */
.snipcart-modal {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.snipcart-modal__container {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Snipcart text elements */
.snipcart__font--default,
.snipcart__font--primary,
.snipcart__font--secondary {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Large grid responsive - single column on tablets and smaller */
    .category-grid.large-grid,
    #products-grid.large-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 95%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: left;
    }
    
    .products h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }
    
    /* Large grid already handled above at 1024px */
    
    .product-card {
        width: 100%;
        max-width: 360px;
    }
    
    .cart-container {
        top: 8.5px;
        right: 8.5px;
    }
    
    .coming-soon h2 {
        font-size: 2.5rem;
    }
    
    .coming-soon p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
}
