/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fafaf9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Navigation (Centered Logo & Menu) --- */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 40px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-links {
    grid-column: 1;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #d97706;
}

.logo {
    grid-column: 2;
    font-size: 26px;
    font-weight: 800;
    color: #d97706;
    text-transform: capitalize;
    text-decoration: none;
    text-align: center;
}

.nav-actions {
    grid-column: 3;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    color: #d97706;
    background-color: #fef3c7;
}

.signup-btn {
    background-color: #d97706;
    color: white;
}

.signup-btn:hover {
    background-color: #b45309;
    color: white;
}

/* --- Shopping Cart Icon & Badge --- */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    color: #4b5563;
    padding: 8px;
    margin-right: 5px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.cart-btn:hover {
    color: #d97706;
}

.cart-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    height: 18px;
    width: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transform: translate(25%, -25%);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #fef3c7;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

/* --- Trust Features --- */
.trust-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 40px 20px;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.feature-box {
    text-align: center;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-box h4 {
    color: #1f2937;
    font-size: 18px;
    margin-bottom: 4px;
}

.feature-box p {
    color: #6b7280;
    font-size: 14px;
}

/* --- Live Search Bar --- */
.search-container {
    max-width: 600px;
    margin: 20px auto 10px auto;
    padding: 0 20px;
}

#searchInput {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#searchInput:focus {
    border-color: #d97706;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
}

/* --- Product Grid (Responsive) --- */
.products {
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: left;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.buy-btn, .cart-add-btn {
    flex: 1; 
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.buy-btn {
    background: #d97706;
    color: white;
}

.buy-btn:hover {
    background: #b45309;
}

.cart-add-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.cart-add-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* --- Checkout Page Styles --- */
.checkout-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.checkout-form-box, .order-summary-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 15px;
}

/* --- About & Contact Page Styles --- */
.page-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.page-title {
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.page-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* --- Auth Forms (Login & Signup) --- */
.login-container {
    width: 90%;
    max-width: 400px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    padding: 14px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: -60px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast.show {
    bottom: 40px; 
}

/* --- Pagination Styles --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #4b5563;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: #f3f4f6;
}

.page-btn.active {
    background-color: #d97706;
    color: white;
    border-color: #d97706;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px;
    background: #1f2937;
    color: white;
    margin-top: auto;
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .navbar {
        grid-template-columns: auto 1fr auto;
        padding: 15px 20px;
        gap: 10px;
    }
    .nav-links { display: none; }
    .logo { font-size: 20px; text-align: left; }
    .checkout-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}