/* ==========================================================================
   KOBS FARMS - CLEAN & MODERN AGRIBUSINESS STYLES
   ========================================================================== */

:root {
    --primary-forest: #0d3822;   /* Deep organic green */
    --primary-dark: #072214;     /* Dark contrast */
    --primary-light: #185a38;    /* Fresh agricultural green */
    --accent-mango: #f59e0b;     /* Mango amber */
    --accent-gold: #ffb703;      /* Golden highlight */
    --accent-bright: #fbbf24;
    --wa-green: #027e2f;         /* WhatsApp brand color */
    --wa-hover: #1ebc59;
    --text-dark: #000000;
    --text-muted: #6b7280;
    --bg-light: #f7faf8;
    --border-color: #e5e7eb;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.25s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Poppins, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-whatsapp {
    background-color: var(--wa-green);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: var(--wa-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-whatsapp-lg {
    background-color: var(--wa-green);
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-lg:hover {
    background-color: var(--wa-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4);
}

.btn-primary {
    background-color: var(--primary-forest);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-forest);
}

.btn-full {
    width: 100%;
}

/* --- LOGO STYLING --- */
.logo-shield {
    display: flex;
    flex-direction: column;
    background: var(--primary-forest);
    padding: 6px 14px;
    border-radius: 6px;
    border-top: 3px solid var(--accent-mango);
    color: #ffffff;
    line-height: 1.1;
}

.logo-shield .est {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.logo-shield .logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.logo-shield .logo-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #d1fae5;
}

/* --- HEADER --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.top-bar {
    background: var(--primary-dark);
    color: #e5e7eb;
    font-size: 0.82rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-contact a:hover {
    color: var(--accent-mango);
}

.badge-cert {
    color: var(--accent-gold);
    font-weight: 700;
}

.top-socials {
    display: flex;
    gap: 14px;
}

.top-socials a:hover {
    color: var(--accent-mango);
}

.navbar {
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.nav-link:hover {
    color: var(--primary-forest);
}

/* Remove all bullets, dots, and markers from navigation */
.navbar ul,
.nav-menu,
.nav-menu li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

/* Ensure no pseudo-element bullets are being generated */
.nav-menu li::before,
.nav-menu li::after {
    content: none !important;
    display: none !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-forest);
    border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, rgba(7, 34, 20, 0.6), rgba(13, 56, 34, 0.5)),
                url('../assets/images/banner2.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 140px 0 90px;          
    min-height: 75vh;               
    display: flex;
    align-items: center;            
    box-sizing: border-box;
}

.hero-content {
    max-width: 80%;
    padding-top: 30px;              
}

.hero-grid {
    width: 100%;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero p {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 28px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-quick-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.84rem;
    color: #f1f5f9;
}

.stat-pill i {
    color: var(--accent-gold);
    margin-right: 5px;
}

/* --- 4 PILLARS STRIP --- */
.pillars-strip {
    background: #ffffff;
    padding: 35px 0;
    border-bottom: 1px solid var(--border-color);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.pillar-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* Crucial fix for grid stacking */
}

.pillar-icon {
    font-size: 1.4rem;
    color: var(--primary-forest);
    background: #ecfdf5;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.pillar-box > div {
    min-width: 0;
}

.pillar-box h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    word-wrap: break-word;
}

.pillar-box p {
    font-size: 0.78rem;
    color: var(--text-muted);
    word-wrap: break-word;
}

/* --- SECTIONS --- */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--primary-dark);
    color: #ffffff;
}

.section-title {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.eyebrow {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-light);
    display: block;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-forest);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

.rounded-img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* --- SPECIFICATIONS --- */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.spec-table-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.spec-table-card h3 {
    font-size: 1.3rem;
    color: var(--primary-forest);
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
}

.data-table td i {
    color: var(--primary-light);
    margin-right: 8px;
}

/* --- LOGISTICS SECTION --- */
.logistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.logistics-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.logistics-img {
    height: 180px;
}

.logistics-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logistics-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mode-badge {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.logistics-card-content h3 {
    font-size: 1.2rem;
    color: var(--primary-forest);
    margin-bottom: 10px;
}

.logistics-card-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-grow: 1;
}

