/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --white: #ffffff;
    --red: #c8102e;
    --red-dark: #a00d24;
    --red-light: #fce8ea;
    --dark: #1e1e1e;
    --grey: #2d2d2d;
    --grey-light: #f5f5f5;
    --grey-mid: #8a8a8a;
    --text: #222222;
    --text-light: #555555;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1280px;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    color: var(--red);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--red-dark);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
ul,
ol {
    list-style: none;
}
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: 80px 0;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 640px;
    margin-bottom: 40px;
}
.text-center {
    text-align: center;
}
.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    background: var(--red);
    color: var(--white);
}
.btn:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.30);
}
.btn-outline {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
}
.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}
.btn-white {
    background: var(--white);
    color: var(--red);
}
.btn-white:hover {
    background: var(--grey-light);
    color: var(--red-dark);
}
.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 10000;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}


/* ===== TOP BAR ===== */

.top-bar {
    background: #ff0000;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-inner span {
    color: #ffffff !important;   /* makes icons white */
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-inner span {
    filter: brightness(0) invert(1);
}

.top-bar a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.top-bar a:hover {
    color: #ffffff;
}
@media (max-width: 480px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 4px;
    }
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--grey-light);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}
.logo span {
    color: var(--red);
}
.logo-img {
    height: 100px;
    width: auto;
    display: block;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}
.logo-text span {
    color: var(--red);
}
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: var(--transition);
}
.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}
.nav a:hover {
    color: var(--red);
}
.nav a.active {
    color: var(--red);
}
.nav-cta {
    margin-left: 8px;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    border-top: 3px solid var(--red);
    z-index: 999;
}
.mega-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.mega-grid h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--red);
    margin-bottom: 12px;
    font-weight: 600;
}
.mega-grid ul li {
    margin-bottom: 6px;
}
.mega-grid ul li a {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}
.mega-grid ul li a:hover {
    color: var(--red);
}
.nav-item--mega {
    position: relative;
}
.nav-item--mega>a {
    cursor: pointer;
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--grey-light);
    padding: 24px;
    overflow-y: auto;
    z-index: 999;
    border-top: 1px solid #ddd;
}
.mobile-nav.open {
    display: block;
}
.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid #ddd;
}
.mobile-nav a:hover {
    color: var(--red);
}
.mobile-nav .btn {
    display: inline-flex;
    margin-top: 12px;
}

/* ===== MAIN ===== */
#main {
    background: var(--grey-light);
    padding-top: 0;
}

/* ===== HERO ===== */
.hero {
    background: var(--grey-light);
    color: var(--text);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark);
}
.hero h1 span {
    color: var(--red);
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
}
.hero-stats div {
    text-align: left;
}
.hero-stats .num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}
.hero-stats .label {
    font-size: 0.85rem;
    color: var(--text-light);
}
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 10px;
    border: 1px solid var(--grey-light);
    min-height: 320px;
}
.hero-image-img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}
.hero-image-placeholder {
    text-align: center;
    color: var(--grey-mid);
    font-size: 0.95rem;
}
.hero-image-placeholder svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.4;
    stroke: var(--grey-mid);
}

/* ===== SEARCH ===== */
.search-bar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto 16px;
    border: 1px solid var(--grey-light);
}
.search-bar input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    font-family: var(--font);
}
.search-bar button {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}
.search-bar button:hover {
    background: var(--red-dark);
}

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--red);
}
.category-card .icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
}
.category-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

