/* ======================================
   Responsive Enhancements for PuffyB2B
   ====================================== */

/* ============= Mobile First Approach ============= */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    h1 {
        font-size: 28px !important;
        line-height: 1.3em;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    h4 {
        font-size: 18px !important;
    }

    /* Banner Headers */
    .banner-header h1 {
        font-size: 32px !important;
    }

    .banner-header h6 {
        font-size: 12px !important;
    }

    /* Section Padding */
    .section-padding {
        padding: 40px 0 !important;
    }

    /* Navigation Adjustments */
    .navbar-nav {
        padding: 15px 0;
    }

    .navbar-nav .nav-item {
        padding: 8px 0;
        text-align: center;
    }

    .navbar-nav .dropdown-menu {
        width: 100%;
        text-align: center;
    }

    /* User Account Dropdown Mobile */
    #user-account {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 10px 0 !important;
    }

    #user-account .dropdown {
        width: 100%;
        text-align: center;
    }

    #user-account .cart-icon-wrapper {
        width: 100%;
        text-align: center;
    }

    /* Forms */
    .login-form,
    .reg-form {
        padding: 20px 15px !important;
    }

    .form-group {
        margin-bottom: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
    }

    .button-1,
    .button-2,
    .button-3,
    button[type="submit"] {
        width: 100%;
        padding: 12px 20px !important;
        font-size: 14px !important;
        margin-bottom: 10px;
    }

    /* Login/Register Links */
    .form-group .row .col-md-6 {
        text-align: center !important;
        margin-bottom: 10px;
    }

    .form-group .row .col-md-6.text-right {
        text-align: center !important;
    }

    /* Contact Page */
    .contact-box .item {
        margin-bottom: 20px;
        padding: 20px 15px !important;
    }

    .contact-box .col-lg-3,
    .contact-box .col-md-6 {
        margin-bottom: 15px;
    }

    /* Google Maps Responsive */
    .google-map iframe {
        width: 100% !important;
        height: 300px !important;
    }

    /* Product Grid */
    .cars1 .item {
        margin-bottom: 30px;
    }

    .cars1 .con .row {
        flex-direction: column;
    }

    .cars1 .con .book {
        margin-top: 15px;
        text-align: center;
    }

    /* Item Details */
    .car-details .col-lg-8,
    .car-details .col-lg-4 {
        margin-bottom: 30px;
    }

    /* Gallery Grid */
    .gallery-items .col-md-4 {
        margin-bottom: 15px;
    }

    /* Blog Grid */
    .post .content {
        padding: 15px !important;
    }

    .post .title a {
        font-size: 18px !important;
    }

    /* Footer */
    .footer .widget-area {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer .second-footer .row {
        text-align: center;
    }

    .footer .social-icons ul {
        justify-content: center;
    }

    .footer-contact-links-wrapper {
        flex-direction: column !important;
    }

    .footer-contact-link-wrapper {
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    .footer-contact-links-divider {
        display: none !important;
    }

    /* App Section - Keep same style on all screens */
    #app .item {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    #app .item .row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    #app .item .col-lg-6 {
        flex: 0 0 60%;
        max-width: 60%;
    }

    #app .item .col-lg-4 {
        flex: 0 0 35%;
        max-width: 35%;
        margin-left: auto;
    }

    #app .item .col-lg-4 img {
        display: block !important;
        max-width: 100%;
        height: auto;
    }

    #app h6 {
        font-size: 12px !important;
    }

    #app h3 {
        font-size: 18px !important;
    }

    #app p {
        font-size: 12px !important;
    }

    #app .button-3 {
        padding: 8px 15px !important;
        font-size: 11px !important;
        margin-bottom: 5px !important;
        margin-right: 5px !important;
    }

    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 12px !important;
    }

    table th,
    table td {
        padding: 8px 4px !important;
        white-space: nowrap;
    }

    /* Modals */
    .modal-dialog {
        margin: 10px !important;
    }

    .modal-body {
        padding: 15px !important;
    }

    /* Cart */
    .cart-icon-wrapper .cart-count {
        font-size: 10px;
        padding: 2px 5px;
    }
}

