#header .top-bar.hidden {
    opacity: 0;
    max-height: 0;
    padding: 0;
}

#header.scrolled .navmenu .logo {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.navbar-action .bi {
    color: #000 !important;
}

.header-nav {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar actions hidden by default */
.navbar-actions {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}


/* Slider-specific styles */
.hero-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-slider-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    position: relative;
}


.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
    font-weight: 700;
    transform: translateY(-50%);
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-pagination {
    position: absolute;
    bottom: 5px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: rgb(55, 54, 54);
    transform: scale(1.2);
}

.hero .hero-visuals .floating-elements .floating-icon img {
    height: 80px;
}

.btn-repair a {
    display: inline-block;
    padding: 4px 20px;
    border-radius: 30px;
    background: linear-gradient(145deg, #1930ff, #051df0, #fff);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    margin-right: -30px;
    margin-left: 25px;
}

.btn-repair a:hover {
    /* background: linear-gradient(135deg, #163e6c, #0855ad, #5494bf); */
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Responsive: Remove right margin on small screens */
@media (max-width: 768px) {
    .btn-repair a {
        margin-right: 0;
        margin-left: 5px;
        padding: 2px 15px;
        font-size: 14px;
    }
}

/* Mobile adjustments for wishlist item */
@media (max-width: 767px) {

    /* Hide color and size info */
    .wishlist-item .product-meta {
        display: none;
    }

    /* Buttons side by side */
    .wishlist-item .action-buttons {
        display: flex !important;
        gap: 8px;
        justify-content: center;
    }

    .wishlist-item .action-buttons .btn {
        width: 48%;
        /* two buttons side by side */
        margin-bottom: 0 !important;
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Product image and details widths */
    .wishlist-item .product-image {
        width: 40% !important;
    }

    .wishlist-item .productDetails {
        width: 60% !important;
    }

    /* Price and Stock in one row */
    .wishlist-item .price-stock-row {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .wishlist-item .price-stock-row .price-tag,
    .wishlist-item .price-stock-row .stock-status {
        text-align: left;
        margin-bottom: 0;
    }

    /* Reduce extra margin from columns on mobile */
    .wishlist-item .col-12.mt-3,
    .wishlist-item .col-12.mb-3 {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
}

#cardsContainer {
    padding: 0 40px;
}

.bestseller-card {
    padding: 0 20px;
}

/* Accordion styling */
.accordion-button {
    font-weight: 600;
    font-size: 0.9rem;
    background: #f3f5f778;
    padding: 10px 20px;
}

.accordion-item {
    margin-bottom: 12px;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #051df0, #7db1ec, #66b4e9);
    color: #fff;
    font-size: 0.9rem;
}

/* Spec table with columns */
.spec-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px 30px;
    margin-top: 10px;
}

/* Each row (key + value) */
.spec-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px dashed #e5e5e5;
    padding-bottom: 10px;
}

.spec-key {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

/* Optional CSS for grid layout */
.in-the-box-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 items per row */
    gap: 15px;
}

.in-the-box-item {
    text-align: center;
    font-size: 14px;
}

.in-the-box-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 5px;
    border-radius: 8px;
}

/* repair css */
.why-choose-us-slider {
    max-width: 1000px;
    margin: auto;
    padding: 2rem 1rem;
}

.why-choose-us-slider h2 {
    text-align: center;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 20px;
    /* space between cards */
    transition: transform 0.4s ease-in-out;
}

.slider-card {
    flex: 0 0 calc(33.333% - 20px);
    background-color: color-mix(in srgb, var(--default-color), transparent 95%);
    border-radius: 12px;
    padding: 1.8rem 1.5rem;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.slider-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.slider-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.slider-card h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 45px;
    background-color: var(--accent-color);
}

.slider-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 8px;
}

