/* =================================================================
   GLOBAL & THEME
================================================================= */
:root {
    /* Deep Forest Theme */
    --brand-color: #27ae60; /* Your original green */
    --brand-grad: linear-gradient(120deg, #2ecc71, #27ae60);
    --dark-green: #224F34; /* Deep forest green */
    --accent: #f1c40f;     /* Your original accent */
    --text-dark: #1a1a1a;   /* Darker text for better contrast */
    --text-light: #f6f7f9;
    --bg-light: #fcfdfc;   /* A very light green-tinted white */
    --glass: rgba(255, 255, 255, 0.85);
    --border-light: rgba(0, 0, 0, 0.08);
    --form-bg: #ffffff;
    --form-border: #ddd;

    /* Fonts */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--dark-green);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-color);
    margin: 10px auto 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

button,
.btn-primary {
    cursor: pointer;
    border: none;
    transition: 0.3s;
    font-family: var(--font-body);
    padding: 12px 25px;
    border-radius: 50px;
    background: var(--brand-color);
    color: white;
    font-weight: 700;
}

button:hover,
.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

img {
    max-width: 100%;
    display: block;
}

/* =================================================================
   NAVBAR
================================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(230, 245, 235, 0.7), rgba(210, 235, 220, 0.5));
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(12, 18, 22, 0.04);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav-left img { 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    object-fit: cover; 
}
.nav-left h1 { 
    font-size: 20px; 
    color: var(--dark-green);
    font-family: var(--font-heading);
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}
.search {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--glass);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    max-width: 400px;
    width: 100%;
}
.search input {
    border: none;
    outline: none;
    background: transparent;
    padding: 6px 10px;
    flex: 1;
    font-family: var(--font-body);
}
.search button {
    background: var(--accent);
    color: #2c3e50;
    border: none;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
}
.search button:hover {
    background: var(--brand-grad);
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 16px;
    align-items: center; /* Align auth buttons */
}
.nav-links a {
    font-weight: 600;
    color: var(--dark-green);
    padding: 6px;
    font-size: 0.95rem;
    position: relative;
}

/* Nav Link Hover Effect */
.nav-links a:not(.cta):not(.auth-btn)::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0; 
    height: 2px;
    width: 0%;
    background-color: var(--brand-color);
    transition: width 0.3s ease;
}
.nav-links a:not(.cta):not(.auth-btn):hover::after {
    width: 100%;
    left: 0; 
}
.nav-links a:hover { color: var(--brand-color); }

.cta {
    background: var(--brand-color);
    color: white;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}
.cta:hover {
    background: var(--dark-green);
    color: white;
    box-shadow: 0 6px 16px rgba(34, 79, 52, 0.3);
    transform: translateY(-2px);
}

.cart-btn {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    position: relative;
}
.cart-btn:hover {
    background: var(--accent);
    color: #2c3e50;
    transform: translateY(-2px);
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--text-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

@media(max-width: 900px){
    .nav-container { flex-direction: column; gap:10px; }
    .nav-center { order:2; width:100%; justify-content:center; margin:10px 0; }
    .nav-right { order:3; justify-content:center; flex-wrap: wrap; gap:8px; }
    .nav-links { flex-wrap: wrap; justify-content:center; gap:8px; }
}

/* =================================================================
   NEW HOME PAGE: HERO
================================================================= */
.hero-section {
    height: 60vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('Images/forest-bg.jpg'); /* <<< ADD YOUR FOREST IMAGE HERE */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-btn {
    background: var(--brand-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}
.hero-btn:hover {
    background: var(--accent);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =================================================================
   NEW HOME PAGE: CATEGORIES
================================================================= */
.categories-section {
    padding-top: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    transition: 0.3s ease;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: brightness(0.9);
}

.category-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 0;
}

/* =================================================================
   NEW HOME PAGE: PRODUCT LISTS (Carousel)
================================================================= */
.product-carousel {
    padding-top: 30px;
}

.product-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 280px; /* Width of each card */
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px;
    /* Fancy scrollbar (optional) */
    scrollbar-width: thin;
    scrollbar-color: var(--brand-color) var(--bg-light);
}

/* Reusable Product Card */
.product-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-info h3 {
    font-size: 1.2rem;
    color: var(--dark-green);
    margin-bottom: 5px;
    flex-grow: 1;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-color);
    margin-bottom: 15px;
}

.product-card-btn {
    background: var(--dark-green);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}
.product-card-btn:hover {
    background: var(--brand-color);
}

/* =================================================================
   SHOP PAGE (order_now.php)
================================================================= */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}


