/* =============================================================
   NEO SURGICAL — COMPREHENSIVE RESPONSIVE STYLESHEET
   Breakpoints: 1400 | 1200 | 991 | 767 | 575 | 480 | 360
   ============================================================= */

/* ──────────────────────────────────────────────────────────────
   1. GLOBAL RESETS & BASE
   ────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

/* Global utility container to align content with floating navbar width */
.custom-container {
    width: 95% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ──────────────────────────────────────────────────────────────
   2. FLOATING HEADER (layout.blade.php pages)
   ────────────────────────────────────────────────────────────── */

/* ── CENTER LOGO layout for floating-navbar ── */
.floating-navbar {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.nav-main-group {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    flex: 1;
    /* fill full pill width */
    min-width: 0;
    margin: -10px;
    /* prevent grid blowout */
}

/* Left nav group */
.nav-links-left {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 60px;
}

.nav-links-left ul,
.nav-links-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 36px;
}

/* Center logo */
.floating-center-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.floating-center-logo img,
.floating-navbar .logo img {
    height: 120px !important;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.floating-center-logo img:hover {
    transform: scale(1.04);
}

/* RIGHT nav group */
.nav-links-right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 60px;
}

/* Cart Section for regular header */
.nav-cart-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
}

/* Mobile dropdown — full-width panel below the pill */
.mobile-nav-dropdown {
    display: none;
    /* hidden on desktop */
    width: 94%;
    max-width: 1400px;
    margin: 8px auto 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        margin 0.25s ease;
    pointer-events: none;
}

.mobile-nav-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.mobile-nav-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 13px 24px;
    color: #4b6b8b !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-dropdown ul li:last-child a {
    border-bottom: none;
}

.mobile-nav-dropdown ul li a:hover,
.mobile-nav-dropdown ul li a.active {
    background: #f0f6ff;
    color: #1a498b !important;
    padding-left: 30px;
}

/* Open state — triggered by JS .open class */
.mobile-nav-dropdown.open {
    max-height: 400px;
    opacity: 1;
    pointer-events: all;
}

/* Hamburger bars */
.nav-toggle {
    display: none;
    /* hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    z-index: 10001;
    position: relative;
    flex-shrink: 0;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Animated X when open */
.nav-toggle.open .hamburger {
    background: transparent;
}

.nav-toggle.open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ── Tablet Responsiveness (768px - 1024px) ── */
@media (max-width: 1024px) and (min-width: 768px) {
    .nav-links-left {
        padding-right: 25px;
        gap: 25px;
    }

    .nav-links-right {
        padding-left: 25px;
        gap: 25px;
    }

    .nav-main-group {
        max-width: 95%;
    }
}

/* ── Mobile: ≤ 767px ── */
@media (max-width: 767px) {

    /* Make the floating header a flex-column wrapper */
    .floating-header {
        top: 10px !important;
        flex-direction: column !important;
        align-items: center !important;
        pointer-events: none;
    }

    /* Pill becomes a flex row: logo centred, hamburger on right */
    .floating-navbar {
        width: 94% !important;
        padding: 6px 16px !important;
        border-radius: 40px !important;
        pointer-events: all;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* nav-main-group shrinks to just the logo */
    .nav-main-group {
        display: flex !important;
        justify-content: center;
        flex: 1;
    }

    /* Center logo on mobile */
    .floating-center-logo img,
    .floating-navbar .logo img {
        height: 48px !important;
        max-width: 180px !important;
    }

    /* Hide desktop nav links */
    .nav-links-left,
    .nav-links-right {
        display: none !important;
    }
    
     /* Position the cart near the hamburger */
    .nav-cart-section {
        position: absolute;
        right: 50px;
    }

    /* Show hamburger */
    .nav-toggle {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    /* Show dropdown below pill */
    .mobile-nav-dropdown {
        display: block;
        pointer-events: none;
    }

    .mobile-nav-dropdown.open {
        pointer-events: all;
    }
}

@media (max-width: 575px) {
    .floating-navbar {
        width: 96% !important;
        padding: 5px 12px !important;
    }

    .floating-center-logo img,
    .floating-navbar .logo img {
        height: 40px !important;
        max-width: 160px !important;
    }

    .mobile-nav-dropdown {
        width: 96%;
    }
}

/* ──────────────────────────────────────────────────────────────
   DROPDOWN MENU  (shared by both navbars)
   ────────────────────────────────────────────────────────────── */

/* Wrapper — must be position:relative for the menu to anchor */
.neo-dropdown {
    position: relative;
}

/* The toggle link — same style as regular links, plus chevron */
.neo-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.neo-chevron {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.neo-dropdown:hover .neo-chevron {
    transform: rotate(180deg);
}

/* The floating card menu */
.neo-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
    min-width: 190px;
    padding: 8px 0;
    z-index: 10010;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: top center;
}

/* Small arrow pointing up */
.neo-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #ffffff;
    filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.06));
}

