/* ===================================
   Medicamo - LTR Layout Overrides
   =================================== */

/* Remove RTL direction */
html {
    direction: ltr;
}

/* Adjust navbar for LTR */
.navbar-brand {
    margin-right: auto;
    margin-left: 0;
}

.cart-icon {
    margin-left: auto;
    margin-right: 0;
}

/* Adjust product card badge position for LTR */
.product-badge {
    left: auto;
    right: 20px;
}

/* Adjust cart badge position for LTR */
.cart-badge {
    left: auto;
    right: 0;
}

/* Adjust footer and text alignment for LTR */
.footer-section {
    text-align: left;
}

.contact-info li i {
    margin-right: 10px;
    margin-left: 0;
}

/* Adjust buttons icons for LTR */
.btn i {
    margin-right: 8px;
    margin-left: 0;
}

/* Adjust about features checkmarks */
.about-features li::before {
    margin-right: 1rem;
    margin-left: 0;
}

/* Flip hero animation direction */
.hero-image {
    left: auto;
    right: 10%;
}

/* Adjust product price currency */
.product-price .currency {
    margin-right: 0;
    margin-left: 0.3rem;
}

.product-old-price {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Compact Page Header - 2 lines only */
.page-header {
    padding: 2rem 0 1.5rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem 0 1rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .breadcrumb {
        gap: 0.3rem;
        font-size: 0.9rem;
    }
}

/* Mobile menu adjustments for LTR */
@media (max-width: 768px) {

    /* Show hamburger button on mobile */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 10px;
        cursor: pointer;
        color: #ffffff;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        z-index: 1002;
    }

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Navbar layout for mobile */
    .navbar {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        padding: 0.8rem 0 !important;
    }

    .navbar-brand {
        order: 1;
    }

    .mobile-menu-btn {
        order: 2;
    }

    .cart-icon {
        order: 3;
    }

    /* Slide-in menu from right */
    .navbar-nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 80px 20px 20px !important;
        gap: 0 !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3) !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1001 !important;
        overflow-y: auto !important;
        display: flex !important;
    }

    .navbar-nav.active {
        right: 0 !important;
    }

    .navbar-nav li {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block !important;
        width: 100% !important;
        padding: 1rem 0 !important;
        font-size: 1.2rem !important;
        text-align: left !important;
    }

    .nav-link:hover {
        background: transparent !important;
        padding-left: 15px !important;
    }

    /* Overlay when menu is open */
    .navbar-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}