/* Small Devices (Landscape Phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    /* Banner Headers */
    .banner-header h1 {
        font-size: 36px;
    }

    /* Forms - 2 columns */
    .reg-form .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Contact Box */
    .contact-box .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Google Maps */
    .google-map iframe {
        width: 100% !important;
        height: 350px !important;
    }

    /* Product Grid - 2 columns */
    .cars1 .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* App Section - Keep same layout */
    #app .item .row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    #app .item .col-lg-6,
    #app .item .col-md-12:first-child {
        flex: 0 0 60%;
        max-width: 60%;
    }

    #app .item .col-lg-4,
    #app .item .col-md-12:last-child {
        flex: 0 0 35%;
        max-width: 35%;
    }

    #app .item .col-lg-4 img {
        display: block !important;
    }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navbar */
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
    }

    /* Typography */
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 30px;
    }

    /* Forms */
    .login-form,
    .reg-form {
        padding: 30px;
    }

    /* Google Maps */
    .google-map iframe {
        width: 100% !important;
        height: 400px !important;
    }

    /* Footer */
    .footer .col-md-3,
    .footer .col-md-4 {
        margin-bottom: 30px;
    }

    /* Product Grid */
    .cars1 .item .con .row {
        align-items: center;
    }

    /* App Section - Keep same layout */
    #app .item .row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    #app .item .col-lg-6,
    #app .item .col-md-12:first-child {
        flex: 0 0 55%;
        max-width: 55%;
    }

    #app .item .col-lg-4,
    #app .item .col-md-12:last-child {
        flex: 0 0 40%;
        max-width: 40%;
    }

    #app .item .col-lg-4 img {
        display: block !important;
    }
}

/* Large Devices (Desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container Adjustments */
    .container {
        max-width: 960px;
    }

    /* Typography Fine-tuning */
    h1 {
        font-size: 38px;
    }

    /* Navbar */
    .navbar-nav .nav-item {
        padding: 0 10px;
    }
}

/* ============= Additional Responsive Utilities ============= */

/* Landscape Orientation Specific */
@media (max-width: 767px) and (orientation: landscape) {
    .banner-header {
        min-height: 300px !important;
    }

    .banner-header.section-padding {
        padding: 60px 0 !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ============= Component-Specific Responsive Fixes ============= */

/* Registration Form - Company Fields */
@media (max-width: 767px) {
    #companyFields,
    #companyFields2 {
        margin-top: 10px;
    }

    .reg-form .col-md-12.text-center {
        margin-top: 20px;
    }
}

/* Item Details - Sidebar */
@media (max-width: 991px) {
    .car-details .sidebar {
        margin-top: 40px;
    }
}

/* Blog Single - Sidebar */
@media (max-width: 991px) {
    .blog-single .sidebar {
        margin-top: 40px;
    }
}

/* Accordion */
@media (max-width: 767px) {
    .accordion-box .acc-btn {
        font-size: 14px;
        padding: 12px 15px;
    }

    .accordion-box .acc-content {
        padding: 10px 15px;
    }
}

/* Owl Carousel - Touch Optimization */
.owl-carousel {
    -webkit-tap-highlight-color: transparent;
}

/* Slider Touch */
.header.slider .owl-carousel .item {
    min-height: 400px;
}

@media (max-width: 767px) {
    .header.slider .owl-carousel .item {
        min-height: 300px;
    }
}

/* ============= Admin Panel Responsive Enhancements ============= */

@media (max-width: 991px) {
    /* Admin Tables */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Admin Buttons */
    .btn-group {
        display: flex;
        flex-direction: column;
    }

    .btn-group .btn {
        margin-bottom: 5px;
        width: 100%;
    }

    /* Admin Cards */
    .card {
        margin-bottom: 20px;
    }

    /* Admin Forms */
    .form-group .col-md-6 {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    /* Admin Panel Specific */
    .horizontal-menu {
        position: relative;
    }

    /* Material Order Tables */
    #MaterialOrderTbl,
    #PendingOrderTbl {
        font-size: 11px;
    }

    #MaterialOrderTbl td,
    #MaterialOrderTbl th,
    #PendingOrderTbl td,
    #PendingOrderTbl th {
        padding: 6px 3px !important;
        vertical-align: middle;
    }

    #MaterialOrderTbl .btn,
    #PendingOrderTbl .btn {
        font-size: 10px;
        padding: 4px 8px;
        margin: 2px 0;
    }

    /* Admin Modal */
    .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
}

/* ============= Utility Classes ============= */

/* Show/Hide on Different Screens */
.mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

/* Text Alignment Responsive */
@media (max-width: 767px) {
    .text-md-left,
    .text-md-right,
    .text-md-center {
        text-align: center !important;
    }
}

/* Spacing Utilities */
@media (max-width: 767px) {
    .mb-xs-30 {
        margin-bottom: 30px !important;
    }

    .mt-xs-30 {
        margin-top: 30px !important;
    }

    .p-xs-15 {
        padding: 15px !important;
    }
}