/* Transparent bridge to cover the gap between toggle and menu */
.neo-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 25px;
    background: transparent;
    z-index: -1;
}

.neo-dropdown-menu.open {
    display: block;
    opacity: 1;
    pointer-events: all;
    animation: dropFadeIn 0.2s ease forwards;
}

@keyframes dropFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.neo-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #4b6b8b !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, padding-left 0.18s;
    border-bottom: 1px solid #f4f6f9;
    white-space: nowrap;
}

.neo-dropdown-menu a:last-child {
    border-bottom: none;
}

.neo-dropdown-menu a i {
    font-size: 13px;
    width: 16px;
    text-align: center;
    color: #8aaacc;
    flex-shrink: 0;
}

.neo-dropdown-menu a:hover,
.neo-dropdown-menu a.active {
    background: #f0f6ff;
    color: #1a498b !important;
    padding-left: 26px;
}

.neo-dropdown-menu a.active i {
    color: #1a498b;
}

/* ── Mega Dropdown Menu (Products hover) ── */
.neo-dropdown-menu.neo-mega-menu {
    width: 760px;
    min-width: 700px;
    padding: 24px !important;
    left: -170px;
    transform: none;
    border: 1px solid #e8ecf0;
}

/* Offset arrow position to align with Products label */
.neo-dropdown-menu.neo-mega-menu::before {
    left: 210px;
    transform: none;
}

@keyframes megaDropFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.neo-dropdown-menu.neo-mega-menu.open {
    animation: megaDropFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

.mega-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 18px;
    padding: 12px 18px !important;
    color: #4b6b8b !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-bottom: none !important;
    border-radius: 14px;
    white-space: normal !important;
    background: #ffffff;
    border: 1px solid transparent !important;
}

.mega-menu-item:hover {
    background: #f1f7ff !important;
    color: #1a498b !important;
    padding-left: 24px !important;
    border-color: #dbeaff !important;
    box-shadow: 0 6px 20px rgba(26, 73, 139, 0.08);
}

.mega-menu-img-wrapper {
    width: 72px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease;
}

.mega-menu-item:hover .mega-menu-img-wrapper {
    transform: scale(1.05);
}

.mega-menu-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.mega-menu-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    transition: color 0.25s;
    letter-spacing: 0.3px;
}

.mega-menu-item:hover .mega-menu-name {
    color: #1a498b;
}

/* ── Mobile dropdown: group label & sub-items ── */
.mobile-group-label {
    padding: 8px 24px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aab8c8;
    list-style: none;
}

.mobile-sub a {
    padding-left: 36px !important;
    font-size: 14px !important;
    color: #6b8aaa !important;
}

.mobile-sub a:hover,
.mobile-sub a.active {
    padding-left: 44px !important;
    color: #1a498b !important;
}

