/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500;700&display=swap');

/* Brand Design Tokens - Option B (Modern, Soft & Friendly) */
:root {
  --primary-color: #0056B3;
  /* Royal Blue Primary */
  --secondary-color: #111111;
  /* Dark neutral */
  --bg-color: #FAF9F6;
  /* Warmer background tone */
  --accent-color: #e61e21;
  /* Red Accent */
  --rating-color: #FFD400;
  /* Yellow for stars */
  --success-color: #18A957;
  --text-dark: #2A2A2A;
  --text-muted: #7A7A7A;
  --border-light: #EBEAE5;
  --border-dark: #222222;

  /* Option B - Soft & Rounded Geometry */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-pill: 50px;

  /* Typography Scale */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Soft, Modern Organic Shadows */
  --shadow-soft-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-soft-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-soft-lg: 0 16px 36px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 86, 179, 0.15);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global resets & Typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

section[id],
[id] {
  scroll-margin-top: 130px;
}

@media (min-width: 1200px) {

  #promotions-section .container,
  #best-sellers-section .container,
  #student-supplies-section .container,
  #office-supplies-section .container {
    max-width: 95% !important;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* GPU-accelerated animation base for AOS elements */
[data-aos] {
  will-change: transform, opacity;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: -0.2px;
}

/* Base custom interactive states */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-color);
}

/* Rounded elements overrides */
.btn,
.form-control,
.form-select,
.card {
  border-radius: var(--border-radius-md) !important;
}

.btn:hover {
  color: var(--bs-btn-hover-color);
  background-color: #e51e21;
  border-color: #e51e21;
}

/* Custom premium buttons (Option B - Rounded & Gradients) */
.btn-plus-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-pill) !important;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
  transition: var(--transition-fast);
}

.btn-plus-primary:hover,
.btn-plus-primary:focus {
  background-color: #004085;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.35);
}

.btn-plus-secondary {
  background-color: var(--secondary-color);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-pill) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition-fast);
}

.btn-plus-secondary:hover,
.btn-plus-secondary:focus {
  background-color: var(--primary-color);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.25);
}

.btn-plus-outline {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-pill) !important;
  transition: var(--transition-fast);
}

.btn-plus-outline:hover {
  background-color: #e51e21;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Header Sticky (Desktop & Mobile: Sticky positioning for header) */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  width: 100%;
  background-color: #FFFFFF;
  transition: box-shadow 0.35s ease;
  will-change: box-shadow;
}

header.is-sticky {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

header:not(.is-sticky) {
  box-shadow: none;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar header,
body.admin-bar .sticky-header-wrapper.is-sticky {
  top: 32px !important;
}

@media screen and (max-width: 782px) {

  body.admin-bar header,
  body.admin-bar .sticky-header-wrapper.is-sticky {
    top: 46px !important;
  }
}

.sticky-header-wrapper {
  background-color: #FFFFFF;
  transition: background-color 0.3s ease, box-shadow 0.35s ease;
  width: 100%;
  will-change: box-shadow;
}

.sticky-header-wrapper.is-sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1050 !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12) !important;
}

header.is-sticky .main-header,
.sticky-header-wrapper.is-sticky .main-header {
  padding: 6px 0;
  height: 68px;
  transition: padding 0.3s ease, height 0.3s ease;
}

header.is-sticky .header-logo img,
.sticky-header-wrapper.is-sticky .header-logo img {
  max-height: 50px !important;
  transition: all 0.3s ease;
}

.header-logo img {
  transition: max-height 0.3s ease;
}

/* Instant content visibility failsafe on scroll */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Header */
.top-header {
  border-top: 3px solid var(--accent-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, #004085 100%);
  color: #FFFFFF;
  font-size: 0.85rem;
  padding: 10px 0;
  font-weight: 500;
  transition: padding 0.3s ease, font-size 0.3s ease;
}

.top-header .row {
  align-items: center;
}

.top-header a {
  color: #FFFFFF;
}

.top-header a:hover {
  color: #d5d4cd;
}

.main-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  height: 95px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
  transition: padding 0.3s ease, height 0.3s ease;
}

.header-search {
  position: relative;
}

.header-search .form-control {
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-pill) !important;
  padding: 0 56px 0 22px;
  height: 46px;
  line-height: 46px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dark);
  background: #FFFFFF;
  transition: var(--transition-fast);
}

.header-search .form-control::placeholder {
  color: #AAAAAA;
  font-weight: 400;
}

.header-search .form-control:focus {
  box-shadow: 0 4px 20px rgba(227, 32, 32, 0.12);
  border-color: var(--primary-color);
  outline: none;
}

.header-search button {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--primary-color);
  color: #FFFFFF;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.header-search button i {
  font-size: 0.82rem;
  line-height: 1;
  display: block;
  pointer-events: none;
}

.header-search button:hover {
  background: var(--secondary-color);
  transform: translateY(-50%) scale(1.08);
}

/* Legacy header icon fallback rules cleaned */

/* E-Commerce Autocomplete Suggestion Panel */
.header-search {
  position: relative;
}

.search-suggestions-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #EAEAEA;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 1010;
  margin-top: 8px;
  padding: 20px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  transform: translateY(6px);
}

/* Show search panel on hover or focus */
.header-search:hover .search-suggestions-panel,
.header-search:focus-within .search-suggestions-panel,
.search-suggestions-panel.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.suggestions-section h6 {
  font-size: 0.8rem;
  color: #6B7280;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.suggestions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-tag {
  background-color: #F3F4F6;
  color: #374151;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.suggestion-tag:hover {
  background-color: #0056B3;
  color: #FFFFFF;
}

.suggested-product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.suggested-product-item:last-child {
  border-bottom: none;
}

.suggested-product-item:hover {
  background-color: #F9FAFB;
  padding-left: 12px;
}

.suggested-product-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.suggested-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  display: block;
  text-decoration: none;
  margin-bottom: 2px;
}

.suggested-price {
  font-size: 0.85rem;
  color: #0066CC;
  font-weight: 700;
}

/* =============================================
   Navigation & Mega Menu — Premium Redesign
   ============================================= */

/* ── Navbar Strip ── */
.navbar-plus {
  background: #FFFFFF !important;
  border-bottom: none;
  padding: 0;
  position: relative;
}

/* ── Tab List ── */
.header-tab-nav {
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
  background: #FFFFFF;
}

/* ── Each Tab ── */
.header-tab-nav .nav-item {
  flex: 1;
  text-align: center;
  background: #FFFFFF;
  border-right: none;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: visible;
}

.header-tab-nav .nav-item:last-child {
  border-right: none;
}

/* ── Tab Link ── */
.header-tab-nav .nav-link-main {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: #333333 !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0 8px !important;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-bottom: none !important;
  white-space: nowrap;
  transition: color 0.18s ease;
  position: relative;
}

/* ── Tab Icon ── */
.header-tab-nav .nav-link-main .tab-icon {
  display: none;
}

/* ── Tab Arrow ── */
.header-tab-nav .nav-link-main .tab-arrow {
  font-size: 0.55rem;
  color: #AAAAAA;
  margin-left: 2px;
  transition: transform 0.2s ease, color 0.18s ease;
}

/* ── Active / Hover Tab ── */
.header-tab-nav .nav-item:hover {
  background: #FFF7F7;
}

.header-tab-nav .nav-item:hover .nav-link-main {
  color: var(--primary-color) !important;
}

