/* 
 * Store Custom Premium Styles - Dawar Market
 * Modern, Glassmorphism, and Dynamic Animations
 */

:root {
    --store-primary: #2563eb;
    --store-primary-dark: #1d4ed8;
    --store-secondary: #f59e0b;
    --store-accent: #10b981;
    --store-bg: #f8fafc;
    --store-card-bg: #ffffff;
    --store-text-main: #1e293b;
    --store-text-muted: #64748b;
    --store-glass: rgba(30, 41, 59, 0.7);
    --store-glass-border: rgba(255, 255, 255, 0.3);
    --store-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --store-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --store-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-xl: 1.5rem;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
}

[data-theme="dark"] {
    --store-bg: #0f172a;
    --store-card-bg: #1e293b;
    --store-text-main: #f1f5f9;
    --store-text-muted: #94a3b8;
    --store-glass: rgba(30, 41, 59, 0.7);
    --store-glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--store-bg);
    color: var(--store-text-main);
    font-family: 'Outfit', 'Inter', 'Cairo', sans-serif;
    transition: background-color 0.3s ease;
}

/* Glassmorphism Header/Nav */
.store-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--store-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--store-glass-border);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.store-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--store-primary) 0%, var(--store-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero-v2 {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent);
    overflow: hidden;
}

.hero-v2 h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-v2 p {
    font-size: 1.25rem;
    color: var(--store-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Product Cards */
.product-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.product-card-v2 {
    background: var(--store-card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--store-glass-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: var(--store-shadow-lg);
    border-color: var(--store-primary);
}

.product-image-v2 {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f1f5f9;
}

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

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

.product-content-v2 {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category-v2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--store-primary);
    margin-bottom: 0.5rem;
}

.product-title-v2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-price-v2 {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-tag-v2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--store-text-main);
}

.btn-add-v2 {
    background: var(--store-primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-v2:hover {
    background: var(--store-primary-dark);
    transform: rotate(90deg);
}

/* Floating Cart */
.floating-cart-v2 {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 2000;
    background: var(--store-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-v2:hover {
    transform: scale(1.05) translateY(-5px);
}

.cart-count-v2 {
    background: white;
    color: var(--store-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Checkout Page Styles */
.checkout-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.checkout-card {
    background: var(--store-card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--store-glass-border);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--store-shadow-md);
}

.checkout-card-header {
    background: linear-gradient(135deg, var(--store-primary), var(--store-primary-dark));
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.checkout-card-body {
    padding: 1.5rem;
}

.checkout-form-group {
    margin-bottom: 1.5rem;
}

.checkout-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--store-text-main);
}

.checkout-form-group input, 
.checkout-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--store-glass-border);
    background: var(--store-bg);
    color: var(--store-text-main);
    font-family: inherit;
    transition: all 0.3s ease;
}

.checkout-form-group input:focus, 
.checkout-form-group textarea:focus {
    outline: none;
    border-color: var(--store-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-place-order {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--store-primary), var(--store-primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.order-success {
    text-align: center;
    max-width: 500px;
    margin: 5rem auto;
    padding: 2rem;
}

.order-success-icon {
    width: 80px;
    height: 80px;
    background: #10B981;
    color: white;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.order-number-display {
    background: var(--store-bg);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 1.5rem 0;
    letter-spacing: 2px;
    color: var(--store-primary);
    border: 2px dashed var(--store-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Tweak */
@media (max-width: 768px) {
    .hero-v2 h1 {
        font-size: 2.25rem;
    }
    .product-grid-v2 {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        padding: 1rem;
        gap: 1rem;
    }
    .product-content-v2 {
        padding: 1rem;
    }
    .product-title-v2 {
        font-size: 1rem;
    }
    .price-tag-v2 {
        font-size: 1.1rem;
    }
    
    .checkout-container {
        margin: 1.5rem auto;
    }
    
    .floating-cart-v2 {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        justify-content: center;
    }
}

