/* =========================================
   1. BRAND VARIABLES & GLOBAL RESET
========================================= */
:root {
    --navy: #0e125c;
    --navy-light: #181f8a;
    --red: #CC0000;
    --gold: #f4b400;
    --surface: #F9FAFC;
    --white: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --atlantic-blue: #004ea2; /* New Atlantic Hardware Blue */
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--surface); color: var(--text-main); }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; margin: 0; }

/* =========================================
   2. ORIGINAL WHITE NAVBAR & SEARCH
========================================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 40px; background-color: var(--white);
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    gap: 20px;
}
.logo { background-color: transparent; padding: 0; border-radius: 0; display: block; }
.logo a { display: block; text-decoration: none; }
.logo img { display: block; }
#fallback-logo { font-family: 'Montserrat', sans-serif; font-weight: 900; color: var(--navy); font-size: 26px; }
#fallback-logo span { color: var(--red); }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; flex: 1; justify-content: center;}
.nav-links a { text-decoration: none; color: var(--navy); font-weight: 700; font-size: 13px; letter-spacing: 0.5px; transition: color 0.3s ease; text-transform: uppercase;}
.nav-links a:hover, .active-link { color: var(--gold) !important; }

/* Search Bar (Styled for White Background) */
.search-container { position: relative; }
.search-input {
    padding: 10px 20px 10px 40px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    width: 250px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    background-color: var(--surface);
    color: var(--navy);
    transition: 0.3s;
}
.search-input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(14, 18, 92, 0.1);
}
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