.header-tab-nav .nav-item:hover .tab-icon {
  background: rgba(227, 32, 32, 0.08);
}

.header-tab-nav .nav-item:hover .tab-icon i {
  color: var(--primary-color);
}

.header-tab-nav .nav-item:hover .tab-arrow {
  transform: rotate(180deg);
  color: var(--primary-color);
}

/* Active class */
.header-tab-nav .nav-item.active {
  background: #FFF7F7;
}

.header-tab-nav .nav-item.active .nav-link-main {
  color: var(--primary-color) !important;
}

.header-tab-nav .nav-item.active .tab-icon {
  background: rgba(227, 32, 32, 0.1);
}

.header-tab-nav .nav-item.active .tab-icon i {
  color: var(--primary-color);
}

/* ── Red bottom border indicator ── */
.header-tab-nav .nav-link-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px 3px 0 0;
  transform: translateX(-50%);
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-tab-nav .nav-item:hover .nav-link-main::after,
.header-tab-nav .nav-item.active .nav-link-main::after {
  width: 100%;
}

/* =============================================
   Mega Menu Dropdown
   ============================================= */
.mega-dropdown {
  position: static !important;
}

.mega-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--accent-color);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);
  display: none;
  z-index: 1050;
  overflow: hidden;
  margin: 0px 12px;
}

.mega-dropdown:hover .mega-menu-wrapper {
  display: flex;
  flex-direction: column;
  animation: megaFadeDown 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes megaFadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inner layout wrapper */
.mega-menu-inner {
  padding: 20px;
  display: flex;
  gap: 0;
  width: 100%;
  justify-content: flex-start;
}

/* Each column in the mega menu */
.mega-col {
  flex: 1 1 0;
  padding: 0 20px;
  border-right: 1px solid #F2F1ED;
}

.mega-col:first-child {
  padding-left: 0;
}

.mega-col:last-child {
  padding-right: 0;
  border-right: none;
}

/* Old container-fluid mega menus: equal columns, full width */
.mega-menu-wrapper .container-fluid {
  padding: 24px 28px 20px;
}

.mega-menu-wrapper .container-fluid .row {
  flex-wrap: nowrap;
}

.mega-menu-wrapper .container-fluid [class*="col-lg-"] {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0;
  max-width: none;
  padding-left: 0;
  padding-right: 24px;
  border-right: 1px solid #F2F1ED;
}

.mega-menu-wrapper .container-fluid [class*="col-lg-"]:last-child {
  border-right: none;
  padding-right: 0;
}

/* ── Column Header ── */
.mega-col-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 7px;
}

.mega-col-title i {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(227, 32, 32, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* ── Column Link List ── */
.mega-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-col-list li {
  margin-bottom: 2px;
}

.mega-col-list a {
  font-size: 0.84rem;
  color: #555555;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  line-height: 1.4;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  text-decoration: none;
}

.mega-col-list a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #CCCCCC;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mega-col-list a:hover {
  background: #FFF5F5;
  color: var(--primary-color);
  padding-left: 12px;
}

.mega-col-list a:hover::before {
  background: var(--primary-color);
  transform: scale(1.4);
}

/* ── Mega menu footer strip (optional promo banner) ── */
.mega-menu-footer {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFBF0 100%);
  border-top: 1px solid #F0EDE8;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.mega-menu-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #444444;
  font-weight: 500;
}

.mega-menu-footer-badge i {
  color: var(--primary-color);
  font-size: 0.85rem;
}

/* ── Legacy compatibility (keep old classes working) ── */
.mega-menu-title {
  font-family: var(--font-heading);
  font-size: 0.77rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-menu-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--primary-color);
  border-radius: 2px;
  flex-shrink: 0;
}

.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-list li {
  margin-bottom: 2px;
}

.mega-menu-list a {
  font-size: 0.84rem;
  color: #555555;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.mega-menu-list a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #CCCCCC;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.mega-menu-list a:hover {
  background: #FFF5F5;
  color: var(--primary-color);
  padding-left: 14px;
}

.mega-menu-list a:hover::before {
  background: var(--primary-color);
}

/* Sidebar Navigation (In Hero Area) */
.hero-sidebar {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft-sm);
}

.hero-sidebar-title {
  background-color: var(--secondary-color);
  color: #FFFFFF;
  font-family: var(--font-heading);
  padding: 16px 20px;
  font-size: 0.95rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-sidebar-menu li {
  border-bottom: 1px solid var(--border-light);
}

.hero-sidebar-menu li:last-child {
  border-bottom: none;
}

.hero-sidebar-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.hero-sidebar-menu a:hover {
  background-color: rgba(227, 32, 32, 0.03);
  color: var(--primary-color);
  padding-left: 24px;
}

/* Hero Section */
.hero-banner-section {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  /* remove ghost space below inline elements */
}

.hero-slider-container {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.hero-swiper-slide {
  position: relative;
  height: 760px;
}

.hero-swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-slide-caption {
  display: block;
  position: absolute;
  bottom: 60px;
  left: 60px;
  max-width: 580px;
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 45px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  z-index: 5;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.hero-swiper .swiper-slide-active .hero-slide-caption {
  transform: translateY(0);
  opacity: 1;
}

.hero-slide-caption h2 {
  color: #FFFFFF;
  font-size: 2.4rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: -0.5px;
}

.hero-slide-caption p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
  opacity: 0.85;
}

.hero-slide-caption .btn-plus-primary {
  padding: 12px 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Right small banners */
.hero-promo-banner {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 16px;
  height: calc((480px - 32px) / 3);
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-soft-sm);
  transition: var(--transition-fast);
}

.hero-promo-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft-md);
}

.hero-promo-icon {
  font-size: 2rem;
  color: var(--primary-color);
  width: 50px;
  text-align: center;
}

.hero-promo-info h4 {
  font-size: 0.95rem;
  margin-bottom: 3px;
  text-transform: none;
}

.hero-promo-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Shop by Grade Section styling (Section 1) */
.need-category-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
}

.need-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: background-color 0.3s ease;
}

.need-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(227, 32, 32, 0.15);
  text-decoration: none !important;
  color: inherit;
}

.need-category-card:hover::before {
  background: var(--primary-color);
}

.need-category-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Custom pastel backgrounds for categories */
.need-category-icon-box.mam-non-bg {
  background-color: #FFF0F0;
  color: #FF4D4D;
}

.need-category-icon-box.tieu-hoc-bg {
  background-color: #EBF5FF;
  color: #1890FF;
}

.need-category-icon-box.trung-hoc-bg {
  background-color: #F6FFED;
  color: #52C41A;
}

.need-category-icon-box.my-thuat-bg {
  background-color: #F9F0FF;
  color: #722ED1;
}

.need-category-card:hover .need-category-icon-box {
  transform: scale(1.08);
}

.need-category-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

.need-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-prep {
  background-color: #FFEAE6;
  color: #FF4D4D;
}

.badge-primary {
  background-color: #E6F7FF;
  color: #1890FF;
}

.badge-secondary {
  background-color: #E6FFEC;
  color: #52C41A;
}

.badge-art {
  background-color: #F9F0FF;
  color: #722ED1;
}

.need-category-body h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-transform: none;
  font-family: var(--font-heading);
}

.need-category-body p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.need-category-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  transition: gap 0.2s ease;
  gap: 4px;
}

.need-category-card:hover .need-category-link,
.need-category-link:hover {
  color: var(--secondary-color);
  gap: 8px;
}