.link-wa {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--wa-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-wa:hover {
    color: var(--wa-hover);
}

/* --- PACKHOUSE SECTION --- */
.packhouse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.packhouse-text h2 {
    font-size: 2.2rem;
    color: var(--primary-forest);
    margin-bottom: 16px;
}

.packhouse-text p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.assurance-list {
    list-style: none;
    margin-bottom: 30px;
}

.assurance-list li {
    font-size: 0.92rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.assurance-list li i {
    color: var(--primary-light);
    margin-top: 4px;
}

.packhouse-img-wrapper {
    position: relative;
}

.experience-tag {
    position: absolute;
    bottom: -15px;
    left: 20px;
    background: var(--primary-forest);
    color: #ffffff;
    padding: 15px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-left: 4px solid var(--accent-gold);
}

.experience-tag strong {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-gold);
}

.experience-tag span {
    font-size: 0.8rem;
    color: #e2e8f0;
}

/* --- CONTACT & WHATSAPP BUILDER --- */
.text-gold {
    color: var(--accent-gold) !important;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 50px;
}

.contact-side-info h2 {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.contact-side-info p {
    color: #94a3b8;
    margin-bottom: 30px;
}

.contact-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-point {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-point i {
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.contact-point strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #94a3b8;
}

.contact-point p {
    margin: 0;
    color: #ffffff;
    font-weight: 600;
}

.contact-form-box {
    background: #ffffff;
    color: var(--text-dark);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.contact-form-box h3 {
    font-size: 1.35rem;
    color: var(--primary-forest);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.contact-form-box h3 i {
    color: var(--wa-green);
}

.form-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-forest);
    box-shadow: 0 0 0 3px rgba(13, 56, 34, 0.1);
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding-top: 60px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: #ffffff; 
    opacity: 0.85; 
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
    opacity: 1;
}

.footer-col p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.brand-col p {
    margin-top: 14px;
    font-size: 0.88rem;
    color: #ffffff;
    opacity: 0.9;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent-mango);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 20px 0;
    font-size: 0.82rem;
    color: #ffffff;
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- ABOUT US SECTION --- */
.about-section {
    background-color: #ffffff;
    padding: 90px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary-forest, #0d3822);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-lead {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--primary-light, #185a38);
    margin-bottom: 16px;
    line-height: 1.5;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 25px;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.about-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
}

.about-feature-item i {
    color: #22c55e;
}

.about-img-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.about-img-frame img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.about-img-frame:hover img {
    transform: scale(1.03);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(7, 34, 20, 0.92);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}

.about-badge strong {
    display: block;
    font-size: 1rem;
    color: #ffb703;
    letter-spacing: 0.5px;
}

.about-badge span {
    font-size: 0.8rem;
    color: #e5e7eb;
}

/* ==========================================================================
   PRODUCTS & WHATSAPP CART SYSTEM
   ========================================================================== */

.products-section {
    background-color: #f7faf8;
    padding: 85px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(13, 56, 34, 0.9);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
}

.product-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f1f5f9;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 4px;
}

.product-name {
    font-size: 1.08rem;
    color: #0d3822;
    margin-bottom: 6px;
    font-weight: 700;
}

.product-desc {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0d3822;
    margin-bottom: 12px;
}

.card-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    border-top: 1px dashed #e5e7eb;
    padding-top: 12px;
}

.card-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    height: 38px;
}

.btn-card-qty {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 100%;
    font-size: 1.1rem;
    font-weight: bold;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    -webkit-user-select: none; 
    user-select: none;
}

.btn-card-qty:hover {
    background: #e5e7eb;
}

.card-qty-val {
    width: 32px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    line-height: 36px;
}

.btn-add-cart {
    background: #0d3822;
    color: #ffffff;
    padding: 0 16px;
    height: 38px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-add-cart:hover {
    background: #25d366;
    color: #ffffff;
}

/* --- FLOATING CART BUTTON --- */
.cart-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #000000;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s ease;
}

.cart-floating-btn:hover {
    transform: scale(1.08);
}

.cart-badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* --- CART DRAWER --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1001;
    display: none;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    z-index: 1002;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay.open {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #0d3822;
    color: #ffffff;
}

.cart-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-empty-text {
    text-align: center;
    color: #9ca3af;
    padding: 40px 0;
}

.cart-empty-text i {
    font-size: 3rem;
    margin-bottom: 12px;
    color: #d1d5db;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    color: #1f2937;
    margin-bottom: 3px;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0d3822;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.btn-qty {
    background: #e5e7eb;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qty:hover {
    background: #d1d5db;
}

.cart-qty-ctrl span {
    font-size: 0.88rem;
    font-weight: 600;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
}

.cart-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.cart-subtotal strong {
    color: #0d3822;
}

.cart-checkout-form .form-group-sm {
    margin-bottom: 10px;
}

.cart-checkout-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 4px;
}

.cart-checkout-form input,
.cart-checkout-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
}

.checkout-btn {
    margin-top: 12px;
}

.wa-order-note {
    font-size: 0.72rem;
    color: #6b7280;
    text-align: center;
    margin-top: 8px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Consolidated)
   ========================================================================== */

@media (max-width: 992px) {
    .hero-grid,
    .specs-grid,
    .packhouse-grid,
    .contact-wrapper,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-img-frame img {
        height: 320px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 25px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;     
    }
    
    .hero-content {
        margin: 20px;
        padding-top: 20px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Pillars Mobile Fix */
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .pillar-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: #ffffff;
        padding: 12px 8px;
    }

    .pillar-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .pillar-box h4 {
        font-size: 0.8rem;
    }
    
    .pillar-box p {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    /* Products Mobile Fix */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .product-img-wrap {
        height: 120px;
    }

    .product-details {
        padding: 10px;
    }

    .product-name {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .product-desc {
        font-size: 0.74rem;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    /* Stack Counter & Add Button on Mobile */
    .card-action-row {
        flex-direction: column !important; 
        align-items: stretch !important;   
        gap: 12px !important;              
        padding-top: 15px !important;
    }

    .card-qty-stepper {
        width: 100% !important;
        justify-content: space-between !important;
        height: 42px !important;
    }

    .btn-card-qty {
        width: 40px !important; 
        font-size: 1.3rem !important;
    }

    .card-qty-val {
        flex-grow: 1; 
        width: auto !important;
        line-height: 40px !important;
        font-size: 1rem !important;
    }

    .btn-add-cart {
        width: 100% !important;
        height: 42px !important;
        font-size: 0.9rem !important;
    }

    /* Cart Drawer Mobile Fix */
    .cart-drawer {
        right: auto; 
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        width: 90%;
        max-width: 90%;
        height: 80%;
        top: 10%; 
        border-radius: 16px;
        transition: transform 0.35s ease, opacity 0.35s ease;
        opacity: 0;
        pointer-events: none;
    }

    .cart-drawer.open {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .cart-overlay.open {
        display: block;
    }
}