/* ==========================================================================
   CUSTOM MODERN CSS - NỘI THẤT HÒA PHÁT BÀ RỊA (hoaphatbaria.com)
   Tối ưu Mobile-First, Floating Contact Bar, Mobile Bottom Bar, Báo Giá Trọn Gói
   ========================================================================== */

:root {
  --hp-primary: #0a4f8a;       /* Xanh thương hiệu Hòa Phát */
  --hp-primary-dark: #073a66;
  --hp-accent: #f58220;        /* Cam điểm nhấn năng động */
  --hp-accent-hover: #e07114;
  --hp-zalo: #0088fe;
  --hp-hotline: #e53935;
  --hp-gold-bright: #ffd700;   /* Vàng sáng nổi bật */
  --hp-success: #2e7d32;
  --hp-bg-light: #f8fafc;
  --hp-text: #334155;
  --hp-heading: #0f172a;
}

/* Base Adjustments */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--hp-text);
  padding-bottom: 60px; /* Chừa khoảng trống cho Mobile Bottom Bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* Header Top Bar */
.header-topbar {
  background: #062f52;
  color: #e2e8f0;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-topbar a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.header-topbar a:hover {
  color: var(--hp-accent);
}
.header-topbar .top-badge {
  background: var(--hp-accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
}

/* Navbar Enhancements */
.custom-navbar {
  background: var(--hp-primary) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.custom-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
}
.custom-navbar .navbar-brand img {
  height: 42px;
  width: auto;
  border-radius: 4px;
}
.custom-navbar .brand-text-wrap {
  display: flex;
  flex-direction: column;
}
.custom-navbar .brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
}
.custom-navbar .brand-tagline {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 400;
}
.custom-navbar .custom-navbar-nav li a {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff !important;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.custom-navbar .custom-navbar-nav li.active a,
.custom-navbar .custom-navbar-nav li a:hover {
  color: #fbd38d !important;
  opacity: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0a4f8a 0%, #073a66 100%);
  padding: 50px 0 60px 0;
  color: #fff;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
}
.hero p {
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.6;
}
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.hero-highlights .highlight-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Nút Hero CTA Nổi bật & Sáng hài hòa */
.btn-hero-bright {
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border: 2px solid #ffffff !important;
  border-radius: 30px !important;
  padding: 12px 28px !important;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 15px;
  transition: all 0.3s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}
.btn-hero-bright:hover {
  background: linear-gradient(135deg, #fff066 0%, #ffc400 100%) !important;
  color: #000000 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255, 215, 0, 0.75) !important;
}

/* Trust Badges Bar */
.trust-bar {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-bottom: 1px solid #edf2f7;
  padding: 24px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-item .trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e6f0fa;
  color: var(--hp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.trust-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-heading);
  margin: 0 0 2px 0;
}
.trust-item p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}
.filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--hp-primary);
  border-color: var(--hp-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 79, 138, 0.25);
}

/* Search Box */
.sku-search-box {
  max-width: 480px;
  margin: 0 auto 30px auto;
  position: relative;
}
.sku-search-box input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border-radius: 30px;
  border: 2px solid #e2e8f0;
  font-size: 14px;
  transition: border-color 0.2s;
}
.sku-search-box input:focus {
  outline: none;
  border-color: var(--hp-primary);
  box-shadow: 0 0 0 3px rgba(10, 79, 138, 0.15);
}
.sku-search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}

/* Product Cards */
.hp-product-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.hp-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}
.hp-badge-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.hp-badge-sku {
  background: var(--hp-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hp-badge-hot {
  background: var(--hp-hotline);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.hp-card-img-wrap {
  position: relative;
  height: 220px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.hp-card-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.hp-product-card:hover .hp-card-img-wrap img {
  transform: scale(1.05);
}
.hp-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.hp-card-category {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.hp-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--hp-heading);
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 42px;
}
.hp-card-specs {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.5;
  flex-grow: 1;
}

/* Pricing Display */
.hp-price-section {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  border-left: 3px solid var(--hp-primary);
}
.hp-price-calc {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.hp-final-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--hp-hotline);
}
.hp-base-price {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}
.hp-price-note {
  font-size: 11px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hp-price-contact {
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Product Card Action Buttons */
.hp-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-zalo-quote {
  background: #0088fe;
  color: #fff;
  border: none;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-zalo-quote:hover {
  background: #006ecb;
  color: #fff;
}
.btn-detail-modal {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-detail-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Floating Contact Widget (Desktop & Tablet) */
.hp-floating-contact {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9990;
}
@media (max-width: 768px) {
  .hp-floating-contact {
    bottom: 75px;
    right: 12px;
  }
}
.hp-float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.hp-float-btn:hover {
  transform: scale(1.1);
  color: #fff;
}
.hp-float-hotline {
  background: #e53935;
  animation: hpPulse 2s infinite;
}
.hp-float-zalo {
  background: #0088fe;
}
.hp-float-maps {
  background: #0f9d58;
}
.hp-float-top {
  background: #334155;
  display: none;
}
.hp-float-tooltip {
  position: absolute;
  right: 60px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.hp-float-btn:hover .hp-float-tooltip {
  opacity: 1;
}

@keyframes hpPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(229, 57, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
  }
}

/* Mobile Bottom Sticky Bar (1-Chạm Điện Thoại) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  z-index: 9999;
  box-shadow: 0 -3px 15px rgba(0,0,0,0.06);
}
@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}
.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 4px 8px;
  transition: color 0.2s;
}
.mobile-bottom-item i {
  font-size: 18px;
  margin-bottom: 3px;
}
.mobile-bottom-item.item-hotline {
  color: #e53935;
}
.mobile-bottom-item.item-zalo {
  color: #0088fe;
}
.mobile-bottom-item.item-cart {
  color: var(--hp-primary);
  position: relative;
}
.mobile-bottom-item.active {
  color: var(--hp-primary);
}

/* Shipping & Payment Trust Section */
.trust-banner-section {
  background: #f1f5f9;
  padding: 50px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.shipping-badge-img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Quick Quote Modal */
.quote-modal-header {
  background: var(--hp-primary);
  color: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.quote-modal-header .btn-close {
  filter: brightness(0) invert(1);
}
.quote-product-summary {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  display: flex;
  gap: 14px;
  align-items: center;
}
.quote-product-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
  border: 1px solid #cbd5e1;
}

/* Footer Enhancements */
.hp-footer {
  background: #0a2540;
  color: #cbd5e1;
  padding: 60px 0 30px 0;
  font-size: 14px;
}
.hp-footer h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}
.hp-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--hp-accent);
}
.hp-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.hp-footer a:hover {
  color: #ffffff;
}
.hp-footer .footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.hp-footer .footer-contact-item i {
  color: var(--hp-accent);
  font-size: 16px;
  margin-top: 4px;
}
