:root {
    --primary-color: #111827;
    --accent-color: #ea580c;
    --accent-hover: #c2410c;
    --bg-light: #f9fafb;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { color: var(--text-main); background-color: var(--white); line-height: 1.6; }

/* Navigation */
header { position: sticky; top: 0; background: var(--white); border-bottom: 1px solid var(--border-color); z-index: 1000; }
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; }
.logo { font-size: 1.75rem; font-weight: 800; color: var(--accent-color); text-decoration: none; letter-spacing: -1px; }
.logo span { color: var(--text-muted); font-weight: 300; }
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: color 0.2s;}
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }
.btn-primary-outline { border: 2px solid var(--primary-color); padding: 10px 24px; border-radius: 4px; text-decoration: none; color: var(--primary-color); font-weight: 600; transition: all 0.2s;}
.btn-primary-outline:hover { background: var(--primary-color); color: var(--white); }

/* Buttons */
.btn-solid { background-color: var(--accent-color); color: var(--white); padding: 14px 32px; border-radius: 4px; text-decoration: none; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s; }
.btn-solid:hover { background-color: var(--accent-hover); }
.block-btn { display: block; width: 100%; text-align: center; }

/* Global Utilities */
.page-header { background: var(--bg-light); padding: 60px 32px; text-align: center; border-bottom: 1px solid var(--border-color); }
.header-content h1 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; letter-spacing: -1px; }
.catalog-container, .cart-container, .checkout-container { max-width: 1400px; margin: 60px auto; padding: 0 32px; }
.text-page-container { max-width: 800px; margin: 60px auto; padding: 0 32px; }
.text-page-container h2 { margin: 40px 0 20px; color: var(--primary-color); }
.text-page-container p { margin-bottom: 20px; color: var(--text-muted); }

/* Hero B2B Section */
.b2b-hero { max-width: 1400px; margin: 60px auto; padding: 0 32px; display: flex; gap: 60px; align-items: center; }
.hero-content { flex: 1; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin: 20px 0; color: var(--primary-color); letter-spacing: -1px; }
.hero-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 30px; }
.hero-image { flex: 1; }
.hero-image img { width: 100%; border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); }

/* Case Studies */
.case-studies { background: var(--bg-light); padding: 80px 32px; margin-top: 80px; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--primary-color); }
.studies-grid { max-width: 1400px; margin: 0 auto; display: flex; gap: 40px; justify-content: center; }
.study-card { background: var(--white); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); flex: 1; max-width: 500px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); justify-content: center; }
.study-card1 { background: var(--white); padding: 40px; border-radius: 18px; border: 2px solid var(--border-color); flex: 1; max-width: 800px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); justify-content: center; }
.stat { font-size: 3.5rem; font-weight: 800; color: var(--primary-color); line-height: 1; margin: 20px 0 5px; }
.tag { display: inline-block; background: var(--bg-light); padding: 6px 12px; border-radius: 4px; font-size: 0.85rem; margin-top: 20px; font-weight: 600; color: var(--text-muted); }

/* Product Grid */
.catalog-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
.product-card { border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; background: var(--white); display: flex; flex-direction: column; transition: transform 0.2s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }
.product-image { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 20px; }
.product-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.product-desc { color: var(--text-muted); flex-grow: 1; margin-bottom: 24px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 20px; }
.product-price { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); }

/* Cart & Checkout Layout */
.cart-container, .checkout-container { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.cart-items-section, .checkout-form-section { flex: 2; min-width: 300px; }
.cart-summary-section { flex: 1; min-width: 300px; background: var(--bg-light); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); position: sticky; top: 100px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid var(--border-color); }
.cart-item-info { display: flex; align-items: center; gap: 24px; flex: 2; }
.cart-item-info img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; }
.qty-controls { display: flex; align-items: center; gap: 15px; flex: 1; }
.qty-btn { width: 36px; height: 36px; border: 1px solid var(--border-color); background: var(--white); border-radius: 4px; cursor: pointer; font-weight: bold; }
.item-price { font-weight: 700; flex: 1; text-align: right; font-size: 1.1rem; }
.remove-btn { background: none; border: none; color: #dc2626; font-weight: bold; cursor: pointer; margin-left: 20px; font-size: 1.2rem; }

/* quote details txt area  */
.quote-details {
    width: 100%;
    min-height: 220px;
    padding: 18px 20px;
    resize: vertical;

    font-family: inherit;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--primary-color);

    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;

    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-details::placeholder {
    color: #9ca3af;
    opacity: 1;
    line-height: 1.6;
}

.quote-details:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.quote-details:hover {
    border-color: #9ca3af;
}


/* Summary & Forms */
.cart-summary-section h3 { margin-bottom: 20px; color: var(--primary-color); border-bottom: 1px solid var(--border-color); padding-bottom: 10px;}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--text-muted); font-weight: 500;}
.total-row { font-size: 1.25rem; font-weight: 800; color: var(--primary-color); border-top: 1px solid var(--border-color); padding-top: 15px; margin-top: 15px;}
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 6px; outline: none; }
.form-group input:focus { border-color: var(--accent-color); }

