/* PokeStore Base CSS */
:root {
    --primary: #e3350d;
    --primary-hover: #c92f0b;
    --secondary: #3466af;
    --secondary-hover: #295392;
    --accent: #ffcb05;
    --background: #f4f5f9;
    --text: #333333;
    --card-bg: #ffffff;
    --border: #e2e8f0;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent) !important;
    text-shadow: 1px 1px 0 #3466af, -1px -1px 0 #3466af, 1px -1px 0 #3466af, -1px 1px 0 #3466af;
}

.logo:hover {
    text-decoration: none;
}

.navbar nav a {
    color: white;
    margin-left: 1.5rem;
    font-weight: 600;
}

.navbar nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

.cart-link {
    background: white;
    color: var(--primary) !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Main Block */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Buttons */
button, .btn-primary, .btn-secondary, .btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white !important;
}
.btn-secondary:hover {
    background-color: var(--secondary-hover);
    text-decoration: none;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 var(--secondary);
}

/* Grids */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

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

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.card-info .price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Product Show */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #e2e8f0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.rarity-holo-rare { background: linear-gradient(45deg, #ffcb05, #e3350d); color: white; }
.rarity-rare { background: #3466af; color: white; }

/* Shop Container (Sidebar + List) */
.shop-container {
    display: flex;
    gap: 2rem;
}
.filters {
    width: 250px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.filters input, .filters select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-sizing: border-box;
}

.product-list {
    flex: 1;
}

/* Cart & Tables */
.cart-table table, .data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.cart-table th, .cart-table td, .data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.cart-table th, .data-table th {
    background: #f8fafc;
    font-weight: 600;
}
.cart-summary {
    text-align: right;
    padding: 2rem 0;
}

/* Auth forms */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.auth-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.auth-container input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-sizing: border-box;
}
.auth-container button {
    width: 100%;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce3; color: #166534; }

/* Status Badges */
.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}
.status-pending { background: #f59e0b; }
.status-paid { background: #3b82f6; }
.status-shipped { background: #8b5cf6; }
.status-completed { background: #10b981; }
.status-cancelled { background: #ef4444; }

/* Dashboard layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.checkout-summary, .checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.checkout-form label { display: block; margin-bottom: 0.5rem;}
.checkout-form input { width: 100%; padding:0.75rem; margin-bottom:1rem; border:1px solid var(--border); border-radius:4px; box-sizing:border-box;}

/* Footer */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 2rem 0;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}
.footer-links a {
    color: #cbd5e1;
    margin-left: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail, .shop-container, .checkout-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}
