:root {
    --primary: #00a86b; /* Exact rich emerald accent from layout */
    --primary-light: #e6f6f0;
    --dark: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --font: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font);
}

body {
    background: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

/* HEADER STYLING */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-area .logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-area .logo span {
    color: var(--primary);
}

.logo-area .logo-subtext {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.search-container {
    flex: 0 1 500px;
    display: flex;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    background: #f1f5f9;
    font-size: 14px;
    outline: none;
}

.search-container input:focus {
    background: var(--white);
    border-color: var(--primary);
}

.search-btn {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 0 16px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon { background: #e8f9ee; color: #25d366; }
.phone-icon { background: #f0f4f8; color: var(--dark); }

.contact-item .label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.contact-item .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

/* HERO BANNER SECTION */
.hero-section {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    margin: 20px 4%;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    color: var(--white);
    min-height: 340px;
}

.hero-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-content p {
    color: #a7f3d0;
    font-size: 15px;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 20px;
}

.hero-features .feat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
}

.feat strong { display: block; }
.feat small { color: #cbd5e1; }

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CATEGORY BAR STYLING */
.category-scroll-container {
    padding: 0 4%;
    margin-bottom: 24px;
}

.category-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.category-bar::-webkit-scrollbar { height: 4px; }
.category-bar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.cat-pill {
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--white);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* APP WORKSPACE LAYOUT */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    padding: 0 4%;
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.section-header h2 { font-size: 22px; font-weight: 800; color: var(--dark); }
.section-header .sub { font-size: 13px; color: var(--text-muted); }

.sort-dropdown select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    outline: none;
}

/* APP PRODUCT TILES */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card .img-frame {
    height: 160px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .img-frame img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
}

.product-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-card .moq-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.btn-outline-add {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.2s ease;
}

.btn-outline-add:hover {
    background: var(--primary);
    color: var(--white);
}

/* SIDE PANEL INQUIRY FLOW */
.inquiry-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    align-self: start;
    box-shadow: var(--shadow-sm);
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.inquiry-header h3 { font-size: 18px; font-weight: 800; color: var(--dark); }
.inquiry-header .badge {
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
}

.close-panel { display: none; font-size: 24px; border: none; background: none; cursor: pointer; }

.inquiry-items {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.inquiry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.inquiry-item img { width: 44px; height: 44px; object-fit: contain; background: #f8fafc; border-radius: 4px; }
.item-meta { flex: 1; }
.item-meta h4 { font-size: 13px; font-weight: 700; color: var(--dark); }
.item-meta small { font-size: 11px; color: var(--text-muted); }

.stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.stepper button {
    background: #f8fafc;
    border: none;
    width: 28px;
    height: 28px;
    font-weight: 700;
    cursor: pointer;
}

.stepper input {
    width: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 700;
    height: 28px;
}

.remove-item-btn {
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 18px;
    cursor: pointer;
    margin-left: 6px;
}

.inquiry-summary {
    background: #f8fafc;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.summary-row:last-child { margin-bottom: 0; }
.text-green { color: var(--primary); font-size: 16px; }

/* INQUIRY USER DETAILS FORM */
.inquiry-form h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    position: relative;
    margin-bottom: 12px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.input-group textarea {
    padding-left: 12px;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
}

.btn-submit-whatsapp {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-disclaimer {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* HORIZONTAL SYSTEM VALUE PROPOSITIONS BAR */
.value-footer-bar {
    background: #f1f5f9;
    padding: 24px 4%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    border-top: 1px solid var(--border-color);
}

.vf-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.vf-item strong { display: block; font-size: 13px; color: var(--dark); }
.vf-item small { font-size: 11px; color: var(--text-muted); }

/* FOOTER */
.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 20px 4%;
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 16px;
}

.footer-links a:hover { color: var(--white); }

/* SYSTEM TOAST ALERTS */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 1000; }
.toast-alert {
    background: var(--dark);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.floating-cart-trigger { display: none; }

/* MEDIA ADAPTATION RESPONSIVENESS */
@media (max-width: 992px) {
    .main-layout { grid-template-columns: 1fr; }
    .hero-section { grid-template-columns: 1fr; }
    .hero-image-wrapper { display: none; }
    
    .inquiry-panel {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100%;
        width: 340px;
        z-index: 200;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    .inquiry-panel.active { right: 0; }
    .close-panel { display: block; }
    
    .floating-cart-trigger {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: var(--primary);
        color: var(--white);
        padding: 12px 24px;
        border-radius: 30px;
        font-weight: 700;
        box-shadow: var(--shadow-md);
        gap: 10px;
        cursor: pointer;
        z-index: 90;
    }
    .count-badge { background: var(--white); color: var(--primary); padding: 1px 6px; border-radius: 10px; font-size: 11px; }
}