/* Product Card (Option B - Soft, Rounded & Friendly) */
.product-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg) !important;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft-sm);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  will-change: transform;
  backface-visibility: hidden;
}

.product-card:hover {
  /* transform: translateY(-5px) scale(1.01); */
  box-shadow: var(--shadow-soft-lg);
  border-color: rgba(227, 32, 32, 0.3);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--accent-color);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(227, 32, 32, 0.2);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.04);
}

.product-actions-hover {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  transition: var(--transition-normal);
  z-index: 5;
}

.product-card:hover .product-actions-hover {
  bottom: 0;
}

.btn-action-hover {
  background-color: #FFFFFF;
  color: var(--secondary-color);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  box-shadow: var(--shadow-soft-sm);
  transition: var(--transition-fast);
}

.btn-action-hover:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
  transform: scale(1.1);
}

/* Custom grid layout for desktop (5 columns on medium-lg desktops, 6 columns on large screens) */
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (min-width: 1200px) {
  .col-lg-2-4 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
}

.product-info {
  padding: 10px 10px 8px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.product-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.35;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-transform: none;
  color: var(--text-dark);
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-title a:hover {
  color: var(--primary-color);
}

.product-card-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
  margin-top: 2px;
}

.product-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.35;
  letter-spacing: 0.1px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-rating {
  font-size: 0.7rem;
  color: var(--rating-color);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.product-rating span {
  color: var(--text-muted);
  font-size: 0.68rem;
}

/* ── Sold Count Badge - inline after rating ── */
.product-sold {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
}

.product-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
  margin-bottom: 4px;
}

.product-sold {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.product-sold .sold-count {
  font-weight: 700;
  color: #e85d04;
}

.product-sold i {
  font-size: 0.6rem;
  color: #e85d04;
}

.product-price-wrapper {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.product-price-new {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.97rem;
}

.product-price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.75rem;
}

/* Flash Sale Section (Section 2) */
.flash-sale-header {
  background: linear-gradient(135deg, #0056B3 0%, #004085 100%);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  box-shadow: var(--shadow-soft-sm);
}

.flash-sale-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  color: #FFFFFF;
  text-transform: none;
  font-size: 1.35rem;
  letter-spacing: -0.3px;
}

.countdown-box {
  display: flex;
  gap: 8px;
}

.countdown-unit {
  background-color: var(--accent-color);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flash-sale-slider {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-soft-md);
  position: relative;
}

/* Position navigation buttons vertically centered on the sides of the slider */
.flash-sale-prev,
.flash-sale-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 20 !important;
  margin: 0 !important;
}

.flash-sale-prev {
  left: -22px !important;
}

.flash-sale-next {
  right: -22px !important;
}

@media (max-width: 991px) {

  .flash-sale-prev,
  .flash-sale-next {
    display: none !important;
  }
}

/* Custom Swiper Controls — Premium Smooth */
.swiper-btn-prev,
.swiper-btn-next {
  background: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #333333;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  z-index: 10;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.swiper-btn-prev i,
.swiper-btn-next i {
  font-size: 0.75rem;
  color: #333333;
  transition: color 0.18s ease;
  line-height: 1;
  pointer-events: none;
}

/* Override Swiper default arrow ::after (unused when FontAwesome is set) */
.swiper-btn-prev::after,
.swiper-btn-next::after {
  display: none;
}

.swiper-btn-prev:hover,
.swiper-btn-next:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(227, 32, 32, 0.38);
  /* transform: translateY(-2px) scale(1.06); */
}

.swiper-btn-prev:active,
.swiper-btn-next:active {
  /* transform: translateY(0px) scale(0.97); */
  box-shadow: 0 2px 8px rgba(227, 32, 32, 0.2);
}

.swiper-btn-prev:hover i,
.swiper-btn-next:hover i {
  color: #FFFFFF;
}

/* Best Sellers Tabs (Section 3) */
.custom-tabs-nav {
  display: flex;
  justify-content: center;
  background-color: #ECEBE4;
  padding: 6px;
  border-radius: var(--border-radius-pill);
  max-width: max-content;
  margin: 0 auto 30px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.custom-tab-btn {
  background-color: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 10px 24px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--border-radius-pill);
  transition: var(--transition-fast);
}

.custom-tab-btn:hover {
  color: var(--secondary-color);
}

.custom-tab-btn.active {
  color: var(--secondary-color);
  background-color: #FFFFFF;
  box-shadow: var(--shadow-soft-sm);
}

/* Ad Banner (Section 4) */
.ad-banner-section {
  position: relative;
  height: 420px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft-md);
}

.ad-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.55);
}

.ad-banner-content {
  position: relative;
  z-index: 5;
  color: #FFFFFF;
  max-width: 600px;
  padding: 0 40px;
}

.ad-banner-content h2 {
  color: #FFFFFF;
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-transform: none;
}

.ad-banner-content p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  opacity: 0.9;
}

/* Brand Slider (Section 5) */
.brand-slider-container {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 30px 20px;
  box-shadow: var(--shadow-soft-sm);
}

.brand-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.brand-slide:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.brand-slide img {
  max-width: 120px;
  max-height: 50px;
  object-fit: contain;
}

/* Combo Saver Cards (Section 10) */
.combo-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft-sm);
  transition: var(--transition-normal);
}

.combo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-md);
  border-color: rgba(227, 32, 32, 0.2);
}

.combo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.combo-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.combo-badge {
  background-color: var(--accent-color);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  align-self: flex-start;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(255, 212, 0, 0.2);
}

.combo-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: none;
}

.combo-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* Why choose us (Section 11) */
.why-us-section {
  background-color: #ECEBE4;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.why-us-card {
  text-align: center;
  padding: 30px 20px;
  background-color: transparent;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.why-us-card:hover {
  background-color: #ffffff;
  border-color: rgba(227, 32, 32, 0.1);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.why-us-icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 6px rgba(227, 32, 32, 0.15));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.why-us-card:hover .why-us-icon {
  transform: scale(1.15) rotate(5deg);
}

.why-us-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  text-transform: none;
}

.why-us-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Purchase Timeline (Section 12) */
.timeline-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 5%;
  width: 90%;
  height: 2px;
  background-color: var(--border-light);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 18%;
}

.timeline-number {
  width: 44px;
  height: 44px;
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: var(--shadow-soft-sm);
  transition: var(--transition-fast);
}

.timeline-step:hover .timeline-number {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(227, 32, 32, 0.2);
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: none;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* News Section (Section 14) */
.news-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft-sm);
  height: 100%;
  transition: var(--transition-normal);
  position: relative;
}

.news-card:hover {
  /* transform: translateY(-5px); */
  box-shadow: var(--shadow-soft-lg);
  border-color: var(--primary-color);
}

.news-img-wrapper {
  overflow: hidden;
  aspect-ratio: 1.6;
}

.news-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.news-card:hover .news-img-wrapper img {
  transform: scale(1.03);
}

