
/* =========================================
   EYERO INDIA - PRODUCTS PAGE
   White + Light Blue Theme
========================================= */

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #F5FAFE;
    color: #101B3B;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}


/* =========================================
   NAVIGATION BAR
========================================= */

.header {
    width: 100%;
    height: 110px;
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(16, 27, 59, 0.06);
}

.navbar .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 7px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 1100;
    white-space: nowrap;
}


/* =================================
   NAVIGATION LOGO SIZE FIX
================================= */


.navbar {
    min-height: 100px;
    padding: 10px 7%;
}

.navbar .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar .logo img {
    width: 200px;
    height: 85px;
    object-fit: contain;
    display: block;
}

/* NAVIGATION CENTER */

.header .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
    white-space: nowrap;
}

.header .nav-links a,
.header .nav-dropdown-toggle {
    color: #101B3B;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.header .nav-links a:hover,
.header .nav-links a.active,
.header .nav-dropdown-toggle:hover {
    color: #159DCE;
}

/* LEGAL DROPDOWN */

.header .nav-dropdown {
    position: relative;
}

.header .nav-dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
}

.header .nav-dropdown-toggle i {
    font-size: 10px;
    margin-left: 4px;
}

.header .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 28px;
    left: 0;
    min-width: 190px;
    padding: 10px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(16, 27, 59, 0.12);
}

.header .nav-dropdown:hover .nav-dropdown-menu,
.header .nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.header .nav-dropdown-menu a {
    display: block;
    padding: 10px;
}

/* LOGIN BUTTON */

.header .login-btn {
    margin-left: auto;
    padding: 13px 29px;
    background: #101B3B;
    color: #FFFFFF;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s ease;
    white-space: nowrap;
}

.header .login-btn:hover {
    background: #159DCE;
}

/* MOBILE MENU BUTTON */

.header .menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #101B3B;
    font-size: 26px;
    cursor: pointer;
}


/* =========================================
   PRODUCTS HERO
   SAME BACKGROUND AS SERVICES
========================================= */

.products-hero {
    min-height: 430px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 7%;
    overflow: hidden;

    background: linear-gradient(
        115deg,
        #FFFFFF 0%,
        #F5FAFE 48%,
        #D9EDFB 100%
    );
}

.products-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-label {
    color: #159DCE;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.products-hero-content h1 {
    font-size: clamp(38px, 5.3vw, 65px);
    line-height: 1.12;
    letter-spacing: -2px;
    color: #101B3B;
    margin: 25px 0;
    font-weight: 800;
}

.products-hero-content h1 span {
    color: #159DCE;
}

.products-hero-content p {
    color: #536477;
    max-width: 590px;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 20px;
}


/* =========================================
   PRODUCTS SECTION
========================================= */

.products-section {
    padding: 75px 7%;
    background: #F5FAFE;
}

.products-heading {
    text-align: center;
    margin-bottom: 35px;
}

.products-heading span {
    color: #159DCE;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.products-heading h2 {
    color: #101B3B;
    font-size: 34px;
    margin: 13px 0;
    font-weight: 800;
}

.products-heading p {
    color: #536477;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
   CATEGORY FILTER BUTTONS
========================================= */

.product-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto 40px;
    max-width: 1100px;
}

.filter-btn {
    padding: 10px 18px;
    border: 1px solid #D9EDFB;
    border-radius: 25px;
    background: #FFFFFF;
    color: #101B3B;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #159DCE;
    border-color: #159DCE;
    color: #FFFFFF;
}


/* =========================================
   PRODUCTS GRID
========================================= */

.products-grid {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}


/* =========================================
   PRODUCT CARD
========================================= */

.product-card {
    width: 100%;
    min-width: 0;
    min-height: 380px;
    padding: 18px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: #FFFFFF;
    border: 1px solid #E5EDF5;
    border-radius: 15px;

    overflow: hidden;
    cursor: pointer;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.product-card:hover {
    transform: translateY(-7px);
    border-color: #C6E7F5;
    box-shadow: 0 15px 35px rgba(16, 27, 59, 0.10);
}


/* =========================================
   PRODUCT IMAGE
========================================= */

.product-image {
    width: 100%;
    height: 210px;
    flex-shrink: 0;

    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;

    background: #F5FAFE;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: contain;
    object-position: center;

    animation: productFloat 4s ease-in-out infinite;

    transition:
        transform 0.4s ease,
        filter 0.4s ease;

    will-change: transform;
}


/* =========================================
   PRODUCT IMAGE FLOATING ANIMATION
========================================= */

@keyframes productFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-9px) scale(1.04);
    }
}

