/* =====================================
Template Name: Eshop
Author Name: Naimur Rahman
Author URI: http://www.wpthemesgrid.com/
Description: Eshop - eCommerce HTML5 Template.
Version:1.0
========================================*/

/* Large Desktop Screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Hide mobile navigation in desktop view */
    .mobile-nav,
    .mobile-nav-overlay,
    .hamburger-menu {
        display: none !important;
    }
    
    /* Show menu area in desktop view */
    .menu-area {
        display: block !important;
    }
}

/* Desktop Screens */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    /* Hide mobile navigation in desktop view */
    .mobile-nav,
    .mobile-nav-overlay,
    .hamburger-menu {
        display: none !important;
    }
    
    /* Show menu area in desktop view */
    .menu-area {
        display: block !important;
    }
}

/* Tablet Screens */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Show mobile navigation in tablet view */
    .mobile-nav,
    .mobile-nav-overlay,
    .hamburger-menu {
        display: block !important;
    }
    
    /* Hide menu area in tablet view */
    .menu-area {
        display: none !important;
    }
    .section {
        padding: 30px 15px; /* Adjusted padding for mobile */
    }
    .shop.single {
        padding: 20px 0 30px 0; /* Adjusted padding for mobile */
    }
    .section-title {
        margin-bottom: 30px; /* Adjusted margin for mobile */
        padding: 0 15px; /* Adjusted padding for mobile */
    }
    .section-title h2 {
        font-size: 22px; /* Adjusted font size for mobile */
        margin-bottom: 15px; /* Adjusted margin for mobile */
    }
    .section-title p {
        font-size: 12px; /* Adjusted font size for mobile */
    }
    .shop-services.section {
        padding: 30px 0 0 0; /* Adjusted padding for mobile */
    }
    .breadcrumbs {
        padding: 15px 0; /* Adjusted padding for mobile */
    }
    .blog-single.grid .pagination {
        float: none;
        text-align: center;
        margin-top: 10px; /* Adjusted margin for mobile */
    }
    .header.shop .topbar .top-left {
        text-align: center;
    }
    .header.shop .topbar .right-content {
        text-align: center;
        float: none;
        margin-top: 5px; /* Adjusted margin for mobile */
    }
    .header.shop .right-bar .sinlge-bar .single-icon {
        font-size: 16px; /* Adjusted font size for mobile */
    }
    .header .shopping .shopping-item {
        top: 50px; /* Adjusted position for mobile */
    }
    .header .shopping .dropdown-cart-header a,
    .header .shopping .dropdown-cart-header span {
        font-size: 11px; /* Adjusted font size for mobile */
    }
    .header .shopping-list h4 a {
        font-weight: 500;
        font-size: 12px; /* Adjusted font size for mobile */
    }
    .header .shopping-item .total span,
    .header .shopping-item .total .total-amount {
        font-size: 12px; /* Adjusted font size for mobile */
        font-weight: 500;
    }
    .header .shopping-item .bottom .btn {
        padding: 6px 15px; /* Adjusted padding for mobile */
    }
    .header.shop .search-bar {
        height: 40px; /* Adjusted height for mobile */
        width: 100%; /* Full width for mobile */
    }
    .header.shop .search-bar input {
        padding: 0 10px; /* Adjusted padding for mobile */
        width: calc(100% - 40px); /* Full width minus button */
        font-size: 12px; /* Adjusted font size for mobile */
    }
    .header.shop .nav li {
        display: block; /* Stack items for mobile */
        margin: 5px 0; /* Adjusted margin for mobile */
    }
    .header.shop .nav li a {
        font-size: 12px; /* Adjusted font size for mobile */
        padding: 10px; /* Adjusted padding for mobile */
    }
    .hero-slider {
        height: 250px; /* Adjusted height for mobile */
    }
    .hero-slider .hero-text {
        margin-top: 30px; /* Adjusted margin for mobile */
    }
    .hero-slider .hero-text h1 {
        font-size: 24px; /* Adjusted font size for mobile */
        margin-bottom: 5px;
    }
    .hero-slider .hero-text h1 span {
        font-size: 14px; /* Adjusted font size for mobile */
    }
    .hero-slider .hero-text .btn {
        padding: 8px 20px; /* Adjusted padding for mobile */
    }
    .hero-area2 .single-slider {
        height: auto; /* Allow height to adjust for mobile */
    }
    .hero-area2 .single-slider .content {
        padding: 30px 15px; /* Adjusted padding for mobile */
    }
    .hero-area3 .big-content {
        height: auto; /* Allow height to adjust for mobile */
        margin-top: 10px; /* Adjusted margin for mobile */
    }
    .hero-area3 .big-content .title {
        font-size: 20px; /* Adjusted font size for mobile */
        margin-bottom: 10px; /* Adjusted margin for mobile */
    }
    .hero-area3 .big-content .button .btn {
        padding: 8px 15px; /* Adjusted padding for mobile */
    }
    .hero-area4 .big-content {
        height: auto; /* Allow height to adjust for mobile */
        margin-top: 10px; /* Adjusted margin for mobile */
    }
    .hero-area4 .big-content .title {
        font-size: 20px; /* Adjusted font size for mobile */
        margin-bottom: 10px; /* Adjusted margin for mobile */
    }
    .small-banner {
        padding: 10px 0; /* Adjusted padding for mobile */
    }
    .small-banner .single-banner {
        margin-bottom: 10px; /* Adjusted margin for mobile */
    }
    .quickview-content {
        padding: 20px; /* Adjusted padding for mobile */
    }
    .quickview-content h2 {
        font-size: 20px; /* Adjusted font size for mobile */
    }
    .quickview-content h3 {
        font-size: 16px; /* Adjusted font size for mobile */
    }
    .midium-banner .single-banner h3 {
        font-size: 18px; /* Adjusted font size for mobile */
    }
    .midium-banner .single-banner a {
        padding: 5px 10px; /* Adjusted padding for mobile */
    }
    .shopping-cart .table td {
        padding: 10px; /* Adjusted padding for mobile */
    }
    .contact-us .form-main {
        padding: 20px; /* Adjusted padding for mobile */
    }
    .contact-us .form .button .btn {
        padding: 10px; /* Adjusted padding for mobile */
    }
    .about-us .about-content h3 {
        font-size: 20px; /* Adjusted font size for mobile */
    }
    .footer .footer-top {
        padding: 10px 0; /* Adjusted padding for mobile */
    }
    .footer .single-footer {
        padding: 10px 0; /* Adjusted padding for mobile */
    }
}

