/* ==========================================================================
   UMECO VIRTUAL PRODUCT PAGE STYLES (MASTER)
   ========================================================================== */

/* --- 0. Global Reset & Typography --- 
   Kills the notorious browser edge padding and sets the ultra-fast system font */
html, body.umc-virtual-product-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrollbars */
}

/* Forces all elements to include padding/borders in their total width */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   1. HEADER SECTION
   ========================================================================== */

/* Top Dark Bar */
.vpw-topbar {
    background-color: #394149;
    color: #ffffff;
    font-size: 12px;
    padding: 8px 0;
}
.vpw-topbar-inner {
    max-width: 1200px; /* Locks the maximum width */
    width: 100%;       /* Ensures it shrinks on mobile devices */
    padding: 0 20px;   /* Adds breathing room on small screens */
    margin: 0 auto;    /* Centers the content */
}

/* Main White Header Bar */
.vpw-main-header {
    background-color: #f0f4f8;
    border-bottom: 5px solid #394149;
    padding: 12px 0;
}
.vpw-header-inner {
    max-width: 1200px; /* Locks the maximum width */
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;    /* Centers the content */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Image */
.vpw-site-logo {
    height: 35px;
    width: auto;
    display: block;
}

/* Mobile Hamburger Button (Hidden on Desktop & Tablet) */
.vpw-mobile-toggle {
    display: none !important;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 26px;
    color: #333333;
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
}

/* Right Navigation Menu */
.vpw-nav {
    display: flex;
    gap: 25px;
}
.vpw-nav a {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

/* ==========================================================================
   2. MAIN BODY CONTENT
   ========================================================================== */

/* Main Container */
.umc-pvp-main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    color: #333333;
    line-height: 1.6;
}

/* 2.1 Breadcrumbs (Top of main content) */
.umc-pvp-breadcrumbs {
    font-size: 14px;
    color: #333333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}
.umc-pvp-breadcrumbs a {
    color: #299b8e;
    text-decoration: none;
}
.umc-pvp-breadcrumbs a:hover {
    text-decoration: underline;
}

/* 2.2 Product Hero Grid (Image Left, Info Right) */
.umc-pvp-product-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 50px;
    margin-bottom: 25px;
    align-items: start;
}

/* Hero Grid Left: Image Wrapper */
.umc-pvp-image-section {
    border: 1px solid #eeeeee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.umc-pvp-featured-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Hero Grid Right: Text & Button */
.umc-pvp-h1 {
    font-size: 30px;
    font-weight: 600;
    color: #222222;
    margin-top: -5px;
    margin-bottom: 20px;
    line-height: 1.3;
}
.umc-pvp-short-desc {
    font-size: 16px;
    color: #333333;
    margin-bottom: 30px;
}
.umc-pvp-catalog-link {
    display: inline-block;
    font-size: 18px;
    color: #825e08;
    text-decoration: underline;
    margin-bottom: 30px;
}
.umc-pvp-fake-button-wrapper {
    margin-top: 10px;
}
.umc-pvp-fake-btn {
    display: inline-block;
    background-color: #299b8e;
    color: #ffffff;
    padding: 15px 35px;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.umc-pvp-fake-btn:hover {
    background-color: #207a70;
}

/* 2.3 Product Specification Table */
.umc-pvp-specs-section {
    margin-bottom: 10px;
}
.umc-pvp-h2 {
    font-size: 24px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #299b8e;
    display: inline-block;
}
.umc-pvp-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
    border: 1px solid #e0e0e0;
}
.umc-pvp-table {
    width: 100%;
    min-width: 600px; 
    border-collapse: collapse;
    background: #ffffff;
}
.umc-pvp-table th, 
.umc-pvp-table td {
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.umc-pvp-table th {
    width: 40%;
    font-weight: 600;
    color: #333;
}

/* ODD ROWS (1, 3, 5...) - Both columns share this color */
.umc-pvp-table tr:nth-child(odd) th,
.umc-pvp-table tr:nth-child(odd) td {
    background-color: #ffffff;
}

/* EVEN ROWS (2, 4, 6...) - Both columns share this alternate color */
.umc-pvp-table tr:nth-child(even) th,
.umc-pvp-table tr:nth-child(even) td {
    background-color: #f7f9fa;
}

/* 2.4 Product Description (Spintax Text) */
.umc-pvp-description-section {
    margin-bottom: 10px;
}
.umc-pvp-syntax-content {
    background: #fcfcfc;
    padding: 5px 10px 5px 10px;
    border: 1px solid #eee;
}
.umc-pvp-syntax-content p {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.6;
}

/* 2.5 Related Products Grid */
.umc-pvp-related-section {
    margin-bottom: 30px;
}
.umc-pvp-related-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important; 
    gap: 20px;
}
.umc-pvp-related-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background: #fff !important;
    text-decoration: none !important;
}
.umc-pvp-related-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Forces the image to shrink and fit inside the wrapper box */
.umc-pvp-related-img-wrap img {
    max-width: 100% !important;
    max-height: 100% !important;
    border: 1px solid #eee !important;
    object-fit: contain;
    width: auto;
    height: auto;
}

.umc-pvp-related-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333333 !important;
}