.slider-dots span {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots span.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Responsive */
@media(max-width: 1024px) {
    .slider-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media(max-width: 768px) {
    .slider-card {
        flex: 0 0 100%;
    }
}

/* Hide submenu by default */
.subcategory-tree {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 99;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Show submenu on hover */
.category-item:hover>.subcategory-tree {
    display: block;
}

/* List style inside submenu */
.subcategory-tree li {
    padding: 4px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.subcategory-tree li:last-child {
    border-bottom: none;
}

.dialog-box {
    font-family: sans-serif;
    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    10%,
    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.modal-specs-box {
    border-radius: 10px;
    padding: 15px;
}

.modal-specs-box .specs-heading {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.modal-specs-box .acc-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-specs-box .acc-specs .data {
    padding: 6px 0;
    text-transform: capitalize;
}

.modal-specs-box li:last-child {
    border-bottom: none;
}

.modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.carousel-inner img {
    border-radius: 10px;
    object-fit: cover;
    max-height: 300px;
}

.modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.modal p {
    text-align: justify;
    font-size: 14px;
}

.modal-pricing {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.modal-pricing .sale-price {
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-pricing .regular-price {
    font-size: 0.95rem;
}

.modal-pricing .discount-percent {
    font-size: 0.9rem;
}

/* === In The Box & Compatibility (Matching Modal Style) === */

.modal-inbox-box,
.modal-compatibility-box {
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.modal-inbox-box h6,
.modal-compatibility-box h6 {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.modal-inbox-box ul,
.modal-compatibility-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-inbox-box li,
.modal-compatibility-box li {
    padding: 6px 0;
    font-weight: 500;
    color: #444;
}

.modal-inbox-box p.text-muted,
.modal-compatibility-box p.text-muted {
    margin: 0;
    font-size: 0.95rem;
}

/* === Make Carousel Control Icons Black === */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100%) brightness(0);
}


/* === Desktop Sidebar (unchanged) === */
@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 100px;
    }
}

/* === Mobile Sidebar (hidden by default, slides in) === */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 280px;
        height: 100vh;
        background-color: #fff;
        z-index: 1050;
        padding: 20px;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        /* Only scroll when needed */
    }

    .sidebar.active {
        left: 0;
    }

    /* Dim background when sidebar is open */
    body.sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1049;
    }

    /* Add a top "Filter" button above products */
    .filter-toggle-btn {
        display: block;
        margin-bottom: 15px;
        text-align: right;
    }

    /* Hide the sidebar from layout flow */
    .col-lg-2.sidebar {
        position: fixed;
        width: auto;
        padding: 0;
    }
}


#brands {
    overflow: hidden;
}

#brands .brand-logo {
    object-fit: contain;
    transition: all 0.3s ease;
}

#brands .brand-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.15);
}

.brand-slider .swiper-slide {
    text-align: center;
}

.brands .swiper {
    padding: 10px 0;
}

.brands .swiper-pagination-bullet {
    display: none;
}

/* Banner Section */
#repair-banner {
    position: relative;
    overflow: hidden;
}

#repair-banner .overlay {
    background: rgba(0, 0, 0, 0.35);
    text-align: center;
    padding: 100px 20px;
}

#repair-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: "Orbitron", sans-serif;
    color: #f4f3f3;
    background: rgba(0, 0, 0, 0.35);
    padding: 0 9px;
}

#repair-banner p {
    background: rgba(0, 0, 0, 0.35);
    padding: 0 9px;
}

/* Gallery Section */
.repair-item {
    position: relative;
    cursor: pointer;
}

.repair-item .after-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.repair-item:hover .after-overlay {
    opacity: 1;
}

/* Form */
#repair-form form {
    border: 1px solid #eaeaea;
}

#repair-form .btn {
    border-radius: 50px;
    font-weight: 500;
}

#repair-form .btn:hover {
    background-color: #0855ad !important;
    /* change color on hover */
    transform: scale(1.05);
    /* slightly enlarges the button */
    transition: all 0.2s ease-in-out;
}

#confirmModal .modal-content {
    border-radius: 15px;
}

.before-after-container {
    background: #000;
    border-radius: 12px;
}

.repair-gallery .repair-item img {
    object-fit: contain;
}

.repair-gallery .repair-item .img-fluid {
    object-fit: contain;
}

.repair-gallery .repair-item video {
    align-items: center;
}

#attachmentsCarousel .carousel-item img {
    height: 300px !important;
    /* Change this value as needed */
    object-fit: contain;
    /* 'cover' crops, 'contain' fits inside */
    width: 100%;
    /* Full width of carousel */
}


/* ==========================
   DroneMart WhatsApp Chat Widget
   ========================== */

.chat-button {
    position: fixed;
    bottom: 60px;
    right: 30px;
    background-color: #15bf78;
    color: white;
    border: none;
    border-radius: 36px;
    padding: 8px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    box-shadow: 4px 5px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
}

.chat-button:hover {
    background-color: #119860;
    transform: scale(1.05);
}

/* Floating bubble text */
.chat-tooltip {
    position: fixed;
    bottom: 130px;
    right: 30px;
    background: white;
    color: #051df0;
    font-weight: 600;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    border-radius: 20px;
    padding: 10px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.4s ease forwards;
    z-index: 9999;
    transition: opacity 0.3s, transform 0.3s;
}

