/* ═══════════════════════════════════════════════════════════════════
   Vat Tu Mam Non - Main Stylesheet
   ═══════════════════════════════════════════════════════════════════ */

/* Override Bootstrap Icons font-display to swap (avoids invisible text flash) */
@font-face {
  font-family: "bootstrap-icons";
  font-display: swap;
}

/* CSS Variables */
:root {
  --primary:       #215c85;
  --primary-dark:  #1a4a6e;
  --primary-light: #e8f1f8;
  --secondary:     #e9252a;
  --text:          #222222;
  --text-muted:    #7c7c7d;
  --border:        #e5e5e5;
  --bg-light:      #fafbfd;
  --radius:        10px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --transition:    .22s ease;
  --font:          'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* Topbar */
.topbar { background: var(--primary); color: #fff; font-size: .78rem; padding: 6px 0; }
.topbar a { color: #fff; }
.topbar .topbar-inner { min-height: 26px; }

/* Header */
.site-header { background: #fff; box-shadow: var(--shadow-sm); z-index: 1030; }
.logo-box {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.logo-box:hover .logo-main { opacity: .85; }
.logo-img  { height: 46px; width: auto; max-width: 56px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary) 0%, #2e7db3 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.45rem; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(33,92,133,.40);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-main {
  font-size: 1.22rem; font-weight: 800; letter-spacing: -.35px; white-space: nowrap;
  background: linear-gradient(120deg, var(--primary) 0%, #2471a3 55%, #1a8fba 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition);
}
.logo-sub  { font-size: .67rem; font-weight: 600; color: var(--text-muted); letter-spacing: .55px; text-transform: uppercase; margin-top: 1px; }
.header-search .form-control { border-right: none; border-color: var(--border); height: 42px; font-size: .9rem; }
.header-search .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(33,92,133,.15); }
.header-search .btn-primary { background: var(--primary); border-color: var(--primary); height: 42px; }
.header-search .btn-primary:hover { background: var(--primary-dark); }
.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary); font-size: 1.2rem;
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--primary); color: #fff; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; background: #e9252a; color: #fff;
  border-radius: 9px; font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff;
}

/* Navigation - dark blue flat */
.main-nav { background: var(--primary); }
.main-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; justify-content: space-between; }
.main-nav .nav-list::-webkit-scrollbar { display: none; }
.main-nav .nav-list li { position: relative; }
.main-nav .nav-link {
  display: inline-flex; align-items: center;
  padding: 11px 15px; font-size: .84rem; font-weight: 500;
  color: rgba(255,255,255,.88); white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.15); }
.main-nav .collapse .nav-link { padding: 9px 12px; color: var(--text); font-size: .9rem; }

