/* --- HERBAL FARMER THEME VARIABLES --- */
:root {
    --primary-color: #2e7d32; /* Organic Herbal Green */
    --primary-hover: #1b5e20;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #f7f9f8; /* Very soft earthy grey/green */
    --white: #ffffff;
    --border-color: #eaeaea;
}

/* RESET & TYPOGRAPHY */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { color: var(--text-color); background-color: var(--bg-light); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 15px 0; position: sticky; top: 0; z-index: 100; border-bottom: 3px solid var(--primary-color); }
.header-top { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 26px; font-weight: 700; color: var(--primary-color); letter-spacing: 1px; }
.search-bar input { padding: 10px 15px; width: 400px; border: 1px solid var(--border-color); border-radius: 20px 0 0 20px; outline: none; background: #f5f5f5; }
.search-bar button { padding: 10px 20px; background: var(--primary-color); color: var(--white); border: none; border-radius: 0 20px 20px 0; cursor: pointer; font-weight: 500; }
.user-actions { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.cart-btn { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--white); background-color: var(--primary-color); padding: 8px 18px; border-radius: 20px; }

/* LAYOUT: SIDEBAR + CONTENT (The Herbal Farmer Look) */
.shop-layout { display: flex; gap: 30px; margin: 40px auto; align-items: flex-start; }

/* LEFT SIDEBAR CATEGORIES */
.sidebar { width: 300px; background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; position: sticky; top: 100px; }
.sidebar h3 { font-size: 18px; color: var(--primary-color); border-bottom: 2px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; }
.sidebar ul li { margin-bottom: 12px; }
.sidebar ul li a { color: var(--text-color); font-size: 15px; display: block; padding: 5px 0; transition: all 0.2s; }
.sidebar ul li a:hover { color: var(--primary-color); padding-left: 5px; font-weight: 500; }

/* RIGHT PRODUCT GRID */
.content-area { flex: 1; }
.breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* HERBAL PRODUCT CARDS */
.product-card { background: var(--white); border: 1px solid var(--border-color); padding: 15px; text-align: center; transition: all 0.3s ease; position: relative; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--primary-color); }
.product-image-wrapper { margin-bottom: 15px; }
.product-card img { max-width: 100%; display: block; }
.product-card h3 { font-size: 15px; margin-bottom: 10px; font-weight: 500; color: var(--text-color); height: 45px; overflow: hidden; }
.product-card .price { font-size: 20px; font-weight: 700; margin-bottom: 15px; color: var(--primary-color); }

/* BUTTONS */
.btn { width: 100%; background: var(--white); color: var(--primary-color); padding: 10px; border: 1px solid var(--primary-color); cursor: pointer; border-radius: 4px; font-weight: 600; transition: all 0.3s ease; }
.btn:hover { background: var(--primary-color); color: var(--white); }

/* ANIMATIONS & TOASTS */
#toast-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; }
.toast { background: var(--primary-color); color: white; padding: 16px 24px; border-radius: 8px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); transform: translateX(120%); opacity: 0; transition: all 0.4s ease; }
.toast.show { transform: translateX(0); opacity: 1; }

/* =========================================
   CART & CHECKOUT PAGES STYLES 
   ========================================= */
.page-container { 
    display: flex; 
    gap: 40px; 
    margin: 50px auto; 
    align-items: flex-start; 
}

/* The Left Side (Items/Form) */
.main-content { 
    flex: 2; 
    background: var(--white); 
    padding: 40px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* The Right Side (Summary Box) */
.sidebar-summary { 
    flex: 1; 
    background: var(--white); 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    position: sticky; 
    top: 100px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Cart Item Rows */
.cart-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border-color); 
    padding: 25px 0; 
}
.cart-item:last-child { 
    border-bottom: none; 
}

/* Image and Title Alignment */
.item-details { 
    display: flex; 
    align-items: center; 
    gap: 20px; /* Creates perfect space between image and text */
    flex: 1;
}
.cart-item img { 
    width: 90px; 
    height: 90px; 
    border-radius: 8px; 
    object-fit: cover; 
    border: 1px solid var(--border-color); 
}
.item-details h4 { 
    font-size: 16px; 
    color: var(--text-color); 
    margin-bottom: 5px; 
    font-weight: 500; 
}

/* Form & Summary Specifics */
.summary-line { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 15px; color: var(--text-muted); }
.summary-total { border-top: 1px solid var(--border-color); padding-top: 15px; font-size: 20px; font-weight: 700; color: var(--primary-color); }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { margin-bottom: 8px; font-weight: 500; font-size: 14px; color: var(--text-color); }
.form-group input { padding: 15px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 14px; outline: none; background: #f9f9f9; transition: border-color 0.3s; }
.form-group input:focus { border-color: var(--primary-color); background: var(--white); }
.full-width-btn { width: 100%; margin-top: 20px; padding: 15px; font-size: 16px; background: var(--primary-color); color: var(--white); text-align: center; border-radius: 6px; font-weight: 600; border: none; cursor: pointer; transition: background 0.3s; display: block; }
.full-width-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }