/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Theme URI:    https://elementor.com/hello-theme/
 Description:  Child theme for Hello Elementor
 Author:       Your Name
 Author URI:   https://yourwebsite.com
 Version:      1.0.0
*/

/* Bạn có thể viết CSS tùy chỉnh ở đây */
/*CSS cho form liên hệ*/
.custom-contact-form {
    max-width: 600px;
    margin: auto;
    background: #111;
    padding: 30px;
    border-radius: 8px;
}

.custom-contact-form input,
.custom-contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.custom-contact-form button {
    background-color: #e60012;
    color: #fff;
    padding: 12px 20px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.custom-contact-form button:hover {
    background-color: #cc0010;
}

.ccf-success {
    color: #00ff99;
    font-weight: bold;
    margin-top: 15px;
}

/*Danh sách bài viết*/
.news-category-page {
    background: #0d0d0d;
    padding: 40px 0;
    color: white;
    font-family: Arial, sans-serif;
}

.container-news {
    width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.row-news {
    display: flex;
    width: 100%;
}

.news-left {
    width: 68%;
}

.news-right {
    width: 30%;
}

.news-heading {
    font-size: 26px;
    font-weight: bold;
    color: #e60012;
    border-bottom: 3px solid red;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 5px;
    text-transform: uppercase;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.news-thumb {
    width: 38%;
    min-height: 160px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.news-info {
    width: 62%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.news-title a {
    font-size: 19px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-excerpt {
    color: #ddd;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
    max-height: 5.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-meta {
    font-size: 13px;
    color: #aaa;
    display: flex;
    align-items: center;
}

.news-meta-icon {
    margin-right: 5px;
    color: orange;
    font-size: 14px;
}

.news-pagination {
    margin-top: 30px;
}

.news-sidebar-block {
    margin-bottom: 30px;
}

.news-sidebar-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
    border-left: 4px solid red;
    padding-left: 10px;
    margin-bottom: 15px;
}

.sidebar-post {
    margin-bottom: 15px;
}

.sidebar-post img {
    width: 100%;
    border-radius: 4px;
}

.sidebar-post a {
    color: #eee;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}

.news-sidebar-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar-block ul li {
    margin-bottom: 8px;
}

/*Css cho menu chân mobile*/
/* ===== Mobile Bottom Menu (compact) ===== */
#mobile-bottom-menu {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background:#d6181d;
    display:flex;
    justify-content:space-around;
    padding:6px 4px 8px;  /* giảm chiều cao tổng */
    gap:2px;
    box-shadow:0 -3px 10px rgba(0,0,0,.3);
    z-index:9999;
    font-family:'Roboto', Arial, sans-serif;
}

#mobile-bottom-menu .mbm-item {
    flex:1;
    text-align:center;
    text-decoration:none;
    color:#fff;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2px;
    font-size:11.5px;      /* nhỏ hơn chút */
    font-weight:500;
    line-height:1.1;
    padding:2px 0 0;       /* giảm top/bottom */
    -webkit-tap-highlight-color:transparent;
    white-space:nowrap;    /* tránh xuống dòng */
}

#mobile-bottom-menu .mbm-item:not(:last-child)::after{
    content:"";
    position:absolute;
    top:18%;
    right:0;
    width:1px;
    height:64%;
    background:rgba(255,255,255,.25);
}

#mobile-bottom-menu .mbm-icon {
    width:36px;            /* 42 -> 36 */
    height:36px;
    border:1.3px solid rgba(255,255,255,.85);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.08);
    transition:background .25s, transform .25s;
    color:#fff;
}

#mobile-bottom-menu .mbm-item:hover .mbm-icon,
#mobile-bottom-menu .mbm-item:focus .mbm-icon {
    background:rgba(255,255,255,.2);
    transform:translateY(-2px);
}

#mobile-bottom-menu svg {
    width:19px;  /* 22 -> 19 */
    height:19px;
    display:block;
}

#mobile-bottom-menu .mbm-text { margin-top:1px; }

#mobile-bottom-menu .mbm-item:active { transform:scale(.95); }

@media (min-width:769px){
    #mobile-bottom-menu { display:none; }
}

/* Chừa khoảng trống dưới nội dung tránh bị che */
@media (max-width:768px){
    body { padding-bottom:62px; } /* ~ chiều cao menu thực */
}

