:root {
    --primary: #2D7A3E;
    --primary-dark: #1E5A2B;
    --accent: #F2A93B;
    --bg: #F5F7F3;
    --text: #1A1A1A;
    --border: #E0E7E1;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
body { background: var(--bg); color: var(--text); line-height: 1.5; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; padding-bottom: 40px; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.web-header { background: var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 75px; }
.header-left { display: flex; align-items: center; gap: 12px; }
.logo-circle { width: 48px; height: 48px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 3px; flex-shrink: 0; }
.logo-circle img { width: 100% !important; height: 100% !important; object-fit: contain; border-radius: 50%; }
.logo-text .brand-name { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.1; }
.logo-text .tagline { font-size: 11px; color: #D1E7D5; font-weight: 500; display: block; margin-top: 2px; }

.header-right { display: flex; align-items: center; gap: 25px; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { font-weight: 600; color: #fff; font-size: 15px; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.action-icon { color: #fff; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.lang-toggle { background: #fff; color: var(--primary); padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; border: none; cursor: pointer; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 28px; color: #fff; cursor: pointer; }

/* ============================================================
   SIDEBAR & OVERLAY
   ============================================================ */
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s; }
.sidebar-backdrop.open { opacity: 1; visibility: visible; }
.mobile-sidebar { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: #fff; z-index: 999; transition: transform 0.3s; display: flex; flex-direction: column; }
.mobile-sidebar.open { transform: translateX(300px); }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--primary); color: #fff; }
.close-sidebar { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.sidebar-links { padding: 10px 0; flex: 1; overflow-y: auto; }
.sidebar-links a { display: flex; align-items: center; gap: 15px; padding: 16px 25px; color: #333; font-weight: 600; font-size: 15px; border-bottom: 1px solid #f0f0f0; }

/* ============================================================
   CATEGORIES SCROLL BAR
   ============================================================ */
.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 20px 0 10px 0;
    -webkit-overflow-scrolling: touch;
}
.category-scroll::-webkit-scrollbar { display: none; } /* Hide scrollbar */
.cat-chip {
    padding: 10px 20px;
    border-radius: 25px;
    background: #fff;
    border: 1px solid var(--border);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    flex-shrink: 0; /* Forces them into a single row */
}
.cat-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   PRODUCT GRID (2 per row on mobile, auto on desktop)
   ============================================================ */
.page-title { margin: 10px 0 20px 0; font-size: 24px; color: var(--primary); }
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; 
}
.product-card { 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    display: flex; 
    flex-direction: column; 
}
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: 15px; margin-bottom: 8px; line-height: 1.3; }
.product-info .cat { font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 6px; }
.product-info .price { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.btn-primary { background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; text-align: center; font-weight: 700; border: none; cursor: pointer; display: block; width: 100%; margin-top: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.web-footer { background: #1E3A28; color: #fff; margin-top: auto; border-top: 4px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding: 60px 0 40px 0; }
.footer-logo { width: 55px !important; height: 55px !important; max-width: 55px !important; background: #fff; border-radius: 50% !important; padding: 4px; object-fit: contain !important; }
.footer-brand h3 { font-size: 22px; font-weight: 800; color: #fff; margin: 0; }
.footer-bottom { background: #14261A; padding: 20px 0; text-align: center; font-size: 13px; color: #A8BFAE; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .header-container { flex-wrap: wrap; height: auto; padding: 15px 0; }
    .mobile-menu-btn { display: block; order: 3; }
    .header-right { display: none; }
    .header-left .brand-name { font-size: 16px; }
    .header-left .tagline { font-size: 10px; }
    .logo-circle { width: 40px; height: 40px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; padding: 40px 0 20px 0; }
}

@media (max-width: 600px) {
    /* Force EXACTLY 2 products per row */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    /* Make product cards compact for 2-column mobile view */
    .product-card { border-radius: 10px; }
    .product-card img { height: 140px !important; }
    .product-info { padding: 10px !important; }
    .product-info h3 { font-size: 13px !important; min-height: 34px; }
    .product-info .cat { font-size: 10px !important; }
    .product-info .price { font-size: 15px !important; margin-bottom: 10px; }
    .product-info .btn-primary { padding: 8px !important; font-size: 12px !important; border-radius: 6px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { justify-content: center; flex-direction: column; }
}
/* ============================================================
   TRACTOR SELECTION WIZARD CSS
   ============================================================ */

.wizard-container { 
    max-width: 700px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.wizard-header { 
    text-align: center; 
    margin-bottom: 30px; 
}

.wizard-header h2 { 
    font-size: 26px; 
    color: var(--primary); 
    margin-bottom: 8px; 
    font-weight: 800;
}

.wizard-header p { 
    color: var(--muted); 
    font-size: 15px; 
}

/* Progress Dots */
.step-indicator { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin-bottom: 35px; 
}

.step-dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    background: #D8E3D9; 
    transition: all 0.3s ease;
}

.step-dot.active { 
    background: var(--primary); 
    width: 30px; 
    border-radius: 5px; 
}

/* Selection Grid */
.selection-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
}

/* Selection Cards */
.selection-card { 
    background: #fff; 
    border: 2px solid var(--border); 
    border-radius: 16px; 
    padding: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    transition: all 0.2s ease; 
    cursor: pointer; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
}

.selection-card:hover { 
    border-color: var(--primary); 
    box-shadow: 0 8px 25px rgba(45,122,62,0.15); 
    transform: translateY(-3px); 
}

.selection-card h3 { 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--text); 
    margin: 0; 
}

.card-icon { 
    width: 40px; 
    height: 40px; 
    background: #E8F5E9; 
    color: var(--primary); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
}

/* Mobile Specific for Wizard */
@media (max-width: 600px) {
    .selection-grid { 
        grid-template-columns: 1fr; 
    }
    .wizard-header h2 { 
        font-size: 22px; 
    }
    .selection-card {
        padding: 18px;
    }
    .selection-card h3 {
        font-size: 16px;
    }
}
/* ============================================================
   CHECKOUT PAGE CSS
   ============================================================ */

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
    align-items: start;
}

/* Card Containers */
.checkout-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.checkout-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    font-weight: 800;
}

/* Form Elements */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Order Summary Box */
.summary-box {
    background: #F9FBF9;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row span:last-child {
    font-weight: 700;
    color: var(--text);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed var(--border);
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.wizard-details {
    background: #fff;
    border: 1px solid #E0E7E1;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .checkout-card {
        padding: 20px;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}