.news-info {
  padding: 24px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  text-transform: none;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.news-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.news-link:hover,
.news-card:hover .news-link {
  color: var(--primary-color);
}

/* Newsletter Signup (Section 15) */
.newsletter-section {
  background: linear-gradient(135deg, #0056b3 0%, #002d62 100%);
  color: #FFFFFF;
  padding: 55px 0;
}

.newsletter-section h2 {
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: none;
}

.newsletter-section p {
  opacity: 0.9;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.newsletter-input-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 50px;
  padding: 5px 6px 5px 22px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  width: 100%;
  transition: all 0.3s ease;
}

.newsletter-input-wrap:focus-within {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.newsletter-form .form-control.newsletter-email-input,
.newsletter-form .form-control.newsletter-email-input[readonly],
.newsletter-form .form-control.newsletter-email-input:disabled {
  border: none !important;
  background: transparent !important;
  height: 44px !important;
  padding: 0 10px 0 0 !important;
  font-size: 0.95rem !important;
  color: #334155 !important;
  box-shadow: none !important;
  flex: 1 1 auto !important;
  width: 0 !important;
  min-width: 0 !important;
  outline: none !important;
  text-overflow: ellipsis !important;
}

.newsletter-form .form-control.newsletter-email-input::placeholder {
  color: #64748b;
  font-size: 0.9rem;
}

.newsletter-form .btn-newsletter {
  background: #e51e20;
  color: #FFFFFF;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 44px;
  padding: 0 28px;
  border-radius: 40px;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(229, 30, 32, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-newsletter-disabled,
.newsletter-form .btn-newsletter:disabled {
  background: #94a3b8 !important;
  color: #ffffff !important;
  opacity: 0.85 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  border: none !important;
}

.newsletter-input-wrap.disabled-wrap {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  opacity: 1;
}

.newsletter-form .btn-newsletter:hover {
  background-color: #c81315;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(229, 30, 32, 0.45);
}

.newsletter-status-box {
  width: 100%;
  border-radius: 16px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  padding: 16px 20px !important;
}

.newsletter-status-box #newsletter-status-message {
  font-size: 0.92rem;
  line-height: 1.5;
}

.newsletter-status-box #newsletter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer styling */
.footer-main {
  background-color: var(--secondary-color);
  color: #CCCCCC;
  padding: 80px 0 40px;
  border-top: 4px solid var(--primary-color);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #FFFFFF;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer-intro {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Footer Social Icons & Interactive Hover Effects */
.footer-social-wrapper {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-social-icon i {
  transition: transform 0.3s ease;
}

.footer-social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: transparent;
}

.footer-social-icon:hover i {
  transform: scale(1.2);
}

/* Platform-Specific Brand Colors on Hover */
.footer-social-icon.social-fb:hover {
  background-color: #1877F2 !important;
  box-shadow: 0 8px 22px rgba(24, 119, 242, 0.5);
}

.footer-social-icon.social-yt:hover {
  background-color: #FF0000 !important;
  box-shadow: 0 8px 22px rgba(255, 0, 0, 0.5);
}

.footer-social-icon.social-ln:hover {
  background-color: #0A66C2 !important;
  box-shadow: 0 8px 22px rgba(10, 102, 194, 0.5);
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  text-transform: none;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #CCCCCC;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 6px;
}

.footer-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-info li {
  margin-bottom: 15px;
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-info i {
  color: var(--primary-color);
  margin-top: 4px;
}

.footer-info a {
  transition: color 0.18s ease;
}

.footer-info a:hover {
  color: #FFFFFF !important;
}

.footer-bottom {
  background-color: #0A0A0A;
  color: #777777;
  padding: 20px 0;
  font-size: 0.85rem;
  border-top: 1px solid #1C1C1C;
}

/* E-COMMERCE SIDEBAR CART DRAWER */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.5);
  display: none;
  z-index: 1099;
}

.cart-drawer-overlay.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background-color: #FFFFFF;
  z-index: 1100;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.cart-drawer.active {
  right: 0;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h4 {
  margin-bottom: 0;
  font-size: 1.15rem;
  text-transform: none;
}

.cart-drawer-close {
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  border: 0;
  background: transparent;
  line-height: 1;
}

.cart-drawer-close:hover {
  color: var(--primary-color);
}

.cart-drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.cart-drawer-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}

.cart-drawer-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 4px;
  background-color: #fff;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
  min-width: 0;
  padding-top: 4px;
}

.cart-item-info h5,
.cart-item-info .cart-item-title {
  font-size: 0.88rem;
  margin-top: 2px;
  margin-bottom: 6px;
  text-transform: none;
  font-weight: 600;
  line-height: 1.4;
  color: var(--secondary-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.cart-item-price {
  color: var(--accent-color, #E32020);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.cart-item-qty-control {
  display: inline-flex;
  border: 1px solid #D5D4CD;
  border-radius: var(--border-radius-pill);
  height: 32px;
  overflow: hidden;
  align-items: center;
  background-color: #fff;
  margin-bottom: 0;
}

.qty-btn {
  background: none;
  border: none;
  width: 32px;
  font-weight: 700;
  font-size: 0.95rem;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background-color: #ECEBE4;
  color: var(--primary-color);
}

.qty-input {
  border: none;
  border-left: 1px solid #D5D4CD;
  border-right: 1px solid #D5D4CD;
  text-align: center;
  width: 38px;
  font-size: 0.85rem;
  font-weight: 700;
  background: transparent;
  height: 100%;
  outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-remove {
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 1rem;
  transition: var(--transition-fast);
  border: 0;
  background: transparent;
  align-self: flex-start;
  margin-top: 4px;
}

.cart-item-remove:hover {
  color: var(--accent-color, #E32020);
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-color);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-total-value {
  color: var(--primary-color);
}

.cart-shipping-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
}

/* Sticky Action Buttons (Friendly Round Bubbles) */
.sticky-actions-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.sticky-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #FFFFFF;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  padding: 0;
  text-decoration: none !important;
}

.sticky-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transition: transform 0.3s ease;
}

.sticky-btn:hover {
  transform: scale(1.15) translateY(-4px);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.sticky-btn:hover img {
  transform: rotate(6deg) scale(1.05);
}

.btn-messenger {
  background-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 132, 255, 0.35);
}

.btn-zalo {
  background-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 104, 255, 0.35);
}

.btn-phone {
  background-color: transparent;
  box-shadow: 0 4px 15px rgba(230, 0, 18, 0.35);
}

.btn-back-to-top {
  background-color: var(--primary-color) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4) !important;
  display: none;
}

.btn-back-to-top i {
  margin: 0;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top[style*="display"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  display: none;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
}

.mobile-nav-item {
  text-align: center;
  color: var(--accent-color);
  font-size: 0.7rem;
  font-weight: 600;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.mobile-nav-item i {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 3px;
  transition: transform 0.2s ease;
}

.mobile-nav-item:hover {
  color: var(--primary-color);
  background-color: rgba(0, 86, 179, 0.06);
}

.mobile-nav-item.active {
  /* color: var(--primary-color); */
  /* background-color: rgba(0, 86, 179, 0.1); */
  border-radius: 10px;
}

.mobile-nav-item.active i {
  transform: translateY(-1px);
}

/* Popup Voucher Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  display: flex;
  opacity: 1;
}

.popup-content {
  background-color: #FFFFFF;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-soft-lg);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
  z-index: 10;
}

.popup-close:hover {
  color: var(--primary-color);
}

.popup-inner {
  padding: 40px 35px;
  text-align: center;
}

.popup-voucher-badge {
  background-color: var(--primary-color);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  padding: 8px 24px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 12px rgba(227, 32, 32, 0.2);
}

/* Skeleton loader for speed optimization placeholder */
.skeleton {
  background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
  background-size: 200% 100%;
  animation: loadingSkeleton 1.5s infinite;
}

@keyframes loadingSkeleton {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Quick Category Navigation Swiper Slider */
.quick-cat-swiper {
  position: relative;
  overflow: hidden;
  padding: 10px 5px;
}

.quick-cat-prev,
.quick-cat-next {
  width: 36px;
  height: 36px;
  background-color: #FFFFFF;
  color: var(--secondary-color);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.quick-cat-prev::after,
.quick-cat-next::after {
  font-size: 0.8rem;
  font-weight: 900;
}

.quick-cat-prev {
  left: 0;
}

.quick-cat-next {
  right: 0;
}

.quick-cat-prev:hover,
.quick-cat-next:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(227, 32, 32, 0.25);
}

.quick-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  width: 100%;
  transition: var(--transition-normal);
}

.quick-cat-item:hover {
  transform: translateY(-5px);
}

.quick-cat-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition-normal);
}

.quick-cat-icon-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.quick-cat-item:hover .quick-cat-icon-box {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.quick-cat-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  white-space: normal;
  line-height: 1.3;
  margin-top: 4px;
  min-height: 2.6em;
  word-wrap: break-word;
  width: 100%;
}

/* Secondary Quick Filters Bar — Redesigned */
.quick-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(227, 32, 32, 0.12);
  box-shadow: 0 2px 12px rgba(227, 32, 32, 0.06);
  overflow: visible;
  /* Allow content to overflow on mobile without clipping */
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 20px;
  flex: 1;
  min-width: 200px;
}

/* Vertical divider between filter groups */
.filter-group+.filter-group {
  border-left: 1px solid rgba(227, 32, 32, 0.1);
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 80px;
}

.filter-label i {
  font-size: 0.75rem;
  opacity: 0.8;
}

.btn-filter-pill {
  border: 1.5px solid #D5D4CD;
  border-radius: var(--border-radius-pill);
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #555;
  background-color: #FFFFFF;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  line-height: 1.5;
}

.btn-filter-pill:hover {
  background-color: rgba(227, 32, 32, 0.07);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(227, 32, 32, 0.12);
}

.btn-filter-pill.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(227, 32, 32, 0.28);
  transform: translateY(-1px);
}

/* Product Card Micro-Tags */
.product-card-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 5px;
}