/* Different timing for each image */

.product-card:nth-child(2n) .product-image img {
    animation-delay: 0.6s;
}

.product-card:nth-child(3n) .product-image img {
    animation-delay: 1.2s;
}

.product-card:nth-child(4n) .product-image img {
    animation-delay: 0.9s;
}

/* Hover image effect */

.product-card:hover .product-image img {
    animation-play-state: paused;
    transform: scale(1.08);

    filter: drop-shadow(
        0 8px 12px rgba(21, 157, 206, 0.25)
    );
}


/* =========================================
   PRODUCT TEXT
========================================= */

.product-card h3 {
    color: #101B3B;
    font-size: 17px;
    line-height: 1.4;
    margin: 10px 0;
    font-weight: 800;
}

.product-card p {
    color: #536477;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.product-card a {
    display: inline-block;
    margin-top: auto;
    padding-top: 15px;

    color: #159DCE;
    font-size: 14px;
    font-weight: 800;

    transition: color 0.3s ease;
}

.product-card a:hover {
    color: #101B3B;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    width: 100%;
    background: #071D42;
    color: #FFFFFF;
    text-align: center;
    padding: 22px;
    font-size: 14px;
}


/* =========================================
   FLOATING CONTACT BUTTONS
========================================= */

.floating-contact {
    position: fixed;
    right: 25px;
    bottom: 25px;

    display: flex;
    flex-direction: column;
    gap: 14px;

    z-index: 9999;
}

.float-btn {
    width: 58px;
    height: 58px;

    border: none;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #FFFFFF;
    font-size: 25px;
    text-decoration: none;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
    transition: 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.08);
}

.whatsapp-btn {
    background: #20CE68;
}

.call-btn {
    background: #2165F5;
}


/* =========================================
   CALL POPUP
========================================= */

.call-overlay {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(7, 20, 48, 0.65);

    z-index: 10000;

    justify-content: center;
    align-items: center;

    padding: 20px;
}

.call-overlay.active {
    display: flex;
}

.call-modal {
    background: #FFFFFF;

    width: 100%;
    max-width: 380px;

    padding: 40px 25px 25px;
    border-radius: 18px;

    text-align: center;
    position: relative;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);

    animation: popupShow 0.3s ease;
}