/* ============= Accessibility Improvements ============= */

/* Touch Target Size (minimum 44x44px for mobile) */
@media (max-width: 767px) {
    a,
    button,
    .btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Exception for inline links in paragraphs */
    p a {
        min-height: auto;
        min-width: auto;
        display: inline;
    }
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid #aa8453;
    outline-offset: 2px;
}

/* ============= Performance Optimizations ============= */

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============= Print Styles ============= */

@media print {
    .navbar,
    .footer,
    .app,
    .btn,
    button {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
    }
}

/* ============= Mobile Navbar Scroll Indicator ============= */

.mobile-overflow-arrow {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #aa8453 0%, #8b6b3f 100%);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(170, 132, 83, 0.4);
    z-index: 999;
    cursor: pointer;
    animation: bounceArrow 2s infinite;
    transition: all 0.3s ease;
}

.mobile-overflow-arrow i {
    font-size: 20px;
    line-height: 50px;
}

.mobile-overflow-arrow:hover {
    background: linear-gradient(135deg, #8b6b3f 0%, #aa8453 100%);
    box-shadow: 0 6px 20px rgba(170, 132, 83, 0.6);
    transform: translateX(-50%) scale(1.1);
}

.mobile-overflow-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Bounce animation for scroll indicator */
@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Show only on mobile when navbar is expanded */
@media (max-width: 991.98px) {
    .mobile-overflow-arrow.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Navbar adjustments for scroll indicator */
    .navbar-collapse {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Custom scrollbar for navbar */
    .navbar-collapse::-webkit-scrollbar {
        width: 4px;
    }

    .navbar-collapse::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }

    .navbar-collapse::-webkit-scrollbar-thumb {
        background: #aa8453;
        border-radius: 4px;
    }

    .navbar-collapse::-webkit-scrollbar-thumb:hover {
        background: #8b6b3f;
    }
}

/* ============= Floating WhatsApp Button ============= */

.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    cursor: pointer;
}

/* LTR (English) - Position on left */
html[dir="ltr"] .floating-whatsapp-btn {
    left: 30px;
}

/* RTL (Arabic) - Position on right */
html[dir="rtl"] .floating-whatsapp-btn {
    right: 30px;
}

.floating-whatsapp-btn:hover,
.floating-whatsapp-btn:focus {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

.floating-whatsapp-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp-btn i {
    transition: transform 0.3s ease;
    line-height: 1;
}

.floating-whatsapp-btn:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* Pulse animation */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* ============= MOBILE RESPONSIVE ENHANCEMENTS ============= */

/* Extra Small Mobile (< 375px) */
@media (max-width: 374.98px) {
    .floating-whatsapp-btn {
        width: 48px;
        height: 48px;
        font-size: 24px;
        bottom: 15px;
        border-width: 2px;
    }

    html[dir="ltr"] .floating-whatsapp-btn {
        left: 15px;
    }

    html[dir="rtl"] .floating-whatsapp-btn {
        right: 15px;
    }
}

/* Standard Mobile (375px - 767px) */
@media (min-width: 375px) and (max-width: 767.98px) {
    .floating-whatsapp-btn {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 20px;
        border-width: 2px;
    }

    html[dir="ltr"] .floating-whatsapp-btn {
        left: 16px;
    }

    html[dir="rtl"] .floating-whatsapp-btn {
        right: 16px;
    }

    /* Increase touch target area */
    .floating-whatsapp-btn::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border-radius: 50%;
    }
}

/* Tablet responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
    .floating-whatsapp-btn {
        width: 58px;
        height: 58px;
        font-size: 30px;
        bottom: 25px;
    }

    html[dir="ltr"] .floating-whatsapp-btn {
        left: 20px;
    }

    html[dir="rtl"] .floating-whatsapp-btn {
        right: 20px;
    }
}

/* ============= MOBILE SPECIFIC FIXES ============= */

