/*
Theme Name: imta-theme
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.header-nav-main .search-field , .header-nav-main .ux-search-submit {
	height: 44px;
}
h1 {
	font-size: 24px;
}
 .custom-template  .col-inner {
    -webkit-border-radius: 3px;
    box-shadow: rgba(99, 99, 99, 0.1) 0px 2px 8px 0px;
    background: #fff;
}
.custom-template-home > .large-12:first-child   .col-inner {
    -webkit-border-radius: 3px;
    box-shadow: rgba(99, 99, 99, 0.1) 0px 2px 8px 0px;
    background: #fff;
}
/* =====================================================
   CONTACT FORM 7 - GIAO DIỆN GIỐNG ẢNH MẪU
===================================================== */

.contact-form-custom {
    width: 100%;
}

/* Hàng 2 cột */
.contact-form-custom .cf7-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.contact-form-custom .cf7-col {
    width: 50%;
}

/* Các hàng full width */
.contact-form-custom .cf7-full {
    width: 100%;
    margin-bottom: 20px;
}

/* Xóa margin mặc định */
.contact-form-custom p {
    margin: 0;
}

.contact-form-custom .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Input */
.contact-form-custom input[type="text"],
.contact-form-custom input[type="tel"],
.contact-form-custom input[type="email"] {
    width: 100%;
    height: 40px;
    padding: 0 13px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    color: #666;
    font-size: 18px;
    font-weight: 400;
    box-shadow: none;
    outline: none;

    margin: 0;
}

/* Textarea */
.contact-form-custom textarea {
    width: 100%;
    height: 150px;
    min-height: 150px;
    padding: 10px 13px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    color: #666;
    font-size: 18px;
    font-weight: 400;
    box-shadow: none;
    outline: none;
    resize: vertical;
    margin: 0;
}

/* Placeholder */
.contact-form-custom input::placeholder,
.contact-form-custom textarea::placeholder {
    color: #666;
    opacity: 1;
}

/* Khi click vào ô */
.contact-form-custom input:focus,
.contact-form-custom textarea:focus {
    border-color: #aaa;
    box-shadow: none;
    outline: none;
}

/* Nút gửi */
.contact-form-custom input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 187px;
    padding: 0 24px;
    background: #ff4f2c;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 40px;
    cursor: pointer;
    margin: 6px 0 0;
    box-shadow: none;
    transition: all 0.2s ease;
}

.contact-form-custom input[type="submit"]:hover {
    background: #e94221;
    color: #fff;
}

/* Spinner Contact Form 7 */
.contact-form-custom .wpcf7-spinner {
    vertical-align: middle;
    margin-left: 10px;
}

/* Thông báo lỗi */
.contact-form-custom .wpcf7-not-valid-tip {
    font-size: 13px;
    margin-top: 4px;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .contact-form-custom .cf7-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }

    .contact-form-custom .cf7-col {
        width: 100%;
    }

    .contact-form-custom .cf7-full {
        margin-bottom: 15px;
    }

    .contact-form-custom input[type="text"],
    .contact-form-custom input[type="tel"],
    .contact-form-custom input[type="email"] {
        height: 48px;
        font-size: 16px;
    }

    .contact-form-custom textarea {
        height: 140px;
        min-height: 140px;
        font-size: 16px;
    }

    .contact-form-custom input[type="submit"] {
        min-width: 170px;
        height: 48px;
        font-size: 16px;
    }
}

.nbw-cat-nav {
  display: flex;
  gap: 3px;
  border-radius: 4px;
  flex-wrap: wrap;
}

.nbw-cat-nav .cat-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 14px 0px;
  background: #eeeeee;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover và Active dùng chung 1 màu */
.nbw-cat-nav .cat-item:hover,
.nbw-cat-nav .cat-item.current {
  background: #ff4500;
  color: #fff;
}

.nbw-post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.nbw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nbw-cols-2 { grid-template-columns: repeat(2, 1fr); }

.nbw-post-card {
    display: block;
    text-decoration: none;
    border: 3px solid #1a2b6d;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.25s ease;
}

.nbw-post-card:hover {
    border-color: #ff4500;
}

.nbw-post-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.nbw-post-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.3s ease;
}

/* .nbw-post-card:hover .nbw-post-thumb img {
    transform: scale(1.05);
} */

.nbw-post-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
background-color: rgba(0, 0, 0, .25);
}