@keyframes popupShow {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-popup {
    position: absolute;
    right: 15px;
    top: 10px;

    border: none;
    background: none;

    color: #64748B;
    font-size: 28px;
    cursor: pointer;
}

.popup-phone-icon {
    color: #159DCE;
    font-size: 34px;
    margin-bottom: 20px;
}

.call-modal h2 {
    color: #101B3B;
    font-size: 23px;
    margin-bottom: 8px;
}

.popup-description {
    color: #64748B;
    font-size: 14px;
    margin-bottom: 22px;
}

.number-box {
    border: 1px solid #DCE5F5;
    border-radius: 10px;
    padding: 12px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;

    margin-bottom: 10px;

    color: #101B3B;
    font-size: 14px;
}

.number-box button {
    border: none;
    background: #EAF3FF;
    color: #159DCE;

    padding: 10px;
    border-radius: 7px;

    font-weight: bold;
    cursor: pointer;
}

.call-now {
    display: block;

    background: #159DCE;
    color: #FFFFFF;

    text-decoration: none;
    padding: 14px;

    border-radius: 9px;
    font-weight: bold;

    margin-bottom: 18px;
    transition: 0.3s ease;
}

.call-now:hover {
    background: #101B3B;
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 1050px) {

    .header .nav-links {
        gap: 13px;
    }

    .header .nav-links a,
    .header .nav-dropdown-toggle {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 800px) {

    .header {
        height: auto;
        min-height: 80px;
    }

    .header .navbar {
        min-height: 80px;
        height: auto;
        flex-wrap: wrap;
    }

    .header .logo img {
        width: 115px;
        height: 65px;
    }

    .header .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header .login-btn {
        margin-left: 15px;
        padding: 10px 18px;
    }

    .header .nav-links {
        display: none;

        position: static;
        transform: none;

        width: 100%;
        order: 4;

        flex-direction: column;
        align-items: flex-start;

        padding: 20px 0;
        gap: 18px;
    }

    .header .nav-links.active {
        display: flex;
    }

    .header .nav-dropdown-menu {
        position: static;
        box-shadow: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-hero {
        min-height: 400px;
        padding: 70px 6%;
    }
}


@media (max-width: 600px) {

    .products-section {
        padding: 55px 5%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-heading h2 {
        font-size: 27px;
    }

    .products-hero-content h1 {
        font-size: 38px;
    }

    .product-image {
        height: 220px;
    }

    .product-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 9px 13px;
        font-size: 12px;
    }
}


@media (max-width: 480px) {

    .header .navbar {
        padding: 10px 5%;
    }

    .header .logo img {
        width: 105px;
        height: 60px;
    }

    .header .login-btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    .floating-contact {
        right: 15px;
        bottom: 20px;
    }

    .call-modal {
        padding: 35px 16px 20px;
    }

    .number-box {
        font-size: 12px;
    }
}


/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .product-image img {
        animation: none;
        transition: none;
    }

    .product-card,
    .float-btn {
        transition: none;
    }
}

/* =================================
   EYERO - MATCHING NAVIGATION
================================= */

.header {
    width: 100%;
    height: 90px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(16, 27, 59, 0.07);
}

.navbar {
    max-width: 1350px;
    height: 100%;
    margin: auto;
    padding: 0 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo img {
    width: 125px;
    height: auto;
    display: block;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 27px;
}

.nav-links > a,
.nav-dropdown-toggle {
    text-decoration: none;
    color: #101B3B;
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-dropdown-toggle:hover {
    color: #159DCE;
}

.login-btn {
    background: #101B3B;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 27px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.login-btn:hover {
    background: #159DCE;
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    color: #101B3B;
    font-size: 23px;
    cursor: pointer;
}

/* LEGAL DROPDOWN */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle i {
    font-size: 10px;
    margin-left: 4px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(16, 27, 59, 0.12);
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    color: #101B3B;
    text-decoration: none;
    padding: 10px;
    font-size: 13px;
}

.nav-dropdown-menu a:hover {
    color: #159DCE;
    background: #F5FAFE;
}

/* MOBILE NAVIGATION */

@media (max-width: 900px) {

    .navbar {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        margin-right: 18px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        transform: none;
        width: 100%;
        background: #ffffff;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(16, 27, 59, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 105px;
    }

    .login-btn {
        padding: 10px 17px;
        font-size: 12px;
    }
}

/* =================================
   SPACE BEFORE FOOTER
================================= */

.footer {
    margin-top: 30px;
}

/* =================================
   COMMON EYERO NAVIGATION
================================= */

.site-header {
    width: 100%;
    min-height: 85px;
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 18px rgba(16, 28, 61, 0.07);
}

.site-logo img {
    width: 155px;
    height: auto;
    display: block;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.main-navigation a {
    color: #101C3D;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #159DD0;
}

.legal-menu {
    position: relative;
}

.legal-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(16, 28, 61, 0.12);
}

.legal-menu:hover .legal-dropdown,
.legal-menu:focus-within .legal-dropdown {
    display: block;
}

.legal-dropdown a {
    display: block;
    padding: 11px;
    white-space: nowrap;
}

.site-login {
    padding: 11px 20px;
    background: #159DD0;
    color: #ffffff;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #101C3D;
    font-size: 27px;
    cursor: pointer;
}

/* MOBILE NAVIGATION */

@media (max-width: 900px) {

    .site-header {
        flex-wrap: wrap;
        min-height: 75px;
    }

    .site-logo img {
        width: 130px;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        order: 3;
    }

    .main-navigation.show {
        display: flex;
    }

    .main-navigation > a,
    .legal-menu {
        width: 100%;
        padding: 13px 0;
    }

    .legal-dropdown {
        position: static;
        box-shadow: none;
        padding-left: 15px;
    }

    .legal-menu:hover .legal-dropdown {
        display: none;
    }

    .legal-menu.open .legal-dropdown {
        display: block;
    }

    .site-login {
        padding: 9px 13px;
    }
}
