/*!
 * Start Bootstrap - Modern Business (https://startbootstrap.com/template-overviews/modern-business)
 * Copyright 2013-2017 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-logomodern-business-nav/blob/master/LICENSE)
 */

/* Tắt gạch chân cho mọi thẻ a trên toàn trang */
a {
    text-decoration: none !important;
}

/* 1. Đồng bộ nền cho khung dropdown menu con */
.navbar-nav .dropdown-menu {
    background-color: #343a40 !important;
    border: 1px solid #454d55 !important;
    padding: 0 !important;
    border-radius: 4px;
}

/* 2. Style cho từng dòng danh mục con: Thụt lề, có gạch chân, đổi màu chữ */
.navbar-nav .dropdown-menu .dropdown-item.custom-sub-category {
    color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid #454d55 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 20px !important;
    font-size: 1.125rem !important;
}

/* 3. Hiệu ứng khi rê chuột vào danh mục con */
.navbar-nav .dropdown-menu .dropdown-item.custom-sub-category:hover {
    background-color: #495057 !important;
    color: #fff !important;
    text-decoration: underline !important;
}

/* 4. Tự động xóa đường gạch chân ở dòng cuối cùng của menu con */
.navbar-nav .dropdown-menu .dropdown-item.custom-sub-category:last-child {
    border-bottom: none !important;
}
 
/* Tắt hoàn toàn viền xanh/focus ring khi click vào nút Danh mục */
.navbar-nav .nav-link.dropdown-toggle:focus,
.navbar-nav .nav-link.dropdown-toggle:active,
.navbar-nav .show > .nav-link.dropdown-toggle {
    outline: none !important;
    box-shadow: none !important;
} 
 
/* Ẩn thanh giao diện thừa của Google Maps nhúng */
.i4ewOd-pzNkMb-haAclf {
    display: none !important;
}
/* Ẩn thanh giao diện thừa của Google Maps nhúng */
@media (min-width: 992px) {
  body {
    padding-top: 56px;
  }
}
body { 
    padding-top: 75px; 
}

/* CSS dành cho hiển thị DESKTOP */
.card-text.post-details p,
.card-text.post-details li,
p.card-text.text-muted.mb-3,
.navbar-nav .nav-item,
.card-text.post-details li,
.col-md-4 li,
a.btn.btn-danger,
a.btn.btn-primary,
.col-lg-12 p,
.col-lg-12 ul li,


#countDown40link
    {
    font-size: 1.125rem;
}

.col-md-4 li {
    margin-bottom: 10px; /* Điều chỉnh khoảng cách thưa/dày tùy ý */
    line-height: 1.3;
}

.card-body .card-title a {
    font-size: 25px !important;
    font-weight: 500;
    color: inherit !important;
    text-decoration: none !important;
}

p.mt-2 {
    font-size: 16px !important;
}

/* Khối Danh mục desktop: Gạch liền, thụt lề 10px và làm đậm chữ bằng CSS */
.card-body[style*="background-color: #e9ecef"] ul li {
    border-bottom: 1px solid #ced4da;
    padding-bottom: 10px;
    padding-left: 10px;
    font-weight: bold !important;
}

/* Tự động bỏ gạch và bỏ padding ở dòng cuối cùng */
.card-body[style*="background-color: #e9ecef"] ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Tăng cỡ chữ cho ô nhập liệu (input, textarea) và chữ placeholder bên trong */
form input.form-control,
form textarea.form-control {
    font-size: 17px !important;
}

/* Ép riêng cho placeholder trên các trình duyệt để chắc chắn nó to đều */
form input::placeholder,
form textarea::placeholder {
    font-size: 17px !important;
}

/* Tăng cỡ chữ cho nút bấm submit (Nút Gửi đi) */
form button[type="submit"],
form input[type="submit"] {
    font-size: 17px !important;
}

/* Tiêu đề H1 bài viết trên desktop */

.card.mb-4 > .card-header,
.card.my-4 > .card-header {
    font-size: 1.4rem;
    font-weight: 500;
}
.card-title.font-weight-bold {
    font-size: 30px !important;
  }

.card-body .price {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: red;
    border: 2px dashed red;
    padding: 15px 20px;
    border-radius: 8px;
    background-color: #fff9f9;
    margin: 15px 0;
}
.border-thick {
    border-width: 2px !important; /* Viền khối deal.php chốt đơn mua hàng */
}
.col-lg-12 h2,
.card-text.post-details h2, 
.card-text .post-details h2, 
.card-body .card-text h2 {
    font-size: 1.4rem !important; 
}
.card-body h3 {
    font-size: 15px !important;
    margin-top: 10px;
    margin-bottom: 5px;
}

/* Tỷ lệ 4:3 (Chiều rộng gấp rưỡi chiều cao) */
.card-img-top,
.card-body img.img-fluid.rounded.mb-3 {
    width: 100% !important;
    aspect-ratio: 4 / 2.3 !important;
    object-fit: cover !important;
}

/* Ảnh chi tiết trong bài viét giữ nguyên tỷ lệ gốc */
.card-text.post-details img {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: initial !important;
}

/* --- THÊM ĐOẠN NÀY VÀO CUỐI FILE --- */
@media (min-width: 768px) {
  .row {
    display: flex !important;
    align-items: flex-start !important;
  }

  .col-md-4 {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 90px !important;
    z-index: 100 !important;
  }
}

/* CSS dành cho hiển thị MOBILE */
@media screen and (max-width: 768px) {

  /* Tiêu đề H1 bài viết trên mobile */
  h2.card-title, h1.card-title, h1.mt-4.mb-3, 
  .card-title.font-weight-bold {
    font-size: 28px !important;
    line-height: 1.35 !important;
    margin-bottom: 15px !important;
  }
.card-text.post-details h2 {
    font-size: 20px !important;
    font-weight: bold !important;
    margin-top: 25px;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  .col-lg-12 h2 {
    font-size: 20px !important;
    font-weight: bold !important;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
  }
  
}

/* Hiệu ứng hover nút kính lúp tìm kiếm */
.style-search-group button[type="submit"] {
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

/* Đổi sang màu xám nhạt và phóng to nhẹ icon khi rê chuột vào */
.style-search-group button[type="submit"]:hover {
  background-color: #e9ecef !important;
}

.style-search-group button[type="submit"]:hover img {
  transform: scale(1.08);
  transition: transform 0.2s ease;
}