/* ===== INDUSTRIES ===== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.industry-tag {
    background: var(--white);
    padding: 14px 20px;
    border-radius: 40px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}
.industry-tag:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.25);
}

/* ===== WHY CHOOSE ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
}
.why-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid var(--grey-light);
    background: var(--white);
}
.why-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--red);
}
.why-item .icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: block;
}
.why-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.why-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ===== CERTIFICATIONS ===== */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 48px;
}
.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-light);
    background: var(--white);
    padding: 8px 20px;
    border-radius: 40px;
}
.cert-item .badge {
    background: var(--red);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--grey-light);
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.product-card .img {
    height: 200px;
    background: var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--grey-mid);
    border-bottom: 1px solid var(--grey-light);
}
.product-card .body {
    padding: 20px;
}
.product-card .body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.product-card .body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 14px;
}
.product-card .body .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-card .body .meta .price {
    font-weight: 700;
    color: var(--red);
}
.product-card .body .meta .btn {
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* ===== BRANDS ===== */
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px 48px;
}
.brand-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--grey-mid);
    letter-spacing: 0.04em;
    padding: 12px 24px;
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
}
.brand-item:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.testimonial-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    border-left: 4px solid var(--red);
}
.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 12px;
}
.testimonial-card .author {
    font-weight: 600;
    font-size: 0.95rem;
}
.testimonial-card .role {
    font-size: 0.85rem;
    color: var(--grey-mid);
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--dark), #2a2a2a);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    border-radius: var(--radius);
    margin: 0 24px;
}
.cta-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-banner p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 28px;
}
.cta-banner .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.blog-card {
    border-radius: var(--radius);
    border: 1px solid var(--grey-light);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
}
.blog-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.blog-card .img {
    height: 160px;
    background: var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-mid);
    font-size: 0.85rem;
}
.blog-card .body {
    padding: 20px;
}
.blog-card .body .tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
    font-weight: 600;
}
.blog-card .body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 6px 0 8px;
}
.blog-card .body p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--grey-light);
    color: var(--text);
    padding: 60px 0 32px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer a {
    color: var(--text-light);
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
}
.footer a:hover {
    color: var(--red);
}
.footer .logo {
    color: var(--dark);
    margin-bottom: 12px;
}
.footer .logo span {
    color: var(--red);
}
.footer p {
    font-size: 0.9rem;
    max-width: 320px;
    color: var(--text-light);
}
.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.footer-social {
    display: flex;
    gap: 16px;
}
.footer-social a {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-light);
}
.footer-social a:hover {
    background: var(--red);
    color: var(--white);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: #25d366;
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    color: var(--white);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 16px 24px;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
}
.cookie-banner .btn {
    flex-shrink: 0;
}
.cookie-banner.hidden {
    display: none;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--red);
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    line-height: 1;
}
.back-to-top:hover {
    background: var(--red-dark);
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(200, 16, 46, 0.5);
}
.back-to-top.hidden {
    display: none !important;
}
@media (max-width: 768px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        bottom: 78px;
        right: 16px;
    }
}

/* ===== CHATBOT ===== */
.chatbot-toggle {
    position: fixed;
    bottom: 150px;
    right: 24px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    font-size: 2rem;
    border: none;
    box-shadow: 0 4px 20px rgba(200,16,46,0.4);
    cursor: pointer;
    transition: transform 0.3s;
}
.chatbot-toggle:hover {
    transform: scale(1.08);
}
.chatbot-modal {
    display: none;
    position: fixed;
    bottom: 220px;
    right: 24px;
    z-index: 9999;
    width: 340px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    padding: 24px;
    max-height: 500px;
    overflow-y: auto;
}
.chatbot-modal.open {
    display: block;
}
.chatbot-close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}
.chatbot-content h3 {
    margin-top: 0;
}
.chatbot-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}
.chatbot-content .btn {
    width: 100%;
    justify-content: center;
}
@media (max-width: 768px) {
    .chatbot-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
        bottom: 134px;
        right: 16px;
    }
    .chatbot-modal {
        bottom: 190px;
        right: 16px;
        width: 300px;
    }
}

/* ===== PAGE SECTIONS ===== */
.page-section {
    display: block;
    animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CATALOG FILTERS ===== */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}
.catalog-filters select,
.catalog-filters input {
    padding: 10px 16px;
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    font-family: var(--font);
    background: var(--white);
    min-width: 180px;
}
.catalog-filters select:focus,
.catalog-filters input:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ===== CONTACT ===== */

/* Form container – full width on mobile */
.contact-form {
    max-width: 860px;
    margin: 0 auto 48px;
}
.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-family: var(--font);
    font-size: 0.95rem;
    background: var(--white);
    box-sizing: border-box;
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* Contact details – two‑column grid */
.contact-info {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.contact-info .item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.contact-info .item .icon {
    font-size: 1.4rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}
.contact-info .item h4 {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 4px 0;
}
.contact-info .item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Map container */
.map-container {
    max-width: 860px;
    margin: 48px auto 0;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== CONTACT – MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-form {
        max-width: 100%;
        padding: 0 12px;
    }
    .contact-info .item {
        padding: 0 12px;
    }
    .map-container {
        height: 200px;
        margin: 32px 12px 0;
    }
}
@media (max-width: 480px) {
    .contact-info .item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .contact-info .item .icon {
        width: auto;
        text-align: left;
    }
}

/* ===== DEALER ===== */
.dealer-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
}