.product-card-tag {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--primary-color);
  background-color: rgba(227, 32, 32, 0.08);
  white-space: nowrap;
  line-height: 1.5;
}

.product-card-tag.text-bg-success {
  color: #198754 !important;
  background-color: rgba(25, 135, 84, 0.08) !important;
}

.product-card-tag.text-bg-primary {
  color: #0d6efd !important;
  background-color: rgba(13, 110, 253, 0.08) !important;
}

.product-card-tag.text-bg-warning {
  color: #b58105 !important;
  background-color: rgba(255, 193, 7, 0.12) !important;
}

.product-card-tag.text-bg-danger {
  color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.08) !important;
}

.text-name-company {
  color: #e51e21;
}

.text-primary {
  color: #0053ad !important;
}

/* ── Hero Swiper Custom Controls & Pagination ── */
.hero-swiper .swiper-pagination {
  bottom: 30px !important;
  z-index: 10;
}

.hero-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  margin: 0 6px !important;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  width: 28px;
  border-radius: 10px;
  border-color: var(--primary-color);
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  position: absolute;
  top: 50% !important;
  margin-top: 0 !important;
  transform: translateY(-50%) !important;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  color: var(--text-dark);
  z-index: 10;
}

.hero-slider-container:hover .swiper-button-prev,
.hero-slider-container:hover .swiper-button-next {
  opacity: 1;
  visibility: visible;
}

.hero-swiper .swiper-button-prev {
  left: 30px;
}

.hero-swiper .swiper-button-next {
  right: 30px;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  display: none !important;
  content: none !important;
}

.hero-swiper .swiper-button-prev .btn-icon-arrow,
.hero-swiper .swiper-button-next .btn-icon-arrow {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-swiper .swiper-button-prev:hover .btn-icon-arrow,
.hero-swiper .swiper-button-next:hover .btn-icon-arrow {
  color: #FFFFFF !important;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 10px 24px rgba(0, 86, 179, 0.35);
  transform: translateY(-50%) scale(1.1) !important;
}

/* ── Hero Swiper Mobile & Tablet Responsive ── */
@media (max-width: 991px) {
  .hero-swiper-slide {
    height: 580px;
  }

  .hero-slide-caption {
    bottom: 40px;
    left: 40px;
    right: 40px;
    max-width: none;
    padding: 30px;
  }

  .hero-slide-caption h2 {
    font-size: 1.8rem;
  }

  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    display: none !important;
  }
}

@media (max-width: 575px) {
  .hero-swiper-slide {
    height: 480px;
  }

  .hero-slide-caption {
    bottom: 20px;
    left: 15px;
    right: 15px;
    padding: 20px;
    border-radius: 12px;
  }

  .hero-slide-caption h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .hero-slide-caption p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .hero-slide-caption .btn-plus-primary {
    padding: 8px 20px;
    font-size: 0.75rem;
  }
}

/* Art & Crafts Swiper Styles */
.art-slider-wrapper {
  padding: 10px 0 45px;
}

.art-slider-wrapper .art-swiper-prev,
.art-slider-wrapper .art-swiper-next {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.art-slider-wrapper .art-swiper-prev::after,
.art-slider-wrapper .art-swiper-next::after {
  display: none !important;
}

.art-slider-wrapper .art-swiper-prev {
  left: -20px;
}

.art-slider-wrapper .art-swiper-next {
  right: -20px;
}

.art-slider-wrapper .art-swiper-prev:hover,
.art-slider-wrapper .art-swiper-next:hover {
  background: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.35);
}

.art-swiper-pagination {
  bottom: 0 !important;
}

.art-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  width: 24px;
  border-radius: 6px;
}

/* Filter Empty State Styling */
.no-products-found {
  padding: 45px 20px;
  background: #F8FAFC;
  border: 2px dashed #E2E8F0;
  border-radius: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
  animation: fadeIn 0.4s ease-in-out;
}

.empty-icon-wrapper {
  width: 80px;
  height: 80px;
  background: #EDF2F7;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-reset-filter {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  padding: 8px 24px;
}

.btn-reset-filter:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 86, 179, 0.3);
}

/* Header Icon Buttons & Account Dropdown */
.header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #2D3748;
  font-size: 1.15rem;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  margin: 0 !important;
}

.header-icon-btn i {
  color: #2D3748;
  font-size: 1.15rem;
  transition: color 0.2s ease;
}

.header-icon-btn:hover,
.header-account-wrapper:hover .header-icon-btn {
  background-color: #EBF8FF;
  border-color: #BEE3F8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

.header-icon-btn:hover i,
.header-account-wrapper:hover .header-icon-btn i {
  color: var(--primary-color);
}

.badge-count,
.cart-count-badge,
.header-icon-btn .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #E53E3E;
  color: #FFFFFF !important;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  line-height: 1;
  text-align: center;
  border-radius: 999px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  box-sizing: border-box;
  z-index: 2;
}

.header-account-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 270px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #E2E8F0;
  padding: 18px;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  pointer-events: none;
}

.header-account-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -80px;
  right: -80px;
  height: 16px;
}

.header-account-wrapper:hover .account-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.account-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  transform: translateX(-50%) rotate(45deg);
  border-top: 1px solid #E2E8F0;
  border-left: 1px solid #E2E8F0;
}