/* ==========================================================================
   3. QUOTE MODAL (Hidden by default)
   ========================================================================== */

.umc-vpw-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 999999;
}
.umc-vpw-modal-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}
.umc-vpw-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    cursor: pointer;
    font-size: 28px;
    color: #999;
}
.umc-vpw-form-title {
    margin-top: 0;
    color: #222;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #299b8e;
    padding-bottom: 10px;
    display: inline-block;
}
.umc-vpw-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.umc-vpw-label span{
    color: #ff0000;
}
.umc-vpw-form-group {
    margin-bottom: 15px;
}
.umc-vpw-input, .umc-vpw-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.umc-vpw-submit-btn {
    background: #299b8e;
    color: #fff;
    padding: 14px 25px;
    border: none;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
}
.umc-vpw-success-box {
    text-align: center;
    padding: 30px 0;
}
.umc-vpw-btn-close {
    margin-top: 20px;
    background: #299b8e;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

/* ==========================================================================
   4. FOOTER SECTION
   ========================================================================== */

.vpw-custom-footer {
    background-color: #f0f4f8;
    border-top: 5px solid #394149;
    padding: 50px 0 50px 0; 
    color: #333333;
}
.vpw-footer-inner {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.vpw-footer-col {
    flex: 1;
    min-width: 220px;
}
.vpw-footer-col h4 {
    color: #222222;
    font-size: 18px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 10px;
}
.vpw-footer-col p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ==========================================================================
   5. COPYRIGHT SECTION
   ========================================================================== */

.vpw-copyright {
    width: 100%;
    background-color: #394149; /* Matches footer background */
    text-align: center;
    font-size: 14px;
    color: #fff;
    padding: 10px 0;
}

/* ==========================================================================
   6. FLOATING ELEMENTS (WhatsApp Badge)
   ========================================================================== */

.umc-vpw-whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 30px; 
    background-color: #25d366;
    border-radius: 50px;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    z-index: 999998;
}
.umc-vpw-whatsapp-btn svg { 
    width: 35px; height: 35px; fill: #fff; 
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet & Mobile Adjustments */
@media (max-width: 768px) {
    .umc-pvp-product-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    
    /* Responsive Header Adjustments */
    .vpw-header-inner { 
        flex-wrap: wrap; 
        justify-content: space-between; 
    }
    
    /* Reveal Hamburger Button */
    .vpw-mobile-toggle {
        display: block !important; 
    }
    
    /* Hide Nav & Turn into vertical dropdown */
    .vpw-nav { 
        display: none !important; 
        width: 100%;
        flex-direction: column;
        background-color: #f0f4f8; /* Matches your header background perfectly */
        margin-top: 15px;
        padding: 0;
        border-top: 2px solid #394149;
    }
    
    /* JS triggers this class to open the menu */
    .vpw-nav.active {
        display: flex !important; 
    }
    
    /* Stack links top to bottom */
    .vpw-nav a {
        padding: 15px 0;
        text-align: center;
        border-bottom: 1px solid #eeeeee;
        margin: 0;
        width: 100%;
    }
    .vpw-nav a:last-child {
        border-bottom: none;
    }

    /* Footer Responsive */
    .vpw-footer-inner { 
        flex-direction: column; 
        text-align: center; 
    }
    
    /* Center the footer logo on mobile */
    .vpw-footer-logo-1 .vpw-site-logo {
        margin: 0 auto;
    }
}

    
/* Tablet: 3 per row (2 rows) */
@media (max-width: 992px) {
    .umc-pvp-related-grid { 
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important; 
    }
}

/* Mobile: 2 per row (3 rows) */
@media (max-width: 576px) {
    .umc-pvp-related-grid { 
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
        gap: 15px; /* Slightly smaller gap so they fit nicely on phones */
    }
}