/* ===== CAREER ===== */
.job-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.job-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--red);
}
.job-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
}
.job-card .location {
    font-size: 0.9rem;
    color: var(--text-light);
}
.job-card .btn {
    margin-top: 12px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--grey-mid);
    padding: 16px 0;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--grey-mid);
}
.breadcrumb a:hover {
    color: var(--red);
}
.breadcrumb .sep {
    color: var(--grey-mid);
}

.breadcrumb {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.product-detail-grid .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.product-detail-grid .gallery .main {
    grid-column: 1 / -1;
    height: 320px;
    background: var(--grey-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-mid);
}
.product-detail-grid .gallery .thumb {
    height: 100px;
    background: var(--grey-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-mid);
    font-size: 0.75rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.product-detail-grid .gallery .thumb:hover {
    border-color: var(--red);
}
.product-detail-grid .info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.product-detail-grid .info .sku {
    color: var(--grey-mid);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.product-detail-grid .info .desc {
    color: var(--text-light);
    margin-bottom: 20px;
}
.product-detail-grid .info .specs {
    background: var(--grey-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.product-detail-grid .info .specs li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}
.product-detail-grid .info .specs li:last-child {
    border-bottom: 0;
}
.product-detail-grid .info .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero h1 {
        font-size: 2.6rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .job-list {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }

    /* ---- MAKE LOGO LARGER ON MOBILE ---- */
    .header-inner {
        height: auto;            /* allow header to expand */
        padding: 10px 0;
    }
    .logo-img {
        height: 80px;            /* larger logo on mobile (adjust as needed) */
        width: auto;
    }

    /* ---- MOBILE NAV POSITION ---- */
    .mobile-nav {
        top: 140px;              /* adjust to match header height after logo enlargement */
        height: calc(100vh - 140px);
    }

    .hero {
        padding: 60px 0 48px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    .section {
        padding: 48px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .mega-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cta-banner {
        margin: 0 12px;
        padding: 40px 20px;
    }
    .contact-form {
        padding: 24px;
    }
    .dealer-form {
        padding: 24px;
    }
    .catalog-filters select,
    .catalog-filters input {
        min-width: 140px;
        width: 100%;
    }
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .search-bar {
        flex-direction: column;
        padding: 12px;
    }
    .search-bar input {
        width: 100%;
        padding: 12px;
    }
    .search-bar button {
        width: 100%;
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    /* adjust logo further if needed on tiny screens */
    .logo-img {
        height: 70px;
    }
}

/* ===== UTILITIES ===== */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ===== CHATBOT (AI Assistant) ===== */
.chatbot-toggle {
    position: fixed;
    bottom: 150px;
    right: 24px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--red, #c8102e);
    color: white;
    font-size: 2rem;
    border: none;
    box-shadow: 0 4px 20px rgba(200,16,46,0.4);
    cursor: pointer;
    transition: transform 0.3s;
}
.chatbot-toggle:hover {
    transform: scale(1.08);
}

.chatbot-modal {
    position: fixed;
    bottom: 220px;
    right: 24px;
    z-index: 9999;
    width: 400px;
    max-width: 90vw;
    height: 550px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}
.chatbot-modal.open {
    display: flex;
}
.chatbot-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    background: white;
}
.chatbot-close {
    align-self: flex-end;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    margin-bottom: 4px;
}
#chatbot-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
    min-height: 200px;
}
.chatbot-message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}
.chatbot-message.bot {
    background: #e9ecef;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chatbot-message.user {
    background: var(--red, #c8102e);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
#chatbot-input-area {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
#chatbot-input-area input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
}
#chatbot-input-area input:focus {
    border-color: var(--red, #c8102e);
}
#chatbot-input-area button {
    background: var(--red, #c8102e);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
}
#chatbot-input-area button:hover {
    background: var(--red-dark, #a00d24);
}
@media (max-width: 768px) {
    .chatbot-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
        bottom: 130px;
        right: 16px;
    }
    .chatbot-modal {
        bottom: 180px;
        right: 16px;
        width: 300px;
        height: 450px;
    }
}

/* ============================================================
   ENHANCED MOBILE RESPONSIVENESS
   ============================================================ */

/* --- 1. Base font size adjustment for small screens --- */
@media (max-width: 768px) {
    html {
        font-size: 15px; /* slightly smaller base */
    }
    .container {
        padding: 0 16px;
    }
    .section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    .container {
        padding: 0 12px;
    }
}



@media (max-width: 480px) {
    .products-grid,
    .catalog-grid {
        grid-template-columns: 1fr; /* single column on very small screens */
        gap: 16px;
    }
}

/* --- 3. Product Cards --- */
@media (max-width: 480px) {
    .product-card .img {
        height: 150px; /* reduce image height */
    }
    .product-card .body h4 {
        font-size: 1rem;
    }
    .product-card .body p {
        font-size: 0.85rem;
    }
}

/* --- 4. Product Detail Page --- */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-detail-grid .product-detail-image img {
        max-height: 300px;
        width: 100%;
        object-fit: contain;
    }
    .product-detail-info h1 {
        font-size: 1.6rem;
    }
    .product-detail-info .specs-table td {
        font-size: 0.85rem;
    }
}

/* --- 5. Hero Section --- */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 20px;
    }
    .hero-stats .num {
        font-size: 1.5rem;
    }
    .hero-image {
        min-height: 200px;
    }
    .hero-image-img {
        max-height: 200px;
    }
}

/* ============================================================
   CATEGORIES GRID – FORCE 4 COLUMNS ON DESKTOP
   ============================================================ */

/* Desktop: exactly 4 columns */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Tablet (≤1024px): 3 columns */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small tablet (≤768px): 2 columns */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .category-card {
        padding: 20px 16px;
    }
    .category-card .icon {
        font-size: 2rem;
    }
    .category-card h4 {
        font-size: 0.9rem;
    }
}