/* Mobile Screens */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    /* Show mobile navigation in mobile view */
    .mobile-nav,
    .mobile-nav-overlay,
    .hamburger-menu {
        display: block !important;
    }
    
    /* Hide menu area in mobile view */
    .menu-area {
        display: none !important;
    }
    
    /* Header Responsive */
    .header .logo {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .header .shopping-cart {
        text-align: center;
    }
    
    /* Navigation */
    .main-menu {
        display: none;
    }
    
    .mobile-menu {
        display: block;
        text-align: center;
        padding: 15px 0;
    }

    /* Hide topbar on mobile */
    .header.shop .topbar {
        display: none; /* Hide topbar for mobile screens */
    }
    
    /* Hero Section */
    .hero-slider {
        height: 200px;
    }
    
    .hero-slider .hero-text h1 {
        font-size: 20px;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Footer */
    .footer .footer-top {
        padding: 30px 0;
    }
    
    .footer .single-footer {
        margin-bottom: 30px;
        text-align: center;
    }
    
    /* Mobile Navigation Styles */
    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transition: 0.3s ease;
        overflow-y: auto;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    
    .mobile-nav.active {
        right: 0;
    }
    
    .mobile-nav-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-nav-header .logo img {
        max-height: 40px;
    }
    
    .mobile-nav-close {
        cursor: pointer;
        font-size: 24px;
    }
    
    .mobile-nav .nav {
        padding: 20px;
    }
    
    .mobile-nav .nav-item {
        margin-bottom: 10px;
    }
    
    .mobile-nav .nav-link {
        color: #333;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-nav .dropdown-menu {
        border: none;
        padding-left: 20px;
        display: none;
    }
    
    .mobile-nav .dropdown-menu.show {
        display: block;
    }
    
    .mobile-nav .dropdown-item {
        padding: 8px 0;
        color: #666;
    }
    
    .mobile-nav-footer {
        padding: 20px;
        border-top: 1px solid #eee;
        text-align: center;
    }
    
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        display: none;
    }
    
    .mobile-nav-overlay.active {
        display: block;
    }
}