.chat-tooltip.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.chat-button img {
    width: 35px;
    height: 35px;
}

.chat-popup {
    position: fixed;
    bottom: 130px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    z-index: 9999;
}

.chat-popup.active {
    transform: scale(1);
}

.chat-header {
    background-color: #051df0;
    color: white;
    padding: 7px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    padding: 3px;
}

.chat-header .brand-info {
    display: flex;
    flex-direction: column;
}

.chat-header .brand-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

.chat-header .brand-info span {
    font-size: 12px;
    opacity: 0.9;
}

.chat-body {
    padding: 7px 15px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #333;
}

.chat-body p {
    margin: 0;
    background: #f1f1f1;
    padding: 10px 12px;
    border-radius: 12px;
    display: inline-block;
}

.chat-footer {
    text-align: right;
    padding: 10px 15px 20px;
}

.chat-footer a {
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s;
}

.chat-footer a:hover {
    background-color: #1ebe5b;
}

/* ==============================
# Enterprise Banner
============================== */
.call-to-action {
    position: relative;
    overflow: hidden;
    margin: 60px 0;
    background: radial-gradient(ellipse at top,
            color-mix(in srgb, var(--accent-color), transparent 96%) 0%,
            var(--surface-color) 50%);
}

/* Background animations */
.call-to-action::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            color-mix(in srgb, var(--accent-color), transparent 98%) 90deg,
            transparent 180deg,
            color-mix(in srgb, var(--heading-color), transparent 98%) 270deg,
            transparent 360deg);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.call-to-action::after {
    content: "";
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
            color-mix(in srgb, var(--accent-color), transparent 90%) 0%,
            transparent 60%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: 1;
}

.call-to-action .container {
    position: relative;
    z-index: 2;
}

/* ==============================
# Text
============================== */
.main-content {
    text-align: center;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), black 15%));
    padding: 10px 22px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.offer-badge .offer-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--contrast-color);
}

.offer-badge .limited-time {
    font-size: 10px;
    font-weight: 600;
    color: color-mix(in srgb, var(--contrast-color), transparent 20%);
    text-transform: uppercase;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--heading-font);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0114be, var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 15px;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    margin-bottom: 32px;
}

/* ==============================
# Product Image & Overlay Button
============================== */
.product-showcase {
    text-align: center;
    margin: 0 auto;
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.product-image img {
    width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.05);
}

/* ==============================
# Button
============================== */
.action-buttons {
    justify-content: center;
    margin-top: 10px;
}

.btn-shop-now {
    display: inline-block;
    padding: 10px 28px;
    background: var(--accent-color);
    color: var(--contrast-color);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-shop-now::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, white, transparent);
    opacity: 0.3;
    transition: left 0.5s ease;
}

.btn-shop-now:hover {
    transform: translateY(-2px);
    color: #fff;
}

.btn-shop-now:hover::before {
    left: 100%;
}

.mr-left {
    margin-left: -20px;
}

/* ==============================
# Responsive
============================== */
@media (max-width: 992px) {
    h2 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 16px;
    }

    .product-image img {
        width: 85%;
    }

    .mr-left {
        margin: 0;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 15px;
    }

    .product-image img {
        width: 90%;
    }

    .mr-left {
        margin: 0;
    }
}

/* ==============================
# Continuous Reviews Slider
============================== */
#reviews {
    background-color: var(--surface-color);
    padding: 60px 0;
}

#reviews .section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
}

#reviews .section-title p {
    font-size: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 50%);
    margin-bottom: 40px;
}

/* Slider wrapper */
.review-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.review-slider-track {
    display: flex;
    width: calc(200%);
    /* Because we duplicate slides */
    animation: scrollReviews 20s linear infinite;
}

.review-item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 30px;
}

.review-logo {
    width: 300px;
    height: 250px;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: transform 0.3s ease, filter 0.3s ease;
}


.review-logo:hover {
    transform: scale(1.25);
    filter: grayscale(0);
}

/* Animation */
@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .review-logo {
        width: 150px;
        height: 85px;
    }

    .review-item {
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .review-logo {
        width: 120px;
        height: 70px;
    }

    .review-item {
        margin: 0 15px;
    }
}

@media (max-width: 576px) {
    .review-logo {
        width: 100px;
        height: 60px;
    }

    .review-item {
        margin: 0 10px;
    }
}