/* Fix for admin wrapper */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 280px;
    background: #1e2a3a;
    color: white;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-content {
    flex: 1;
    padding: 2rem;
    background: #f8fafc;
}
/* Ensure product card styles don't break admin */
.product-card, .product-grid { /* reset if needed */ }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background: #fafafc;
    color: #1a1e2b;
    line-height: 1.5;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eef2f6;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
}
.logo i {
    color: #2c7da0;
    margin-right: 0.5rem;
}
.nav-links a {
    text-decoration: none;
    margin-left: 1.8rem;
    color: #2c3e50;
    font-weight: 500;
    transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: #2c7da0;
}
.cart-count {
    background: #2c7da0;
    color: white;
    border-radius: 30px;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    padding: 3rem 2rem;
    border-radius: 0 0 40px 40px;
    margin-bottom: 2rem;
}
.hero-content {
    flex: 1;
    padding-left: 2rem;
}
.hero-badge {
    background: #2c7da0;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
    max-width: 500px;
}
.btn-primary {
    background: #1e3a5f;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #2c7da0;
    transform: translateY(-2px);
}
.btn-secondary {
    background: #f0f2f5;
    color: #1e3a5f;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    border: 1px solid #ddd;
}
.hero-image {
    flex: 1;
    height: 350px;
    background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
    border-radius: 30px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin: 3rem 0 2rem;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}
.section-header p {
    color: #6c757d;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
}
.product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}
.product-card:hover .product-image img {
    transform: scale(1.03);
}
.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e53e3e;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
}
.low-stock { background: #f59e0b; }
.out-stock { background: #a0aec0; }
.product-info {
    padding: 1.2rem;
}
.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.product-desc {
    color: #718096;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a5f;
}
.add-to-cart-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.add-to-cart-form input {
    width: 55px;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    text-align: center;
}
.add-to-cart-form button {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
}
/* Cart Page */
.cart-items {
    background: white;
    border-radius: 24px;
    overflow: hidden;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid #edf2f7;
}
.item-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.item-quantity {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.item-quantity input {
    width: 70px;
    padding: 0.4rem;
    border-radius: 30px;
    border: 1px solid #ccc;
    text-align: center;
}
.remove-btn {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 1.2rem;
    cursor: pointer;
}
.cart-summary {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.grand-total {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0.5rem;
}
.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}
.empty-cart {
    text-align: center;
    padding: 4rem;
    background: white;
    border-radius: 24px;
}
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: #718096;
    border-top: 1px solid #edf2f7;
}
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-content { padding-left: 0; }
    .hero h1 { font-size: 2rem; }
    .navbar { flex-direction: column; gap: 1rem; }
    .nav-links a { margin: 0 0.8rem; }
}