/*Danh sách sản phẩm ưu đãi*/
@import url('https://fonts.googleapis.com/css?family=TimeNewRoman+Condensed:400,700&display=swap');

.uu-dai-products-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 25px;           
    margin: 0 !important;     /* Bỏ lề trên/dưới */
    align-items: stretch;
    font-family: 'Time New Roman', Arial, sans-serif;
}

.uu-dai-product-card {
    text-align: center;
    padding: 0;
    position: relative;
    min-height: 410px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.uu-dai-product-thumb {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: none;
}

.uu-dai-product-thumb .icon-sale {
    position: absolute;
    top: 0;
    left: 0;
    width: 54px;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.uu-dai-product-thumb .product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

.uu-dai-product-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #222;
    font-family: 'Time New Roman', Arial, sans-serif;
    text-transform: uppercase;
    min-height: 38px;
    margin: 10px 0 3px 0;
    white-space: normal;
    word-break: break-word;
}

.uu-dai-product-prices {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
}

.uu-dai-product-sale {
    font-size: 22px;
    font-weight: 700;
    color: #ff0000;
    font-family: 'Time New Roman', Arial, sans-serif;
    margin-right: 5px;
    line-height: 1;
}

.uu-dai-product-regular {
    font-size: 22px;
    font-weight: 700;
    color: #757575;
    text-decoration: line-through;
    font-family: 'Time New Roman', Arial, sans-serif;
    opacity: 0.7;
    line-height: 1;
}

.uu-dai-product-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* Responsive cho tablet */
@media (max-width: 992px) {
    .uu-dai-products-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 20px;
    }
    .uu-dai-product-card {
        min-height: 250px;
    }
    .uu-dai-product-thumb {
        height: 170px;
    }
    .uu-dai-product-thumb .icon-sale {
        width: 38px;
    }
    .uu-dai-product-title {
        font-size: 13px;
        min-height: 22px;
    }
    .uu-dai-product-sale,
    .uu-dai-product-regular {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .uu-dai-products-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 10px 10px;
        margin: 0 !important;
        padding: 0 !important;
    }
    .uu-dai-product-card {
        border: 1px solid #B8B8B8 !important;
        border-radius: 6px;
        background: #fff;
        box-shadow: none;
        overflow: hidden;
        min-height: 160px;
        margin: 0 !important;
        padding: 18px 2px 18px 2px !important;  /* trên 18px, trái/phải 2px, dưới 18px */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .uu-dai-product-thumb {
        height: 170px;
        padding: 0;
        margin: 0;
    }
    .uu-dai-product-thumb .icon-sale {
        width: 40px;
        top: 0;
        left: 0;
    }
    .uu-dai-product-thumb .product-img {
        width: 100%;
        height: 100%;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        padding: 0;
    }
    .uu-dai-product-title {
        font-size: 10px;
        min-height: 11px;
        margin: 2px 0 1px 0;
        word-break: break-word;
		 font-weight: 500;
    }
    .uu-dai-product-sale,
    .uu-dai-product-regular {
        font-size: 11px;
    }
    .uu-dai-product-prices {
        gap: 4px;
    }
}

/*ẩn viền phần danh mục sản phẩm*/
@media (min-width: 768px) {
    .elementor-element.elementor-element-ac72d96 {
        border: none !important;
    }
	.elementor-element.elementor-element-0fe45c6 {
	border: none !important;
    }
	.elementor-element.elementor-element-7b3ffbb {
	border: none !important;
    }
	.elementor-element.elementor-element-52827d0 {
	border: none !important;
    }
}

/*Kéo thả hiệu ứng đánh giá*/
.drag-snap-area {
    transition: transform 0.3s cubic-bezier(.26,.53,.74,1.48);
    cursor: grab;
    will-change: transform;
    position: relative;
    user-select: none;
    background: #121212 !important;
    /* Đảm bảo vùng này full width section, không lộ trắng */
    overflow: hidden;
}
.drag-snap-area.dragging {
    cursor: grabbing;
    /* Option: thêm shadow khi kéo */
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.15); */
}

#drag-snap-overlay {
    position: fixed;
    z-index: 1; /* thấp hơn section, cao hơn body */
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #121212;
    pointer-events: none;
    transition: opacity 0.2s;
    opacity: 0.95;
}