/* =================================================================
   NEW HOME PAGE: SERVICES
================================================================= */
.services-section {
    background: #f4f9f4; /* Light green background */
    border-radius: 15px;
    margin-top: 30px;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--brand-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card p {
    line-height: 1.6;
    color: #555;
}

@media(max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   NEW HOME PAGE: REVIEWS (Using your style)
================================================================= */
.reviews-section {
    padding-top: 30px;
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
/* This is your .review-card style from the product page */
.review-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: 0.3s;
    border-top: 4px solid var(--accent);
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.review-card p {
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
}
.review-card .stars {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.review-card strong {
    color: var(--dark-green);
}

/* =================================================================
   PRODUCT DETAIL PAGE
================================================================= */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
.product-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-images img.main-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-images img.main-img:hover { transform: scale(1.02); }
.thumbnails { display: flex; gap: 12px; }
.thumbnails img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}
.thumbnails img:hover {
    border-color: var(--brand-color);
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.product-info h1 {
    font-size: 2.5rem;
    color: var(--dark-green);
    font-family: var(--font-heading);
}
.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-color);
}
.stock { font-size: 1rem; color: #555; }
.tags { display: flex; gap: 10px; }
.tags span {
    background: var(--dark-green);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.description-wide {
    margin-top: 16px;
    line-height: 1.6;
    color: #333;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.detail-card {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
}
.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.detail-card h4 {
    margin-bottom: 6px;
    color: var(--brand-color);
}
.detail-card p { font-size: 0.85rem; color: #555; }

.quantity-add {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}
.quantity-add input,
.quantity-add button {
    font-size: 1rem;
    padding: 12px;
}
.quantity-add input[type="number"] {
    width: 70px;
    border-radius: 12px;
    border: 1px solid #ccc;
    text-align: center;
    font-weight: 700;
}
.quantity-add button {
    padding: 12px 25px;
    border-radius: 50px;
    background: var(--brand-color);
    color: white;
    font-weight: 700;
}
.quantity-add button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}
.quantity-add .buy-now {
    background: var(--accent);
    color: var(--text-dark);
}
.quantity-add .buy-now:hover {
    background: var(--brand-color);
    color: white;
}

.seasons { margin-top: 20px; }
.seasons h3 { color: var(--dark-green); margin-bottom: 12px; }
.seasons span {
    display: inline-block;
    background: #eafaf1;
    color: var(--dark-green);
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 6px;
    font-weight: 600;
}

.description-wide-secondary {
    margin-top: 40px;
    line-height: 1.6;
    color: #333;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Reviews on Product Page */
.reviews { margin-top: 40px; }
.reviews h3 {
    color: var(--dark-green);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
}
.review-form {
    background: #f4f9f4;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.review-form input, .review-form textarea {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
    width: 100%;
    font-family: var(--font-body);
}
.review-form button {
    width: 150px;
    padding: 12px;
    border-radius: 50px;
    background: var(--brand-color);
    color: white;
    font-weight: 700;
}
.review-form button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

@media(max-width:900px){
    .product-page{ grid-template-columns:1fr; }
    .thumbnails{ justify-content:center; }
    .quantity-add{ flex-direction:column; gap:12px; }
}

/* =================================================================
   AUTH: LOGIN/REGISTER
================================================================= */
.auth-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.auth-container h1 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--form-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}
.form-message.success {
    background: #eafaf1;
    color: var(--dark-green);
    border: 1px solid var(--brand-color);
}
.form-message.error {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #c0392b;
}

.auth-container .btn-primary {
    width: 100%;
    font-size: 1.1rem;
}

.auth-container .auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #555;
}
.auth-container .auth-switch a {
    color: var(--brand-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Auth buttons in Navbar */
.auth-btn {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: 0.3s;
}
.auth-btn.login {
    background: #fff;
    color: var(--dark-green);
    border: 1px solid var(--border-light);
}
.auth-btn.login:hover {
    background: #f4f4f4;
}
.auth-btn.register {
    background: var(--dark-green);
    color: #fff;
}
.auth-btn.register:hover {
    background: var(--brand-color);
}

/* =================================================================
   CART PAGE
================================================================= */
.cart-container {
    max-width: 1000px;
    margin: 40px auto;
}
.cart-empty-message {
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.cart-empty-message h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 10px;
}
.cart-empty-message .btn-primary {
    margin-top: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}

.cart-table th, .cart-table td {
    padding: 20px;
    text-align: left;
}

.cart-table thead {
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}
.cart-table th {
    font-weight: 700;
    color: #555;
}
.cart-table tbody tr {
    border-bottom: 1px solid #eee;
}
.cart-table tbody tr:last-child {
    border-bottom: none;
}

.cart-item-details {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-item-details img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-details a {
    font-weight: 600;
    color: var(--dark-green);
}
.cart-item-details a:hover {
    color: var(--brand-color);
}

.cart-quantity-input {
    width: 60px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--form-border);
    text-align: center;
}

.btn-remove-item {
    color: #c0392b;
    font-weight: 700;
    background: none;
    padding: 0;
}
.btn-remove-item:hover {
    text-decoration: underline;
    background: none;
    transform: none;
}
.btn-update-cart {
    background: var(--dark-green);
    padding: 8px 16px;
}

.cart-totals {
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    margin-top: 30px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.cart-totals h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 20px;
}
.cart-totals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 1.1rem;
}
.cart-totals-grid strong {
    font-weight: 700;
}
.cart-totals-grid .total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-color);
    border-top: 2px solid #eee;
    padding-top: 15px;
}
.cart-totals .btn-primary {
    width: 100%;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* =================================================================
   CHECKOUT PAGE
================================================================= */
.checkout-container {
    max-width: 900px;
    margin: 40px auto;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.checkout-form {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.checkout-form h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 20px;
}

.order-summary {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    height: fit-content; /* Make it stick */
    position: sticky;
    top: 100px; /* Offset for sticky navbar */
}
.order-summary h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 20px;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #555;
}
.summary-item span {
    max-width: 70%;
}
.summary-item.total {
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-green);
}
.order-summary .btn-primary {
    width: 100%;
    margin-top: 20px;
}

.order-success-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.order-success-container h1 {
    font-family: var(--font-heading);
    color: var(--brand-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.order-success-container p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .order-summary {
        order: -1; /* Move summary to top on mobile */
    }
}


/* =================================================================
   PROFILE & ORDER HISTORY
================================================================= */
.profile-container {
    max-width: 700px;
    margin: 40px auto;
}
.profile-card,
.order-history-container,
.order-detail-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}
.profile-card h2,
.order-history-container h2,
.order-detail-card h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 20px;
}

.order-list {
    list-style: none;
}
.order-list-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    transition: 0.3s;
}
.order-list-item:nth-child(odd) {
    background: #f9f9f9;
}
.order-list-item:hover {
    background: #f4f9f4;
}
.order-list-item span {
    font-size: 0.95rem;
}
.order-list-item strong {
    font-weight: 600;
    color: #333;
}
.order-status {
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-align: center;
}
.order-status.Pending { background: #fff8e1; color: #f57f17; }
.order-status.Shipped { background: #e3f2fd; color: #1565c0; }
.order-status.Completed { background: #eafaf1; color: var(--dark-green); }

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.order-detail-card h3 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}
.order-detail-card p {
    color: #555;
    line-height: 1.7;
}
.order-detail-card p strong {
    color: #333;
    min-width: 100px;
    display: inline-block;
}
.order-items-table {
    width: 100%;
    text-align: left;
    margin-top: 15px;
    border-collapse: collapse;
}
.order-items-table th, .order-items-table td {
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
}
.order-items-table .total-row {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid #333;
}

@media (max-width: 600px) {
    .order-list-item {
        grid-template-columns: 1fr 1fr;
    }
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* =================================================================
   BLOG PAGE (blog.php)
================================================================= */

.blog-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-post-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card-image a:hover img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}
.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark-green);
    margin: 0 0 10px 0;
}
.blog-card-title a {
    text-decoration: none;
    color: var(--dark-green);
}
.blog-card-title a:hover {
    color: var(--brand-color);
}

