/*
 * Style dùng chung cho toàn site — port từ các khối <style> inline trong Laravel:
 *   resources/views/frontend/layouts/head.blade.php
 *   resources/views/frontend/components/sidebar.blade.php
 *   resources/views/frontend/paginate/pagination.blade.php
 * Được nạp sau style.css / responsive.css để giữ đúng thứ tự cascade như bản cũ.
 */
@font-face {
  font-family: 'BT BeauSans';
  src: url('/frontend/fonts/BT-BeauSans-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'BT BeauSans Medium';
  src: url('/frontend/fonts/BT-BeauSans-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'BT BeauSans Bold';
  src: url('/frontend/fonts/BT-BeauSans-Bold.ttf') format('truetype');
}
:root {
  --body-fs: 14px;
  --body-bg-color: #F6F6F6;
  --body-font: "BT BeauSans";
  --body-color: #242424;
  --body-line-height: 1.62857143;
  --cl1: #FF0000;
  --cl2: #FFF200;
  --cl3: #373737;
  --cl4: #B70000;
  --h1: 36px;
  --h2: 30px;
  --h3: 24px;
  --h4: 20px;
  --h5: 18px;
  --h6: 16px;
}
h1, h2, h3, h4, h5, h6, b {
  line-height: 1.4 !important;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 600
}
body {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 400;
}
@media (min-width: 768px) {
  .w-md-75 {
    width: 75% !important;
  }
  .w-md-100 {
    width: 100% !important;
  }
}

/* Nút "Liên hệ ngay" trên header — bản Blade dùng inline `padding: 4px 16px !important`. */
.header .header-btn.btn {
  padding: 4px 16px !important;
}

/* Ảnh thẻ khi bản ghi chưa có ảnh (CardImage). Tỷ lệ mặc định; class của từng trang có thể ghi đè. */
.card-image-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #2a2c30;
  border-radius: 16px;
}

/* ---------- Chuyển ngôn ngữ VI | EN (góc trên bên phải header) ---------- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d25208;
  border-radius: 50px;
  overflow: hidden;
  line-height: 1;
}
.header .nav li .lang-switcher .lang-switcher-item,
.lang-switcher .lang-switcher-item {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border: 0;
  margin: 0;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease;
}
.header .nav li .lang-switcher .lang-switcher-item:hover,
.lang-switcher .lang-switcher-item:hover {
  color: #fff;
  background-color: rgba(210, 82, 8, 0.35);
  border: 0;
}
.header .nav li .lang-switcher .lang-switcher-item.active,
.lang-switcher .lang-switcher-item.active {
  background-color: #d25208;
  color: #fff;
}
.header .nav li.lang-switcher-desktop {
  margin-left: 12px;
}
.lang-switcher-mobile {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Sidebar mobile ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: -80%;
  width: 80%;
  height: 100vh;
  background-color: #1c1e21;
  transition: all 0.5s ease;
  z-index: 1050;
  overflow-y: auto;
}
.sidebar.active {
  left: 0;
}
.sidebar ul.nav {
  padding: 20px 0;
}
.sidebar ul li a {
  padding: 12px 20px;
  font-size: 18px;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}
.sidebar ul li a:hover {
  text-decoration: none;
}
.sidebar ul li a.active {
  color: #d25208;
}
.sidebar .bntCloseSidebar {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}
.overlay.active {
  display: block;
}
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.nav-link {
  color: #fff;
}
.nav-link:hover {
  color: #fff;
}
@media (min-width: 769px) {
  .overlay {
    display: none !important;
  }
}
#sidebarToggle {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

/* ---------- Scroll-to-top (thay cho jquery.scrollUp) ---------- */
#scrollUp {
  position: fixed;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

/* ---------- Phân trang ---------- */
ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
}
ul.page-numbers .page-number {
  display: block;
  text-align: center;
  overflow: hidden;
  width: 36px;
  height: 36px;
  margin: 0 8px;
  border-radius: 100px;
  line-height: 34px;
  font-size: 16px;
  border: 1px solid #d25208;
  transition: all 0.3s ease;
}
ul.page-numbers .page-number.next,
ul.page-numbers .page-number.prev {
  font-size: 24px;
  color: #d25208;
  border: none;
}
ul.page-numbers .page-number.current,
ul.page-numbers .page-number:hover:not(.disable) {
  color: #fff;
  background-color: #d25208
}
ul.page-numbers .page-number.disable {
  opacity: 0.5
}

/* ---------- Danh mục dạng "pill" (trang Sản phẩm / Mẫu in) ---------- */
.category-title-list {
  border-radius: 8px;
  padding: 6px 20px;
  cursor: pointer;
  display: inline-table;
  margin: 4px 16px 4px 0;
  border: 1px solid #cccccc;
  font-size: 18px;
}
.category-title-list:hover {
  color: #d25208;
  border-color: #d25208;
}
.category-title-list.active {
  border-color: #d25208;
  color: white !important;
  background: #d25208;
}
@media (max-width: 768px) {
  .category-title-list {
    font-size: 16px;
  }
}