/* Corrected Footer */
footer { background: var(--primary-color); padding: 80px 32px 30px; color: var(--white); margin-top: 100px; }
.footer-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 20px; color: var(--accent-color); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #9ca3af; text-decoration: none; transition: color 0.2s; font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { max-width: 1400px; margin: 0 auto; border-top: 1px solid #374151; padding-top: 24px; text-align: center; color: #9ca3af; font-size: 0.9rem; }

/* Toast */
#toast { visibility: hidden; min-width: 250px; background-color: var(--primary-color); color: #fff; text-align: center; border-radius: 4px; padding: 16px; position: fixed; right: 30px; bottom: 30px; z-index: 2000; box-shadow: 0 10px 15px rgba(0,0,0,0.2); }
#toast.show { visibility: visible; }

/* =========================================
   QUOTE SUCCESS POPUP
   ========================================= */

.quote-success-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.quote-success-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Popup box */

.quote-success-card {
    position: relative;

    width: 100%;
    max-width: 420px;

    padding: 35px 30px;

    background: #ffffff;
    border-radius: 14px;

    text-align: center;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.20);

    transform: translateY(15px) scale(0.97);

    transition: transform 0.25s ease;
}

.quote-success-modal.show .quote-success-card {
    transform: translateY(0) scale(1);
}


/* Green check icon */

.quote-success-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ecfdf5;
    color: #10b981;

    font-size: 1.6rem;
}


/* Title */

.quote-success-card h2 {
    margin: 0 0 12px;

    color: var(--primary-color);

    font-size: 1.4rem;
    font-weight: 600;
}


/* Message */

.quote-success-card p {
    margin: 0 auto 24px;

    color: var(--text-muted);

    font-size: 0.95rem;
    line-height: 1.6;
}


/* X button */

.quote-modal-close {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: transparent;
    color: #9ca3af;

    cursor: pointer;

    font-size: 1rem;
}

.quote-modal-close:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}


/* Close button */

.quote-success-card .btn-solid {
    min-width: 110px;
    border: none;
    cursor: pointer;
}


/* Mobile */

@media (max-width: 600px) {

    .quote-success-card {
        max-width: 100%;
        padding: 32px 22px 28px;
    }

}

/* =========================================
   PRODUCT QUICK VIEW MODAL
   ========================================= */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-modal.show .product-modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.close-modal-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal-btn:hover { color: var(--primary-color); }

.modal-body {
    padding: 32px;
    display: flex;
    gap: 40px;
}

.modal-image-container { flex: 1; }
.modal-image-container img { width: 100%; border-radius: 8px; border: 1px solid var(--border-color); object-fit: contain; background: #f9fafb; max-height: 400px; }

.modal-info-container { flex: 1.5; display: flex; flex-direction: column; }
.modal-price { font-size: 1.75rem; font-weight: 800; color: var(--accent-color); margin-bottom: 16px; }
.modal-description { color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.specs-table th, .specs-table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.specs-table th { background: var(--bg-light); color: var(--primary-color); font-weight: 600; width: 40%; }
.specs-table td { color: var(--text-muted); }

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    background: #f9fafb;
}

@media (max-width: 768px) {
    .modal-body { flex-direction: column; gap: 20px; }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}
.lang-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.lang-link:hover {
    color: var(--primary-color);
}
.active-lang {
    color: var(--accent-color);
}
.lang-divider {
    color: var(--border-color);
    font-weight: 300;
}