/* Mobile Custom Styles - Arabian Florist */

@media only screen and (max-width: 768px) {

    /* =========================================
       GLOBAL LAYOUT & TYPOGRAPHY
       ========================================= */
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    /* Adjust headings for mobile */
    h2 {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    h3 {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }

    h4 {
        font-size: 18px !important;
    }

    /* Section Spacing */
    .section-box {
        margin-top: 30px !important;
    }

    .pt-50 {
        padding-top: 30px !important;
    }

    .pb-50 {
        padding-bottom: 30px !important;
    }

    /* =========================================
       HEADER
       ========================================= */
    .header .main-header {
        padding: 10px 0;
    }

    .header-logo img {
        max-width: 120px;
    }

    .header-search,
    .header-brand-2 {
        display: none !important;
    }

    /* Hide shop icons in main header on mobile (Moved to menu) */
    .header-shop {
        display: none !important;
    }

    /* Adjust header layout to compensate */
    .header-logo {
        flex-grow: 1;
        margin-left: -15px !important;
        text-align: left !important;
    }

    .header-logo a {
        display: inline-block;
    }

    .header-nav {
        margin-left: auto;
    }

    /* Mobile Commerce Menu Styling */
    .mobile-menu-item-commerce a {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--color-text) !important;
    }

    .mobile-menu-item-commerce i {
        color: var(--color-primary) !important;
    }

    /* =========================================
       HOMEPAGE
       ========================================= */

    /* Hero Slider */
    .swiper-home7 .banner-big-7 {
        min-height: auto !important;
        height: auto !important;
    }

    .swiper-home7 .banner-big-7 img {
        height: auto !important;
        max-height: 250px;
        /* Limit height */
        object-fit: cover;
    }

    /* Features List */
    .list-col-5 li {
        width: 100% !important;
        margin-bottom: 15px;
        border-right: none;
        border-bottom: 1px solid #efefef;
        padding-bottom: 10px;
    }

    /* TODAYS SPECIALS (Carousel of 5-item Chunks) 
       User reported "2 products per row" looked bad. 
       We will optimize the 2-column view to be cleaner.
    */
    .list-products-5 {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -5px;
        /* Negative margin for gutter */
    }

    .list-products-5 .card-grid-style-3 {
        width: 50% !important;
        /* Force 2 columns */
        max-width: 50% !important;
        padding: 0 5px;
        /* Gutter */
        margin-bottom: 15px;
        display: flex;
        /* Ensure stretch */
    }

    .card-grid-inner {
        width: 100%;
        padding: 10px 5px !important;
        /* Reduce internal padding */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Flatten visuals for mobile */
    .image-box {
        margin-bottom: 10px;
    }

    .image-box img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    /* Typography inside cards */
    .color-brand-3.font-sm-bold {
        font-size: 13px !important;
        line-height: 1.2;
    }

    .price-info .font-lg-bold {
        font-size: 16px !important;
    }

    .price-info .price-line {
        font-size: 12px !important;
    }

    /* Hide hover tools to clean up UI */
    .card-grid-style-3 .tools {
        display: none !important;
    }

    /* Add to Cart Button Mobile Optimization */
    .btn-cart {
        padding: 5px 10px !important;
        font-size: 12px !important;
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Popular Categories Slider */
    .swiper-group-9 .swiper-slide {
        width: 140px !important;
    }

    /* Fixed width for better control */

    /* =========================================
       PRODUCT PAGE
       ========================================= */

    /* HIDE SIDEBAR ON MOBILE */
    .sidebar-border,
    .col-lg-3 .sidebar-border {
        display: none !important;
    }

    /* Ensure main columns used full width */
    .col-lg-9,
    .col-lg-3 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Product Gallery */
    .product-image-slider figure {
        margin: 0;
    }

    .slider-nav-thumbnails {
        display: none;
    }

    /* Hide thumbs */

    /* Product Info */
    .detail-info {
        padding-left: 0 !important;
        margin-top: 20px;
    }

    /* Quantity & Buy Buttons */
    .box-quantity {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .box-quantity .input-quantity {
        width: 100px;
        margin-bottom: 10px;
    }

    .button-buy {
        display: flex;
        width: 100%;
        gap: 10px;
    }

    .button-buy .btn {
        flex: 1;
        padding: 12px 0;
        justify-content: center;
    }

    /* Related Products Grid (2 columns) */
    .shop-template .row>.col-12 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    /* =========================================
       SHOP / CATEGORY PAGE
       ========================================= */

    /* Force 2-column grid for product lists */
    .shop-template .row .col-lg-4,
    .shop-template .row .col-md-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    /* Hide Filters Toggle for now if intrusive, or style it */
    .box-filters {
        padding-bottom: 10px;
    }

    /* Footer */
    .footer-1 .row>div {
        width: 100% !important;
        text-align: center;
    }
}