.blog-card-excerpt {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    flex-grow: 1; /* Pushes 'Read More' to bottom */
}

.btn-read-more {
    font-weight: 700;
    color: var(--brand-color);
    text-decoration: none;
    margin-top: 15px;
    align-self: flex-start;
}
.btn-read-more:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .blog-post-card {
        grid-template-columns: 1fr; /* Stack image on top */
    }
    .blog-card-image img {
        height: 250px;
    }
}


/* =================================================================
   SINGLE BLOG POST & COMMENT STYLES
================================================================= */
.single-post-container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}

.single-post-header {
    padding: 40px 40px 0 40px;
}
.single-post-header .blog-card-meta {
    font-size: 1rem;
}
.single-post-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--dark-green);
    margin: 10px 0 20px 0;
    line-height: 1.2;
}
.single-post-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin-top: 20px;
}

.single-post-content {
    padding: 30px 40px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}
.single-post-content h2,
.single-post-content h3 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin: 25px 0 10px 0;
}
.single-post-content p {
    margin-bottom: 20px;
}
.single-post-content ul {
    margin: 0 0 20px 20px;
}

.comment-section {
    max-width: 900px;
    margin: 30px auto 0 auto;
}

.comment-section h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 20px;
}

.comment-form {
    background: #f4f9f4;
    padding: 20px;
    border-radius: 12px;
}

