:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #f3f4f6;
    --card-bg: #ffffff;
    --text: #111827;
    --text-light: #6b7280;
    --border: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

header {
    background: var(--card-bg);
    padding: 15px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand { font-size: 1.5rem; font-weight: bold; color: var(--primary); text-decoration: none; }
.auth-links a { margin-left: 15px; color: var(--text); text-decoration: none; font-weight: 500; }
.auth-links a.btn { background: var(--primary); color: white; padding: 8px 16px; border-radius: 999px; }

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

.search-bar {
    display: flex; gap: 10px; margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-bar input, .search-bar select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    cursor: pointer;
}

.product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

.product-brand { color: var(--text-light); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: bold; margin-bottom: 5px; }
.product-name { font-size: 1.25rem; font-weight: 600; margin: 0 0 10px 0; }
.variants-preview { font-size: 0.9rem; color: var(--text-light); }

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 100%; max-width: 500px;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.modal-title { margin: 0; font-size: 1.25rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); }

.variant-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.variant-info { flex: 1; }
.variant-size { font-weight: bold; font-size: 1.1rem; }
.variant-meta { font-size: 0.85rem; color: var(--text-light); }
.variant-price { font-weight: 600; color: var(--primary); margin-top: 5px; }

.qty-controls { display: flex; align-items: center; gap: 5px; }
.qty-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-weight: bold; }
.qty-input { width: 50px; text-align: center; border: 1px solid var(--border); border-radius: 4px; padding: 5px; }
.qty-group { display: flex; flex-direction: column; align-items: center; margin-left: 10px; }
.qty-label { font-size: 0.75rem; color: var(--text-light); margin-bottom: 3px; }

.floating-cart {
    position: fixed; bottom: 20px; right: 20px;
    background: var(--primary); color: white;
    padding: 15px 25px; border-radius: 999px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    font-weight: bold; cursor: pointer;
    display: none; align-items: center; gap: 10px;
    z-index: 900;
}

.floating-cart:hover { background: var(--primary-hover); }
.cart-badge { background: white; color: var(--primary); padding: 2px 8px; border-radius: 10px; font-size: 0.85rem; }
