/* 7055 Store - Component Styles */
/* Global styles are now in global.css */

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo styles are now in global.css */

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 100; /* Thin */
    font-family: var(--primary-font);
    transition: color 0.3s ease;
}

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

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-family: var(--primary-font);
}

/* Button styles are now in global.css - these are component-specific overrides */

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 200; /* Extra Light */
    font-family: var(--primary-font);
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--primary-font);
    color: var(--success-green);
    margin-bottom: 1rem;
}

/* Product Landing Page */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    align-items: start;
}

/* Hero Section for Homepage */
.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--primary-font);
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-family: var(--primary-font);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.product-image-large {
    width: 100%;
    height: 400px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.product-details {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--primary-font);
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--primary-font);
    color: var(--success-green);
    margin-bottom: 2rem;
}

/* Checkout Section */
.checkout-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-input {
    width: 80px;
    padding: 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    text-align: center;
    font-family: var(--primary-font);
    font-weight: 500;
    color: var(--text-color);
    background: var(--white);
    transition: border-color 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#card-element {
    padding: 1rem;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    margin: 1rem 0;
    background: var(--white);
    transition: border-color 0.3s ease;
}

#card-element:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkout-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Orders Page */
.orders-container {
    margin: 2rem 0;
}

.order-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.tracking-info {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Admin Panel */
.admin-container {
    max-width: 800px;
    margin: 2rem auto;
}

.admin-login {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.orders-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.orders-table th {
    background: #f9fafb;
    font-weight: 600;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
