/* Gallery Nav Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}
.gallery-arrow:hover { background: rgba(0, 0, 0, 0.9); }
.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }

/* Custom Lightbox Modal */
.custom-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.custom-lightbox img {
    max-width: 80%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10000;
}
.lightbox-close:hover { color: #ffc107; }

/* Card Hover Animations */
.hover-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid #dee2e6 !important;
}
.hover-card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd !important;
    box-shadow: 0 .5rem 1rem rgba(13, 110, 253, 0.15) !important;
}

/* Testimonial Cards */
.improved-testimonial {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.improved-testimonial:hover {
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.1);
    border-color: #cfe2ff;
}
.testimonial-stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Thumbnail Hover Overlay Styles */
.thumb-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: all 0.25s ease-in-out;
    height: 80px;
    background-color: #f8f9fa;
}
.thumb-wrapper:hover {
    border-color: #0d6efd !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}
.thumb-wrapper.active-thumb {
    border: 2px solid #0d6efd !important;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}
.thumb-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.thumb-wrapper:hover img {
    transform: scale(1.08);
}
.thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 600;
    text-align: center;
    padding: 8px 2px 2px 2px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease-in-out;
    pointer-events: none;
    box-sizing: border-box;
}
.thumb-wrapper:hover .thumb-overlay {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 768px) {
    .thumb-overlay {
        font-size: 8px !important;
        padding: 6px 1px 2px 1px !important;
    }
}
@media (max-width: 480px) {
    .thumb-overlay {
        font-size: 7px !important;
        padding: 4px 1px 1px 1px !important;
        letter-spacing: -0.2px !important;
    }
    .thumb-wrapper.active-thumb .thumb-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tile Spec Box Styles */
.tile-spec-box {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    padding: 10px 14px;
    border-left: 3px solid #0d6efd;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    height: 100%;
}
.tile-spec-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.08);
}
.tile-spec-kicker {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #64748b;
    display: block;
    margin-bottom: 2px;
}
.tile-spec-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Floating WhatsApp Button */
@keyframes bounceAnim {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}
.floating-whatsapp {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 26px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: bounceAnim 2s infinite;
    transition: background 0.3s;
}
.floating-whatsapp:hover {
    background-color: #20ba5a;
    color: #FFF;
}

/* FAQ Accordion Styling */
#exportFaqAccordion .accordion-item {
    transition: all 0.25s ease-in-out;
}
#exportFaqAccordion .accordion-item:hover {
    border-color: #0d6efd !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
#exportFaqAccordion .accordion-button:hover {
    background-color: #f8f9fa;
    color: #0d6efd !important;
}

/* ==========================================================================
   Product Specifications Table Styling (New Responsive Code)
   ========================================================================== */
.matrix-custom-table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
}
.matrix-custom-table thead tr {
    background: #bad3ed;
    color: #475569;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.matrix-custom-table thead th {
    padding: 10px 18px;
    font-weight: 700;
    border: none;
}
.matrix-custom-table thead th:first-child {
    width: 30%;
    border-radius: 6px 0 0 6px;
}
.matrix-custom-table thead th:nth-child(2) {
    width: 44%;
}
.matrix-custom-table thead th:last-child {
    width: 26%;
    border-radius: 0 6px 6px 0;
}
.matrix-custom-table tr.matrix-row {
    background: #ffffff;
    transition: all 0.2s ease-in-out;
    -webkit-tap-highlight-color: transparent;
}
.matrix-custom-table tr.matrix-row td {
    padding: 14px 18px;
    vertical-align: middle;
    transition: border-color 0.2s ease;
}
.matrix-custom-table tr.matrix-row td:first-child {
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
}
.matrix-custom-table tr.matrix-row td:nth-child(2) {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.matrix-custom-table tr.matrix-row td:last-child {
    border: 1px solid #e2e8f0;
    border-left: none;
    border-radius: 0 10px 10px 0;
    text-align: right;
}
.matrix-custom-table tr.matrix-row:hover td {
    border-color: #1a73e8 !important;
}
.matrix-custom-table tr.matrix-row:hover {
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.12);
}
.spec-icon-box {
    width: 38px;
    height: 38px;
    background: #eef4ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
}
.spec-icon-box i {
    color: #1a73e8;
    font-size: 1rem;
}
.spec-title-text {
    font-size: 0.88rem;
    line-height: 1.2;
}
.spec-sub-text {
    font-size: 0.74rem;
}
.spec-dim-main {
    font-size: 0.84rem;
}
.spec-thick-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 8px;
    margin: 2px 0 2px 4px;
}
.spec-bottom-note {
    font-size: 0.8rem;
}
.spec-btn-inquiry {
    font-size: 0.82rem;
    border-color: #0dcaf0;
    color: #087990;
    border-radius: 6px;
}
@media (max-width: 768px) {
    .matrix-custom-table thead {
        display: none;
    }
    .matrix-custom-table, 
    .matrix-custom-table tbody, 
    .matrix-custom-table tr.matrix-row {
        display: block;
        width: 100%;
    }
    .matrix-custom-table tr.matrix-row {
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 14px;
        background: #ffffff;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .matrix-custom-table tr.matrix-row td {
        display: block;
        width: 100% !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 6px 0 !important;
        text-align: left !important;
    }
    .matrix-custom-table tr.matrix-row td:first-child {
        padding-bottom: 10px !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        margin-bottom: 8px;
    }
    .matrix-custom-table tr.matrix-row td:last-child {
        padding-top: 8px !important;
    }
    .matrix-custom-table tr.matrix-row:hover,
    .matrix-custom-table tr.matrix-row:active {
        border-color: #1a73e8 !important;
        box-shadow: 0 4px 16px rgba(26, 115, 232, 0.18) !important;
    }
}