.comment-list {
    margin-top: 30px;
}

.comment {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}
.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.comment-body {
    flex-grow: 1;
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.comment-author {
    font-weight: 700;
    color: var(--dark-green);
}
.comment-date {
    font-size: 0.85rem;
    color: #888;
}
.comment-text {
    color: #555;
    line-height: 1.6;
}

/* =================================================================
   CONTACT PAGE
================================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.contact-info {
    line-height: 1.7;
}
.contact-info h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 15px;
}
.contact-info p {
    color: #555;
    margin-bottom: 20px;
}
.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #333;
}
.contact-info .contact-item i {
    font-size: 1.2rem;
    color: var(--brand-color);
    width: 20px;
    text-align: center;
}
.contact-social {
    margin-top: 25px;
}
.contact-social a {
    display: inline-block;
    margin-right: 15px;
    color: var(--dark-green);
    font-size: 1.5rem;
}
.contact-social a:hover {
    color: var(--brand-color);
}

.contact-form h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* =================================================================
   FOOTER
================================================================= */
footer {
    background: var(--dark-green); /* Changed to deep forest green */
    color: var(--text-light);
    padding: 50px 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.footer-logo { text-align: left; }
.footer-logo img {
    width: 80px; /* Adjusted size */
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    background: white; /* Added background for visibility */
}
.footer-logo h2 {
    margin: 0;
    font-size: 22px;
    font-family: var(--font-heading);
}
.footer-logo p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-family: var(--font-heading);
    border-bottom: 2px solid var(--accent); /* Your accent color */
    display: inline-block;
    padding-bottom: 5px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li { margin: 8px 0; }
.footer-column ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    opacity: 0.8;
}
.footer-column ul li a:hover {
    color: var(--accent);
    opacity: 1;
}

.newsletter p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}
.newsletter-form {
    display: flex;
    align-items: center;
}
.newsletter input {
    padding: 10px;
    width: 70%;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
    background: #ffffff;
    color: #333;
}
.newsletter button {
    padding: 10px 20px;
    background: var(--accent);
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-dark);
}
.newsletter button:hover {
    background: var(--brand-color);
    color: white;
}

.social { margin-top: 15px; }
.social a {
    display: inline-block;
    margin-right: 10px;
    color: var(--text-light);
    font-size: 18px;
    text-decoration: none;
}
.social a:hover { color: var(--accent); }
/* Optional: Style your image links */
.social a img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    padding: 4px;
}


.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    opacity: 0.7;
}

/* =================================================================
   NEW: PROFILE DISPLAY PAGE STYLES
================================================================= */

.profile-display-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.profile-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    padding: 30px;
    align-items: center;
}

.profile-pic-large-container {
    width: 200px;
    height: 200px;
}

.profile-pic-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f0f0f0;
}

.profile-username {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--dark-green);
    margin: 0 0 15px 0;
}

.profile-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #555;
    margin-bottom: 12px;
    font-size: 1rem;
}

.profile-info-item i {
    color: var(--brand-color);
    margin-top: 5px;
    width: 18px;
    text-align: center;
}

.profile-info-item p {
    margin: 0;
    line-height: 1.6;
}

