 
/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: #333;
    color: #fff;
    padding: 20px 0;
}

header h1 {
    float: left;
}

header .container {
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
}

nav ul {
    float: right;
    list-style: none;
    display: flex;
    gap: 10px
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

header::after {
    content: "";
    display: table;
    clear: both;
}

main {
    padding: 30px 0;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    color: #e44d26;
    margin: 10px 0;
}

.btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background: #555;
}

.admin-btn {
    background: #4CAF50;
}

.admin-btn:hover {
    background: #45a049;
}

/* Product Detail */
.product-detail {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.product-detail img {
    max-width: 400px;
    height: auto;
}

.product-info {
    flex: 1;
}

/* Forms */
.login-form, .product-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
}

.error {
    color: #e44d26;
    margin-bottom: 15px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.admin-table th {
    background: #333;
    color: #fff;
}

.admin-table tr:nth-child(even) {
    background: #f9f9f9;
}
/* Hero Banner */
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #ff5252;
}

/* Featured Section */
.featured-section {
    padding: 50px 0;
    text-align: center;
}

.featured-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.featured-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-item {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.featured-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.featured-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-item h3 {
    margin: 15px 0;
    font-size: 1.3rem;
}

.featured-item p {
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 15px;
}

.view-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.view-button:hover {
    background-color: #555;
}

/* Categories Section */
.categories-section {
    padding: 50px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.categories-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.categories-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    width: 350px;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.category-overlay a {
    color: white;
    text-decoration: none;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s;
}

.category-overlay a:hover {
    background-color: white;
    color: #333;
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    padding: 50px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    flex: 1;
    padding-right: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.learn-more {
    display: inline-block;
    margin-top: 20px;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.learn-more:hover {
    color: #ff5252;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-banner {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .about-section {
        flex-direction: column;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .featured-item {
        width: 100%;
        max-width: 300px;
    }
    
    .category-card {
        width: 100%;
        max-width: 350px;
    }
}
/* Auth Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.auth-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #ff6b6b;
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-btn:hover {
    background-color: #ff5252;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #ff5252;
    text-decoration: underline;
}

.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert.error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}
/* Basic styling for the cart system */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

.product-card img {
    width: 100%;
    object-fit: cover;
    height: 170px;
    border-radius: 5px;

}

.price {
    font-weight: bold;
    color: #e67e22;
    font-size: 1.2em;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #2980b9;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cart-table th, .cart-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.cart-table th {
    background: #f2f2f2;
}

.qty-input {
    width: 50px;
    padding: 5px;
}

.cart-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.btn-checkout {
    background: #2ecc71;
}

.btn-checkout:hover {
    background: #27ae60;
}

.btn-remove {
    color: #e74c3c;
    text-decoration: none;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.checkout-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.checkout-form {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-submit {
    background: #2ecc71;
    width: 100%;
    padding: 10px;
    font-size: 1.1em;
}

.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.order-summary {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.order-total {
    font-size: 1.2em;
    text-align: right;
    margin-top: 15px;
}
/* Checkout System Styles */
.empty-cart {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 5px;
}

.empty-cart p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .cart-container {
        grid-template-columns: 2fr 1fr;
    }
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th, .cart-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.cart-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.qty-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-input {
    width: 60px;
    padding: 8px;
    text-align: center;
}

.btn-update {
    padding: 8px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-update:hover {
    background: #2980b9;
}

.btn-remove {
    color: #e74c3c;
    text-decoration: none;
}

.btn-remove:hover {
    text-decoration: underline;
}

.cart-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-row.grand-total {
    font-weight: bold;
    font-size: 1.1em;
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

.cart-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}

.btn:hover {
    background: #2980b9;
}

.btn-checkout {
    background: #2ecc71;
}

.btn-checkout:hover {
    background: #27ae60;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Checkout Page Styles */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.checkout-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .checkout-columns {
        grid-template-columns: 2fr 1fr;
    }
}

.checkout-form {
    background: white;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-summary {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 5px;
    position: sticky;
    top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.payment-methods {
    margin: 20px 0;
}

.payment-method {
    margin-bottom: 15px;
}

.payment-method input {
    margin-right: 10px;
}

.terms {
    margin: 25px 0;
}

.terms label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms a {
    color: #3498db;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.btn-place-order {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}

.btn-place-order:hover {
    background: #27ae60;
}

/* Order Confirmation Styles */
.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

.confirmation-header {
    margin-bottom: 40px;
}

.confirmation-icon {
    font-size: 80px;
    color: #2ecc71;
    margin: 20px 0;
}

.order-number {
    font-size: 1.2em;
    color: #555;
}

.confirmation-message {
    margin-bottom: 30px;
    font-size: 1.1em;
}

.order-details {
    background: white;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: left;
    margin-bottom: 30px;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 576px) {
    .confirmation-actions {
        flex-direction: row;
        justify-content: center;
    }
}
.auth-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-form h2 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a76a8;
    box-shadow: 0 0 0 2px rgba(74, 118, 168, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #4a76a8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-btn:hover {
    background-color: #3a5f8a;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: #4a76a8;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
/* Cart styles */
.cart-dropdown {
    position: relative;
    display: inline-block;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 10px;
}

.cart-count {
    display: none;
    background-color: #e63946;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    margin-left: 5px;
}

.cart-preview {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 300px;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 15px;
}

.cart-dropdown:hover .cart-preview {
    display: block;
}

.cart-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    margin-right: 10px;
}

.item-details {
    flex-grow: 1;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.update-quantity {
    width: 50px;
    padding: 3px;
}

.remove-from-cart {
    background: none;
    border: none;
    color: #e63946;
    cursor: pointer;
    font-size: 18px;
}

.cart-subtotal {
    font-weight: bold;
    text-align: right;
    margin: 15px 0;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.toast.error {
    background-color: #f44336;
}