/* =============================================================================
   FLATSOME CHILD ENTERPRISE — mobile.css v4.0
   FIX: Thêm đầy đủ breakpoints: small phone, large mobile, tablet, desktop
   ============================================================================= */

/* ── Very Small Phones (< 375px) ─────────────────────────────────────────── */
@media screen and (max-width: 374px) {
    .button, button, input[type="submit"] {
        min-height: 44px !important;
        min-width: 44px !important;
        font-size: 13px !important;
    }
    .col.medium-6 { width: 100% !important; }
    .products .product { width: 100% !important; }
}

/* ── Small Phones (375px – 480px) ────────────────────────────────────────── */
@media screen and (min-width: 375px) and (max-width: 480px) {
    .button, button, input[type="submit"] {
        min-height: 44px !important;
        min-width: 44px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Vô hiệu hóa hover effect trên touch để tránh lỗi phải tap 2 lần */
    .has-hover:hover .box-image,
    .has-hover:hover .image-tools {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ── Large Mobile (481px – 768px) ────────────────────────────────────────── */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .button, button, input[type="submit"] {
        min-height: 44px !important;
    }

    /* 2 cột sản phẩm trên mobile lớn */
    .products .product {
        width: 50% !important;
    }

    .has-hover:hover .box-image,
    .has-hover:hover .image-tools {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ── Tablet (769px – 1024px) ─────────────────────────────────────────────── */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* 3 cột sản phẩm trên tablet */
    .products .product {
        width: 33.333% !important;
    }

    /* Điều chỉnh header padding cho tablet */
    .header-main .col:first-child {
        padding-left: 16px;
    }

    /* Sidebar hiển thị đầy đủ bên cạnh nội dung */
    .has-sidebar .col-inner { padding: 0 12px; }
}

/* ── Small Desktop (1025px – 1280px) ─────────────────────────────────────── */
@media screen and (min-width: 1025px) and (max-width: 1280px) {
    .products .product {
        width: 25% !important;
    }
}

/* ── All Touch Devices – Global Touch UX ─────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    /* Tắt toàn bộ hover transform trên thiết bị cảm ứng */
    .has-hover:hover .box-image,
    .has-hover:hover .image-tools,
    .product-wrap:hover .image-tools,
    .ux-image-box:hover .ux-image-box-icon {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Tăng kích thước vùng chạm dropdown menu */
    .nav-dropdown li a {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
}