/* ==========================================================================
   Pushpa Stone Impex - Complete Production Navbar & Dropdown CSS
   ========================================================================== */

/* 1. Base Dropdown Architecture */
.split-dropdown-pane {
    min-width: 680px;
    border-radius: 12px;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff;
    overflow: hidden;
}

/* 2. Left Master Category Nav */
.split-nav-left {
    width: 240px;
    background-color: #f8fafc;
    flex-shrink: 0;
}

.split-kicker {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.split-nav-left .nav-pills .nav-link {
    font-size: 0.83rem;
    font-weight: 600;
    color: #334155;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.split-nav-left .nav-pills .nav-link:hover {
    background-color: #f1f5f9;
    color: #0d6efd;
}

.split-nav-left .nav-pills .nav-link.active {
    background-color: #ffffff;
    color: #0d6efd;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Desktop Left Pane - Explore Home Textiles Link & Hover */
.desktop-textile-link {
    color: #64748b;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.desktop-textile-link:hover {
    color: #0d6efd !important;
    background-color: #f1f5f9;
}

.desktop-textile-link i {
    transition: transform 0.2s ease;
}

.desktop-textile-link:hover i {
    transform: translate(2px, -2px);
    color: #0d6efd !important;
}

/* 3. Right Dynamic Content Pane */
.split-content-right {
    min-height: 280px;
}

.view-category-all {
    font-size: 0.74rem;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
}

.view-category-all:hover {
    text-decoration: underline;
}

/* 4. Desktop Stone Product Links */
.stone-spec-link {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.15s ease;
}

.stone-spec-link:hover {
    border-color: #93c5fd;
    background-color: #fcfdff;
    transform: translateY(-1px);
}

.stone-spec-link.active-link {
    border-color: #0d6efd;
    background-color: #eff6ff;
}

.stone-link-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
}

.stone-spec-link:hover .stone-link-title,
.stone-spec-link.active-link .stone-link-title {
    color: #0d6efd;
}

.stone-link-sub {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 1px;
}

/* 5. Desktop Layout Setup (>= 992px) */
@media (min-width: 992px) {
    .split-mega-dropdown {
        position: relative !important;
    }

    .split-mega-dropdown .split-dropdown-pane {
        left: auto !important;
        right: 0 !important;
        max-width: 90vw;
    }

    .mobile-nav-pair,
    .mobile-nav-single {
        display: contents;
    }

    .mobile-textile-wrap {
        display: none !important;
    }
}

/* 6. Toggler Button (3-Line Hamburger to Clean ✕) */
.navbar-toggler {
    padding: 7px 10px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease-in-out !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
}

.navbar-toggler:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

/* Menu Closed: Default 3 Lines */
.navbar-toggler.collapsed .navbar-toggler-icon,
.navbar-toggler .navbar-toggler-icon {
    width: 1.25em !important;
    height: 1.25em !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231e293b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transform: none !important;
    transition: transform 0.2s ease, background-image 0.2s ease;
}

/* Menu Open: Clean ✕ */
.navbar-toggler[aria-expanded="true"] {
    background-color: #eff6ff !important;
    border-color: #0d6efd !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230d6efd' stroke-width='2' stroke-linecap='round'%3e%3cpath d='M3 3l10 10M13 3L3 13'/%3e%3c/svg%3e") !important;
    transform: rotate(90deg) !important;
}

/* 7. Clean Mobile View (<= 991px) */
@media (max-width: 991px) {
    /* Frosted Glass Overlay (Page push nahi hoga) */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        max-height: 85vh;
        overflow-y: auto;
        z-index: 1050;
    }

    /* Clean Top Nav (Box hata kar simple inline row) */
    .mobile-nav-pair {
        display: flex !important;
        gap: 20px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f1f5f9;
    }

    .mobile-nav-pair .nav-link,
    .mobile-nav-single .nav-link {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 8px 0 !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        text-align: left !important;
        transition: color 0.2s ease;
    }

    /* Clean Hover Feedback */
    .mobile-nav-pair .nav-link:hover,
    .mobile-nav-pair .nav-link:active,
    .mobile-nav-single .nav-link:hover,
    .mobile-nav-single .nav-link:active {
        background: transparent !important;
        color: #0d6efd !important;
    }

    .mobile-nav-single {
        margin: 10px 0 6px 0 !important;
    }

    /* Split Dropdown Reset */
    .split-dropdown-pane {
        min-width: 100% !important;
        width: 100% !important;
        position: static !important;
        float: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .split-dropdown-pane > div {
        flex-direction: column !important;
    }

    /* Category Buttons in 2x2 Clean Grid */
    .split-nav-left {
        width: 100% !important;
        padding: 8px 0 !important;
        border-right: none !important;
        border-bottom: 1px dashed #cbd5e1 !important;
        background: transparent !important;
    }

    .split-nav-left .nav-pills {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        overflow-x: visible !important;
    }

    .split-nav-left .nav-pills .nav-link {
        width: 100% !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        font-size: 0.76rem !important;
        border-radius: 8px !important;
        text-align: center !important;
        justify-content: center !important;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
    }

    .split-nav-left .nav-pills .nav-link.active {
        background: #0d6efd !important;
        color: #ffffff !important;
        border-color: #0d6efd !important;
    }

    .split-nav-left .nav-pills .nav-link.active i {
        color: #ffffff !important;
    }

    .split-nav-left .nav-pills .nav-link i.bi-chevron-right {
        display: none !important;
    }

    .split-nav-left .border-top {
        display: none !important;
    }

    /* Compact 2-Column Product Chips */
    .split-content-right {
        padding: 8px 0 !important;
        max-height: 230px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        min-height: auto !important;
    }

    .split-content-right .row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    .split-content-right .row > div {
        width: 100% !important;
        padding: 0 !important;
    }

    .stone-spec-link {
        padding: 8px 10px !important;
        margin-bottom: 0 !important;
        border-radius: 6px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        display: flex !important;
        align-items: center !important;
        min-height: 38px !important;
    }

    .stone-link-title {
        font-size: 0.76rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        color: #1e293b !important;
    }

    .stone-link-sub {
        display: none !important;
    }

    .split-content-right .mb-3 {
        margin-bottom: 8px !important;
        padding-bottom: 4px !important;
    }

    .split-content-right .fs-6 {
        font-size: 0.85rem !important;
    }

    /* Mobile Active/Selected Product State */
    .stone-spec-link.active-link {
        border-color: #0d6efd !important;
        background-color: #eff6ff !important;
    }

    .stone-spec-link.active-link .stone-link-title {
        color: #0d6efd !important;
    }

    /* Bottom Centered Home Textiles Link (Clean Text Only) */
    .mobile-textile-wrap {
        border-top: 1px dashed #e2e8f0;
        padding-top: 14px;
        margin-top: 10px;
        text-align: center;
    }

    .mobile-textile-link {
        display: inline-flex !important;
        align-items: center;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 6px 12px !important;
        font-size: 0.82rem !important;
        font-weight: 500 !important;
        color: #64748b !important;
        text-decoration: none !important;
        transition: color 0.2s ease;
    }

    .mobile-textile-link:hover,
    .mobile-textile-link:active {
        background: transparent !important;
        color: #0d6efd !important;
    }
}

/* ==========================================================================
   Clean Box with Solid Teal Hover + Permanent Moving Arrow Loop (Touch Safe)
   ========================================================================== */

@media (max-width: 991px) {
    /* 1. Mobile Menu Container par Touch Lock & Context Popups Band */
    .navbar-collapse {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        touch-action: pan-y;
    }

    /* 2. Links & Buttons Touch-Freeze & Grey Highlight Prevention */
    .navbar-collapse a,
    .navbar-collapse button,
    .stone-spec-link,
    .textile-custom-btn {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .mobile-textile-wrap {
        border-top: 1px dashed #e2e8f0;
        padding-top: 16px;
        margin-top: 14px;
        display: flex;
        justify-content: center;
    }

    /* Normal State: Minimal Clean Box */
    .textile-custom-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        max-width: 290px;
        padding: 10px 20px;
        background-color: #ffffff;
        border: 1.5px solid #cbd5e1;
        border-radius: 5px;
        text-decoration: none !important;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .textile-custom-btn .btn-text {
        font-size: 0.88rem;
        font-weight: 600;
        color: #334155;
        letter-spacing: 0.3px;
        transition: color 0.3s ease;
    }

    /* Arrow: Continuous smooth forward-backward movement */
    .textile-custom-btn .btn-arrow {
        font-size: 1rem;
        color: #334155;
        display: inline-block;
        animation: arrowNudge 0.75s ease-in-out infinite alternate;
        transition: color 0.3s ease;
    }

    /* Hover & Touch State: Solid Teal Fill */
    .textile-custom-btn:hover,
    .textile-custom-btn:active {
        background-color: #00bcd4 !important;
        border-color: #00bcd4 !important;
        box-shadow: 0 4px 14px rgba(0, 188, 212, 0.35);
        transform: translateY(-1px);
    }

    .textile-custom-btn:hover .btn-text,
    .textile-custom-btn:active .btn-text,
    .textile-custom-btn:hover .btn-arrow,
    .textile-custom-btn:active .btn-arrow {
        color: #000000 !important;
    }
}

/* Arrow Forward & Backward Loop */
@keyframes arrowNudge {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(6px);
    }
}