/* =========================================
   3. ORIGINAL HERO & INDEX SECTIONS
========================================= */
/* Company Profile Section (Original Side-by-Side) */
.about-section { padding: 100px 80px; background-color: var(--white); }
.about-container { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-subtitle { color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; margin-bottom: 8px; font-weight: 800;}
.about-text h2 { font-family: 'Montserrat', sans-serif; color: var(--navy); font-size: 42px; font-weight: 900; margin-bottom: 16px; letter-spacing: -1px;}
.about-text p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.accent-line { width: 60px; height: 4px; background-color: var(--red); margin-bottom: 40px; }
.about-features { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-icon { background-color: var(--navy); color: var(--white); height: 28px; width: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: bold;}
.feature-item p { margin-bottom: 0; font-weight: 700; color: var(--navy); font-size: 15px;}
.about-video iframe { border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 1px solid #E5E7EB; }

.hero { 
    position: relative; 
    padding: 120px 80px; 
    min-height: 80vh; 
    display: flex; 
    align-items: center; 
    background-image: url('assets/Store.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-color: var(--navy); 
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: rgba(14, 18, 92, 0.6); 
    z-index: 1; 
}
.hero-content { position: relative; z-index: 2; max-width: 900px; color: var(--white); }
.badge { display: inline-block; padding: 8px 16px; border: 1px solid var(--gold); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; border-radius: 4px; margin-bottom: 24px; }
.hero h1 { font-family: 'Montserrat', sans-serif; font-size: 64px; font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -2px; }
.hero p { font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 16px; }

/* Entrust */
.cv-entrust { 
    background-image: linear-gradient(rgba(14, 18, 92, 0.85), rgba(61, 65, 143, 0.85)), url('assets/Newsan Fam.jpg');
    background-size: cover;
    background-position: center;
    color: white; 
    padding: 80px; 
    text-align: center; 
}
.cv-entrust h2 { font-size: 46px; font-weight: 900; margin-bottom: 40px; line-height: 1.1; }
.cv-quote { font-size: 14px; font-weight: 600; max-width: 800px; margin: 0 auto 20px auto; line-height: 1.6; }
.cv-entrust-grid { display: flex; justify-content: center; gap: 30px; margin-top: 60px; flex-wrap: wrap; }
.cv-entrust-card { background: #f4f6f9; color: var(--navy); padding: 40px 20px; width: 200px; display: flex; flex-direction: column; align-items: center; border-radius: 4px;}
.cv-check-icon { background: var(--navy); color: white; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 24px; margin-bottom: 20px; }
.cv-entrust-card h3 { font-size: 16px; font-weight: 800; text-align: center; line-height: 1.3; }

/* Stats Banner */
.cv-stats { background-image: url('assets/tools-bg-faded.jpg'); background-size: cover; background-position: center; display: flex; justify-content: space-around; padding: 60px 80px; text-align: center; background-color: #e5ebf4; }
.cv-stat-item h4 { color: var(--navy); font-size: 22px; font-weight: 500; margin-bottom: 10px; line-height: 1.2; }
.cv-stat-item h2 { color: var(--navy); font-size: 54px; font-weight: 900; }

/* Partnered Brands (Scrollable) */
.cv-brands { background: #f4f6f9; padding: 60px 40px; text-align: center; }
.cv-brands-title { font-family: 'Montserrat', sans-serif; font-size: 32px; font-weight: 900; color: var(--navy); margin-bottom: 40px; }
.cv-brands-scroll-wrapper { width: 100%; max-width: 1000px; margin: 0 auto; overflow-x: auto; padding-bottom: 10px; }
.cv-brands-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.cv-brands-scroll-wrapper::-webkit-scrollbar-track { background: #e5e7eb; border-radius: 10px; }
.cv-brands-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 10px; }
.cv-brands-track { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 60px; min-width: max-content; }
.cv-brands-track img { max-height: 60px; width: auto; object-fit: contain; flex-shrink: 0; }

/* Showrooms */
.cv-showrooms { display: flex; margin-bottom: 80px;}
.cv-sr-card { flex: 1; display: flex; flex-direction: column; }
.cv-sr-bottom { padding: 40px 20px; text-align: center; flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.bg-bosch { background-color: #0084ff; color: white; }
.bg-makita { background-color: #e5ebf4; color: var(--navy); }
.bg-ingco { background-color: var(--navy); color: white; }
.cv-sr-bottom h3 { font-size: 32px; font-weight: 800; line-height: 1.2;}

/* =========================================
   4. NEW CORPORATE PAGES (ABOUT, LOCATIONS, CONTACTS)
========================================= */
/* Clean Page Headers */
.page-header { background-color: var(--navy); padding: 80px 40px; text-align: center; color: white;}
.page-header h1 { font-size: 46px; font-weight: 900; margin-bottom: 15px;}
.page-header p { color: rgba(255,255,255,0.8); font-size: 16px;}

/* About Layout */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1200px; margin: 80px auto; padding: 0 40px; align-items: center;}
.about-grid h2 { font-size: 36px; color: var(--atlantic-blue); margin-bottom: 20px;}
.about-grid p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 20px;}
.about-video iframe { width: 100%; height: 350px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);}

/* Locations Layout */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 1300px; margin: 80px auto; padding: 0 40px; }
.loc-card { background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); overflow: hidden; border: 1px solid #E5E7EB; transition: transform 0.3s;}
.loc-card:hover { transform: translateY(-5px); }
.loc-map iframe { width: 100%; height: 250px; border: none; }
.loc-info { padding: 30px; }
.loc-info h3 { color: var(--atlantic-blue); font-size: 20px; margin-bottom: 15px;}
.loc-info p { font-size: 13px; color: #555; margin-bottom: 12px; display: flex; align-items: center; gap: 10px;}
.loc-info i { color: var(--gold); font-size: 16px; width: 20px;}

/* Contacts Layout */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; max-width: 1100px; margin: 80px auto; padding: 0 40px;}
.contact-form-box { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee;}
.contact-form-box h2 { color: var(--atlantic-blue); margin-bottom: 24px;}
.corp-info-box { background: var(--atlantic-blue); color: white; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);}
.corp-info-box h3 { color: var(--gold); margin-bottom: 20px; font-size: 22px;}
.corp-info-box p { font-size: 14px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px;}
.corp-info-box i { font-size: 20px;}

/* =========================================
   5. COMBINED FOOTER
========================================= */
.footer-mega { background-color: var(--navy); color: white; padding-top: 60px; }
.footer-mega-grid { max-width: 1300px; margin: 0 auto; padding: 0 40px 60px 40px; display: grid; grid-template-columns: 1fr 1.2fr 2.5fr; gap: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-info h2 { font-size: 28px; font-weight: 800; color: var(--gold); margin-bottom: 30px; }
.footer-info h4 { font-size: 16px; color: white; margin-bottom: 15px; }
.footer-detail { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.footer-detail i { font-size: 18px; color: var(--gold); margin-top: 2px; }
.footer-detail p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.85); margin: 0;}
.footer-socials { display: flex; gap: 15px; font-size: 28px; }
.footer-map { display: flex; align-items: center; width: 100%;}
.footer-map iframe { width: 100%; height: 350px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.3);}
.footer-bottom { background-color: #080c44; text-align: center; padding: 25px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }
.admin-link { color: rgba(255,255,255,0.2); text-decoration: none; font-size: 11px; transition: 0.3s; }
.admin-link:hover { color: var(--gold); }

/* =========================================
   6. CATALOG & QUOTE PAGE STYLES
========================================= */

/* Quote Page Header (This was missing!) */
.quote-header { background-color: var(--navy); color: white; padding: 80px 60px; text-align: center; }
.quote-header h1 { font-family: 'Montserrat', sans-serif; font-size: 42px; font-weight: 900; margin-bottom: 16px; }
.quote-header p { font-size: 16px; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* Quote Form & Summary Layout */
.quote-wrapper { max-width: 1200px; margin: -40px auto 60px auto; padding: 0 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; position: relative; z-index: 10; }
.quote-form-panel { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #E5E7EB; }
.quote-summary-panel { background: white; padding: 30px; border-radius: 8px; border: 1px solid #E5E7EB; height: fit-content; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.summary-header { font-family: 'Montserrat', sans-serif; color: var(--navy); font-size: 20px; font-weight: 900; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #E5E7EB; }
.summary-item { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; background: var(--surface); padding: 12px; border-radius: 6px; border: 1px solid #eee; }
.summary-img { width: 65px; height: 65px; min-width: 65px; background: white; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 5px; border: 1px solid #E5E7EB; }
.summary-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.summary-details { flex: 1; display: flex; flex-direction: column; align-items: flex-start;}
.summary-name { font-weight: 700; color: var(--navy); font-size: 13px; margin-bottom: 8px; display: block; line-height: 1.3; text-align: left;}
.qty-controls { display: inline-flex; align-items: center; background: #F3F4F6; border: 1px solid #E5E7EB; border-radius: 4px; overflow: hidden; }
.qty-btn { background: transparent; border: none; color: var(--navy); font-size: 16px; font-weight: bold; width: 32px; height: 28px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover:not([disabled]) { background: #E5E7EB; }
.summary-qty { font-size: 13px; font-weight: 700; color: var(--navy); width: 36px; text-align: center; display: inline-block; border-left: 1px solid #E5E7EB; border-right: 1px solid #E5E7EB; line-height: 28px; background: white;}
.empty-cart-msg { text-align: center; color: #666; padding: 30px 20px; font-size: 14px; }
.empty-cart-msg a { display: inline-block; margin-top: 15px; padding: 10px 20px; background: var(--navy); color: white; text-decoration: none; border-radius: 4px; font-weight: bold; }

/* Quote Form Inputs */
.form-group { margin-bottom: 24px; }
.form-row { display: flex; gap: 24px; }
.form-row .form-group { flex: 1; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; text-transform: uppercase; }
input, textarea { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 4px; font-family: 'Inter', sans-serif; font-size: 14px; transition: border 0.3s; box-sizing: border-box;}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }

/* Modals */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 15, 92, 0.7); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-box { background-color: white; padding: 32px; border-radius: 8px; width: 90%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); text-align: center; border-top: 5px solid var(--gold); }
.modal-box h3 { font-family: 'Montserrat', sans-serif; color: var(--navy); margin-bottom: 12px; font-size: 20px; line-height: 1.3;}
.modal-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.modal-box input { width: 100px; padding: 12px; font-size: 18px; text-align: center; border: 2px solid #E5E7EB; border-radius: 6px; margin-bottom: 24px; font-weight: bold; color: var(--navy); }
.modal-box input:focus { border-color: var(--navy); outline: none; }
.modal-buttons { display: flex; gap: 12px; }
.modal-buttons button { flex: 1; padding: 14px; font-weight: 700; border-radius: 4px; cursor: pointer; border: none; font-size: 14px;}
.btn-cancel { background-color: #F3F4F6; color: #4B5563; transition: 0.2s;}
.btn-cancel:hover { background-color: #E5E7EB; color: #111827;}
.btn-confirm { background-color: var(--gold); color: var(--navy); transition: 0.2s;}
.btn-confirm:hover { background-color: #dca000; transform: translateY(-2px);}

.catalog-section { padding: 80px 80px; max-width: 1400px; margin: 0 auto; }
.section-header h4 { color: var(--red); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; margin-bottom: 8px; }
.section-header h2 { font-family: 'Montserrat', sans-serif; color: var(--navy); font-size: 32px; font-weight: 900; margin-bottom: 16px; }
.tab-container { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; border-bottom: 2px solid #E5E7EB; padding-bottom: 10px; }
.tab-link { background: none; border: none; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; padding: 10px 16px; transition: all 0.3s ease; border-radius: 4px; }
.tab-link:hover { color: var(--atlantic-blue); background-color: #E5E7EB;}
.tab-link.active { color: var(--white); background-color: var(--atlantic-blue); }
.grid-active { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { background-color: var(--white); border: 1px solid #E5E7EB; border-radius: 4px; padding: 24px; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.product-image { background-color: var(--surface); height: 160px; border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; overflow: hidden; padding: 10px;}
.product-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.brand-tag { font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 4px; letter-spacing: 1px; display: inline-block; margin-bottom: 10px;}
.brand-tag.bosch { background-color: rgba(0, 48, 135, 0.1); color: #003087; }
.brand-tag.domore { background-color: rgba(211, 47, 47, 0.1); color: #D32F2F; }
.product-info { display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 { font-size: 16px; color: var(--navy); margin: 0 0 8px 0; line-height: 1.4;}
.product-info p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; flex-grow: 1; }

.quote-wrapper { max-width: 1200px; margin: -40px auto 60px auto; padding: 0 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; position: relative; z-index: 10; }
.quote-form-panel { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #E5E7EB; }
.quote-summary-panel { background: white; padding: 30px; border-radius: 8px; border: 1px solid #E5E7EB; height: fit-content; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.summary-header { font-family: 'Montserrat', sans-serif; color: var(--navy); font-size: 20px; font-weight: 900; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #E5E7EB; }
.summary-item { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; background: var(--surface); padding: 12px; border-radius: 6px; border: 1px solid #eee; }
.summary-img { width: 65px; height: 65px; min-width: 65px; background: white; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 5px; border: 1px solid #E5E7EB; }
.summary-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.summary-details { flex: 1; display: flex; flex-direction: column; align-items: flex-start;}
.summary-name { font-weight: 700; color: var(--navy); font-size: 13px; margin-bottom: 8px; display: block; line-height: 1.3; text-align: left;}
.qty-controls { display: inline-flex; align-items: center; background: #F3F4F6; border: 1px solid #E5E7EB; border-radius: 4px; overflow: hidden; }
.qty-btn { background: transparent; border: none; color: var(--navy); font-size: 16px; font-weight: bold; width: 32px; height: 28px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover:not([disabled]) { background: #E5E7EB; }
.summary-qty { font-size: 13px; font-weight: 700; color: var(--navy); width: 36px; text-align: center; display: inline-block; border-left: 1px solid #E5E7EB; border-right: 1px solid #E5E7EB; line-height: 28px; background: white;}
.empty-cart-msg { text-align: center; color: #666; padding: 30px 20px; font-size: 14px; }
.empty-cart-msg a { display: inline-block; margin-top: 15px; padding: 10px 20px; background: var(--atlantic-blue); color: white; text-decoration: none; border-radius: 4px; font-weight: bold; }

.form-group { margin-bottom: 24px; }
.form-row { display: flex; gap: 24px; }
.form-row .form-group { flex: 1; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--atlantic-blue); margin-bottom: 8px; text-transform: uppercase; }
input, textarea { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 4px; font-family: 'Inter', sans-serif; font-size: 14px; transition: border 0.3s; box-sizing: border-box;}
input:focus, textarea:focus { outline: none; border-color: var(--atlantic-blue); }

/* Modals */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 78, 162, 0.7); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-box { background-color: white; padding: 32px; border-radius: 8px; width: 90%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); text-align: center; border-top: 5px solid var(--gold); }
.modal-box h3 { font-family: 'Montserrat', sans-serif; color: var(--navy); margin-bottom: 12px; font-size: 20px; line-height: 1.3;}
.modal-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.modal-box input { width: 100px; padding: 12px; font-size: 18px; text-align: center; border: 2px solid #E5E7EB; border-radius: 6px; margin-bottom: 24px; font-weight: bold; color: var(--navy); }
.modal-box input:focus { border-color: var(--navy); outline: none; }
.modal-buttons { display: flex; gap: 12px; }
.modal-buttons button { flex: 1; padding: 14px; font-weight: 700; border-radius: 4px; cursor: pointer; border: none; font-size: 14px;}
.btn-cancel { background-color: #F3F4F6; color: #4B5563; transition: 0.2s;}
.btn-cancel:hover { background-color: #E5E7EB; color: #111827;}
.btn-confirm { background-color: var(--gold); color: var(--navy); transition: 0.2s;}
.btn-confirm:hover { background-color: #dca000; transform: translateY(-2px);}

/* Global Buttons (Fixed for HTML Buttons) */
.btn-primary, .btn-secondary, button.btn-primary { 
    padding: 16px 36px; 
    text-decoration: none; 
    font-weight: 700; 
    border-radius: 4px; 
    font-size: 15px; 
    transition: all 0.3s ease; 
    cursor: pointer; 
    text-align: center; 
    border: none;
    font-family: 'Inter', sans-serif;
    display: inline-block;
    appearance: none; /* Strips the default browser gray styling */
}

.btn-primary, button.btn-primary { 
    background-color: var(--gold); 
    color: var(--navy); 
}

.btn-primary:hover, button.btn-primary:hover { 
    background-color: #dca000; 
    transform: translateY(-2px); 
}

.btn-secondary { 
    background-color: transparent; 
    color: var(--navy); 
    border: 1px solid rgba(14, 18, 92, 0.4); 
}

.btn-secondary:hover { 
    border-color: var(--navy); 
    background-color: rgba(14, 18, 92, 0.05); 
}

/* Responsiveness */
@media (max-width: 1100px) {
    .navbar { flex-direction: column; gap: 15px; padding: 20px;}
    .nav-links { flex-wrap: wrap; justify-content: center;}
    .footer-mega-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero { padding: 80px 30px; }
    .hero h1 { font-size: 40px; }
    .quote-wrapper { grid-template-columns: 1fr; margin-top: 20px;}
    .form-row { flex-direction: column; gap: 0; }
    .cv-showrooms { flex-direction: column; }
}

/* =========================================
   7. MOBILE RESPONSIVENESS (PHONES)
========================================= */
@media (max-width: 768px) {
    /* Navbar & Search */
    .navbar { padding: 15px; flex-direction: column; gap: 15px; }
    .logo img { height: 55px !important; }
    .nav-links { flex-wrap: wrap; gap: 10px 15px; justify-content: center; width: 100%; }
    .nav-links a { font-size: 11px; } /* Slightly smaller for phones */
    .search-container { width: 100%; }
    .search-input { width: 100%; }

    /* Hero Section */
    .hero { padding: 60px 20px; text-align: center; min-height: auto; }
    .hero h1 { font-size: 34px; line-height: 1.2; margin-bottom: 15px; }
    .hero p { font-size: 14px; margin-bottom: 30px; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 10px; }
    .hero-buttons a { width: 100%; text-align: center; }

    /* Sections & Grids Padding */
    .about-section, .cv-entrust, .cv-stats, .catalog-section, .page-header, .quote-header { padding: 40px 20px; }
    .about-grid, .locations-grid, .contact-grid, .quote-wrapper { padding: 0 15px; margin-top: 40px; margin-bottom: 40px; }
    
    /* Force Side-by-Side Elements into Single Columns */
    .about-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .about-features { align-items: center; }
    .cv-entrust-grid { flex-direction: column; align-items: center; gap: 20px; }
    .cv-entrust-card { width: 100%; max-width: 350px; }
    .cv-stats { flex-direction: column; gap: 40px; }
    .grid-active { grid-template-columns: 1fr; } /* 1 Product per row */
    
    /* Footer Layout */
    .footer-mega-grid { text-align: center; padding-bottom: 30px; gap: 30px; }
    .footer-detail { flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 20px; }
    .footer-socials { justify-content: center; }

    /* Quote & Contact Form Adjustments */
    .quote-form-panel, .quote-summary-panel, .contact-form-box, .corp-info-box { padding: 25px 15px; }
    .manual-quote-grid { overflow-x: auto; } /* Allows the table to scroll horizontally instead of squishing */
    .modal-box { width: 95%; padding: 25px 15px; }
    .modal-buttons { flex-direction: column; }

    /* Scaled Down Fonts for Phone Screens */
    .about-text h2, .cv-entrust h2, .page-header h1, .quote-header h1 { font-size: 28px; }
    .cv-stat-item h2 { font-size: 38px; }

    /* Smooth loading animation for product cards */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Make sure the brand tag in the new script format still looks correct */
.product-brand {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
    width: max-content;
}
.product-brand.domore { background-color: rgba(211, 47, 47, 0.1); color: #D32F2F; }
.product-brand.makita { background-color: rgba(0, 166, 172, 0.1); color: #00878c; }
.product-brand.ingco { background-color: rgba(244, 180, 0, 0.1); color: #c49100; }
.product-brand.bosch { background-color: rgba(0, 48, 135, 0.1); color: #003087; }
}