.profile-actions {
    grid-column: 1 / -1; /* Span both columns */
    display: flex;
    /* New: Use flex-wrap for better responsiveness */
    flex-wrap: wrap; 
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* New: Base styles for buttons inside this container */
.profile-actions .auth-btn {
    flex: 1 1 200px; /* Allow buttons to grow and wrap */
    text-align: center;
    font-size: 1rem;
    padding: 12px 20px;
    /* Ensure auth-btn base styles (like border-radius) are applied */
    /* These are assumed from your main style.css */
}

/* Updated secondary button style */
.auth-btn-secondary {
    background: #f0f4f2; /* A light, clean secondary color */
    color: var(--dark-green); /* Use dark green text */
    font-weight: 600;
    border: 1px solid #ddd;
}
.auth-btn-secondary:hover {
    background: #e6ebe8; /* Slightly darker on hover */
    color: var(--brand-color); /* Highlight text on hover */
    border-color: #ccc;
    transform: translateY(-2px); /* Keep the nice hover effect */
}


/* Responsive for profile card */
@media (max-width: 768px) {
    .profile-card {
        grid-template-columns: 1fr; /* Stack on mobile */
        text-align: center;
        gap: 20px;
    }
    .profile-pic-large-container {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    .profile-info-item {
        text-align: left;
        align-items: center;
    }
    .profile-actions {
        flex-direction: column;
    }
    
    /* New: Ensure buttons take full width when stacked */
    .profile-actions .auth-btn {
        width: 100%;
    }
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top */
    border-radius: 12px;
    text-align: center;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 270px; /* From your design */
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.card h3 {
    margin: 8px 12px 4px 12px; /* Reduced top/bottom margin */
    font-size: 18px;
    color: #333;
    /* Added to prevent long names from breaking layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    color: #e74c3c; /* From your design */
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.oldprice {
    margin-top: 2px; /* Reduced margin */
    font-size: 12px;
    color: #555;
    /* Added for alignment */
    height: 1.2em; 
    line-height: 1.2em;
}

.oldprice del { 
    color: #999; 
    margin-right: 5px; 
}

/* This is the <a> tag wrapping the button */
.card-button-link {
    margin: 8px auto 12px auto;
    text-decoration: none;
}

.card button {
    padding: 8px 20px; /* Slightly smaller padding */
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.card button:hover {
    transform: scale(1.05);
}

/* Specific card styles from your design */

/* c2 for Indoor */
.c2 { border: 2px solid #27ae60; }
.c2 button { background: #27ae60; color: #fff; }
.c2 button:hover { background: #1e8449; }

/* c8 for New/Hot */
.c8 { position: relative; }
.c8::before {
    content: "New";
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 3px 7px;
    font-size: 12px;
    border-radius: 5px;
    z-index: 2; /* Ensure it's on top */
}
.c8 button { background: #c0392b; color: #fff; }
.c8 button:hover { background: #922b21; }

/* c14 for Outdoor */
.c14 { background: #ecf0f1; }
.c14 button { background: #2ecc71; color: #fff; }
.c14 button:hover { background: #27ae60; }

/* ... all your existing styles ... */

.cart-btn {
    position: relative; /* Needed for the count bubble */
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-auth .profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-auth .profile img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* =================================================================
  CSS FIXES
  Add this code to the BOTTOM of your main style.css file
  ================================================================= 
*/

/* --- 1. FIX FOR OVERLAPPING USERNAME/LOGOUT BUTTONS --- */
.nav-right .nav-auth {
    display: flex; /* This is the main fix */
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
}
.nav-right .nav-auth .profile-link {
    font-weight: 600;
    color: var(--dark-green);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 50px;
    background: rgba(39, 174, 96, 0.1); /* Light green background */
    transition: 0.3s;
    text-decoration: none; /* Added for consistency */
}
.nav-right .nav-auth .profile-link:hover {
    background: rgba(39, 174, 96, 0.2);
}
.nav-right .nav-auth .profile-pic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--brand-color);
}
.nav-right .nav-auth .logout-btn {
    background: #f1f1f1;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 50px;
    border: 1px solid #ddd;
    text-decoration: none; /* Added for consistency */
}
.nav-right .nav-auth .logout-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}


/* --- 2. STYLES FOR OFFER PRICE (Used on Shop & Home Page) --- */
.product-card-price .offer-price,
.price .offer-price-lg {
    color: var(--brand-color); /* Main price is the sale price */
    font-weight: 700;
}
.product-card-price .original-price,
.price .original-price-lg {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-left: 8px;
}
/* Larger price for product detail page */
.price .offer-price-lg {
    font-size: 2rem;
}
.price .original-price-lg {
    font-size: 1.5rem;
}




/* =================================================================
   NEW: CART PAGE STYLES
================================================================= */

.cart-empty-message {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.cart-empty-message h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 10px;
}
.cart-empty-message p {
    color: #555;
    margin-bottom: 25px;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.cart-items-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden; /* To keep table corners rounded */
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.cart-table th {
    background: #fcfdfc;
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
}

.cart-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-name a {
    font-weight: 600;
    color: var(--dark-green);
    text-decoration: none;
}
.cart-item-name a:hover {
    color: var(--brand-color);
}

.cart-quantity-form {
    display: flex;
    align-items: center;
}
.cart-quantity-input {
    width: 50px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 5px;
}
.cart-update-btn, .cart-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #777;
    padding: 5px;
}
.cart-update-btn:hover { color: var(--brand-color); }
.cart-remove-btn:hover { color: #e74c3c; }


/* Cart Summary Box */
.cart-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 25px;
    height: fit-content; /* Makes it stick to top */
    position: sticky;
    top: 90px; /* Adjust based on navbar height */
}
.cart-summary h3 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #555;
    margin-bottom: 12px;
}
.summary-row span:last-child {
    font-weight: 600;
}
.summary-row span:first-child {
    color: #333;
}

.cart-summary hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    /* Make table responsive on small screens */
    .cart-table thead {
        display: none;
    }
    .cart-table tr {
        display: block;
        margin-bottom: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-radius: 8px;
        overflow: hidden;
    }
    .cart-table td {
        display: block;
        text-align: right;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    .cart-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        padding-left: 15px;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: #555;
    }
    .cart-table tr {
        box-shadow: none;
        border: 1px solid #eee;
    }
    .cart-table td:last-child { border-bottom: 0; }
    .cart-item-image {
        display: flex;
        justify-content: flex-end;
    }
    .cart-quantity-form {
        justify-content: flex-end;
    }
}

/* =================================================================
   NEW: CHECKOUT PAGE STYLES
================================================================= */

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.checkout-form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 30px;
}
.checkout-form-container h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 20px;
}

/* Re-using .cart-summary for order summary on checkout page */
.checkout-container .cart-summary {
    position: static; /* No sticky needed here */
}

/* Order Success Page */
.order-success-container {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-top: 30px;
}
.order-success-container i {
    font-size: 4rem;
    color: var(--brand-color);
    margin-bottom: 20px;
}
.order-success-container h1 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 10px;
}
.order-success-container p {
    color: #555;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .checkout-form-container {
        order: 2; /* Form below summary on mobile */
    }
    .checkout-container .cart-summary {
        order: 1;
    }
}

/* =================================================================
   NEW: CART PAGE STYLES
================================================================= */

.cart-empty-message {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.cart-empty-message h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 10px;
}
.cart-empty-message p {
    color: #555;
    margin-bottom: 25px;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.cart-items-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden; /* To keep table corners rounded */
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.cart-table th {
    background: #fcfdfc;
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
}

.cart-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-name a {
    font-weight: 600;
    color: var(--dark-green);
    text-decoration: none;
}
.cart-item-name a:hover {
    color: var(--brand-color);
}

.cart-quantity-form {
    display: flex;
    align-items: center;
}
.cart-quantity-input {
    width: 50px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 5px;
}
.cart-update-btn, .cart-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #777;
    padding: 5px;
}
.cart-update-btn:hover { color: var(--brand-color); }
.cart-remove-btn:hover { color: #e74c3c; }


/* Cart Summary Box */
.cart-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 25px;
    height: fit-content; /* Makes it stick to top */
    position: sticky;
    top: 90px; /* Adjust based on navbar height */
}
.cart-summary h3 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #555;
    margin-bottom: 12px;
}
.summary-row span:last-child {
    font-weight: 600;
}
.summary-row span:first-child {
    color: #333;
}

.cart-summary hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 20px;
}

/* This styles the .auth-btn class when it's also a .checkout-btn */
.auth-btn.checkout-btn {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 12px 20px;
    display: flex; /* To add icon */
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.auth-btn.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(39, 174, 96, 0.3);
}


@media (max-width: 900px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    /* Make table responsive on small screens */
    .cart-table thead {
        display: none;
    }
    .cart-table tr {
        display: block;
        margin-bottom: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-radius: 8px;
        overflow: hidden;
    }
    .cart-table td {
        display: block;
        text-align: right;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    .cart-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        padding-left: 15px;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: #555;
    }
    .cart-table tr {
        box-shadow: none;
        border: 1px solid #eee;
    }
    .cart-table td:last-child { border-bottom: 0; }
    .cart-item-image {
        display: flex;
        justify-content: flex-end;
    }
    .cart-quantity-form {
        justify-content: flex-end;
    }
}

/* =================================================================
   NEW: CHECKOUT PAGE STYLES
================================================================= */

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.checkout-form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 30px;
}
.checkout-form-container h2 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 20px;
}

/* Re-using .cart-summary for order summary on checkout page */
.checkout-container .cart-summary {
    position: static; /* No sticky needed here */
}

/* Order Success Page */
.order-success-container {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-top: 30px;
}
.order-success-container i {
    font-size: 4rem;
    color: var(--brand-color);
    margin-bottom: 20px;
}
.order-success-container h1 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    margin-bottom: 10px;
}
.order-success-container p {
    color: #555;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .checkout-form-container {
        order: 2; /* Form below summary on mobile */
    }
    .checkout-container .cart-summary {
        order: 1;
    }
}