.account-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.user-avatar-placeholder {
  font-size: 2.5rem;
  color: var(--primary-color);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-welcome-info .welcome-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1A202C;
  margin-bottom: 2px;
}

.user-welcome-info .sub-text {
  font-size: 0.78rem;
  color: #718096;
}

.account-auth-buttons .btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 50px !important;
}

.account-menu-list {
  list-style: none;
}

.account-menu-list li a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: #4A5568;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.account-menu-list li a:hover {
  background: #F7FAFC;
  color: var(--primary-color);
  transform: translateX(4px);
}

/* ================================================
   BRAND THEME SYNC — Blue & Red Color Overrides
   ================================================ */

/* Keep text-danger using accent red (our brand red) */
.text-danger {
  color: var(--accent-color) !important;
}

/* Product price (primary price = Blue) */
.product-price-new {
  color: var(--primary-color) !important;
}

/* Quick View modal price */
#qv-product-price {
  color: var(--primary-color) !important;
}

/* Product card "Thêm vào giỏ" add-to-cart button */
.btn-add-to-cart {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.btn-add-to-cart:hover {
  background-color: #B31010;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(227, 32, 32, 0.35);
}

/* Sales / hot badge = Red accent */
.product-badge {
  background-color: #e51e21 !important;
}

/* Active tab nav item = Red primary */
.custom-tab-btn.active {
  background-color: var(--primary-color) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 12px rgba(227, 32, 32, 0.25) !important;
}

/* AOS Scroll Animation Optimization */
[data-aos] {
  pointer-events: auto !important;
  will-change: opacity, transform;
}

/* Subcategory/Type Filter Controls Styling */
.category-filter-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 35px;
}

.filter-btn {
  background-color: #FFFFFF;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  padding: 8px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-soft-sm);
  transition: all var(--transition-normal);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-md);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
}

/* Smooth product filtering animation */
.product-col {
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
  transform-origin: center;
}

.product-col.filtered-out {
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  max-width: 0;
  max-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden;
  position: absolute;
}

/* News Slider Navigation and Pagination styling */
.news-slider-wrapper {
  padding: 0 40px;
}

@media (max-width: 767.98px) {
  .news-slider-wrapper {
    padding: 0;
  }
}

.news-swiper {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-prev,
.news-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft-sm);
  transition: all var(--transition-normal);
}

.news-prev:hover,
.news-next:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-soft-md);
}

.news-prev {
  left: -22px;
}

.news-next {
  right: -22px;
}

.news-swiper-pagination {
  position: static !important;
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.news-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--text-muted);
  opacity: 0.3;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.news-swiper-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: var(--border-radius-pill);
  background-color: var(--primary-color) !important;
  opacity: 1;
}

/* ── Section 9: Furniture Horizontal Layout ── */
.furniture-section {
  background: linear-gradient(135deg, #f0f4f9 0%, #e2ecf7 100%);
  position: relative;
}

.furniture-section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.furniture-section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  background-color: rgba(0, 86, 179, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.furniture-section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Horizontal Furniture Card */
.furniture-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(0, 86, 179, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.furniture-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 86, 179, 0.15);
  border-color: var(--primary-color);
}

.furniture-card-img {
  width: 40%;
  min-width: 150px;
  background-color: #f8fafc;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.furniture-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.furniture-card-img--contain img {
  object-fit: contain !important;
}

.furniture-card:hover .furniture-card-img img {
  transform: scale(1.06);
}

.furniture-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  background-color: #e63946;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(230, 57, 70, 0.3);
}

.furniture-badge.badge-wood {
  background-color: #d97706;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.furniture-badge.badge-green {
  background-color: #10b981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.furniture-card-body {
  width: 60%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.furniture-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2px;
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.furniture-features {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.furniture-features li {
  font-size: 0.72rem;
  color: #475569;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.furniture-features li i {
  color: #10b981;
  font-size: 0.7rem;
}

.furniture-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.furniture-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
}

.btn-furniture-add {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-furniture-add:hover {
  background-color: #004085;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

@media (max-width: 576px) {
  .furniture-card {
    flex-direction: column;
  }

  .furniture-card-img {
    width: 100%;
    height: 180px;
  }

  .furniture-card-body {
    width: 100%;
  }
}

/* Load More / Show More Button Styling */
.btn-show-more {
  padding: 10px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  color: var(--primary-color);
  background-color: #FFFFFF;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 14px rgba(0, 86, 179, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: none;
}

.btn-show-more:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.28);
  transform: translateY(-2px);
}

.btn-show-more:active {
  transform: translateY(0);
}

/* ==========================================================================
   CATEGORY & PRODUCT LISTING PAGE STYLES
   ========================================================================== */
.category-sidebar {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 140px;
  /* Adjust based on sticky header height */
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.sidebar-menu-list li {
  transition: all 0.2s ease;
}

.sidebar-menu-list li a {
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.sidebar-menu-list li.active a,
.sidebar-menu-list li a:hover {
  color: var(--primary-color) !important;
}

.sidebar-menu-list li .badge {
  font-size: 0.75rem;
  font-weight: 600;
}

.filter-checkbox-list .form-check-label {
  font-size: 0.9rem;
  color: #555555;
  cursor: pointer;
  user-select: none;
}

.filter-checkbox-list .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Category Banner & Intro Card */
.category-banner-wrapper {
  background-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-banner-img {
  opacity: 1;
  /* Normal opacity since no overlay text */
  object-fit: cover;
  display: block;
}

.category-intro-card {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.category-intro-title {
  position: relative;
  padding-bottom: 8px;
}

.category-intro-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Category Heading (Title + Description block ở đầu khu vực sản phẩm) */
.category-heading {
  border-left: 4px solid var(--primary-color);
  padding-left: 14px;
}

.category-heading-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.3;
  margin-bottom: 6px;
}

.category-heading-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #6c757d;
  text-align: justify;
}

/* Pagination */
.pagination .page-link {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-color: #E0E0E0;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFFFFF;
}

.pagination .page-link:hover {
  background-color: #F8F8F8;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination .page-item.active .page-link:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

@media (max-width: 991.98px) {
  .category-sidebar {
    position: static;
    margin-bottom: 20px;
  }

  .category-banner-wrapper {
    height: auto;
    min-height: 180px;
  }

  .category-banner-title {
    font-size: 1.4rem;
  }

  .category-banner-desc {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   PRODUCT DETAIL PAGE CUSTOM STYLES (Office Plus - B2B Theme)
   ========================================================================== */

/* Breadcrumb Styling */
.breadcrumb-wrapper {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  margin-bottom: 25px;
}

.breadcrumb {
  margin-bottom: 0;
  padding-left: 15px;
}

.breadcrumb-item {
  font-size: 0.88rem;
}

.breadcrumb-item a {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-dark);
  font-weight: 600;
}

/* Main Section */
.product-detail-section {
  padding-bottom: 60px;
}

.product-detail-card {
  background-color: #FFFFFF;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft-md);
  padding: 30px;
  margin-bottom: 40px;
}

/* Gallery Swiper */
.product-gallery {
  position: relative;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: #FFFFFF;
  margin-bottom: 15px;
  position: relative;
}

.product-gallery-main .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-gallery-main:hover img {
  transform: scale(1.05);
}

.product-gallery-thumbs {
  width: 100%;
  padding: 2px 0;
  box-sizing: border-box;
}

.product-gallery-thumbs .swiper-slide {
  width: 20%;
  height: 100%;
  opacity: 0.5;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.product-gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--primary-color);
}

.product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info Column */
.product-info-col {
  padding-left: 15px;
}

.product-meta-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  margin-bottom: 10px;
}

.product-meta-brand {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.product-title-detail {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
  text-transform: none;
  line-height: 1.35;
}

.product-rating-reviews {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  column-gap: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
  line-height: 1.4;
}

.product-rating-reviews > * {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.product-rating-reviews .rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rating-stars i {
  color: var(--rating-color);
}

.product-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success-color);
}

.product-sold-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
}

.product-status-tag.out-of-stock {
  color: var(--accent-color);
}

/* Pricing Block */
.price-block-detail {
  background-color: var(--bg-color);
  padding: 20px;
  border-radius: var(--border-radius-md);
  margin-bottom: 25px;
}

.price-retail-detail {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.price-original-detail {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.discount-tag-detail {
  font-size: 0.8rem;
  background-color: var(--accent-color);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
}

/* B2B Bulk Pricing Card — Tier Card Style */
.bulk-pricing-card {
  display: none;
  border: 1px solid rgba(0, 86, 179, 0.2);
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.03) 0%, rgba(0, 86, 179, 0.01) 100%);
  border-radius: var(--border-radius-md);
  padding: 18px;
  margin-bottom: 22px;
}

.bulk-pricing-card h5 {
  font-size: 0.88rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Tier grid layout */
.bulk-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.bulk-tier-item {
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bulk-tier-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 3px 12px rgba(0, 86, 179, 0.1);
}

.bulk-tier-item.is-active {
  border-color: var(--primary-color);
  background-color: rgba(0, 86, 179, 0.05);
  box-shadow: 0 3px 12px rgba(0, 86, 179, 0.12);
}

.bulk-tier-item.bulk-tier-best {
  border-color: var(--success-color);
  background-color: rgba(24, 169, 87, 0.04);
}

.bulk-tier-qty {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 500;
}

.bulk-tier-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 4px;
}

.bulk-tier-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.bulk-tier-badge {
  display: inline-block;
  background-color: rgba(24, 169, 87, 0.12);
  color: var(--success-color);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
}

/* Options pills */
.options-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-pill-btn {
  background-color: #FFFFFF;
  border: 1.5px solid #D0CFCA;
  color: var(--text-dark);
  padding: 7px 16px;
  border-radius: var(--border-radius-md) !important;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.option-pill-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.option-pill-btn.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.18);
}

/* Purchase block — gom quy cách + số lượng + CTA */
.purchase-block {
  background-color: var(--bg-color);
  border-radius: var(--border-radius-md);
  padding: 18px 20px;
  margin-bottom: 25px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.purchase-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.purchase-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  min-width: 80px;
  flex-shrink: 0;
}

.purchase-total-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  padding: 10px 14px;
  background: rgba(227, 32, 32, 0.05);
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--accent-color);
}