/* Hero Slider */
.hero-section { overflow: hidden; }
.hero-section .carousel-inner { border-radius: 0; }
.hero-slide { height: 420px; position: relative; }
/* Dark scrim overlay – ensures text is always legible on any background image */
.hero-slide::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.30) 55%, rgba(0,0,0,.10) 100%);
  pointer-events: none;
}
.hero-slide-1 { background: linear-gradient(135deg, #1a4a6e 0%, #215c85 60%, #2e7db3 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #0d3b5e 0%, #1a5276 60%, #2471a3 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #0b2f4a 0%, #154360 55%, #1f618d 100%); }
.hero-text { position: relative; z-index: 2; padding: 40px 0; padding-left: 60px; }
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next { z-index: 3; }
/* Carousel controls – stronger contrast */
.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
  filter: drop-shadow(0 0 3px rgba(0,0,0,.8));
  width: 2.2rem; height: 2.2rem;
}
/* Indicators – more visible */
.hero-section .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(255,255,255,.4); opacity: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.hero-section .carousel-indicators .active {
  background: #fff; transform: scale(1.2);
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.18); color: #fff;
  border: 1px solid rgba(255,255,255,.5); border-radius: 4px;
  padding: 4px 12px; font-size: .78rem; font-weight: 600; margin-bottom: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.hero-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2;
  color: #fff; margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.4);
}
.hero-title span {
  color: #ffe566;
  text-shadow: 0 2px 8px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.45);
}
.hero-desc {
  font-size: .95rem; color: rgba(255,255,255,.96); max-width: 460px;
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
}
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-hero-primary {
  background: #e9252a; color: #fff; border: none; padding: 10px 24px;
  border-radius: 4px; font-weight: 700; font-size: .9rem;
  transition: all var(--transition); text-decoration: none; display: inline-flex; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.btn-hero-primary:hover { background: #c0392b; color: #fff; }
.btn-hero-outline {
  background: rgba(0,0,0,.25); color: #fff;
  border: 2px solid rgba(255,255,255,.9);
  padding: 8px 22px; border-radius: 4px; font-weight: 700; font-size: .9rem;
  transition: all var(--transition); text-decoration: none; display: inline-flex; align-items: center;
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.2); color: #fff; border-color: #fff; }
@media (max-width: 767px) {
  .hero-slide { height: 320px; }
  .hero-text {
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
  }
  .hero-title  { font-size: 1.45rem; }
  .hero-desc {
    font-size: .85rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badge { display: block; text-align: center; }
}

/* Trust Bar */
.trust-bar { background: #f5f5f5; border-bottom: 1px solid #e0e0e0; padding: 0; }
.trust-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--text); border-right: 1px solid #e0e0e0; }
.trust-item:last-child { border-right: none; }
.trust-item i { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; }
.trust-item strong { display: block; font-size: .82rem; font-weight: 700; }
.trust-item span   { font-size: .73rem; color: var(--text-muted); }

/* Section helpers */
.section-block { }
.section-title { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.section-subtitle { color: var(--text-muted); font-size: .9rem; }
.section-header .section-title::after { content: ''; display: block; width: 48px; height: 4px; background: var(--primary); border-radius: 2px; margin-top: 8px; }
.section-header.d-flex .section-title::after { display: none; }

/* Category cards */
.category-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 12px; background: #fff; border: 2px solid var(--border);
  border-radius: 16px; text-decoration: none; transition: all var(--transition); text-align: center; height: 100%;
}
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.cat-icon { width: 70px; height: 70px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; overflow: hidden; }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-name  { font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.cat-count { font-size: .72rem; color: var(--text-muted); }

/* Product Card */
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--transition); }
.product-card:hover { box-shadow: var(--shadow); }
.product-img-wrap { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-light); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.badge-sale, .badge-featured { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .5px; }
.badge-sale     { background: #e9252a; color: #fff; }
.badge-featured { background: #f59e0b; color: #fff; }
.product-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: .72rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name { font-size: .9rem; font-weight: 600; margin-bottom: 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--primary); }
.product-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-sale     { font-size: 1rem; font-weight: 700; color: #e9252a; }
.price-original { font-size: .8rem; color: var(--text-muted); text-decoration: line-through; }
.btn-add-cart { font-size: .82rem; font-weight: 600; padding: 7px 10px; background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary); border-radius: 6px; transition: all var(--transition); }
.btn-add-cart:hover { background: var(--primary); color: #fff; }

/* Why-us cards */
.why-card { padding: 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); height: 100%; }
.why-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 14px; }
.bg-primary-soft { background: #e8f1f8; }
.bg-success-soft { background: #f0fdf4; }
.bg-warning-soft { background: #fffbeb; }

/* Filter sidebar */
.filter-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 80px; }
.filter-heading { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 12px; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-link { display: flex; align-items: center; padding: 9px 10px; border-radius: 6px; font-size: .875rem; color: var(--text); transition: background var(--transition), color var(--transition); }
.filter-link:hover { background: var(--primary-light); color: var(--primary); }
.filter-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* Product detail */
.product-detail-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.product-gallery { padding: 20px; background: var(--bg-light); }
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); transition: transform .3s; }
.gallery-thumb { width: 64px; height: 64px; border: 2px solid var(--border); border-radius: 6px; overflow: hidden; padding: 0; background: none; cursor: pointer; transition: border-color var(--transition); }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { background: #fff; }
.product-detail-name { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.price-detail-sale     { font-size: 1.8rem; font-weight: 800; color: #e9252a; }
.price-detail-original { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.badge-stock-available { color: #16a34a; font-size: .85rem; font-weight: 600; }
.badge-stock-empty     { color: #dc2626; font-size: .85rem; font-weight: 600; }
.qty-control { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 36px; height: 36px; background: var(--bg-light); border: none; font-size: 1.1rem; cursor: pointer; color: var(--text); transition: background var(--transition); flex-shrink: 0; }
.qty-btn:hover { background: var(--primary-light); color: var(--primary); }
.qty-input { width: 52px; height: 36px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-weight: 600; font-size: .9rem; outline: none; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.trust-mini { font-size: .8rem; color: var(--text-muted); }

/* Cart page */
.cart-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-table th   { background: var(--bg-light); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 12px 16px; }
.cart-table td   { padding: 14px 16px; }
.cart-product-img { width: 64px; height: 64px; object-fit: cover; }
.cart-product-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cart-summary { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 80px; }

/* Checkout page */
.checkout-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.payment-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--primary); border-radius: var(--radius); background: var(--primary-light); }
.checkout-thumb { width: 48px; height: 48px; object-fit: cover; }
.order-items-list { max-height: 300px; overflow-y: auto; }

/* Success page */
.success-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 40px 32px; }
.order-summary-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: left; }

/* Pagination */
.page-link { color: var(--primary); border-color: var(--border); border-radius: 6px !important; margin: 0 2px; }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.page-link:hover { background: var(--primary-light); color: var(--primary); }

/* Footer */
.site-footer { background: #fff; color: #333; border-top: 1px solid var(--border); }
.footer-top { padding: 50px 0 40px; }
/* Logo in footer – display as block so mb-3 works correctly */
.logo-footer { display: flex; }
.footer-heading { color: #222; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: #555; font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: #555; margin-bottom: 10px; }
.footer-contact i  { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.footer-contact a  { color: #555; }
.footer-contact a:hover { color: var(--primary); }
.social-links { display: flex; gap: 8px; }
.social-link  { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: all var(--transition); }
.social-link:hover { background: var(--primary); color: #fff; }
.footer-bottom { background: var(--primary); padding: 12px 0; font-size: .82rem; color: #fff; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: #ffd700; }

/* Admin layout */
.admin-body { background: #f1f5f9; }
.admin-topbar { background: linear-gradient(135deg, #1a4a6e, #0d2e44); height: 58px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.admin-wrapper { display: flex; padding-top: 58px; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #fff; border-right: 1px solid var(--border); position: fixed; top: 58px; bottom: 0; left: 0; z-index: 100; overflow-y: auto; transition: transform var(--transition); }
.sidebar-scrollable { padding: 16px 12px; }
.nav-group-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); padding: 12px 8px 4px; }
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: .875rem; font-weight: 500; transition: all var(--transition); }
.sidebar-link:hover { background: var(--primary-light); color: var(--primary); }
.sidebar-link.active { background: var(--primary); color: #fff; }
.sidebar-link i { font-size: 1.05rem; flex-shrink: 0; }
.admin-main { margin-left: 240px; flex: 1; min-width: 0; }
.admin-content { min-height: calc(100vh - 58px); }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-card-header { padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-light); }
.admin-stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 16px; transition: box-shadow var(--transition); }
.admin-stat-card:hover { box-shadow: var(--shadow); }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.img-preview { max-width: 100%; max-height: 180px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; }
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .admin-main { margin-left: 0; }
}

/* Sidebar backdrop overlay (tablet / mobile) */
.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 58px 0 0 0;
  background: rgba(0, 0, 0, .45);
  z-index: 98;
  cursor: pointer;
  transition: opacity .22s ease;
}
.admin-sidebar-backdrop.show { display: block; }

/* ── Admin mobile optimizations ──────────────────────────────── */
@media (max-width: 767.98px) {
  /* Reduce inner padding */
  .admin-content { padding: 1rem !important; }

  /* Page-header rows: allow wrap so button doesn't overflow */
  .admin-content > .d-flex.justify-content-between,
  .admin-content > .d-flex.align-items-center.justify-content-between {
    flex-wrap: wrap;
    gap: .5rem;
  }
  .admin-content h1.h4 { font-size: 1.05rem; }

  /* Compact stat cards */
  .admin-stat-card { padding: 12px; gap: 10px; }
  .stat-icon { width: 42px; height: 42px; font-size: 1.15rem; }
  .stat-value { font-size: 1.25rem; }
}

@media (max-width: 575.98px) {
  .admin-content { padding: .75rem !important; }

  /* Smaller stat cards */
  .admin-stat-card { padding: 10px 8px; gap: 8px; }
  .stat-icon { width: 36px; height: 36px; font-size: 1rem; }
  .stat-value { font-size: 1.1rem; }
  .stat-label { font-size: .7rem; }

  /* Products table – hide Danh mục (4), Nổi bật (7) */
  .admin-tbl-products th:nth-child(4),
  .admin-tbl-products td:nth-child(4),
  .admin-tbl-products th:nth-child(7),
  .admin-tbl-products td:nth-child(7) { display: none; }

  /* Orders list – hide Điện thoại (3), Địa chỉ (4), Ngày đặt (7) */
  .admin-tbl-orders th:nth-child(3),
  .admin-tbl-orders td:nth-child(3),
  .admin-tbl-orders th:nth-child(4),
  .admin-tbl-orders td:nth-child(4),
  .admin-tbl-orders th:nth-child(7),
  .admin-tbl-orders td:nth-child(7) { display: none; }

  /* Dashboard recent orders – hide Điện thoại (3), Ngày đặt (6) */
  .admin-tbl-dash-orders th:nth-child(3),
  .admin-tbl-dash-orders td:nth-child(3),
  .admin-tbl-dash-orders th:nth-child(6),
  .admin-tbl-dash-orders td:nth-child(6) { display: none; }

  /* Slides – hide # (1), Tiêu đề (4), Thứ tự (5), Nút (6) */
  .admin-tbl-slides th:nth-child(1),
  .admin-tbl-slides td:nth-child(1),
  .admin-tbl-slides th:nth-child(4),
  .admin-tbl-slides td:nth-child(4),
  .admin-tbl-slides th:nth-child(5),
  .admin-tbl-slides td:nth-child(5),
  .admin-tbl-slides th:nth-child(6),
  .admin-tbl-slides td:nth-child(6) { display: none; }

  /* Contact – hide # (1), Email (3), Điện thoại (4), Thời gian (7) */
  .admin-tbl-contact th:nth-child(1),
  .admin-tbl-contact td:nth-child(1),
  .admin-tbl-contact th:nth-child(3),
  .admin-tbl-contact td:nth-child(3),
  .admin-tbl-contact th:nth-child(4),
  .admin-tbl-contact td:nth-child(4),
  .admin-tbl-contact th:nth-child(7),
  .admin-tbl-contact td:nth-child(7) { display: none; }
}

/* Bootstrap overrides */
.btn-primary { background: var(--primary); border-color: var(--primary); font-weight: 600; }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(33,92,133,.2); }

/* Utilities */
.x-small { font-size: .72rem; }
.main-content { min-height: 60vh; }

/* ── Public page: tablet / small desktop (≤767px) ─────────────── */
@media (max-width: 767.98px) {
  /* Stacked columns – remove sticky so they don’t float inside parent */
  .cart-summary   { position: static; }
  .filter-sidebar { position: static; }

  /* Checkout form padding */
  .checkout-form-card { padding: 20px; }

  /* Product detail info panel */
  .product-info { padding: 20px !important; }

  /* No inner scroll on order-item preview */
  .order-items-list { max-height: none; overflow-y: visible; }
}

/* ── Public page: phones (≤575px) ─────────────────────────── */
@media (max-width: 575.98px) {
  /* ─ Header / Logo ─ */
  .logo-sub  { display: none; }
  .logo-main { font-size: 1rem; }
  .logo-icon { width: 38px; height: 38px; font-size: 1.2rem; border-radius: 10px; }
  .logo-img  { height: 38px; }

  /* ─ Cart table: block layout with row separators ─ */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr  { border-bottom: 2px solid var(--border); }
  .cart-table td  { padding: 6px 12px; }
  /* Fix product name overflow when table becomes block */
  .cart-product-name { white-space: normal; max-width: 100%; }

  /* ─ Trust bar ─ */
  .trust-item   { padding: 8px 12px; }
  .trust-item i { font-size: 1.3rem; }

  /* ─ Checkout ─ */
  .checkout-form-card { padding: 14px; }

  /* ─ Product detail ─ */
  .product-info        { padding: 14px !important; }
  .product-detail-name { font-size: 1.2rem; }
  .price-detail-sale   { font-size: 1.5rem; }

  /* ─ Success page ─ */
  .success-card { padding: 24px 16px; }

  /* ─ Hero: full-width CTA buttons on smallest screens ─ */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-hero-primary,
  .hero-actions .btn-hero-outline { width: 100%; justify-content: center; }

  /* ─ Footer ─ */
  .footer-top { padding: 30px 0; }
  .footer-bottom .d-flex { flex-direction: column; text-align: center; gap: .25rem; }
}

/* ── Floating action buttons (bottom-right) ──────────────────── */
.fab-group {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Back-to-top */
.fab-top {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(33,92,133,.45);
  transition: opacity .25s, transform .25s, background .2s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.fab-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.fab-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* Phone call button */
.fab-call {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #e91c23;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 16px rgba(233,28,35,.55);
  text-decoration: none;
  position: relative;
}
.fab-call:hover { color: #fff; }

/* pulse ring animation */
.fab-call::before,
.fab-call::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(233,28,35,.6);
  animation: fab-pulse 1.6s ease-out infinite;
}
.fab-call::after  { animation-delay: .8s; }

@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.9); opacity: 0;  }
}

/* icon shake on hover */
.fab-call:hover i { animation: fab-shake .4s ease; }
@keyframes fab-shake {
  0%,100% { transform: rotate(0); }
  25%      { transform: rotate(-15deg); }
  75%      { transform: rotate(15deg); }
}

@media (max-width: 575.98px) {
  .fab-group { bottom: 16px; right: 14px; }
  .fab-call  { width: 46px; height: 46px; font-size: 1.2rem; }
  .fab-top   { width: 38px; height: 38px; font-size: 1rem; }
}

/* Homepage Flat Design Sections */
.home-section { padding: 28px 0 36px; background: #fff; }
.home-section-alt { background: #f9f9f9; }
.cat-group-section { border-top: 1px solid #ebebeb; }

.hs-title-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 0 0 12px; border-bottom: 3px solid var(--primary); }
.hs-title-bar-orange { border-bottom-color: #e9252a; }
.hs-title { font-size: 1.15rem; font-weight: 800; color: var(--primary); margin: 0; text-transform: uppercase; letter-spacing: .3px; }
.hs-title-bar-orange .hs-title { color: #e9252a; }
.hs-view-all { font-size: .8rem; font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; border: 1px solid var(--primary); border-radius: 3px; padding: 4px 10px; transition: all var(--transition); }
.hs-title-bar-orange .hs-view-all { color: #e9252a; border-color: #e9252a; }
.hs-view-all:hover { background: var(--primary); color: #fff; }
.hs-title-bar-orange .hs-view-all:hover { background: #e9252a; color: #fff; }

/* Category group (image + 3 products) */
.cat-group-body { display: flex; gap: 16px; align-items: stretch; }
.cat-group-image-panel { flex: 0 0 220px; max-width: 220px; }
.cat-group-img-link { display: block; position: relative; height: 100%; min-height: 260px; border-radius: 6px; overflow: hidden; text-decoration: none; }
.cat-group-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-group-img-link:hover img { transform: scale(1.04); }
.cat-group-img-placeholder { width: 100%; height: 100%; min-height: 260px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--primary); }
.cat-group-img-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(26,74,110,.88)); padding: 24px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.cat-group-name { color: #fff; font-weight: 800; font-size: .9rem; line-height: 1.2; }
.cat-group-count { color: rgba(255,255,255,.75); font-size: .72rem; }
.cat-group-btn { display: inline-block; margin-top: 6px; background: #e9252a; color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 3px; text-transform: uppercase; letter-spacing: .3px; align-self: flex-start; }
.cat-group-products { flex: 1; min-width: 0; }
@media (max-width: 767px) {
  .cat-group-body { flex-direction: column; }
  .cat-group-image-panel { flex: none; max-width: 100%; }
  .cat-group-img-link { min-height: 180px; }
  .cat-group-img-placeholder { min-height: 180px; }
}