/* Small Mobile Screens */
@media (max-width: 575px) {
    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Show mobile navigation in small mobile view */
    .mobile-nav,
    .mobile-nav-overlay,
    .hamburger-menu {
        display: block !important;
    }
    
    /* Hide menu area in small mobile view */
    .menu-area {
        display: none !important;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    /* Forms */
    .contact-form input,
    .contact-form textarea {
        width: 100%;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Common Responsive Utilities */
@media only screen and (max-width: 991px) {
    .d-none-mobile {
        display: none !important;
    }
    
    .d-block-mobile {
        display: block !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .mt-mobile {
        margin-top: 15px !important;
    }
    
    .mb-mobile {
        margin-bottom: 15px !important;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero-slider {
        height: -webkit-fill-available;
    }
    
    .mobile-nav {
        height: -webkit-fill-available;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .mobile-menu,
    .shopping-cart,
    .search-bar {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .mobile-nav,
    .mobile-nav-overlay,
    .hamburger-menu,
    .menu-area {
        display: none !important;
    }
}

/* Mobile Menu Styles */
.menu-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-area .menu-item {
    width: 100%;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.menu-area .menu-item:last-child {
    border-bottom: none;
}

.menu-area .menu-item a {
    font-size: 16px;
    display: block;
    color: #333;
    text-decoration: none;
    padding: 8px 0;
}

.menu-area .menu-item a:hover {
    color: #F7941D;
    background-color: #f8f8f8;
}

/* Mobile Search Styles */
.mobile-search {
    display: none;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

@media only screen and (max-width: 767px) {
    .mobile-search {
        display: block;
    }
    
    .mobile-search input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
}

/* Mobile Cart Styles */
.mobile-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

@media only screen and (max-width: 767px) {
    .mobile-cart {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-cart .cart-total {
        font-weight: bold;
    }
    
    .mobile-cart .checkout-btn {
        background: #F7941D;
        color: #fff;
        padding: 8px 20px;
        border-radius: 4px;
        text-decoration: none;
    }
}

/* Mobile Product Card Styles */
@media only screen and (max-width: 767px) {
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-card .product-img {
        height: 200px;
    }
    
    .product-card .product-info {
        padding: 10px;
    }
    
    .product-card .product-title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .product-card .product-price {
        font-size: 16px;
    }
}

/* Mobile Form Styles */
@media only screen and (max-width: 767px) {
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        height: 40px;
        font-size: 14px;
    }
    
    .form-label {
        font-size: 14px;
        margin-bottom: 5px;
    }
}

/* Mobile Modal Styles */
@media only screen and (max-width: 767px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-header {
        padding: 10px 0;
    }
    
    .modal-body {
        padding: 10px 0;
    }
}

/* Mobile Newsletter Styles */
@media only screen and (max-width: 767px) {
    .newsletter-section {
        padding: 20px 0;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

/* Mobile Footer Styles */
@media only screen and (max-width: 767px) {
    .footer {
        padding: 30px 0 60px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .footer-widget h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-widget ul li {
        margin-bottom: 8px;
    }
    
    .footer-widget ul li a {
        font-size: 14px;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 15px 0;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: fixed;
    right: 15px;
    top: 15px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media only screen and (max-width: 991px) {
    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Mobile Navigation */
    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 999;
        padding: 60px 20px 20px;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .mobile-nav.active {
        right: 0;
    }

    .mobile-nav .nav-item {
        display: block;
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .mobile-nav .nav-item:last-child {
        border-bottom: none;
    }

    .mobile-nav .nav-link {
        color: #333;
        font-size: 16px;
        padding: 10px 0;
        display: block;
    }

    .mobile-nav .nav-link:hover {
        color: #F7941D;
    }

    .mobile-nav .nav-link i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

    .mobile-nav .dropdown-menu {
        position: static;
        width: 100%;
        border: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .mobile-nav .dropdown-menu.show {
        display: block;
    }

    .mobile-nav .dropdown-item {
        padding: 8px 0;
        color: #666;
    }

    .mobile-nav .dropdown-item:hover {
        color: #F7941D;
        background: none;
    }

    /* Overlay */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }

    .mobile-nav-overlay.active {
        display: block;
    }

    /* Close button */
    .mobile-nav-close {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        color: #333;
        cursor: pointer;
    }

    /* Mobile Menu Header */
    .mobile-nav-header {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 20px;
    }

    .mobile-nav-header .logo {
        max-width: 150px;
    }

    /* Mobile Menu Footer */
    .mobile-nav-footer {
        padding: 20px 0;
        border-top: 1px solid #eee;
        margin-top: 20px;
    }

    .mobile-nav-footer .social-links {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .mobile-nav-footer .social-links a {
        color: #333;
        font-size: 18px;
    }

    .mobile-nav-footer .social-links a:hover {
        color: #F7941D;
    }
}