/* ──────────────────────────────────────────────────────────────
   3. HOME HEADER (home_layout.blade.php pages)
   ────────────────────────────────────────────────────────────── */

/* Desktop pill */
.home-nav-inner {
    background: #fff;
    width: 90%;
    max-width: 1100px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    pointer-events: all;
    position: relative;
}

/* Navigation Main Group */
.home-nav-main-group {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    width: 100%;
    max-width: none;
    /* Removed width restrictions */
}

/* LEFT nav group (Home + Products) */
.home-nav-left {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: flex-start;
    /* Align to the left edge */
    padding-left: 20px;
}

/* CENTER logo */
.home-nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.home-nav-logo img {
    height: 90px;
    width: auto;
    max-width: none;
    transform: scale(1.45) translateX(12px);
    /* Scale up 45%, and shift right by 12px to offset the Cart column and maintain perfect centering */
    transition: transform 0.3s ease;
}

.home-nav-logo img:hover {
    transform: scale(1.5) translateX(12px);
}

/* RIGHT nav links */
.home-nav-right {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: flex-end;
    /* Align toward the cart on the right */
    padding-right: 30px;
}

/* RIGHT group (cart + hamburger) */
.home-nav-cart-section {
    position: static;
    /* Cart inside grid flow */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding-right: 20px;
    /* Padding near right edge of pill */
}

/* Shared link styles */
.home-nav-links a {
    color: #4b6b8b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.25s;
    white-space: nowrap;
}

.home-nav-links a:hover,
.home-nav-links a.active {
    color: #1a498b;
    border-bottom: 2px solid #1a498b;
    padding-bottom: 3px;
}

/* Cart button */
.home-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f4f8;
    color: #4b6b8b;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s, background 0.25s;
    flex-shrink: 0;
}

.home-cart-btn:hover {
    transform: scale(1.08);
    background: #e3ecf8;
    color: #1a498b;
}

.home-cart-btn .cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #0f234b;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hamburger (hidden on desktop) */
.home-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.home-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #4b6b8b;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Animated X */
.home-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.home-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.home-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown */
.home-mobile-dropdown {
    display: none;
    width: 94%;
    max-width: 1400px;
    margin: 8px auto 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    pointer-events: none;
}

.home-mobile-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.home-mobile-dropdown ul li a {
    display: block;
    padding: 13px 24px;
    color: #4b6b8b !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.home-mobile-dropdown ul li:last-child a {
    border-bottom: none;
}

.home-mobile-dropdown ul li a:hover,
.home-mobile-dropdown ul li a.active {
    background: #f0f6ff;
    color: #1a498b !important;
    padding-left: 32px;
}

.home-mobile-dropdown.open {
    max-height: 500px;
    opacity: 1;
    pointer-events: all;
}

/* ── Tablet Responsiveness (768px - 1024px) ── */
@media (max-width: 1024px) and (min-width: 768px) {
    .home-nav-left {
        gap: 30px;
        padding-right: 30px;
    }

    .home-nav-right {
        gap: 30px;
        padding-left: 30px;
    }

    .home-nav-main-group {
        max-width: 95%;
    }

    .home-nav-links a {
        font-size: 13px;
    }

    .home-nav-logo img {
        height: 100px !important;
        max-width: 250px !important;
    }
}

/* ── Mobile: ≤ 767px ── */
@media (max-width: 767px) {
    #home_header {
        padding: 12px 20px !important;
    }

    .home-nav-inner {
        padding: 8px 18px !important;
        border-radius: 32px !important;
    }

    /* Hide desktop left nav entirely, but only hide text links in right nav to preserve cart */
    .home-nav-left,
    .home-nav-right>a:not(.home-cart-btn),
    .home-nav-right .neo-dropdown {
        display: none !important;
    }

    .home-nav-main-group {
        display: flex !important;
        justify-content: center;
        width: 100%;
    }

    .home-nav-logo img {
        height: 50px !important;
        max-width: 200px !important;
    }

    /* Show hamburger */
    .home-nav-toggle {
        display: flex !important;
    }

    /* Show mobile dropdown */
    .home-mobile-dropdown {
        display: block;
        pointer-events: none;
    }

    .home-mobile-dropdown.open {
        pointer-events: all;
    }

    .home-nav-cart-section {
        right: 18px;
    }
}