/* =================================================================
   NEW: Contact Info & Icon Styles
================================================================= */

/* This is the container for Address, Phone, Email */
.contact-info-item {
    display: flex;         /* Aligns icon and text side-by-side */
    /* THIS IS THE FIX: Vertically centers the icon with the text block */
    align-items: center;   
    margin-bottom: 25px;   /* Adds space BETWEEN each item */
}

/* Style the icon (map, phone, envelope) */
.contact-info-item i {
    font-size: 22px;             /* Make icon bigger */
    color: var(--brand-color); /* Use your brand's green */
    width: 45px;                 /* Give it a fixed width */
    flex-shrink: 0;              /* Prevents the icon from shrinking */
}

/* Style the text part (the <div> holding H3 and P) */
.contact-info-item div h3 {
    font-family: var(--font-heading); /* Use the nice heading font */
    font-size: 1.3rem;           /* Make the title (Address, Phone) bigger */
    color: var(--dark-green);    /* Use your dark green */
    margin-bottom: 5px;
}

.contact-info-item div p {
    font-size: 1rem;
    color: #555;                /* A softer color for the text */
    line-height: 1.5;
}

/* --- Styles for Social Icons (To add space & style) --- */

/* Style the "Follow Us" heading */
.contact-info-container h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark-green);
    margin-top: 30px;        /* Adds space *before* "Follow Us" */
    margin-bottom: 15px;
}