.nbw-post-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgb(35 68 129) 0%, rgb(35 68 129 / 70%) 50%, rgb(35 68 129 / 0%) 100%);
    padding: 20px 10px 10px 10px;
    color: #fff;
}

.nbw-post-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nbw-post-date {
    font-size: 11.5px;
    color: #e6e6e6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nbw-clock-icon {
    font-size: 11.5px;
}

@media (max-width: 992px) {
    .nbw-post-grid,
    .nbw-cols-3,
    .nbw-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nbw-post-grid,
    .nbw-cols-2,
    .nbw-cols-3,
    .nbw-cols-4 {
        grid-template-columns: 1fr;
    }
	.nbw-cat-nav .cat-item {
		font-size: 6px;
		min-width: 60px;
	
	}
}
span.widget-title {
    color: #01236e;
    font-size: 1.2em;
    letter-spacing: 0;
    margin: 0 0 10px 0;
    background: #fff;
    line-height: 20px;
    height: auto;
    padding: 0 0 7px;
    display: block;
    border-bottom: 2px solid #01236e;
    text-transform: uppercase;
    font-weight: 600;
}
.category-page-row .large-3 {
	-webkit-border-radius: 3px;
    box-shadow: rgba(99, 99, 99, 0.1) 0px 2px 8px 0px;
    background: #fff;
	padding: 10px !important;
}
.product-categories .cat-item a {
  font-size: 16px;
  color: #4a4a4a;
  font-weight: 700;
  text-decoration: none; /* Thêm nếu bạn muốn bỏ gạch chân mặc định của thẻ <a> */
}
.recent-blog-posts a {
    font-size: 15px;
	color: #4a4a4a;
}
.product-small .product-title a {
    -webkit-line-clamp: 3;
    line-height: 1.4;
    color: #4a4a4a;
    font-size: 14px;
    overflow: hidden;
    font-weight: 500;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.callout.badge.badge-square{
    left: auto !important;
    right: 10px !important;
    top: 10px !important;
}

.callout.badge.badge-square .badge-inner{
    background:#ff5a36 !important;
    color:#fff !important;
    border-radius:4px !important;
    min-width:58px;
    height:36px;
    line-height:36px;
    padding:0 10px;
    font-size:16px;
    font-weight:700;
}
.custom-hsx p {
text-transform: uppercase;
}
.footer-wrapper .icon-box-img svg {
	color: #01236e;
}

    .pib-wrapper { max-width: 600px; font-size: 14px; line-height: 1.5; color: #111; }
    .pib-top { display: flex; justify-content: space-between; margin: 12px 0px; }
    .pib-top p { margin: 0 0 6px; }
    .pib-blue { color: #2563eb; font-weight: 500; }
    .pib-green { color: #16a34a; font-weight: 500; }
    .pib-red { color: #dc2626; font-weight: 500; }

    .pib-buynow {
        display: block; text-align: center; text-decoration: none; padding: 10px 12px;
        border-radius: 6px;
        color: #fff; margin-bottom: 10px; background: linear-gradient(-45deg, #313eaf, #d12e13, #f59000);
    background-size: 200% 200%;
    animation: gradient-animation 3s ease infinite;
    }
.pib-buynow:hover , .pib-btn:hover , .pib-social-btn:hover {
	color: #fff;
}
    .pib-buynow-title { display: block; font-size: 18px; font-weight: 700; }
    .pib-buynow-sub { display: block; font-size: 13px; opacity: 0.95; }

    .pib-actions { display: grid; grid-template-columns: 1fr 1fr 1fr ; gap: 6px; margin-bottom: 12px; }
    .pib-btn {
        background: #1e3a8a; color: #fff; text-decoration: none; border-radius: 4px;
        text-align: center; padding: 6px 4px; display: flex; flex-direction: column; justify-content: center;
    }
    .pib-btn-title { font-weight: 700; font-size: 14px; }
    .pib-btn-sub { font-size: 11px; opacity: 0.9; }

    .pib-social-btn {
        background: #0084ff; color: #fff; text-decoration: none; border-radius: 4px;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        font-size: 12px; font-weight: 500; padding: 4px;
    }
    .pib-social-btn img { width: 22px; height: 22px; margin-bottom: 2px; }

    .pib-support-title {
        display: flex; align-items: center; gap: 6px; justify-content: center;
        color: #d97706; font-weight: 700; font-size: 16px;
        border-top: 1px dashed #6b7280; padding-top: 10px; margin-bottom: 10px;
    }
    .pib-support-icon { width: 20px; height: 20px; }

    .pib-support-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .pib-support-card {
        display: flex; align-items: center; gap: 8px; background: #eff6ff;
        border-radius: 24px; padding: 6px 12px 6px 6px;
    }
    .pib-avatar { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; overflow: hidden; }
    .pib-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .pib-support-info { flex: 1; min-width: 0; }
    .pib-support-name { font-size: 13px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
    .pib-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }
    .pib-support-phone { color: #4b5563; margin-left: 2px; font-size: 12px; }
    .pib-support-buttons { display: flex; gap: 4px; margin-top: 3px; }
    .pib-pill {
        display: inline-flex; align-items: center; gap: 3px; border-radius: 12px;
        padding: 2px 8px; font-size: 11px; text-decoration: none; background: #fff;
    }
    .pib-pill-green { color: #16a34a; border: 1px solid #16a34a; }
    .pib-pill-blue { color: #2563eb; border: 1px solid #2563eb; }
    .pib-pill-icon { width: 12px; height: 12px; }

    @media (max-width: 520px) {
        .pib-support-list { grid-template-columns: 1fr; }
        .pib-actions { grid-template-columns: 1fr 1fr; }
    }
    
.tieu-chi-sidebar .icon-box {
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 2px 2px 20px #0000000d;
    padding: 5px 10px;
    color: gray;
    font-size: 14px;
}
.tieu-chi-sidebar .icon-box .icon-box-text strong {
    font-size: 15px;
    color: #333;
    display: block;
}
.tieu-chi-sidebar p {
	margin-bottom: 0px;
}
.img-widget {
    width: 100%;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    margin-top: 10px;
}
.tim-kiem-giai-phap-do-kiem p {
    color: #333;
    margin-bottom: 0;
}
.tim-kiem-giai-phap-do-kiem .col-inner{
    margin: 0 !important;
    background: #f2f2f2;
    padding: 10px 15px 5px;
    border-radius: 4px;
}
.tieu-chi-sidebar , .tim-kiem-giai-phap-do-kiem {
	margin-bottom: -30px;
}
.section-content  .row-collapse {
	background-color: #fff;
}
.custom-prod-hub-wrapper .hub-block {
    margin-bottom: 25px;
    background: #fff;
    border-radius: 6px;
}

.custom-prod-hub-wrapper .hub-title {
    font-size: 22px;
    font-weight: bold;
    color: #01236e;
    margin-bottom: 15px;
    text-transform: uppercase;
    padding-bottom: 5px;
    display: inline-block;
}

/* Grid phụ kiện */
.hub-accessory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.hub-accessory-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background: #fff;
}

.hub-accessory-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
}

.acc-title {
    font-size: 14px;
    line-height: 1.3;
    margin: 8px 0;
    height: 36px;
    overflow: hidden;
}

.acc-price {
    font-weight: bold;
    color: #d90429;
}

/* Tag style */
.hub-tag-section {
    font-size: 14px;
    color: #555;
}
.vortex-order-container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
	    padding: 0px 5px;
}

/* Header sản phẩm */
.vortex-prod-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.vortex-prod-img img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
}
.vortex-prod-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 6px 0;
    line-height: 1.3;
    color: #222;
}
.vortex-prod-price, .vortex-contact-price {
    color: #e60000;
    font-weight: bold;
    font-size: 18px;
}

/* Thông báo hotline */
.vortex-order-notice {
    font-size: 13.5px;
    color: #444;
    line-height: 1.4;
    margin-bottom: 20px;
}
.vortex-order-notice p { margin-bottom: 6px; }
.vortex-hotline { font-size: 15px; color: #111; }

/* Form layout */
.vortex-form-heading {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #222;
}
.vortex-cf7-grid {
    display: flex;
    gap: 10px;
}
.vortex-field-half { flex: 1; }
/* .vortex-field-full { margin-bottom: 10px; }
 */
/* Custom Input CF7 */
.vortex-order-container input[type="text"],
.vortex-order-container input[type="tel"],
.vortex-order-container textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Nút Submit */
.vortex-order-container input[type="submit"] {
    width: 100%;
	height: 40px;
    background: linear-gradient(180deg, #ff5e28 0%, #ff3b00 100%);
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.vortex-order-container input[type="submit"]:hover {
    opacity: 0.9;
}
.nexus-related-wrapper {
    width: 100%;
}

/* Thanh tiêu đề chính màu #01236e */
.nexus-related-heading {
    background-color: #01236e;
    color: #ffffff;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 15px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    border-radius: 2px;
}

/* Lưới hiển thị 5 cột */
.nexus-related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
	padding: 10px;
}

/* Khung card sản phẩm */
.nexus-product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nexus-product-card:hover {
    border-color: #01236e;
    box-shadow: 0 2px 8px rgba(1, 35, 110, 0.15);
}

.nexus-card-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.nexus-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nexus-card-title {
    font-size: 13.5px;
    line-height: 1.35;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.nexus-card-link:hover .nexus-card-title {
    color: #01236e;
}

/* Giá bán & Liên hệ */
.nexus-card-price {
    font-size: 14px;
    font-weight: bold;
    color: #d90429;
}

.nexus-card-price .amount,
.nexus-contact-price {
    color: #d90429;
    font-weight: bold;
}

/* Responsive cho điện thoại & máy tính bảng */
@media (max-width: 992px) {
    .nexus-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .nexus-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
.product-small.box {
    padding: 8px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 5px;
}
.product-small.box:hover {
    border: 1px solid #1e288a;
    box-shadow: 0 3px 10px 0 rgb(72 139 216 / 0.2);
}
            .idmwc-cat-accordion {
                max-width: 320px;
                margin: 0;
                padding: 0;
                list-style: none;
                border-radius: 4px;
                overflow: hidden;
            }
            .idmwc-cat-group {
                border-bottom: 1px solid #e5e5e5;
				margin-left: 0px !important;
            }
            .idmwc-cat-group:last-child {
                border-bottom: none;
            }
            .idmwc-cat-parent {
                display: flex;
                align-items: center;
                justify-content: space-between;
                background: #fff;
                text-decoration: none;
                padding: 8px 14px;
                color: #4a4a4a;
                font-size: 15px;
                font-weight: 700;
            }
            .idmwc-cat-parent .idmwc-cat-arrow {
                width: 7px;
                height: 7px;
                border-right: 2px solid #4a4a4a;
                border-bottom: 2px solid #4a4a4a;
                transition: transform 0.2s ease;
                transform: rotate(45deg);
                margin-top: -2px;
            }
            .idmwc-cat-parent.is-open .idmwc-cat-arrow {
                transform: rotate(-135deg);
                margin-top: 2px;
            }
            .idmwc-cat-children {
                margin: 0;
                padding: 0 14px 6px 14px;
                list-style: none;
            }
            .idmwc-cat-children li {
                margin: 0;
                padding: 0;
            }
            .idmwc-cat-child {
                display: flex;
                align-items: center;
                gap: 6px;
                padding: 8px 0;
                color: #4a4a4a;
                font-size: 13px;
                font-weight: 500;
                text-decoration: none;
                border-top: 1px dashed #e5e5e5;
            }
            .idmwc-cat-children li:first-child .idmwc-cat-child {
                border-top: none;
            }
            .idmwc-cat-child:hover {
                color: #000;
            }
            .idmwc-cat-child-arrow {
                font-size: 13px;
                color: #4a4a4a;
            }
        
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* Thêm đoạn CSS này vào Flatsome > Advanced > CSS hoặc file style.css của child theme */
.shop-page-title {
	display: none;
}
/* Trang Shop và danh mục sản phẩm */
.post-type-archive-product .shop-container,
.tax-product_cat .shop-container {
    background-color: #fff;
    padding: 10px;
}
.custom-shop-header {

    margin-bottom: 20px;
    background: #fff;
}

.custom-breadcrumb {
    font-size: 14px;
    color: #333;
    margin: 0 0 5px 0;
}

.custom-breadcrumb a {
    color: #333;
    text-decoration: none;
}

.custom-result-count {
    color: #2ecc71;   /* chữ xanh lá như hình 2 */
    font-weight: 500;
    margin: 0 0 10px 0;
}

.custom-sort-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.sort-radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.sort-radio-item input[type="radio"] {
    accent-color: #1a3d8f; /* màu xanh dương giống theme VIFCOD */
    cursor: pointer;
	margin: 0;
}

@media (max-width: 768px) {
    .custom-sort-radios {
        flex-direction: column;
        gap: 8px;
    }
}