/* ============================================
   COMPLETE MOBILE-RESPONSIVE STYLES
   ============================================ */

/* Mobile First - Base styles for all devices */
:root {
    --primary-blue: #2F80C3;
    --primary-red: #E53935;
    --primary-yellow: #FFC107;
}

/* ============================================
   HEADER - MOBILE RESPONSIVE
   ============================================ */

/* Mobile Header Layout */
@media (max-width: 992px) {
    /* Header Container */
    .main-header {
        padding: 12px 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* Logo - Adjust size for mobile */
    .logo-text {
        font-size: 20px;
    }
    
    .logo-tagline {
        font-size: 8px;
    }
    
    /* Header Row - Flex layout for mobile */
    .navbar .container-fluid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    /* Hide desktop search bar */
    .search-bar {
        display: none;
    }
    
    /* Mobile search bar - show */
    .search-bar-mobile {
        display: block;
        margin-top: 10px;
        padding: 0 15px;
    }
    
    .search-bar-mobile .search-wrapper {
        max-width: 100%;
    }
    
    /* Header Actions - Icons */
    .header-actions {
        gap: 15px;
    }
    
    .action-icon {
        font-size: 20px;
    }
    
    /* Mobile Menu Toggle Button */
    .navbar-toggler {
        display: block;
        border: none;
        background: transparent;
        padding: 0;
        width: 30px;
        height: 30px;
        position: relative;
        cursor: pointer;
    }
    
    .navbar-toggler-icon {
        width: 24px;
        height: 2px;
        background: var(--primary-blue);
        position: relative;
        display: block;
        transition: all 0.3s;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--primary-blue);
        left: 0;
        transition: all 0.3s;
    }
    
    .navbar-toggler-icon::before {
        top: -8px;
    }
    
    .navbar-toggler-icon::after {
        bottom: -8px;
    }
    
    /* Mobile Navigation Menu */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1050;
        padding: 20px;
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        left: 0;
    }
    
    /* Mobile Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Mobile Navigation Links */
    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .nav-link i {
        width: 24px;
    }
    
    /* Dropdown Menu on Mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 30px;
        background: #f8f9fa;
        display: none;
    }
    
    .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle::after {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ============================================
   TOP BAR - MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
        font-size: 11px;
    }
    
    .top-bar .row {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        text-align: center;
        width: 100%;
    }
    
    .top-bar-left span {
        display: inline-block;
        margin: 0 8px;
    }
    
    .top-bar-right {
        margin-top: 5px;
    }
    
    .top-bar-right a {
        display: inline-block;
        margin: 0 8px;
    }
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: none;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

@media (max-width: 992px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    .main-content {
        margin-bottom: 70px;
    }
    
    .back-to-top {
        bottom: 80px;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 11px;
    transition: all 0.3s;
    position: relative;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-item.active {
    color: var(--primary-red);
}

.mobile-nav-item .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary-red);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 16px;
    text-align: center;
}

/* ============================================
   HERO SECTION - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 450px;
    }
    
    .hero-content {
        padding: 40px 20px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .hero-badge {
        text-align: center;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .hero-buttons .btn:first-child {
        margin-top: 0;
    }
    
    .slick-prev,
    .slick-next {
        display: none !important;
    }
}

/* ============================================
   PRODUCT GRID - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .products-grid .row {
        margin: 0 -10px;
    }
    
    .products-grid [class*="col-"] {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .product-card-modern {
        margin-bottom: 0;
    }
    
    .product-image-modern {
        height: 180px;
    }
    
    .product-image-modern img {
        height: 140px;
    }
    
    .product-title {
        font-size: 0.85rem;
        min-height: auto;
    }
    
    .product-price-modern .current-price {
        font-size: 1rem;
    }
    
    .product-actions-modern {
        opacity: 1;
        top: auto;
        bottom: 10px;
        transform: none;
        left: 0;
        right: 0;
        justify-content: center;
        background: rgba(255,255,255,0.9);
        padding: 8px;
    }
}

/* ============================================
   CATEGORY SECTION - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .categories-section .row {
        margin: 0 -10px;
    }
    
    .categories-section [class*="col-"] {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .category-card-inner {
        padding: 25px 15px;
    }
    
    .category-icon i {
        font-size: 2rem;
    }
    
    .category-card-inner h5 {
        font-size: 0.9rem;
    }
    
    .category-card-inner p {
        font-size: 0.75rem;
    }
}

/* ============================================
   BLOG SECTION - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .blog-card-modern {
        margin-bottom: 20px;
    }
    
    .blog-image-modern {
        height: 180px;
    }
    
    .blog-content-modern {
        padding: 15px;
    }
    
    .blog-title {
        font-size: 1rem;
    }
    
    .blog-excerpt {
        font-size: 0.85rem;
    }
}

/* ============================================
   SHOP PAGE - MOBILE FILTERS
   ============================================ */
