/* Bổ sung cho theme donganhdbj trên webbase (style.css giữ nguyên của site cũ). */

/* Đầu trang: ảnh banner 1140px giữa trang, menu ngang cùng bề rộng (inline style của MasterPage cũ). */
.header_main .dbj-banner { text-align: center; }
.header_main .dbj-banner img { max-width: 100%; height: auto; display: inline-block; }
.dbj-nav { max-width: 1140px; margin: 0 auto; text-align: center; }
.social-sharing a { display: inline-block; color: inherit; }
.mobile_menu .logo img { max-height: 60px; width: auto; }
main.dbj-main { display: block; }
main.dbj-main::after { content: ""; display: table; clear: both; }

/* Slide trang chủ (thay slider DevExpress cao 390px). */
.dbj-home-slider .item img { width: 100%; height: 390px; object-fit: cover; display: block; }
@media (max-width: 767px) { .dbj-home-slider .item img { height: 200px; } }
.dbj-home-slider .owl-controls .owl-page span { background: #007cd4; }
.dbj-home-slider .owl-pagination { text-align: center; margin-top: 8px; }
.dbj-home-slider .owl-page { display: inline-block; }
.dbj-home-slider .owl-page span { display: block; width: 10px; height: 10px; margin: 3px; border-radius: 50%; opacity: .4; }
.dbj-home-slider .owl-page.active span { opacity: 1; }

/* Ảnh sản phẩm cùng tỉ lệ để lưới đều nhau. */
.product-loop-grid .loop-img .face img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.best_product .item_pd { overflow: hidden; margin-bottom: 10px; }
.best_product .item_pd img { object-fit: contain; background: #fff; }
.dbj-product-slider .item { padding: 0 5px; }

/* Danh sách sản phẩm. */
.dbj-subgroups { margin: 0 0 15px; }
.dbj-subgroups a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border: 1px solid #007cd4; border-radius: 3px; color: #007cd4; }
.dbj-subgroups a:hover { background: #007cd4; color: #fff; }
.dbj-group-desc { margin-bottom: 15px; }
.dbj-empty { padding: 15px 0; font-style: italic; }

/* Chi tiết sản phẩm. */
#prd_view .prd_thumbs img { width: 100%; height: auto; }
#prd_view_thumbs { margin-top: 8px; }
#prd_view_thumbs .item { padding: 0 3px; cursor: pointer; }
#prd_view_thumbs .item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid #ddd; }
#prd_view_thumbs .synced img { border-color: #007cd4; }
.dbj-product-title { font-size: 20px; margin-top: 0; }
.dbj-specs { width: 100%; border-collapse: collapse; }
.dbj-specs th, .dbj-specs td { border-bottom: 1px dashed #ccc; height: 32px; padding: 4px 6px; vertical-align: middle; }
.dbj-specs th { width: 140px; color: #000; font-weight: bold; white-space: nowrap; }
.dbj-specs td.dbj-price { color: red; font-size: 14px; font-weight: bold; }
.dbj-summary { margin-top: 12px; }

/* Nội dung bài viết / sản phẩm. */
.dbj-content img { max-width: 100%; height: auto !important; }
.dbj-content table { max-width: 100%; }
.dbj-page-title { font-size: 20px; font-weight: 600; text-transform: uppercase; margin: 0 0 15px; color: #007cd4; }
.dbj-subtitle { font-size: 16px; font-weight: 600; margin: 25px 0 12px; text-transform: uppercase; }
.dbj-date { color: #888; font-size: 12px; }
.dbj-related { margin-top: 25px; border-top: 1px solid #ddd; padding-top: 12px; }
.dbj-related h3 { font-size: 16px; font-weight: 600; text-transform: uppercase; }
.dbj-related li { padding: 4px 0; }
.dbj-video { position: relative; width: 100%; padding-top: 56.25%; background: #000; margin-bottom: 15px; }
.dbj-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Thẻ album / video / ảnh. */
.dbj-cards > div { margin-bottom: 20px; }
.dbj-card { display: block; background: #fff; border: 1px solid #e5e5e5; color: #333; }
.dbj-card:hover { border-color: #007cd4; }
.dbj-card-img { display: block; position: relative; overflow: hidden; }
.dbj-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.dbj-card-title { display: block; padding: 8px 10px 2px; font-weight: 600; }
.dbj-card-note { display: block; padding: 0 10px 8px; color: #888; font-size: 12px; }
.dbj-play { position: absolute; left: 50%; top: 50%; font-size: 48px; color: #fff; transform: translate(-50%, -50%); text-shadow: 0 0 10px rgba(0, 0, 0, .6); }

/* Phân trang, tìm kiếm, liên hệ, bản đồ. */
.dbj-pager .pagination > .active > a { background: #007cd4; border-color: #007cd4; }
.dbj-search { display: flex; gap: 8px; margin-bottom: 15px; }
.dbj-search .button { white-space: nowrap; }
.dbj-contact-info { margin-bottom: 15px; }
.dbj-contact-info h5 { font-weight: 600; text-transform: uppercase; }
.dbj-map { width: 100%; height: 200px; border: 0; }
.dbj-map-lg { height: 400px; }

/* Xem ảnh lớn (thay cho fancybox của site cũ). */
.dbj-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.dbj-lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 0 20px rgba(0, 0, 0, .5); }
.dbj-lightbox span { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; }