/* ── Small phones: ≤ 575px ── */
@media (max-width: 575px) {
    #home_header {
        padding: 10px 10px !important;
    }

    .home-nav-inner {
        border-radius: 24px !important;
        padding: 7px 14px !important;
    }

    .home-nav-logo img {
        height: 42px !important;
        max-width: 160px !important;
    }

    .home-mobile-dropdown {
        width: 96%;
    }
}

/* ── Very small phones: ≤ 360px ── */
@media (max-width: 360px) {
    .home-nav-logo img {
        height: 38px !important;
        max-width: 140px !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   4. HOME PAGE — HERO SECTION
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .dark-hero-section {
        min-height: 100svh;
        height: auto !important;
    }

    .hero-content-layer {
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        padding: 80px 5% 40px !important;
        gap: 20px;
        height: auto !important;
        min-height: 100svh;
    }

    .hero-left-text {
        transform: none !important;
        align-self: flex-start !important;
    }

    .hero-title {
        font-size: 2.8rem !important;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 11px !important;
    }

    .hero-right-text {
        align-self: flex-start !important;
        text-align: left !important;
        margin-bottom: 0 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-content-layer {
        padding: 70px 5% 30px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem !important;
    }

    .btn-explore-products {
        padding: 12px 24px !important;
        font-size: 11px !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   5. HOME PAGE — CATEGORY SHOWCASE SECTION
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .category-showcase-section {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .showcase-left {
        width: 100% !important;
        height: 50vw !important;
        max-height: 380px;
    }

    .sticky-image-container {
        position: relative !important;
        top: auto !important;
        height: 100% !important;
    }

    .showcase-right {
        width: 100% !important;
        padding: 50px 6% 60px !important;
    }

    .category-scroll-block {
        margin-bottom: 60px !important;
        min-height: auto !important;
    }

    .category-title {
        font-size: 1.8rem !important;
    }

    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {
    .showcase-left {
        height: 60vw !important;
        max-height: 280px;
    }

    .showcase-right {
        padding: 30px 5% 40px !important;
    }

    .category-title {
        font-size: 1.5rem !important;
    }

    .product-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .category-desc {
        max-width: 100% !important;
    }

    .btn-explore-category {
        font-size: 11px !important;
        padding: 10px 20px !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   6. HOME PAGE — FEATURES SECTION
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .card-wide {
        grid-column: span 2 !important;
    }

    .card-narrow {
        grid-column: span 1 !important;
    }

    .card-small {
        grid-column: span 1 !important;
    }
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
}

@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .card-wide {
        grid-column: span 2 !important;
    }

    .card-narrow {
        grid-column: span 1 !important;
    }

    .card-small {
        grid-column: span 1 !important;
    }

    .features-section {
        padding: 60px 0 !important;
    }

    .features-section h2,
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }
}

@media (max-width: 575px) {
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .card-wide {
        grid-column: span 1 !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   7. HOME PAGE — CONTACT SECTION
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .contact-section-new .row.align-items-center {
        flex-direction: column !important;
    }

    .contact-text-side-new {
        text-align: center;
        padding-right: 0 !important;
    }

    .contact-text-side-new h2 {
        font-size: 1.9rem !important;
    }

    .contact-info-list {
        margin-top: 30px !important;
    }

    .contact-text-side-new .desc {
        text-align: justify !important;
    }

    .contact-item {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .contact-card {
        margin-top: 30px !important;
    }
}

@media (max-width: 575px) {
    .contact-section-new {
        padding: 50px 0 !important;
    }

    .contact-text-side-new h2 {
        font-size: 1.5rem !important;
    }

    .form-tabs {
        flex-direction: row !important;
        gap: 8px !important;
    }

    .tab-btn {
        font-size: 12px !important;
        padding: 8px 14px !important;
    }

    .custom-input {
        font-size: 14px !important;
    }

    .btn-submit-dark {
        font-size: 13px !important;
        padding: 14px !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   8. FOOTER (both footers)
   ────────────────────────────────────────────────────────────── */

/* Dark home footer */
.dark-footer-container {
    flex-direction: row;
    flex-wrap: wrap;
}

.footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 991px) {
    .dark-footer-container {
        flex-direction: column !important;
        padding: 0 24px !important;
        gap: 30px !important;
    }

    .footer-col-1,
    .footer-col-2,
    .footer-col-3,
    .footer-col-4 {
        max-width: 100% !important;
        width: 100% !important;
    }

    .footer-bottom {
        padding: 20px 24px !important;
        flex-direction: column !important;
        text-align: center;
        gap: 8px;
    }

    .app-stores {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 12px !important;
    }
}

/* Layout footer */
@media (max-width: 991px) {

    .footer_style_2 .col-lg-3,
    .footer_style_2 .col-lg-2,
    .footer_style_2 .col-lg-4 {
        margin-bottom: 30px;
    }

    .cprt .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .catalog-card {
        margin-top: 0 !important;
    }

    .app-links {
        display: flex !important;
        gap: 12px;
    }

    .app-links img {
        height: 32px !important;
    }
}

@media (max-width: 575px) {
    .footer_style_2 {
        padding: 40px 0 10px !important;
    }

    .dark-footer {
        padding: 40px 0 10px !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   9. CATEGORY LIST PAGE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {

    /* Hero */
    .products-hero {
        height: 55vh !important;
        min-height: 360px !important;
        padding-left: 6% !important;
        background-attachment: scroll !important;
    }

    /* Process grid: 2 columns */
    .process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .process-step {
        clip-path: none !important;
        border-radius: 12px !important;
        padding: 28px 24px !important;
    }

    .process-step:first-child,
    .process-step:last-child {
        clip-path: none !important;
    }

    /* OEM */
    .oem-section {
        flex-direction: column !important;
        padding: 60px 6% !important;
        text-align: center;
    }

    .oem-content {
        max-width: 100% !important;
        text-align: center;
    }

    .oem-graphic {
        width: 100% !important;
    }

    /* Stats bar: 2 cols */
    .stats-bar {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 767px) {

    /* Process grid: 1 column */
    .process-grid {
        grid-template-columns: 1fr !important;
    }

    .category-banners-wrapper {
        padding: 30px 4% !important;
    }

    .trust-section {
        padding: 50px 5% !important;
    }

    .trust-title {
        font-size: 1.5rem !important;
    }

    .trust-desc {
        font-size: 0.9rem !important;
    }

    /* Stats: 2 cols stays, but reduce padding */
    .stat-item {
        padding: 24px 10px !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }
}

@media (max-width: 575px) {
    .products-hero {
        height: 45vh !important;
        min-height: 280px !important;
        padding-left: 5% !important;
    }

    .hero-title-main {
        font-size: 1.8rem !important;
    }

    .stats-bar {
        grid-template-columns: 1fr !important;
    }

    .oem-icon-circle {
        width: 120px !important;
        height: 120px !important;
        font-size: 3rem !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   10. ABOUT PAGE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-section {
        flex-direction: column !important;
        padding: 70px 5% 50px !important;
        text-align: center;
    }

    .hero-content {
        max-width: 100% !important;
        margin-bottom: 30px !important;
    }

    .hero-image-wrapper {
        max-width: 90% !important;
    }

    .hero-buttons {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 12px !important;
    }

    .hero-title {
        font-size: 2.4rem !important;
    }

    .location-section,
    .contact-section {
        flex-direction: column !important;
        padding: 60px 5% !important;
        text-align: center;
    }

    .location-content {
        max-width: 100% !important;
    }

    .location-map {
        max-width: 100% !important;
    }

    .contact-content {
        max-width: 100% !important;
    }

    .contact-form-wrapper {
        max-width: 100% !important;
    }

    .contact-stats {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .location-title {
        font-size: 2rem !important;
    }

    .contact-title {
        font-size: 2rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .location-title {
        font-size: 1.7rem !important;
    }

    .contact-title {
        font-size: 1.7rem !important;
    }

    .location-map iframe {
        height: 300px !important;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.7rem !important;
    }

    .btn-neo-primary,
    .btn-neo-outline {
        padding: 12px 20px !important;
        font-size: 14px !important;
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .contact-form-wrapper {
        padding: 24px 16px !important;
    }

    .form-control-neo {
        padding: 14px 16px !important;
    }

    .contact-stats {
        gap: 20px !important;
    }

    .capabilities-grid {
        grid-template-columns: 1fr !important;
    }

    .capability-card {
        padding: 28px 20px !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   11. SERVICES PAGE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .services-hero {
        padding: 120px 5% 180px !important;
        background-attachment: scroll !important;
    }

    .hero-title {
        /* services hero title */
        font-size: 3.5rem;
        letter-spacing: -1px;
    }

    .services-content {
        margin-top: -80px !important;
        padding: 0 5% 60px !important;
    }
}

@media (max-width: 767px) {
    .services-hero {
        padding: 100px 5% 160px !important;
    }

    .hero-title {
        font-size: 2.8rem !important;
        letter-spacing: -0.5px;
    }

    .service-card {
        padding: 30px 24px !important;
        margin-bottom: 30px !important;
    }

    .service-details h2 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 575px) {
    .services-hero {
        padding: 80px 5% 140px !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-desc {
        font-size: 1rem !important;
    }

    .service-card {
        padding: 24px 16px !important;
    }

    .service-details h2 {
        font-size: 1.8rem !important;
    }

    .service-details p {
        font-size: 0.95rem !important;
    }

    .features-list li {
        width: 100% !important;
    }

    .card-badge {
        font-size: 0.7rem !important;
        padding: 6px 12px !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   12. SUBCATEGORY PAGE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .skeleton-section {
        padding: 60px 4% !important;
    }

    .skeleton-wrapper {
        max-width: 500px !important;
    }
}

@media (max-width: 767px) {
    .skeleton-section {
        padding: 40px 3% !important;
    }

    /* Stack skeleton pins vertically below skeleton on very small screens */
    .skeleton-wrapper {
        max-width: 400px !important;
    }

    /* Reduce pin sizes */
    .skeleton-pin {
        font-size: 0.62rem !important;
    }

    .pin-arrow {
        width: 22px !important;
        height: 22px !important;
    }
}

@media (max-width: 575px) {
    .skeleton-section {
        padding: 30px 2% !important;
    }

    .skeleton-wrapper {
        max-width: 300px !important;
    }

    .skeleton-pin {
        font-size: 0.58rem !important;
        padding: 3px 8px !important;
        gap: 4px !important;
    }

    .pin-arrow {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.5rem !important;
    }

    .material-section {
        padding: 60px 0 !important;
    }

    .innovations-section {
        padding: 60px 0 !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   13. PRODUCT DETAIL PAGE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .product_detail .row>[class*="col-xl-6"]:first-child {
        margin-bottom: 30px;
    }

    .slideshow-container {
        max-width: 100% !important;
    }

    .product-heading h2 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 767px) {
    .product_detail {
        padding: 30px 0 !important;
    }

    .slideshow-container {
        max-width: 90% !important;
        margin: 0 auto 20px !important;
    }

    .prev {
        left: -16px !important;
    }

    .next {
        right: -16px !important;
    }
}

@media (max-width: 575px) {
    .slideshow-container {
        max-width: 100% !important;
    }

    .prev,
    .next {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .prev {
        left: -10px !important;
    }

    .next {
        right: -10px !important;
    }

    .field_custom {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }

    .btn.main_bt {
        width: 100% !important;
        padding: 14px !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   14. CERTIFICATES PAGE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .cert-hero-section {
        padding: 80px 5% !important;
    }

    .cert-title {
        font-size: 2.5rem !important;
    }

    .accreditation-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .library-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {
    .cert-hero-section {
        padding: 60px 5% !important;
    }

    .cert-title {
        font-size: 2rem !important;
    }

    .cert-desc {
        font-size: 0.9rem !important;
    }

    .accreditation-grid {
        grid-template-columns: 1fr !important;
    }

    .library-grid {
        grid-template-columns: 1fr !important;
    }

    .section-title-dark {
        font-size: 1.6rem !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   15. INNER BANNER (subcategory / productdetail)
   ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    #inner_banner {
        padding: 60px 0 30px !important;
    }

    .page-banner-title {
        font-size: 1.6rem !important;
    }

    .breadcrumb {
        font-size: 13px !important;
    }
}

@media (max-width: 575px) {
    #inner_banner {
        padding: 50px 0 24px !important;
    }

    .page-banner-title {
        font-size: 1.3rem !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   16. GENERAL UTILITY — containers, headings, spacing
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .custom-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 575px) {
    .custom-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* Prevent any element from overflowing horizontally */
    section,
    .section,
    [class*="-section"] {
        overflow-x: hidden;
    }
}

/* ──────────────────────────────────────────────────────────────
   17. HOME PAGE — NEW CONTACT SECTION (dark themed)
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .contact-section-new {
        padding: 60px 0 !important;
    }

    .contact-text-side-new h2 {
        font-size: 1.7rem !important;
        text-align: center;
    }

    .contact-info-list {
        margin-top: 24px !important;
    }

    .contact-item {
        margin-bottom: 16px !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   18. HOME PAGE — FEATURES SECTION (new grid cards)
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .feature-card-new.card-wide {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 575px) {
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .feature-card-new {
        padding: 20px !important;
    }

    .feature-card-new h4 {
        font-size: 1rem !important;
    }

    .feature-card-new p {
        font-size: 0.85rem !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   19. PRODUCT PAGE (product.blade.php)
   ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   20. TYPOGRAPHY SCALING — global safe minimums
   ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
    }

    h2 {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
    }

    h3 {
        font-size: clamp(1.1rem, 4vw, 1.6rem) !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(1.4rem, 7vw, 2rem) !important;
    }

    h2 {
        font-size: clamp(1.2rem, 6vw, 1.7rem) !important;
    }

    h3 {
        font-size: clamp(1rem, 5vw, 1.4rem) !important;
    }

    p {
        font-size: 0.92rem;
        line-height: 1.65;
    }
}

/* ──────────────────────────────────────────────────────────────
   21. SCROLL BAR (polish)
   ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ──────────────────────────────────────────────────────────────
   22. DESKTOP HERO SECTIONS (Products, Services, Certificates)
   ────────────────────────────────────────────────────────────── */
@media (min-width: 992px) {

    /* Products page hero */
    .products-hero {
        height: 100vh !important;
        min-height: 650px !important;
        display: flex !important;
        align-items: center !important;
        padding-left: 8% !important;
        box-sizing: border-box !important;
    }

    /* Services page hero */
    .services-hero {
        height: 100vh !important;
        min-height: 650px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 100px 5% 180px 5% !important;
        /* 100px top padding for header offset, 180px bottom padding to prevent overlap with cards */
        box-sizing: border-box !important;
    }

    .services-content {
        margin-top: -100px !important;
        /* Pull card up safely without overlapping the hero text */
    }

    /* Certificates page hero */
    .cert-hero-section {
        height: 100vh !important;
        min-height: 650px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Floating Header & Navbar tweaks to make them smaller and sleeker */
    .floating-header,
    #home_header {
        padding: 3px 315px !important;
    }

    .floating-navbar,
    .home-nav-inner {
        padding: 3px 18px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    }

    .floating-navbar .logo img,
    .home-nav-inner .logo img {
        height: 60px !important;
    }

    .nav-links {
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: 1 !important;
        display: flex !important;
    }

    .header-right-group {
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }

    .home-nav-links {
        margin-left: auto !important;
        margin-right: 30px !important;
        flex: none !important;
        display: flex !important;
        gap: 22px !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    .nav-links ul {
        gap: 22px !important;
    }

    .nav-links ul li a,
    .home-nav-links a {
        font-size: 13px !important;
    }

    .cart-btn,
    .home-header-right>a {
        width: 32px !important;
        height: 32px !important;
    }

    .cart-btn svg,
    .home-header-right>a i {
        font-size: 13px !important;
        width: 13px !important;
        height: 13px !important;
    }

    .home-header-right>a span {
        top: -2px !important;
        right: -4px !important;
        width: 14px !important;
        height: 14px !important;
        font-size: 8px !important;
    }

    /* Shift and scale down background video/fallback image to prevent overlap with navbar */
    .hero-video {
        width: 80% !important;
        height: 80% !important;
        transform: translateY(40px) !important;
        object-fit: contain !important;
        margin: auto !important;
    }

    .hero-fallback-img {
        width: 80% !important;
        height: 80% !important;
        transform: translateY(40px) !important;
        object-fit: contain !important;
        margin: auto !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   23. INQUIRY CART & BUTTON STYLES
   ────────────────────────────────────────────────────────────── */

/* General Cart Badge inside Navbar */
.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1f4f8;
    border-radius: 50%;
    color: #4b6b8b;
    text-decoration: none;
    transition: background 0.3s;
}

.cart-btn:hover {
    background: #e2e8f0;
    color: #0f234b;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #0077b6;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Floating Review Inquiry Pill (Bottom-Right) */
.floating-review-btn {
    position: fixed;
    bottom: 36px;
    right: 100px;
    background: #0f234b;
    color: #ffffff !important;
    padding: 14px 28px 14px 44px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Floating WhatsApp Button (Bottom-Right) */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3), 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
    background: #20ba5a;
}

.floating-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 119, 182, 0.3);
    background: #0077b6;
}

.floating-review-btn .floating-badge-wrapper {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-review-btn .floating-badge-icon {
    font-size: 20px;
}

.floating-review-btn .floating-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #0077b6;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #0f234b;
}

.floating-review-btn:hover .floating-cart-count {
    border-color: #0077b6;
    background: #0f234b;
}

/* Home Page Product Cards Cart Button styles */
.product-card .btn-add-cart {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    width: 100%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-card .btn-add-cart:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.product-card .btn-add-cart.btn-in-cart {
    background: #e8ecf0 !important;
    color: #0f234b !important;
    border: 1px solid #e8ecf0 !important;
}

.product-card .btn-add-cart.btn-in-cart:hover {
    background: #dcdfe3 !important;
}

/* Inner Page Product Cards Cart Button styles */
.product_list .btn-add-cart {
    background: transparent !important;
    color: #0f234b !important;
    border: 1px solid rgba(15, 35, 75, 0.18) !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    width: 100%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product_list .btn-add-cart:hover {
    background: rgba(15, 35, 75, 0.05) !important;
    border-color: rgba(15, 35, 75, 0.3) !important;
}

.product_list .btn-add-cart.btn-in-cart {
    background: #e8ecf0 !important;
    color: #0f234b !important;
    border: 1px solid #e8ecf0 !important;
}

.product_list .btn-add-cart.btn-in-cart:hover {
    background: #dcdfe3 !important;
}