@media (max-width: 992px) {
    .shop-header-modern {
        padding: 40px 0;
    }
    
    .shop-header-modern h1 {
        font-size: 1.8rem;
    }
    
    .shop-header-modern .lead {
        font-size: 1rem;
    }
    
    /* Mobile Filter Sidebar */
    .sidebar-modern {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        overflow-y: auto;
        z-index: 1050;
        border-radius: 0;
        transition: left 0.3s ease;
        padding: 20px;
        background: white;
    }
    
    .sidebar-modern.active {
        left: 0;
    }
    
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 15px;
        margin-bottom: 20px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .filter-close {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }
    
    .filter-toggle {
        display: block;
        width: 100%;
        padding: 12px;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-weight: 500;
        margin-bottom: 15px;
    }
    
    .sort-options {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .results-count {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .price-values {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-value {
        text-align: center;
    }
}

/* ============================================
   CART PAGE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .cart-header-modern {
        padding: 30px 0;
    }
    
    .cart-header-modern h1 {
        font-size: 1.5rem;
    }
    
    .cart-item-modern {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .cart-item-image {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100px;
        height: 100px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cart-item-details {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .cart-item-price,
    .cart-item-subtotal {
        text-align: center;
        min-width: auto;
    }
    
    .cart-item-quantity {
        margin: 10px 0;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .cart-summary-modern {
        position: static;
        margin-top: 20px;
    }
    
    .cart-items-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .suggested-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CHECKOUT PAGE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .checkout-header-modern {
        padding: 30px 0;
    }
    
    .checkout-header-modern h1 {
        font-size: 1.5rem;
    }
    
    .checkout-steps {
        justify-content: center;
        margin-top: 15px;
    }
    
    .checkout-progress {
        display: none;
    }
    
    .checkout-card {
        margin-bottom: 20px;
    }
    
    .card-header-modern {
        padding: 15px;
    }
    
    .card-body-modern {
        padding: 15px;
    }
    
    .payment-option label {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .payment-icon {
        margin-bottom: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-wishlist {
        width: 100%;
        padding: 12px;
    }
    
    .delivery-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-summary-modern {
        position: static;
        margin-top: 20px;
    }
}

/* ============================================
   PRODUCT DETAILS - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery-modern {
        position: static;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-nav {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .reviews-summary-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quantity-control {
        width: 100%;
        justify-content: center;
    }
    
    .action-buttons-group {
        flex-direction: column;
    }
    
    .btn-add-to-cart,
    .btn-buy-now {
        width: 100%;
    }
    
    .btn-wishlist {
        width: 100%;
        padding: 12px;
    }
}

/* ============================================
   FOOTER - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .footer-widget {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-widget:last-child {
        margin-bottom: 0;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
        margin-top: 20px;
    }
    
    .payment-methods {
        justify-content: center;
        margin-top: 15px;
    }
    
    .copyright {
        text-align: center;
    }
}

/* ============================================
   GENERAL MOBILE FIXES
   ============================================ */
@media (max-width: 576px) {
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Section padding */
    .section-padding {
        padding: 40px 0;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    /* Alerts */
    .alert {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 10px;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table td,
    .table th {
        padding: 8px;
    }
}

/* ============================================
   TOUCH-FRIENDLY IMPROVEMENTS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for mobile */
    .nav-link,
    .action-icon,
    .btn,
    .mobile-nav-item,
    .product-card-modern .action-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    .product-card-modern:hover {
        transform: none;
    }
    
    .product-actions-modern {
        opacity: 1;
        background: rgba(255,255,255,0.9);
        padding: 5px;
        border-radius: 30px;
    }
    
    /* Better touch feedback */
    .btn:active,
    .action-icon:active,
    .mobile-nav-item:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
	/* Mobile Menu Styles */
.mobile-menu-toggle {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
    margin: 5px 0;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: var(--primary-blue);
    color: white;
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-list li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.mobile-nav-list li a i {
    margin-right: 10px;
    width: 24px;
    color: var(--primary-blue);
}

.mobile-nav-list li a.active {
    background: #f8f9fa;
    color: var(--primary-red);
}

.mobile-nav-list li a.active i {
    color: var(--primary-red);
}

.mobile-nav-list li a:hover {
    background: #f8f9fa;
    padding-left: 25px;
}

/* Mobile Dropdown */
.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-toggle .arrow {
    transition: transform 0.3s;
}

.mobile-dropdown.open .mobile-dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    display: none;
}

.mobile-dropdown.open .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu li a {
    padding-left: 45px;
    font-size: 0.9rem;
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.mobile-nav-btn {
    display: block;
    padding: 12px 20px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.mobile-nav-btn:last-child {
    margin-bottom: 0;
}

.mobile-nav-btn:hover {
    background: var(--primary-red);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: none;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 998;
}

@media (max-width: 992px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    .main-content {
        margin-bottom: 70px;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 11px;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-item.active {
    color: var(--primary-red);
}

.mobile-nav-item .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary-red);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 16px;
    text-align: center;
}


}