/* VE Product Catalog - catalog UI matched to the supplied reference layout. */
.ve-catalog,
.ve-single{
    box-sizing:border-box;
    width:100%;
    max-width:1240px;
    margin:0 auto;
    padding:4px 32px 18px;
    font-family:inherit;
    color:#111;
}
.ve-catalog *,
.ve-single *{box-sizing:border-box}

/* The reference catalog has no visible search bar. The search field remains in the markup
   so the existing live-search functionality is not removed. */
.ve-catalog-toolbar{display:none}
.ve-live-search{position:absolute;left:-99999px;width:1px;height:1px;opacity:0}

/* Product grid */
.ve-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    align-items:stretch;
}
.ve-card{
    min-width:0;
    height:184px;
    display:grid;
    grid-template-columns: 44% 56%;
    border:1px solid #e7e7e7;
    border-radius:11px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 1px 5px rgba(0,0,0,.025);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.ve-card:hover{
    transform:translateY(-2px);
    border-color:#ddd;
    box-shadow:0 6px 16px rgba(0,0,0,.07);
}
.ve-card-image{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    padding:8px;
    background:#fff;
    text-align:center;
    overflow:hidden;
}
.ve-product-img{
    display:block;
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    transition:transform .2s ease;
}
.ve-card:hover .ve-product-img{transform:scale(1.015)}
.ve-no-image{display:grid;place-items:center;height:100%;color:#999;font-size:11px}
.ve-card-body{
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:13px 12px 12px 3px;
}
.ve-card h3 {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.ve-card h3 a{color:#111;text-decoration:none}
.ve-card h3 a:hover{color:#111}
.ve-card p{
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    margin:0 0 8px;
    color:#4b4b4b;
    font-size:12px;
    line-height:1.45;
}
.ve-brand,
.ve-model{display:none}

.ve-button{
    display:inline-flex;
    align-items:center;
    justify-content:flex-start;
    width:max-content;
    min-height:0;
    padding:0;
    margin:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#B01C1E!important;
    text-decoration:none!important;
    font-size:11px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:.01em;
    transition:color .15s ease;
}
.ve-button span{margin-left:4px;font-size:11px;line-height:1}
.ve-button:hover{background:transparent;border-color:transparent;color:#d56600!important;transform:none}
.ve-card .ve-button{margin-top:0}
.ve-outline{background:transparent;color:#ee7c18!important;border:0}
.ve-outline:hover{background:transparent;color:#d56600!important;border:0}

/* Bottom CTA */
.ve-view-all-wrap{
    display:flex;
    justify-content:center;
    margin-top:15px;
}
.ve-view-all{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:17px;
    min-width:13px;
    height:24px;
    padding:0 12px 0 16px;
    border-radius:5px;
    background:#b52b29;
    color:#fff!important;
    text-decoration:none!important;
    font-size:8px;
    font-weight:700;
    line-height:1;
    letter-spacing:.01em;
    transition:background .15s ease,transform .15s ease;
}
.ve-view-all span{font-size:13px;line-height:1;font-weight:400}
.ve-view-all:hover{background:#9d2523;transform:translateY(-1px)}

/* Single product - existing functionality retained; catalog cards use the reference UI above. */
.ve-single{padding:48px 24px}
.ve-hero{
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
    gap:48px;
    align-items:start;
}
.ve-gallery,.ve-summary{min-width:0}
.ve-main-image{
    width:100%;
    min-height:430px;
    display:grid;
    place-items:center;
    padding:24px;
    background:#ffffff;
    border:1px solid #e3e8ef;
    border-radius:14px;
    overflow:hidden;
}
.ve-main-image img{display:block;max-width:100%;max-height:540px;width:auto;height:auto;object-fit:contain}
.ve-thumbs{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.ve-thumb{
    width:76px;height:76px;padding:3px;object-fit:cover;
    border:1px solid #d9e0e8;border-radius:8px;background:#fff;
}
.ve-summary h1{margin:8px 0 15px;font-size:33px;line-height:1.15;color:#172033}
.ve-tagline{font-size:18px;line-height:1.6;color:#687588}
.ve-price{font-size:28px;font-weight:700;margin:20px 0;color:#0878c9}
.ve-actions{display:flex;flex-wrap:wrap;gap:4px 0;margin-top:8px}
.ve-tabs{margin-top:58px}
.ve-tabs section{padding:30px 0;border-top:1px solid #e6ebf1}
.ve-tabs h2,.ve-enquiry h2{margin:0 0 16px;color:#172033;font-size:25px;line-height:1.3}
.ve-list{padding-left:22px;margin:0}
.ve-list li{margin:8px 0;line-height:1.6;color:#4f5d70}
.ve-spec-table{overflow:hidden;border:1px solid #dfe5ec;border-radius:10px}
.ve-spec-table div{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,2fr);gap:16px;padding:13px 16px;border-bottom:1px solid #e2e7ed;line-height:1.5}
.ve-spec-table div:last-child{border:0}
.ve-spec-table div:nth-child(even){background:#fafbfd}
.ve-enquiry{margin-top:30px;padding:30px;background:#f5f9fc;border:1px solid #e1e9f0;border-radius:14px}
.ve-enquiry p{color:#5f6d7e;line-height:1.6}
.ve-video{max-width:100%;overflow:hidden}
.ve-video iframe,.ve-video video{max-width:100%}

@media (max-width:1000px){
    .ve-catalog{padding:4px 20px 18px}
    .ve-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .ve-hero{grid-template-columns:1fr;gap:32px}
    .ve-summary h1{font-size:36px}
}

@media (max-width:600px){
    .ve-catalog{padding:4px 14px 16px}
    .ve-grid{grid-template-columns:1fr;gap:10px}
    .ve-card{height:166px;grid-template-columns:45% 55%}
    .ve-card-image{padding:8px}
    .ve-card-body{padding:11px 10px 10px 2px}
    .ve-card h3{font-size:12.5px;margin-bottom:5px}
    .ve-card p{font-size:12px;line-height:1.4;margin-bottom:7px}
    .ve-button{font-size:8px}
    .ve-view-all-wrap{margin-top:13px}
    .ve-single{padding:28px 14px}
    .ve-main-image{min-height:280px;padding:16px}
    .ve-thumb{width:64px;height:64px}
    .ve-summary h1{font-size:30px}
    .ve-tagline{font-size:16px}
    .ve-tabs{margin-top:38px}
    .ve-tabs section{padding:24px 0}
    .ve-tabs h2,.ve-enquiry h2{font-size:22px}
    .ve-spec-table div{grid-template-columns:1fr;gap:5px;padding:12px 13px}
    .ve-enquiry{padding:22px 16px}
}

/* Catalogue enquiry modal */
body.ve-modal-open{overflow:hidden}
.ve-catalog-modal{display:none;position:fixed;inset:0;z-index:999999}
.ve-catalog-modal.is-open{display:block}
.ve-catalog-modal-overlay{position:absolute;inset:0;background:rgba(0,0,0,.58)}
.ve-catalog-modal-dialog{position:relative;width:min(810px,calc(100% - 28px));max-height:calc(100vh - 30px);overflow:auto;margin:15px auto;background:#fff;padding:34px 40px 16px;box-shadow:0 12px 40px rgba(0,0,0,.22)}
.ve-catalog-modal-close{position:absolute;right:16px;top:13px;width:40px;height:40px;border:0;background:#fff;color:#777;font-size:30px;line-height:1;cursor:pointer}
.ve-catalog-modal-dialog h2{margin:0 0 28px;font-size:24px;line-height:1.25;color:#111;font-weight:700}
.ve-catalog-modal-dialog h2 span{font-weight:700}
.ve-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 30px}
.ve-form-grid label{display:block;min-width:0}
.ve-form-grid input,.ve-form-grid textarea{width:100%;border:1px solid #d9dce1;background:#f7f8fa;color:#333;border-radius:0;padding:14px 16px;font:inherit;font-size:14px;outline:none;box-shadow:none}
.ve-form-grid input{height:60px}
.ve-form-grid textarea{height:115px;resize:vertical}
.ve-form-grid input:focus,.ve-form-grid textarea:focus{border-color:#159bd0;background:#fff}
.ve-phone-field{display:flex!important;align-items:stretch}
.ve-phone-field>span{display:flex;align-items:center;gap:5px;min-width:80px;padding:0 10px;background:#f0f1f3;border:1px solid #d9dce1;border-right:0;color:#555;font-size:14px}
.ve-phone-field input{border-left:0!important}
.ve-consent{display:flex;align-items:flex-start;gap:10px;margin:20px 0 16px;color:#647080;font-size:14px;line-height:1.65}
.ve-consent input{width:16px;height:16px;flex:0 0 16px;margin-top:3px}
.ve-form-status{min-height:22px;margin:0 0 10px;color:#28734f;font-size:14px}
.ve-catalog-submit{display:block;width:100%;height:55px;border:0;background:#159bd0;color:#fff;font-size:14px;font-weight:700;cursor:pointer}
.ve-catalog-submit:hover{background:#118ab9}
.ve-catalog-submit:disabled{opacity:.65;cursor:wait}
.ve-card .ve-download-catalog{margin-bottom:4px}

@media (max-width:600px){
    .ve-catalog-modal-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px);margin:10px auto;padding:30px 18px 14px}
    .ve-catalog-modal-dialog h2{font-size:20px;margin-bottom:20px}
    .ve-form-grid{grid-template-columns:1fr;gap:12px}
    .ve-form-grid input{height:52px}
    .ve-form-grid textarea{height:110px}
    .ve-consent{font-size:12px;line-height:1.5}
}







/* Download Button Style */

.ve-download-btn { background: transparent; border: 1px solid #B01C1E; color: #333; padding: 5px 15px; font-size: 11px; cursor: pointer; border-radius: 4px; margin-bottom: 5px; }

/* Modal Popup Style */
.ve-modal { position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; }
.ve-modal-content { background-color: #fff; padding: 30px; border-radius: 8px; width: 90%; max-width: 800px; position: relative; font-family: sans-serif; }
.ve-close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #666; }
.ve-modal-title { margin-bottom: 20px; font-size: 22px; }
.ve-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.ve-form-grid input, .ve-form-grid textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; background: #f9f9f9; box-sizing: border-box; }
.ve-form-grid textarea { grid-column: span 1; height: 100%; resize: none; }
.phone-input { display: flex; border: 1px solid #ccc; border-radius: 4px; background: #f9f9f9; }
.phone-input span { padding: 12px; border-right: 1px solid #ccc; color: #666;}
.phone-input input { border: none; flex: 1; padding: 12px; background: transparent; outline: none; }
.ve-checkbox-container { display: flex; gap: 10px; font-size: 13px; color: #666; margin-bottom: 20px; }
.ve-submit-btn { width: 100%; background-color: #0088cc; color: #fff; padding: 15px; border: none; border-radius: 4px; font-size: 16px; font-weight: bold; cursor: pointer; }