.purchase-total-preview span {
  color: var(--text-muted);
  font-weight: 500;
}

.purchase-total-preview strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
}

.purchase-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta-main {
  flex: 1;
  min-width: 160px;
  padding: 0.85rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-request-quote {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--border-radius-pill) !important;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.05);
  transition: var(--transition-fast);
}

.btn-request-quote:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.25);
}

/* Benefits / Trust List */
.trust-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trust-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.trust-benefit-item i {
  color: var(--success-color);
  font-size: 1.1rem;
}

/* Tab Details section */
.product-tabs-wrapper {
  background-color: #FFFFFF;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft-md);
  padding: 30px;
  margin-bottom: 40px;
}

.nav-tabs-custom {
  border-bottom: 2px solid var(--border-light);
  gap: 8px;
  margin-bottom: 25px;
}

.nav-tabs-custom .nav-link {
  border: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 12px 12px;
  position: relative;
  transition: color 0.2s ease;
  background-color: transparent;
}

.nav-tabs-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.2s ease;
}

.nav-tabs-custom .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
}

.nav-tabs-custom .nav-link.active::after,
.nav-tabs-custom .nav-link:hover::after {
  width: 100%;
}

.nav-tabs-custom .nav-link:hover {
  color: var(--primary-color);
  border: none;
}

.tab-pane-custom {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.specifications-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.specifications-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-light);
}

.specifications-table tr td:first-child {
  font-weight: 700;
  color: var(--secondary-color);
  width: 250px;
  background-color: var(--bg-color);
}

.product-reviews-wrapper {
  background-color: #FFFFFF;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft-md);
  padding: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.reviews-summary-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  padding: 22px;
  text-align: center;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(227, 32, 32, 0.08);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(227, 32, 32, 0.12);
  letter-spacing: 0.5px;
}

.add-review-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft-sm);
}

.add-review-card .form-control {
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.add-review-card .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(227, 32, 32, 0.12);
  outline: none;
}

.rating-select-stars i {
  margin-right: 4px;
  transition: transform 0.1s ease;
}

.rating-select-stars i:hover {
  transform: scale(1.25);
}


.review-item-custom {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.review-item-custom:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-meta-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-author-custom {
  font-weight: 700;
  color: var(--secondary-color);
}

.review-date-custom {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-content-custom {
  font-size: 0.92rem;
  color: #444444;
}

/* Related Products Section */
.related-products-section {
  padding: 50px 0 60px;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-light);
}

/* Section title block: title + "Xem tất cả" link nằm ngang */
.section-title-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.section-title-block .section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-block .section-title i {
  color: var(--accent-color);
  font-size: 1.1rem;
}

.section-title-block .btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.section-title-block .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

/* Mobile: stacked */
@media (max-width: 575.98px) {
  .purchase-block {
    padding: 15px;
  }

  .purchase-label {
    min-width: 70px;
    font-size: 0.78rem;
  }

  .purchase-cta-row {
    flex-direction: column;
  }

  .btn-cta-main {
    min-width: unset;
    width: 100%;
  }

  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .bulk-tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Request Quote Modal styling */
.quote-modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004085 100%);
  color: #FFFFFF;
  border-bottom: none;
  padding: 20px 25px;
}

.quote-modal-header .btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.quote-modal-body {
  padding: 25px;
}

.form-label-required::after {
  content: " *";
  color: var(--accent-color);
  font-weight: 700;
}

.quote-product-summary {
  display: flex;
  gap: 15px;
  align-items: center;
  background-color: var(--bg-color);
  padding: 15px;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.quote-product-summary img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  background-color: #FFFFFF;
}

.quote-product-info h6 {
  margin-bottom: 2px;
  font-size: 0.9rem;
  text-transform: none;
}

/* Responsive Overrides for Product Page */
@media (max-width: 991.98px) {
  .product-detail-card {
    padding: 20px;
  }

  .product-info-col {
    padding-left: 0;
    margin-top: 25px;
  }

  .product-title-detail {
    font-size: 1.5rem;
  }

  .breadcrumb-wrapper {
    margin-bottom: 15px;
    padding: 8px 0;
  }

  .specifications-table tr td:first-child {
    width: 150px;
  }
}

@media (max-width: 575.98px) {
  .purchase-controls-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .purchase-controls-wrapper .cart-item-qty-control {
    width: 100%;
    justify-content: center;
  }

  .trust-benefits-list {
    grid-template-columns: 1fr;
  }

  .nav-tabs-custom {
    gap: 6px;
  }

  .nav-tabs-custom .nav-link {
    font-size: 0.85rem;
    padding: 10px 8px;
  }
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .product-gallery-main img {
    transition: none;
  }

  .option-pill-btn,
  .btn-request-quote,
  .btn-plus-primary {
    transition: none;
  }
}