/* This is the container for the 5 icons */
.contact-social-icons {
    display: flex;     /* Use flexbox to arrange icons */
    flex-wrap: wrap;   /* Allow them to wrap on small screens */
    gap: 15px;         /* This adds 15px of space *between* each icon */
}

/* Style each individual icon link */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;         /* Set a fixed width */
    height: 45px;        /* Set a fixed height */
    background-color: #f0f4f2; /* A very light green tint */
    color: var(--dark-green); /* Use dark green for the icon */
    font-size: 20px;     /* Make the icon inside bigger */
    border-radius: 50%;  /* Make it a circle */
    text-decoration: none;
    transition: all 0.3s ease; /* Smooth hover effect */
}

/* The "Mindblowing" Hover Effect */
.social-icon:hover {
    background-color: var(--brand-color); /* On hover, use brand's green */
    color: #fff;                         /* Make the icon white */
    transform: translateY(-3px);        /* Add a nice little "lift" */
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.4); /* Add a green shadow */
}

/* =================================================================
   NEW: Order History Page Styles
================================================================= */

/* This is the main table on order.php */
.order-history-table {
    width: 100%;
    border-collapse: collapse; /* Cleaner look */
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    overflow: hidden; /* For the rounded corners */
}

/* Style the table headers (Order ID, Date, etc.) */
.order-history-table th {
    background-color: #f8f9fa; /* Light gray background */
    padding: 16px;
    text-align: left;
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* This adds the space FOR EACH order item (the row) */
.order-history-table td {
    padding: 20px 16px; /* Added more vertical padding for space */
    border-bottom: 1px solid #f0f0f0; /* Separator for each order */
    vertical-align: middle;
}

/* Remove border on the last item */
.order-history-table tbody tr:last-child td {
    border-bottom: none;
}

/* This fixes the button spacing, as you asked */
.order-history-table .auth-btn-secondary {
    padding: 10px 18px;  /* Adds space *inside* the button */
    margin: 5px 0;       /* Adds space *above/below* the button */
    display: inline-block; /* Ensures margins are applied */
    text-decoration: none;
}

/* Make the status badge look nice */
.order-status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: capitalize;
}
.order-status-badge.pending {
    background-color: #fff8e1;
    color: #f57f17;
}
.order-status-badge.shipped {
    background-color: #e3f2fd;
    color: #1565c0;
}
.order-status-badge.completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.order-status-badge.cancelled {
    background-color: #ffebee;
    color: #c62828;
}


/* --- Style for the File Input in Review Form --- */
.review-form input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}
.review-form input[type="file"]::file-selector-button {
    margin-right: 10px;
    border: none;
    background: #eee;
    padding: 6px 12px;
    border-radius: 4px;
    color: #555;
    cursor: pointer;
    transition: background .2s ease-in-out;
}
.review-form input[type="file"]::file-selector-button:hover {
    background: #ddd;
}
.review-form small {
    display: block;
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
}

/* --- Style for Displaying Review Images --- */
.review-list {
    margin-top: 30px;
}

.review-card {
    /* Existing styles... */
    padding-bottom: 20px; /* Ensure space at the bottom */
}

/* New header for review card */
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 10px;
}
.review-card-user strong {
    color: var(--dark-green);
    font-size: 1.1rem;
}
.review-date {
    font-size: 0.9em;
    color: #777;
    margin-left: 10px;
}
/* Ensure stars are on the right */
.review-card-header .stars {
    margin: 0; /* Remove default margin if any */
    flex-shrink: 0; /* Prevent stars from shrinking */
}

.review-comment {
    /* Styles for the comment text */
    margin-bottom: 15px;
}

.review-image {
    margin-top: 15px;
    max-width: 200px; /* Limit image size */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.review-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* --- Styles for Product Image Thumbnails --- */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between main image and thumbnails */
}

/* Ensure main image stays styled */
.product-images img.main-img {
    width: 100%;
    max-height: 500px; /* Limit height */
    object-fit: contain; /* Use contain to show whole plant */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    cursor: default; /* Remove pointer cursor from main image */
    transition: none; /* Remove hover effect from main image */
}
.product-images img.main-img:hover {
    transform: none; /* Remove hover scale from main image */
}