/* Mobile (≤480px): 1 column */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .category-card {
        padding: 16px 12px;
    }
    .category-card .icon {
        font-size: 1.8rem;
    }
    .category-card h4 {
        font-size: 0.85rem;
    }
}

/* --- 7. Industries Grid --- */
.industries-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

@media (max-width: 480px) {
    .industries-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .industry-tag {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* --- 8. Why Choose Grid --- */
.why-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 9. Testimonials --- */
.testimonial-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 10. Blog Grid --- */
.blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 11. Search Bar --- */
.search-bar {
    max-width: 100%;
    padding: 6px;
}
.search-bar input {
    padding: 8px 12px;
    font-size: 0.95rem;
}
.search-bar button {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* --- 12. Header & Navigation (mobile overrides) --- */
@media (max-width: 768px) {
    /* .header-inner already set above; we keep this for other adjustments */
    .hamburger span {
        width: 24px;
        height: 2.5px;
    }
    .mobile-nav a {
        padding: 10px 0;
        font-size: 1rem;
    }
    .top-bar-inner {
        flex-direction: row; /* keep inline */
        font-size: 0.75rem;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- 13. Footer --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* --- 14. Breadcrumb --- */
.breadcrumb {
    font-size: 0.75rem;
    padding: 10px 0;
}
.breadcrumb .sep {
    margin: 0 4px;
}

/* --- 15. Contact Form --- */
.contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
}
.contact-form {
    padding: 20px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 10px 12px;
    font-size: 0.95rem;
}

/* --- 16. Dealer Form --- */
.dealer-form {
    padding: 20px;
}
.dealer-form .form-row {
    grid-template-columns: 1fr;
}

/* --- 17. CTA Banner --- */
.cta-banner {
    padding: 40px 20px;
    margin: 0 12px;
}
.cta-banner h2 {
    font-size: 1.4rem;
}
.cta-banner p {
    font-size: 0.95rem;
}

/* --- 18. Certification Badges --- */
.cert-grid {
    gap: 16px;
}
.cert-item {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* --- 19. Brand Logos --- */
.brands-grid {
    gap: 20px 24px;
}
.brand-item {
    padding: 8px 16px;
    font-size: 0.9rem;
}


/* ---- Product Detail – Info Sections ---- */
.info-sections {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.info-section {
    background: var(--grey-light, #f5f5f5);
    padding: 16px 20px;
    border-radius: var(--radius, 8px);
    border-left: 4px solid var(--red, #c8102e);
}
.info-section h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark, #1e1e1e);
}
.info-section p,
.info-section li {
    font-size: 0.95rem;
    color: var(--text-light, #555555);
    margin: 0;
}
.info-section ul {
    list-style: disc;
    padding-left: 20px;
    margin: 4px 0 0;
}
.info-section ul li {
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .info-sections {
        grid-template-columns: 1fr;
    }
}