:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-office: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; transition: all 0.2s ease-in-out; }

body {
    background-color: var(--bg-office);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    display: grid;
    place-items: center;
    min-height: 100dvh; /* Dynamic viewport for mobile */
}
/* Header Container */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Premium blur effect */
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Logo Styling */
.header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary); /* Using the blue from earlier */
    margin: 0;
    letter-spacing: -0.5px;
    cursor: pointer;
}

/* Navigation Links */
.header nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Animated Hover Underline */
.header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.header nav a:hover {
    color: var(--primary);
}

.header nav a:hover::after {
    width: 100%;
}

/* Cart Specific Style (Optional) */
.header nav a[href="cart.php"] {
    background: #eff6ff;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
}

.header nav a[href="cart.php"]:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .header nav {
        gap: 1rem;
        width: 100%;
        justify-content: center;
        border-top: 1px solid #f1f5f9;
        padding-top: 0.75rem;
    }

    .header h1 {
        font-size: 1.2rem;
    }
}


/* Responsive Card */
.card-container {
    width: 100%;
    padding: 20px;
    max-width: 450px;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.card-header { text-align: center; margin-bottom: 2rem; }

h2 { font-size: 1.75rem; color: var(--text-main); margin-bottom: 0.5rem; }

.card-header p { color: var(--text-muted); font-size: 0.95rem; }

/* Form Elements */
.input-group { margin-bottom: 1.5rem; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fdfdfd;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Premium Button */
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:active { transform: translateY(0); }

/* Loader Overlay Styles */
.loader-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Mobile Optimizations */
@media (max-width: 480px) {
    .card { padding: 1.5rem; }
    h2 { font-size: 1.5rem; }
}


/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
}

/* Premium Hero with Glassmorphism */
.hero-section {
    position: relative;
    height: 450px;
    background: url('assets/img/store-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    background: rgba(15, 23, 42, 0.4); /* Dark tint for text contrast */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: brightness(0.8);
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Section Heading */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Product Cards - Premium Office White Style */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-image {
    background: #f8fafc;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Better for product photos */
    padding: 20px;
}

.product-info {
    padding: 1.5rem;
}

.category-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.product-info h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.price {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

/* Action Button */
.add-btn {
    width: 100%;
    padding: 12px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .container { padding: 2rem 15px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