.thumbnails { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; /* Allow wrapping if many images */
    justify-content: flex-start; /* Align thumbnails to the start */
}

.thumbnails img {
    width: 70px; /* Size of thumbnails */
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent; /* Border for indicating active/hover */
    transition: border-color 0.3s ease, transform 0.2s ease;
}
.thumbnails img:hover {
    border-color: var(--brand-color);
    transform: scale(1.05);
}

/* Optional: Add a style for the 'active' thumbnail if needed */
/* .thumbnails img.active {
    border-color: var(--dark-green);
} */

/* Responsive adjustments if needed */
@media (max-width: 900px) {
    .thumbnails {
        justify-content: center; /* Center thumbnails on mobile */
    }
     .product-images img.main-img {
         max-height: 400px;
     }
}


/* --- Styles for Section Header with View All Link --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* Align title and link nicely */
    margin-bottom: 20px; /* Space below header */
    padding: 0 10px; /* Align with carousel padding */
}

.section-header .section-title {
    margin-bottom: 0; /* Remove default margin */
    text-align: left; /* Align title to the left */
}
.section-header .section-title::after {
     margin: 5px 0 0 0; /* Adjust line position */
}


.view-all-link {
    color: var(--brand-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.view-all-link:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* --- Styles for Carousel Wrapper and Buttons --- */
.carousel-wrapper {
    position: relative; /* Needed for absolute positioning of buttons */
    margin: 0 -10px; /* Counteract padding on product grid for edge buttons */
}

.product-carousel .product-grid {
    /* Existing styles: display: grid, grid-auto-flow, gap, overflow-x, padding */
    padding: 20px 10px; /* Keep padding for content */
    
    /* Hide scrollbar visually but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}
/* Hide scrollbar for Chrome, Safari and Opera */
.product-carousel .product-grid::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--dark-green);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.scroll-btn:hover {
    background-color: var(--brand-color);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.scroll-btn.left {
    left: -5px; /* Adjust position slightly outside */
}
.scroll-btn.right {
    right: -5px; /* Adjust position slightly outside */
}

/* Hide buttons initially if JS check determines no scroll needed */
.scroll-btn[style*="display: none"] {
     display: none !important; /* Use important if needed */
}


/* Message when carousel is empty */
.carousel-empty-message {
    text-align: center;
    width: 100%;
    color: #555;
    padding: 40px 20px;
    font-style: italic;
}

/* --- Adjustments for Your Card Styles within the Carousel --- */
/* Ensure cards have consistent height */
.product-grid .card {
    height: 100%; /* Make card fill grid cell height */
    display: flex;
    flex-direction: column;
}
.product-grid .card img {
     height: 250px; /* Slightly smaller image */
     object-fit: cover;
}
.product-grid .card h3 {
     font-size: 17px;
}
.product-grid .card .price {
     font-size: 15px;
}
.product-grid .card .oldprice {
     min-height: 1.2em; /* Reserve space even if empty */
}
.product-grid .card a {
    margin-top: auto; /* Push button to bottom */
}
.product-grid .card button {
     font-size: 13px;
     padding: 7px 15px;
}

/* Specific adjustment for c8 badge position if needed */
.product-grid .card.c8 {
    position: relative; /* Ensure badge positioning works */
}


/* --- Updated Hero Section Styles --- */
.hero-section {
    height: 100vh; /* Full viewport height */
    position: relative; /* Needed for absolute positioning of scroll indicator */
    /* *** REPLACE THIS URL with your actual nursery photo *** */
    /* Using a placeholder from unsplash */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.45)), url('https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1770&q=80'); 
    background-size: cover;
    background-position: center center; /* Center the image */
    background-attachment: fixed; /* Optional: Creates a parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* Remove top margin if body has default margin */
    margin: 0; 
}

/* Ensure content is styled */
.hero-content {
    animation: fadeIn 1.5s ease-in-out;
    padding: 20px; /* Add some padding for smaller screens */
    max-width: 800px; /* Limit width */
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Add shadow for better readability */
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.4rem); /* Responsive font size */
    margin-bottom: 35px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

.hero-btn {
    /* Existing styles */
    padding: 14px 30px;
    font-size: 1.1rem;
}

/* --- Style for Scroll Down Indicator (Optional) --- */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
}
.scroll-down-indicator:hover {
     color: rgba(255, 255, 255, 1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Make sure sections below hero don't overlap */
main > section:not(.hero-section) {
     position: relative; /* Ensure it respects document flow */
     z-index: 1; /* Keep it above fixed background if used */
     background-color: var(--bg-light); /* Give sections background */
}