/* Landscape orientation on mobile - move button up to avoid notch/home indicator */
@media (max-width: 991.98px) and (orientation: landscape) {
    .floating-whatsapp-btn {
        bottom: 15px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    html[dir="ltr"] .floating-whatsapp-btn {
        left: 15px;
    }

    html[dir="rtl"] .floating-whatsapp-btn {
        right: 15px;
    }
}

/* Hide when mobile navbar is expanded (to avoid overlap) */
@media (max-width: 991.98px) {
    .navbar-collapse.show ~ body .floating-whatsapp-btn,
    body.navbar-open .floating-whatsapp-btn {
        opacity: 0.3;
        pointer-events: none;
        transform: scale(0.8);
    }
}

/* Safe area support for notched devices (iPhone X+, etc.) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .floating-whatsapp-btn {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    html[dir="ltr"] .floating-whatsapp-btn {
        left: calc(16px + env(safe-area-inset-left));
    }

    html[dir="rtl"] .floating-whatsapp-btn {
        right: calc(16px + env(safe-area-inset-right));
    }
}

/* ============= OVERLAP PREVENTION ============= */

/* Avoid overlap with scroll-to-top button */
.progress-wrap {
    z-index: 9998 !important;
}

/* Move scroll-to-top button when both are visible */
@media (max-width: 767.98px) {
    html[dir="ltr"] .progress-wrap {
        right: 15px !important;
        bottom: 90px !important; /* Position above WhatsApp button */
    }

    html[dir="rtl"] .progress-wrap {
        left: 15px !important;
        bottom: 90px !important; /* Position above WhatsApp button */
    }
}

/* Adjust scroll-to-top for tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    html[dir="ltr"] .progress-wrap {
        right: 20px !important;
        bottom: 100px !important;
    }

    html[dir="rtl"] .progress-wrap {
        left: 20px !important;
        bottom: 100px !important;
    }
}

/* ============= ACCESSIBILITY ENHANCEMENTS ============= */

/* Focus visible for keyboard navigation */
.floating-whatsapp-btn:focus-visible {
    outline: 3px solid #25D366;
    outline-offset: 4px;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.8);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp-btn {
        animation: none;
        transition: none;
    }

    .floating-whatsapp-btn:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .floating-whatsapp-btn {
        border: 3px solid #fff;
        background: #25D366;
    }
}

/* Dark mode support (if website has dark mode) */
@media (prefers-color-scheme: dark) {
    .floating-whatsapp-btn {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.6);
        border-color: rgba(255, 255, 255, 0.4);
    }
}

/* ============= LOADING STATE ============= */

/* Hide initially and fade in after page load */
.floating-whatsapp-btn {
    animation: pulse-whatsapp 2s infinite, fadeInWhatsApp 0.5s ease 0.5s forwards;
    opacity: 0;
}

@keyframes fadeInWhatsApp {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ============= RIPPLE EFFECT ON CLICK ============= */

.whatsapp-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ============= PRINT STYLES ============= */

@media print {
    .floating-whatsapp-btn {
        display: none !important;
    }
}

/* ============= MOBILE TOUCH OPTIMIZATIONS ============= */

/* Improve tap highlight on mobile */
@media (max-width: 991.98px) {
    .floating-whatsapp-btn {
        -webkit-tap-highlight-color: rgba(37, 211, 102, 0.3);
        touch-action: manipulation;
    }

    /* Prevent text selection on tap */
    .floating-whatsapp-btn * {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    /* Active state for mobile touch */
    .floating-whatsapp-btn:active {
        transform: scale(0.92);
        transition: transform 0.1s ease;
    }
}

/* ============= SMOOTH TRANSITIONS ============= */

/* Smooth movement when avoiding footer */
.floating-whatsapp-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease,
                bottom 0.3s ease;
}

/* When navbar is open on mobile */
body.navbar-open .floating-whatsapp-btn {
    opacity: 0.3;
    pointer-events: none;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

/* ============= VERY SMALL SCREENS (< 320px) ============= */

@media (max-width: 319.98px) {
    .floating-whatsapp-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
        bottom: 12px !important;
    }

    html[dir="ltr"] .floating-whatsapp-btn {
        left: 12px !important;
    }

    html[dir="rtl"] .floating-whatsapp-btn {
        right: 12px !important;
    }
}

/* ============= OWL CAROUSEL DOTS LIMIT ============= */
/* Show only 2 dots maximum when there are more than 3 items */

/*
 * Logic:
 * - If 1-3 items: Show all dots
 * - If 4+ items: Show only first 2 dots
 */

/* Default: Hide all dots after the second one */
.owl-carousel .owl-dots .owl-dot:nth-child(n+3) {
    display: none !important;
}

/* Show all dots ONLY when there are exactly 1, 2, or 3 total dots */
.owl-carousel .owl-dots .owl-dot:first-child:nth-last-child(-n+3),
.owl-carousel .owl-dots .owl-dot:first-child:nth-last-child(-n+3) ~ .owl-dot {
    display: inline-block !important;
}

/* Styling for the dots */
.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
}



/* Hide the inner span element (if present) */
.owl-carousel .owl-dots .owl-dot span {
    display: none;
}

