/* Modern Aesthetic CSS */
:root {
    --primary: #4F46E5; /* Indigo */
    --primary-hover: #4338CA;
    --background: #F9FAFB;
    --surface: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border: #E5E7EB;
    --danger: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Glassmorphism Header */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.glass-header .logo a {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glass-header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.glass-header nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-outline {
    border: 2px solid var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    color: var(--primary) !important;
}

.btn-fill {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: none;
}
.btn-fill:hover {
    background: var(--primary-hover);
    color: white !important;
}

.search-bar form {
    display: flex;
    width: 300px;
}

.search-bar input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px 0 0 999px;
    outline: none;
}
.search-bar input:focus {
    border-color: var(--primary);
}

.search-bar button {
    padding: 0.5rem 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 999px 999px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: var(--primary-hover);
}

main {
    padding: 2rem 5%;
    min-height: calc(100vh - 120px);
}

/* Banner */
.banner {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    border-radius: 12px;
    padding: 3rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    width: 100%;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Products Container */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Modern Card Design */
.product-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-info .price {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-info .btn {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    font-weight: 500;
}

.product-info .btn:hover {
    background: var(--primary-hover);
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}
.footer-content p {
    color: var(--text-secondary);
}

/* Forms Container */
.form-container {
    background: var(--surface);
    padding: 2.5rem;
    max-width: 450px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}
.form-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s;
}
.btn-submit:hover {
    background: var(--primary-hover);
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}
.alert-error {
    background-color: #FEF2F2;
    color: var(--danger);
    border: 1px solid #FCA5A5;
}
.alert-success {
    background-color: #ECFDF5;
    color: #059669;
    border: 1px solid #6EE7B7;
}

.page-title {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Cart Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--surface);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.cart-table th, .cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.cart-table th {
    background: #F3F4F6;
    font-weight: 600;
    color: var(--text-secondary);
}

.cart-table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-summary {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    text-align: right;
}
.cart-summary h3 {
    margin-bottom: 1rem;
}