/* Product page - Hover/Focus Micro-interactions for UX compliance */
.bulk-pricing-table tbody tr:hover {
  background-color: rgba(0, 86, 179, 0.04);
  cursor: pointer;
}

.product-gallery-thumbs .swiper-slide:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.option-pill-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.btn-request-quote:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.trust-benefit-item i {
  transition: transform 0.2s ease;
}

.trust-benefit-item:hover i {
  transform: scale(1.2);
}

.review-item-custom {
  transition: background-color 0.15s ease;
}

.review-item-custom:hover {
  background-color: rgba(0, 86, 179, 0.02);
}

/* Global Table Responsive & Smooth Custom Thin Scrollbar */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar,
.article-body .table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track,
.article-body .table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb,
.article-body .table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover,
.article-body .table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Hide mobile-specific drawers and overlays on desktop screens */
@media (min-width: 992px) {

  .mobile-nav-overlay,
  .mobile-nav-drawer {
    display: none !important;
  }
}

.header-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* =============================================
   AUTH PAGES STYLING (LOGIN / REGISTER)
   ============================================= */
.auth-page-wrapper {
  min-height: 80vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  padding: 60px 0 40px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.auth-header {
  padding: 32px 36px 20px;
  text-align: center;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.auth-header .logo-wrap img {
  max-height: 70px;
}

.auth-header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 12px 0 4px;
  letter-spacing: 0.3px;
  color: #1e293b;
}

.auth-header p {
  font-size: 0.88rem;
  margin: 0;
  color: #64748b;
}

.auth-body {
  padding: 32px 36px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 0;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  background: #f8f9fa;
  color: #718096;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  text-decoration: none;
}

.auth-tab-btn.active {
  background: #0054af;
  color: #fff;
}

.auth-form-panel {
  display: none;
}

.auth-form-panel.active {
  display: block;
}

.btn-auth-primary {
  background: #0054af;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 13px;
  border-radius: 50px;
  width: 100%;
  font-size: 1rem;
  transition: all 0.25s;
  letter-spacing: 0.3px;
}

.btn-auth-primary:hover {
  background: #004088;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 84, 175, 0.3);
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .form-control {
  padding-left: 42px;
  height: 48px;
  border-radius: 10px;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 0.95rem;
}

.input-icon-wrap .toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #a0aec0;
  font-size: 0.95rem;
  border: none;
  background: none;
  padding: 0;
}

.auth-footer-link {
  text-align: center;
  font-size: 0.85rem;
  color: #718096;
  margin-top: 18px;
}

.auth-footer-link a {
  color: #0054af;
  font-weight: 700;
  text-decoration: none;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

.forgot-link {
  font-size: 0.83rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   BLOG SINGLE POST & RECOMMENDED PRODUCTS SIDEBAR STYLES
   ========================================================================== */
.blog-detail-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)), url('../images/blog_banner_bg.png') !important;
  padding: 60px 0 80px 0 !important;
  min-height: auto !important;
  text-align: left !important;
}

.blog-detail-hero h1 {
  line-height: 1.3;
}

.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: #ffffff;
}

.breadcrumb-item.active {
  color: #ffffff;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333333;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary-color, #0d2857);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color, #e51e21);
  padding-left: 12px;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark, #1a202c);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-color, #e51e21);
  padding-left: 20px;
  font-style: italic;
  color: var(--text-muted, #718096);
  margin: 1.5rem 0;
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
}

.article-body .table-responsive {
  width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--border-light, #e2e8f0);
}

.article-body table {
  width: 100%;
  min-width: 580px;
  margin: 0;
  border-collapse: collapse;
  background-color: #ffffff;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border-light, #e2e8f0);
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
  font-size: 0.93rem;
}

.article-body th {
  background-color: #f8fafc;
  font-weight: 700;
  color: var(--secondary-color, #0d2857);
  white-space: nowrap;
}

.share-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.share-btn:hover {
  transform: scale(1.1);
}

.sticky-sidebar-widget {
  position: sticky;
  top: 120px;
  z-index: 10;
}

.sidebar-prod-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
  padding-bottom: 16px;
  transition: all 0.2s;
}

.sidebar-prod-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-prod-item img {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-light, #e2e8f0);
}

.sidebar-prod-info h5 {
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.sidebar-prod-info h5 a {
  color: var(--text-dark, #1a202c);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-prod-info h5 a:hover {
  color: var(--primary-color, #e51e21);
}

.sidebar-prod-price {
  color: var(--primary-color, #e51e21);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.sidebar-prod-action {
  font-size: 0.78rem;
  color: var(--secondary-color, #0d2857);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

.sidebar-prod-action:hover {
  color: var(--primary-color, #e51e21);
}

.sidebar-article-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
  padding-bottom: 14px;
}

.sidebar-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-article-item img {
  width: 75px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.sidebar-article-info h5 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-article-info h5 a {
  color: var(--text-dark, #1a202c);
  text-decoration: none;
}

.sidebar-article-info h5 a:hover {
  color: var(--primary-color, #e51e21);
}

.sidebar-article-date {
  font-size: 0.76rem;
  color: var(--text-muted, #718096);
}

/* ==========================================================================
   SINGLE PRODUCT DETAILS & SPECIFICATIONS TAB STYLES
   ========================================================================== */
.product-tabs-wrapper {
  margin-top: 40px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-light, #e2e8f0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.nav-tabs-custom {
  border-bottom: 2px solid var(--border-light, #e2e8f0);
  gap: 12px;
}

.nav-tabs-custom .nav-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted, #718096);
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
  transition: all 0.2s ease;
  background: none;
}

.nav-tabs-custom .nav-link:hover {
  color: var(--primary-color, #e51e21);
}

.nav-tabs-custom .nav-link.active {
  color: var(--primary-color, #e51e21);
  border-bottom-color: var(--primary-color, #e51e21);
  background: none;
}

.tab-pane-custom {
  padding-top: 20px;
  line-height: 1.8;
  color: #4a5568;
}

.specifications-table {
  width: 100%;
  margin-bottom: 0;
  border-color: var(--border-light, #e2e8f0);
}

.specifications-table td:first-child {
  width: 32%;
  font-weight: 700;
  color: var(--secondary-color, #0d2857);
  background-color: #f8fafc;
}

.specifications-table td {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 0.93rem;
}

.bulk-tier-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.bulk-tier-item {
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.bulk-tier-item.active,
.bulk-tier-item:hover {
  border-color: var(--primary-color, #e51e21);
  background: #fff5f5;
}

.bulk-tier-qty {
  font-size: 0.85rem;
  color: var(--text-muted, #718096);
  font-weight: 600;
}

.bulk-tier-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-color, #e51e21);
  margin: 4px 0;
}

.bulk-tier-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #c53030;
}

.options-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-pill-btn {
  border: 1px solid var(--border-light, #e2e8f0);
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark, #1a202c);
  transition: all 0.2s ease;
  cursor: pointer;
}

.option-pill-btn.active,
.option-pill-btn:hover {
  border-color: var(--primary-color, #e51e21);
  color: var(--primary-color, #e51e21);
  background: #fff5f5;
}