/* ==========================================================================
   JUNGHEINRICH PROFISHOP CLONE - STYLESHEET
   Authored from scratch: Clean, maintainable, modular CSS
   ========================================================================== */

/* 1. CSS VARIABLES & DESIGN SYSTEM */
:root {
  --jh-teal: #006580;
  --jh-teal-dark: #004d61;
  --jh-teal-light: #e6eff2;
  --jh-teal-text: #005b73;
  --jh-yellow: #ffc000;
  --jh-yellow-dark: #e6ac00;
  --jh-yellow-light: #fff8e1;
  --jh-orange-badge: #f28b00;
  --jh-red: #d92228;
  --jh-green-delivery: #2e7d32;
  --jh-dark: #1a1a1a;
  --jh-gray-bg: #f5f6f8;
  --jh-gray-light: #fafafa;
  --jh-gray-border: #e2e5e8;
  --jh-gray-border-dark: #c5cacf;
  --jh-text: #222222;
  --jh-text-muted: #666666;
  --font-family: 'Signika', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --transition: all 0.2s ease-in-out;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --max-width: 1360px;
}

/* 2. BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto !important;
}

body {
  font-family: var(--font-family);
  color: var(--jh-text);
  background-color: #ffffff;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto !important;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
  border: none;
  outline: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* 3. TOP ANNOUNCEMENT BAR */
.top-bar {
  background-color: #111111;
  color: #ffffff;
  text-align: center;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.top-bar a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-bar a:hover {
  color: var(--jh-yellow);
}

/* 4. MAIN HEADER */
.main-header {
  background-color: var(--jh-teal);
  color: #ffffff;
  padding: 12px 0;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 48px;
  width: auto;
}
.logo-namphat {
  background: var(--jh-yellow, #ffc000);
  color: #002e3b;
  padding: 8px 16px;
  line-height: 1.05;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.logo-namphat:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.logo-namphat .lg1 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #002e3b;
  line-height: 1.1;
}
.logo-namphat .lg2 {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 2px;
  color: #004b5c;
  line-height: 1;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 580px;
  position: relative;
}
.search-form {
  display: flex;
  width: 100%;
  position: relative;
}
.search-input {
  width: 100%;
  height: 40px;
  padding: 0 52px 0 16px;
  border-radius: 6px;
  background-color: #ffffff;
  color: #333333;
  font-size: 13px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.search-input:focus {
  border-color: var(--jh-yellow);
  box-shadow: 0 0 0 3px rgba(255, 192, 0, 0.3);
}
.search-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46px;
  height: 40px;
  border-radius: 0 6px 6px 0 !important;
  background-color: var(--jh-yellow);
  color: var(--jh-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 15px;
  transition: var(--transition);
}
.search-btn:hover {
  background-color: var(--jh-yellow-dark);
}

/* Live Search Autocomplete Dropdown */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16), 0 3px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  z-index: 1050;
  overflow: hidden;
  animation: searchDropFadeIn 0.16s ease-out;
}
@keyframes searchDropFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-suggest-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f6;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}
.search-suggest-badge {
  background: #e2e8f0;
  color: #334155;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.search-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 380px;
  overflow-y: auto;
}
.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
  cursor: pointer;
}
.search-suggest-item:last-child {
  border-bottom: none;
}
.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: #f0fdfa;
}
.search-suggest-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
}
.search-suggest-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.search-suggest-info {
  flex: 1;
  min-width: 0;
}
.search-suggest-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.search-suggest-sku {
  font-size: 10px;
  font-weight: 700;
  background: #006580;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.search-suggest-cat {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest-price-box {
  text-align: right;
  flex-shrink: 0;
  margin-left: 10px;
}
.search-suggest-price {
  font-size: 13px;
  font-weight: 700;
  color: #006580;
  white-space: nowrap;
}
.search-suggest-vat {
  font-size: 10px;
  color: #94a3b8;
  display: block;
}
.search-suggest-arrow {
  color: #94a3b8;
  font-size: 12px;
  margin-left: 6px;
  transition: transform 0.15s ease;
}
.search-suggest-item:hover .search-suggest-arrow {
  transform: translateX(3px);
  color: #006580;
}
.search-highlight {
  background: #fef08a;
  color: #854d0e;
  font-weight: 700;
  border-radius: 2px;
  padding: 0 2px;
}
.search-suggest-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #006580;
  transition: all 0.12s ease;
}
.search-suggest-footer:hover {
  background: #e6f4f8;
  color: #004b5f;
}
.search-suggest-empty {
  padding: 24px 18px;
  text-align: center;
  color: #64748b;
}
.search-suggest-empty-icon {
  font-size: 28px;
  color: #cbd5e1;
  margin-bottom: 8px;
}
.search-suggest-empty-text {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.search-suggest-empty-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.search-suggest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.search-suggest-pill {
  padding: 4px 10px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
}
.search-suggest-pill:hover {
  background: #e2e8f0;
  color: #006580;
  border-color: #cbd5e1;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.hotline-box {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.hotline-box i {
  font-size: 20px;
  color: #ffffff;
}
.hotline-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  display: block;
}
.hotline-number {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.action-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.action-link {
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition);
}
.action-link:hover {
  color: var(--jh-yellow);
  background-color: rgba(255, 255, 255, 0.1);
}
.cart-badge {
  position: absolute;
  top: 0;
  right: -2px;
  background-color: var(--jh-yellow);
  color: var(--jh-dark);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}

/* 5. SUB-NAVIGATION BAR */
.sub-nav {
  background-color: #f7f7f7;
  border-bottom: 1px solid var(--jh-gray-border);
  padding: 8px 0;
}
.sub-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  font-size: 13px;
}
.nav-links a {
  color: var(--jh-teal);
  padding: 4px 0;
  position: relative;
}
.nav-links a:hover {
  color: var(--jh-teal-dark);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--jh-teal);
}

/* Sub-nav Dropdown & Mega Menu */
.nav-dropdown-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-badge-hot {
  display: inline-block;
  background: var(--jh-orange-badge);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.3;
  letter-spacing: 0.5px;
}
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 740px;
  background: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-top: 3px solid var(--jh-teal);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 6px 6px;
  padding: 18px 22px 14px;
  display: none;
  z-index: 200;
  pointer-events: none;
}
.nav-dropdown-item:hover .mega-dropdown {
  display: block;
  pointer-events: auto;
}
.mega-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.mega-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 4px;
  color: #1e293b;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.mega-cat-item:hover {
  background-color: #f1f5f9;
  color: var(--jh-teal) !important;
}
.mega-cat-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mega-cat-ico {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jh-teal);
  font-size: 14px;
  flex-shrink: 0;
}
.mega-cat-title {
  font-size: 13.5px;
  font-weight: 600;
  color: inherit;
}
.mega-cat-count {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}
.mega-cat-item:hover .mega-cat-count {
  color: var(--jh-teal);
}
.mega-dropdown-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--jh-gray-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.mega-dropdown-foot a {
  color: var(--jh-teal);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.mega-dropdown-foot a:hover {
  text-decoration: underline !important;
  color: var(--jh-teal-dark);
}

/* VAT Toggle Switch */
.vat-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--jh-teal);
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--jh-teal);
  transition: .3s;
  border-radius: 20px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--jh-teal);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* 6. HERO STAGE & CATEGORY SIDEBAR */
.hero-stage {
  padding: 16px 0 12px;
  margin-bottom: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
}

/* Category Sidebar */
.category-sidebar {
  background-color: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 420px;
  display: flex;
  flex-direction: column;
}
.category-list {
  list-style: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}
.category-item {
  border-bottom: 1px solid var(--jh-gray-border);
  flex: 1;
  display: flex;
  align-items: center;
}
.category-item:last-child {
  border-bottom: none;
}
.category-item a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  width: 100%;
  height: 100%;
  color: var(--jh-teal);
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}
.category-item a:hover {
  background-color: var(--jh-teal-light);
  color: var(--jh-teal-dark);
  padding-left: 20px;
}

/* Hero Stage Banner */
.hero-banner {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #000000;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 440px;
  padding: 32px 36px 32px 20px;
  color: #ffffff;
}

.hero-discount-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--jh-red);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.hero-discount-badge .up-to {
  font-size: 10px;
  text-transform: uppercase;
  line-height: 1;
}
.hero-discount-badge .percent {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.deals-tag {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 20px;
}
.btn-yellow-pill {
  display: inline-block;
  background-color: var(--jh-yellow);
  color: var(--jh-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.btn-yellow-pill:hover {
  background-color: var(--jh-yellow-dark);
  transform: translateY(-1px);
}

/* 7. BRAND LOGO STRIP */
.brands-section {
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--jh-gray-border);
}
.brands-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-arrow {
  color: #999999;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}
.brand-arrow:hover {
  color: var(--jh-teal);
}
.brands-list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1;
  gap: 24px;
}
.brand-logo-item img {
  height: 32px;
  width: auto;
  opacity: 0.85;
  transition: var(--transition);
}
.brand-logo-item img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* 8. SECTION DIVIDER (JUNGHEINRICH SIGNATURE) */
.section-header {
  text-align: center;
  margin: 36px 0 24px;
  position: relative;
}
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--jh-teal);
  letter-spacing: 1px;
}
.section-title::before,
.section-title::after {
  content: '';
  display: inline-block;
  width: 50px;
  height: 4px;
  background-color: var(--jh-teal);
  border-radius: 2px;
}

/* 9. SẢN PHẨM TIÊU BIỂU (FEATURED / TOPSELLER) - THIẾT KẾ MẪU THEO BẢN SAO LƯU */
.topseller-section-header {
  position: relative;
  text-align: center;
  margin: 36px 0 24px;
}
.topseller-section-header .section-title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--jh-teal);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.topseller-section-header .section-title::before,
.topseller-section-header .section-title::after {
  content: '';
  display: inline-block;
  width: 52px;
  height: 4px;
  background-color: var(--jh-teal);
  border-radius: 0;
}
.topseller-section-header .feat-nav {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.topseller-nav-btn {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1.5px solid var(--jh-teal);
  border-radius: 0 !important;
  color: var(--jh-teal);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}
.topseller-nav-btn:hover {
  background: var(--jh-teal);
  color: #ffffff;
}
@media (max-width: 640px) {
  .topseller-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .topseller-section-header .feat-nav {
    position: static;
    transform: none;
  }
}

.topseller-slider-container {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

.topseller-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
  width: 100%;
  padding: 4px 2px 14px 2px;
  margin-bottom: 0;
}
.topseller-grid::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#topseller .product-card {
  flex: 0 0 calc((100% - 3 * 20px) / 4) !important;
  min-width: calc((100% - 3 * 20px) / 4) !important;
  max-width: calc((100% - 3 * 20px) / 4) !important;
  scroll-snap-align: start;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0 !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
#topseller .product-card:hover {
  border-color: #b0bec5;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}
@media (max-width: 1199px) {
  #topseller .product-card {
    flex: 0 0 calc((100% - 2 * 18px) / 3) !important;
    min-width: calc((100% - 2 * 18px) / 3) !important;
    max-width: calc((100% - 2 * 18px) / 3) !important;
  }
}
@media (max-width: 860px) {
  #topseller .product-card {
    flex: 0 0 calc((100% - 16px) / 2) !important;
    min-width: calc((100% - 16px) / 2) !important;
    max-width: calc((100% - 16px) / 2) !important;
  }
}
@media (max-width: 575px) {
  #topseller .product-card {
    flex: 0 0 85% !important;
    min-width: 85% !important;
    max-width: 85% !important;
  }
}

#topseller .card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 0 !important;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}
#topseller .card-fav-btn i {
  color: var(--jh-teal);
  font-size: 16px;
  transition: all 0.2s ease;
}
#topseller .card-fav-btn:hover i,
#topseller .card-fav-btn.active i {
  color: #f59e0b;
}

#topseller .product-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  margin: 0;
  background: #f8fafc;
  display: block;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}
#topseller .product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
#topseller .product-card:hover .product-img-wrapper img {
  transform: scale(1.04);
}

#topseller .product-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#topseller .product-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 4px 0;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
#topseller .product-title a {
  color: var(--jh-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}
#topseller .product-title a:hover {
  text-decoration: underline;
  color: var(--jh-teal-dark);
}

#topseller .product-sku {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

#topseller .delivery-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1b7a43;
  margin-bottom: 12px;
}
#topseller .delivery-status i {
  color: #1b7a43;
  font-size: 13px;
}

#topseller .product-price-section {
  margin-top: auto;
  padding-top: 6px;
  margin-bottom: 12px;
  text-align: left;
}
#topseller .current-price {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}
#topseller .price-vat-note {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.btn-add-cart,
#topseller .btn-add-cart {
  width: 100%;
  background-color: var(--jh-teal);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 0;
  border-radius: 0 !important;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease;
  display: block;
}
.btn-add-cart:hover,
#topseller .btn-add-cart:hover {
  background-color: var(--jh-teal-dark);
}

.compare-box,
#topseller .compare-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  font-size: 12px;
  color: #4b5563;
  margin-top: 10px;
  cursor: pointer;
}
.compare-box input,
#topseller .compare-box input {
  accent-color: var(--jh-teal);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--jh-gray-border-dark);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

/* Topseller Badge */
.topseller-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--jh-orange-badge);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Card Icons */
.card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}
.card-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--jh-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: var(--transition);
}
.card-icon-btn:hover {
  background-color: var(--jh-teal);
  color: #ffffff;
  transform: scale(1.08);
}

/* Product Image - Full Width Edge to Edge */
.product-img-wrapper {
  width: calc(100% + 28px);
  margin: -14px -14px 14px -14px;
  height: 220px;
  display: block;
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
}
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-img-wrapper img {
  transform: scale(1.06);
}

/* Product Info */
.product-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--jh-teal);
  line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.product-title a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.product-title a:hover {
  text-decoration: underline;
}
.product-variants {
  font-size: 11px;
  color: var(--jh-teal-text);
  margin-bottom: 8px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--jh-green-delivery);
  margin-bottom: 12px;
}


/* Product Bottom Meta Row (Delivery & Price on 1 Line) */
.product-bottom-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 6px 0;
  border-top: 1px solid #f0f0f0;
  margin-bottom: 8px;
  gap: 8px;
}
.product-bottom-row .delivery-status {
  margin-bottom: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--jh-green-delivery);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.product-bottom-row .product-price-box {
  margin-top: 0;
  border-top: none;
  padding: 0;
  text-align: right;
  white-space: nowrap;
}

/* Price Box */
.product-price-box {
  margin-top: auto;
  text-align: right;
  padding: 8px 0;
  border-top: 1px solid #f0f0f0;
}
.old-price {
  font-size: 11px;
  color: #888888;
  text-decoration: line-through;
  display: block;
  line-height: 1.1;
}
.current-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--jh-dark);
}
.current-price.is-sale {
  color: var(--jh-red);
}
.price-prefix {
  font-size: 11px;
  font-weight: 400;
  color: #555555;
  margin-right: 4px;
}

/* Card Button & Checkbox */
.btn-teal-pill {
  width: 100%;
  background-color: var(--jh-teal);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 0;
  border-radius: var(--radius-pill);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-family: inherit;
  text-decoration: none;
}
.btn-teal-pill:hover {
  background-color: var(--jh-teal-dark);
}

.compare-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--jh-text-muted);
  margin-top: 10px;
  cursor: pointer;
}
.compare-box input {
  cursor: pointer;
}

/* 10. TOP TOPICS SECTION */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.topic-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.topic-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  transition: var(--transition);
}
.topic-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.topic-card:hover .topic-img-box {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.topic-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--jh-text);
  margin-bottom: 4px;
}
.topic-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--jh-teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.topic-card:hover .topic-link {
  color: var(--jh-teal-dark);
  text-decoration: underline;
}

/* 11. NEWS & INFORMATION SECTION (EXACT JUNGHEINRICH CIRCLE ICONS) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.news-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news-icon-circle {
  width: 155px;
  height: 155px;
  border-radius: 50% !important;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}
.news-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50% !important;
  display: block;
}
.news-card:hover .news-icon-circle {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
.news-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--jh-teal);
  margin-bottom: 6px;
  line-height: 1.35;
  text-align: center;
}
.news-title a {
  color: var(--jh-teal);
  text-decoration: none;
  transition: color 0.2s;
}
.news-title a:hover {
  color: var(--jh-teal-dark);
}
.news-desc {
  font-size: 13px;
  color: #666666;
  line-height: 1.45;
  margin-bottom: 10px;
  min-height: 38px;
  max-width: 250px;
  text-align: center;
}
.news-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--jh-teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s;
}
.news-link:hover {
  color: var(--jh-teal-dark);
  text-decoration: underline;
}
@media(max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 560px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-icon-circle {
    width: 130px;
    height: 130px;
  }
}

/* 12. TOP CATEGORIES (4-COLUMN LINKS) */
.categories-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.category-col-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--jh-text);
  margin-bottom: 12px;
}
.category-sublinks {
  list-style: none;
}
.category-sublinks li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 12px;
  font-size: 12px;
}
.category-sublinks li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--jh-teal);
  font-size: 14px;
  line-height: 1;
}
.category-sublinks a {
  color: var(--jh-teal);
}
.category-sublinks a:hover {
  text-decoration: underline;
  color: var(--jh-teal-dark);
}

/* 13. SEO CONTENT TEXT BLOCK */
.seo-section {
  padding: 38px 0 42px;
  border-top: 1px solid var(--jh-gray-border);
  font-size: 13.5px;
  color: #374151;
  line-height: 1.65;
}
.seo-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.seo-content {
  min-width: 0;
}
.seo-media {
  display: flex;
  height: 100%;
  min-width: 0;
}
.seo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.seo-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
@media (max-width: 991px) {
  .seo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
  .seo-media {
    max-height: 380px;
  }
}
.seo-heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--jh-teal);
  line-height: 1.35;
  margin: 18px 0 8px;
}
.seo-heading:first-child {
  margin-top: 0;
}
.seo-section p {
  margin-bottom: 12px;
}
.seo-list {
  margin: 10px 0 16px 20px;
}
.seo-list li {
  margin-bottom: 5px;
  line-height: 1.55;
}
.seo-list strong {
  color: var(--jh-teal);
}

/* 14. FOOTER */
.site-footer {
  background-color: var(--jh-gray-bg);
  border-top: 1px solid var(--jh-gray-border);
  margin-top: 30px;
}

.footer-top {
  padding: 36px 0 24px;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 30px;
}
.footer-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--jh-text);
  margin-bottom: 12px;
}
.footer-links {
  list-style: none;
  font-size: 12px;
}
.footer-links li {
  margin-bottom: 6px;
}
.footer-links a {
  color: var(--jh-teal);
}
.footer-links a:hover {
  text-decoration: underline;
}

/* Hotline Card */
.hotline-card {
  font-size: 12px;
}
.hotline-title-text {
  color: #666666;
  margin-bottom: 4px;
}
.hotline-tel {
  font-size: 20px;
  font-weight: 800;
  color: var(--jh-teal);
  display: block;
  margin-bottom: 4px;
}
.hotline-hours {
  color: #666666;
  font-size: 11px;
  margin-bottom: 10px;
}
.hotline-contact-link {
  color: var(--jh-teal);
  font-weight: 600;
}
.btn-withdrawal {
  display: inline-block;
  background-color: var(--jh-teal);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-top: 12px;
}
.btn-withdrawal:hover {
  background-color: var(--jh-teal-dark);
}

/* Footer Middle */
.footer-middle {
  background-color: #ffffff;
  padding: 24px 0;
  border-top: 1px solid var(--jh-gray-border);
  border-bottom: 1px solid var(--jh-gray-border);
}
.footer-middle-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 30px;
}
.advantages-list {
  list-style: none;
  font-size: 12px;
}
.advantages-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--jh-text);
  font-weight: 600;
}
.advantages-list i {
  color: var(--jh-green-delivery);
  font-size: 14px;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pay-badge {
  background-color: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #444444;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links {
  display: flex;
  gap: 12px;
  font-size: 18px;
  color: #444444;
}
.social-links a:hover {
  color: var(--jh-teal);
}

/* Footer Bottom Bar */
.footer-bottom {
  background-color: var(--jh-teal);
  color: #ffffff;
  padding: 20px 0;
  font-size: 11px;
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-bottom-links a {
  color: #ffffff;
}
.footer-bottom-links a:hover {
  text-decoration: underline;
  color: var(--jh-yellow);
}
.footer-disclaimers {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* 15. FLOATING HELP BUTTON */
.floating-help {
  position: fixed;
  left: 0;
  top: 360px;
  z-index: 99;
  background-color: var(--jh-teal);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  transition: var(--transition);
}
.floating-help:hover {
  background-color: var(--jh-teal-dark);
  width: 40px;
}

/* 16. TOAST NOTIFICATION */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--jh-dark);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-msg i {
  color: var(--jh-yellow);
}

/* 17. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .category-sidebar {
    display: none;
  }
  .topics-grid,
  .news-grid,
  .categories-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid,
  .footer-middle-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-search {
    display: none;
  }
  .hotline-box {
    display: none;
  }
  .topics-grid,
  .news-grid,
  .categories-links-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid,
  .footer-middle-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   MULTI-PAGE EXTENSIONS: BREADCRUMBS, SUB-CATEGORIES, FACETS, BRANDS & PDP
   ========================================================================== */

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #777777;
  padding: 14px 0 10px;
}
.breadcrumb a {
  color: var(--jh-teal);
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb-separator {
  color: #aaaaaa;
}

/* Page Title & Category Header */
.page-header-block {
  margin-bottom: 24px;
}
.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--jh-teal);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* Subcategory Cards Grid (Lifting & Stacking) */
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.subcategory-card {
  background-color: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.subcategory-card:hover {
  border-color: var(--jh-teal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.subcategory-img-wrap {
  width: calc(100% + 32px);
  margin: -16px -16px 12px -16px;
  height: 140px;
  display: block;
  overflow: hidden;
  background-color: #f1f5f9;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.subcategory-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.subcategory-card:hover .subcategory-img-wrap img {
  transform: scale(1.06);
}
.subcategory-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--jh-teal);
}
.subcategory-plus {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 14px;
  color: #aaaaaa;
  font-weight: 300;
}

/* Listing Layout (Sale & Catalog) */
.listing-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.filter-sidebar {
  background-color: #ffffff;
}
.filter-group {
  border-bottom: 1px solid var(--jh-gray-border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.filter-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--jh-text);
  margin-bottom: 12px;
}
.filter-list {
  list-style: none;
  font-size: 12px;
}
.filter-list li {
  margin-bottom: 8px;
}
.filter-list a {
  color: var(--jh-teal);
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}
.filter-list a:hover {
  text-decoration: underline;
  font-weight: 700;
}

/* Filter Controls Bar */
.filter-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8f9fa;
  border: 1px solid var(--jh-gray-border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 12px;
}
.filter-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-btn-pill {
  background-color: #ffffff;
  border: 1px solid var(--jh-gray-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--jh-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-btn-pill:hover {
  border-color: var(--jh-teal);
}
.listing-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--jh-text-muted);
}

/* Product List View (Shopware Row Cards) */
.product-list-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-row-card {
  background-color: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: grid;
  grid-template-columns: 180px 1fr 200px;
  gap: 20px;
  align-items: center;
  position: relative;
  transition: var(--transition);
}
.product-row-card:hover {
  border-color: var(--jh-gray-border-dark);
  box-shadow: var(--shadow-sm);
}
.product-row-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--jh-orange-badge);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  z-index: 2;
}
.product-row-badge.is-sale {
  background-color: var(--jh-red);
}
.product-row-card {
  background-color: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: grid;
  grid-template-columns: 220px 1fr 210px;
  gap: 24px;
  align-items: center;
  position: relative;
  transition: var(--transition);
}
.row-img-box {
  width: 100%;
  height: 170px;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f8fafc;
  position: relative;
}
.row-img-box a {
  width: 100%;
  height: 100%;
  display: block;
}
.row-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
.product-row-card:hover .row-img-box img {
  transform: scale(1.05);
}
.row-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--jh-teal);
  line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-info h3 a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.row-info h3 a:hover {
  text-decoration: underline;
}
.product-specs-list {
  list-style: disc;
  padding-left: 18px;
  font-size: 11px;
  color: var(--jh-text-muted);
  margin: 6px 0;
}
.product-specs-list li {
  margin-bottom: 3px;
}
.row-variants {
  font-size: 11px;
  color: var(--jh-teal-text);
  font-weight: 600;
}
.row-actions-box {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Pagination Bar */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 30px;
  font-size: 12px;
}
.page-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  color: var(--jh-text);
  font-weight: 600;
}
.page-num.active {
  background-color: var(--jh-teal);
  color: #ffffff;
  border-color: var(--jh-teal);
}
.page-num:hover:not(.active) {
  border-color: var(--jh-teal);
  color: var(--jh-teal);
}

/* Brands Page Layout */
.exclusive-brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.exclusive-brand-card {
  background-color: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: var(--transition);
}
.exclusive-brand-card img {
  max-height: 40px;
  max-width: 80%;
  object-fit: contain;
}
.exclusive-brand-card:hover {
  border-color: var(--jh-teal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.all-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.all-brand-card {
  background-color: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 130px;
  position: relative;
  transition: var(--transition);
}
.all-brand-card:hover {
  border-color: var(--jh-teal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.brand-card-logo-wrap {
  height: 50px;
  display: flex;
  align-items: center;
}
.brand-card-logo-wrap img {
  max-height: 38px;
  max-width: 70%;
  object-fit: contain;
}
.all-brand-card .brand-name-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--jh-teal);
}
.all-brand-card .plus-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: #aaaaaa;
  font-size: 16px;
}


/* ========================================================
   REFINED HARMONIOUS PRODUCT DETAIL PAGE (PDP) STYLES
   ======================================================== */
.cms-block-gallery-buybox {
  padding-top: 14px;
  padding-bottom: 36px;
}
.pdp-layout-grid {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.pdp-media-column {
  flex: 0 0 52%;
  max-width: 52%;
}
.pdp-buybox-column {
  flex: 0 0 48%;
  max-width: 48%;
}

@media (max-width: 991px) {
  .pdp-layout-grid {
    flex-direction: column;
  }
  .pdp-media-column, .pdp-buybox-column {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Gallery Box - Edge-to-edge full width display */
.pdp-gallery-zoom-box {
  position: relative;
  width: 100%;
  height: 460px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0;
  cursor: zoom-in;
}
.pdp-gallery-zoom-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
.pdp-gallery-zoom-box:hover img {
  transform: scale(1.02);
}
.btn-magnifier {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #006580;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 15px;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.btn-magnifier:hover {
  background: #006580;
  color: #ffffff;
  transform: scale(1.08);
}
.pdp-thumbnails-strip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pdp-thumb-item {
  width: 64px;
  height: 64px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.pdp-thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pdp-thumb-item:hover, .pdp-thumb-item.active {
  border-color: #006580;
  box-shadow: 0 0 0 2px rgba(0, 101, 128, 0.2);
}

/* Buy Box Card */
.product-detail-buybox-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Header Info in Buy Box */
.pdp-header-info {
  padding: 20px 22px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.pdp-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}
.pdp-sku-tag {
  color: #64748b;
  font-weight: 600;
}
.pdp-sku-tag strong {
  color: #006580;
  font-weight: 700;
}
.pdp-meta-divider {
  color: #cbd5e1;
}
.pdp-delivery-tag {
  color: #334155;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pdp-delivery-tag i {
  color: #0d9488;
}
.badge-topseller {
  background-color: #e30613;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}
.product-detail-name {
  font-family: 'Signika', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  color: #0f172a;
  margin: 0 0 6px 0;
}
.product-detail-subtitle {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 8px 0;
}
.anchor-product-description a {
  color: #006580;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.anchor-product-description a:hover {
  color: #004b5f;
  text-decoration: underline;
}

/* Price Section */
.pdp-price-container {
  padding: 16px 22px;
  background: #fafafa;
  border-bottom: 1px solid #f1f5f9;
}
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.product-detail-price {
  font-family: 'Signika', Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: #006580;
  margin: 0;
}
.product-detail-tax {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.pdp-survey-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: #0f766e;
}
.pdp-survey-hint i {
  color: #0d9488;
}

/* Buy Widget Form */
.buy-widget-form {
  padding: 18px 22px 12px;
}
.buy-widget-controls {
  display: flex;
  align-items: stretch;
  height: 44px;
}
.quantity-stepper-group {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-radius: 6px 0 0 6px;
  overflow: hidden;
  background: #ffffff;
}
.btn-step-minus, .btn-step-plus {
  width: 38px;
  background: #f8fafc;
  border: none;
  color: #006580;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-step-minus:hover, .btn-step-plus:hover {
  background: #e2e8f0;
}
.stepper-input {
  width: 44px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  background: #ffffff;
  outline: none;
}
.btn-add-to-cart-shopware {
  flex: 1;
  background-color: #ffa700;
  color: #1e293b;
  border: 1px solid #ffa700;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-add-to-cart-shopware:hover {
  background-color: #f59e0b;
  border-color: #f59e0b;
}

/* Secondary B2B Actions (2 buttons side by side) */
.pdp-b2b-action-row {
  padding: 0 22px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-b2b-survey {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #006580;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-b2b-survey:hover {
  background: #004b5f;
}
.btn-b2b-hotline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: #006580 !important;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-b2b-hotline:hover {
  background: #f8fafc;
  border-color: #006580;
}

/* Action Container (Compare & Wishlist) */
.adp-action-container {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  padding: 10px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.compare-action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  cursor: pointer;
  font-weight: 500;
}
.compare-action-item input[type="checkbox"] {
  accent-color: #006580;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.wishlist-action-item {
  background: none;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.wishlist-action-item:hover {
  color: #006580;
}
.wishlist-action-item i {
  color: #006580;
}

/* Quality Commitment Badges (Refined 2x2 grid) */
.pdp-trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 12px 22px;
  background: #f8fafc;
  border-top: 1px solid #eef2f6;
}
.pdp-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #475569;
  line-height: 1.3;
}
.pdp-trust-item i {
  color: #10b981;
  font-size: 12px;
  flex-shrink: 0;
}
.pdp-trust-item strong {
  color: #1e293b;
  font-weight: 700;
}

/* ========================================================
   CMS BLOCK 2: AUTHENTIC TABS (SOLID #313131 NAVIGATION)
   ======================================================== */
.cms-block-product-description-reviews {
  padding: 20px 0 60px 0;
}
.card-tabs {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}
.product-detail-tab-navigation {
  background-color: #313131;
  padding: 0;
  border-bottom: none;
}
.product-detail-tab-navigation-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border: none;
}
.product-detail-tab-navigation-list .nav-item {
  margin: 0;
}
.product-detail-tab-navigation-link {
  background: transparent;
  border: none;
  color: #d1d5db;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px 12px;
  cursor: pointer;
  display: inline-block;
  border-bottom: 4px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
}
.product-detail-tab-navigation-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}
.product-detail-tab-navigation-link.active {
  color: #ffffff;
  border-bottom: 4px solid #ffa700;
  background-color: rgba(0, 0, 0, 0.2);
}

.product-detail-tabs-content {
  padding: 36px 32px;
}

/* Tab 1: Technical Details Table */
.product-detail-properties-headline h2 {
  font-family: 'Signika', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #006580;
  margin-bottom: 8px;
}
.product-detail-properties-headline .h5 {
  font-size: 16px;
  font-weight: 600;
  color: #313131;
}
.product-detail-numbers {
  font-size: 13px;
  color: #64748b;
}
.product-detail-numbers a {
  color: #006580;
  text-decoration: underline;
}

.product-detail-properties-list {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.product-detail-properties-list tr {
  display: flex;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 16px;
  font-size: 13px;
}
.product-detail-properties-list tr.even {
  background-color: #f8fafc;
}
.properties-label {
  flex: 0 0 50%;
  max-width: 50%;
  color: #4b5563;
  font-weight: 600;
}
.properties-value {
  flex: 0 0 50%;
  max-width: 50%;
  color: #111827;
  font-weight: 700;
}

.properties-toggle-wrap {
  margin-top: 24px;
  text-align: center;
}
.btn-toggle-properties {
  background: #ffffff;
  border: 1px solid #006580;
  color: #006580;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.btn-toggle-properties:hover {
  background-color: #006580;
  color: #ffffff;
}

/* Tab 2: Item Description */
.product-detail-description-lead {
  font-size: 15px;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 500;
  margin-bottom: 20px;
}
.authentic-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.authentic-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}
.authentic-bullet-list li i {
  color: #16a34a;
  margin-top: 4px;
  flex-shrink: 0;
}
.product-detail-description-body {
  font-size: 14px;
  line-height: 1.8;
  color: #475569;
  margin-top: 24px;
}

/* Tab 3: Downloads & Notes */
.product-detail-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.download-card-shopware {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s;
}
.download-card-shopware:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.download-card-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.download-pdf-icon {
  font-size: 28px;
  color: #dc2626;
}
.download-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}
.download-card-meta {
  font-size: 11px;
  color: #64748b;
}
.btn-download-pdf {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #006580;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-download-pdf:hover {
  background: #006580;
  color: #ffffff;
  border-color: #006580;
}

/* Tab 4: Accessories */
.product-detail-accessories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.accessory-card-shopware {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.accessory-img-wrap {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.accessory-img-wrap img {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
}
.accessory-title {
  font-size: 13px;
  font-weight: 700;
  color: #006580;
  margin-bottom: 8px;
  min-height: 38px;
}
.accessory-price {
  font-size: 16px;
  font-weight: 800;
  color: #313131;
  margin-bottom: 12px;
}

/* CMS BLOCKS 3 & 4: Similar & Recently Viewed */
.cms-block-similar-products, .cms-block-last-seen-products {
  padding: 30px 0 50px;
  border-top: 1px solid #e5e7eb;
}
.h-section {
  font-family: 'Signika', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #006580;
  margin-bottom: 24px;
}
.similar-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  padding: 6px 0 16px 0;
}
.similar-products-grid .product-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: initial !important;
  background-color: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.similar-products-grid .product-card:hover {
  border-color: var(--jh-gray-border-dark);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.similar-products-grid .product-img-wrapper {
  width: calc(100% + 28px);
  margin: -14px -14px 14px -14px;
  height: 200px;
  display: block;
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
}
.similar-products-grid .product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.similar-products-grid .product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}
.similar-products-grid .product-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.similar-products-grid .product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--jh-teal);
  line-height: 1.4;
  margin: 0 0 6px 0;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.similar-products-grid .product-title a {
  color: inherit;
  text-decoration: none;
}
.similar-products-grid .product-title a:hover {
  text-decoration: underline;
}
.similar-products-grid .product-sku {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}
.similar-products-grid .delivery-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1b7a43;
  margin-bottom: 12px;
}
.similar-products-grid .delivery-status i {
  color: #1b7a43;
  font-size: 12px;
}
.similar-products-grid .product-price-section {
  margin-top: auto;
  padding-top: 6px;
  margin-bottom: 12px;
  text-align: left;
}
.similar-products-grid .current-price {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.similar-products-grid .price-vat-note {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.similar-products-grid .btn-add-cart {
  width: 100%;
  background-color: var(--jh-teal);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 0 !important;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease;
  display: block;
}
.similar-products-grid .btn-add-cart:hover {
  background-color: var(--jh-teal-dark);
}
.similar-products-grid .compare-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  font-size: 12px;
  color: #4b5563;
  margin-top: 10px;
  cursor: pointer;
}
.similar-products-grid .compare-box input {
  accent-color: var(--jh-teal);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

@media (max-width: 1199px) {
  .similar-products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 860px) {
  .similar-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}
@media (max-width: 575px) {
  .similar-products-grid {
    grid-template-columns: 1fr !important;
  }
}



/* ==========================================================================
   CHECKOUT, ORDER SUCCESS, AUTH, ABOUT & PROFI-GUIDE EXTENSIONS
   ========================================================================== */

/* Checkout Stepper */
.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 16px 0 32px;
  font-size: 13px;
  font-weight: 700;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaaaaa;
}
.step-item.active {
  color: var(--jh-teal);
}
.step-item.completed {
  color: var(--jh-green-delivery);
}
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.step-item.active .step-circle {
  background-color: var(--jh-teal);
  color: #ffffff;
  border-color: var(--jh-teal);
}
.step-item.completed .step-circle {
  background-color: var(--jh-green-delivery);
  color: #ffffff;
  border-color: var(--jh-green-delivery);
}
.step-divider {
  width: 40px;
  height: 2px;
  background-color: var(--jh-gray-border);
}

/* Form Styles */
.form-card {
  background: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
}
.form-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--jh-teal);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--jh-gray-border);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 12px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full-width {
  grid-column: span 2;
}
.form-label {
  font-weight: 700;
  color: var(--jh-text);
}
.form-input, .form-select {
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  font-family: inherit;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus {
  border-color: var(--jh-yellow);
  box-shadow: 0 0 0 3px rgba(255, 192, 0, 0.25);
}

/* Payment Method Selectors */
.payment-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.payment-option-card {
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}
.payment-option-card:hover {
  border-color: var(--jh-teal);
  background-color: var(--jh-gray-light);
}
.payment-option-card.selected {
  border-color: var(--jh-teal);
  background-color: var(--jh-teal-light);
}

/* Success Card */
.order-success-hero {
  background: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 40px;
  text-align: center;
  max-width: 760px;
  margin: 20px auto 40px;
}
.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #e8f5e9;
  color: var(--jh-green-delivery);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

/* Auth Cards Split */
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 50px;
}

/* Article Cards for Profi-Guide */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.article-card {
  background: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.article-card:hover {
  border-color: var(--jh-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.article-img-box {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #f0f0f0;
}
.article-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.article-card:hover .article-img-box img {
  transform: scale(1.05);
}
.article-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--jh-teal);
  margin-bottom: 6px;
}
.article-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--jh-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}
.article-snippet {
  font-size: 12px;
  color: var(--jh-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.article-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #888888;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

/* ==========================================================================
   LEGAL & POLICY PAGES LAYOUT (TERMS, PRIVACY, IMPRINT, WITHDRAWAL)
   ========================================================================== */

.legal-page-container {
  display: flex;
  gap: 36px;
  margin-top: 24px;
  margin-bottom: 60px;
  align-items: flex-start;
}

.legal-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 20px;
}

.legal-nav-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
}

.legal-nav-header {
  background: #f8fafc;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-nav-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.legal-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.legal-nav-link:hover {
  background: #f8fafc;
  color: #006580;
  border-left-color: #006580;
}

.legal-nav-link.active {
  background: #f0fdfa;
  color: #006580;
  border-left-color: #006580;
  font-weight: 700;
}

.legal-content-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 36px 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.legal-content-card h1 {
  font-family: 'Signika', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #006580;
  margin-top: 0;
  margin-bottom: 12px;
}

.legal-meta-bar {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-body {
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
}

.legal-body h2 {
  font-family: 'Signika', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #006580;
  margin-top: 32px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-body ul, .legal-body ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-info-box {
  background: #f8fafc;
  border-left: 4px solid #006580;
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
  font-size: 13px;
  color: #334155;
}

.legal-warning-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
  font-size: 13px;
  color: #92400e;
}

@media (max-width: 991px) {
  .legal-page-container {
    flex-direction: column;
  }
  .legal-sidebar {
    flex: 0 0 100%;
    width: 100%;
    position: static;
  }
  .legal-content-card {
    padding: 24px;
  }
}

/* ===================================================
 * BỎ BO TRÒN Ở CÁC BUTTON (BUTTON SQUARE CORNERS RESET)
 * =================================================== */
button,
.btn,
.btn-teal-pill,
.btn-add-cart,
.btn-pdp-cart,
.btn-primary,
.btn-secondary,
.card-icon-btn,
.card-fav-btn,
.topseller-arrow,
.topseller-nav-btn,
.feat-nav button {
  border-radius: 0 !important;
}

/* Ngoại lệ cho nút tìm kiếm header: bên trái phẳng (0), bên phải bo tròn theo thẻ chứa (6px) */
.search-btn {
  border-radius: 0 6px 6px 0 !important;
}


/* ========================================================
   HOMEPAGE EXPANDED SECTIONS (FROM NPMUSEAI INTEGRATION)
   ======================================================== */

/* 1. HERO SLIDER (EXACT FROM NPMUSEAI WITH PURE BLACK GRADIENT OVERLAY) */
.hero {
  position: relative;
  background: #000000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 420px;
  min-height: 420px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s, visibility 0s linear .8s;
  pointer-events: none;
}
.hero-slide.on {
  opacity: 1;
  visibility: visible;
  transition: opacity .8s;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide:after,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 46%, rgba(0,0,0,0) 72%);
  z-index: 1;
}
.hero-box {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hero-slide .hero-cap {
  display: none;
}
.hero-slide.on .hero-cap {
  display: block;
}
.hero-cap {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  color: #fff;
  max-width: 660px;
  padding: 0 20px 0 68px;
}
.hero-cap .kick {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--jh-yellow, #ffc000);
  margin-bottom: 12px;
  display: block;
  text-transform: uppercase;
}
.hero-cap h2 {
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-cap p {
  font-size: 16px;
  color: #fff;
  margin: 0 0 24px;
  max-width: 520px;
  line-height: 1.5;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: var(--jh-teal, #006580);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.hero-arrow:hover {
  background: var(--jh-yellow, #ffc000);
  color: var(--jh-dark, #1a1a1a);
}
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}
.hero-dots button,
.hero-dots button.on {
  width: 10px;
  height: 10px;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(255, 255, 255, .55);
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
  outline: none;
  display: block;
}
.hero-dots button.on {
  background: var(--jh-yellow, #ffc000);
  transform: scale(1.15);
}

.hero-arrow {
  display: none !important;
}

/* 2. CLIENT LOGO STRIP (CONSTRAINED TO CONTAINER WIDTH, BALANCED SPACING) */
.strip-sec {
  padding: 8px 0 12px;
  margin-top: 0;
  border-bottom: 1px solid var(--jh-gray-border, #e5e5e5);
  background: #ffffff;
  width: 100%;
  overflow: hidden;
}
.strip-sec .container,
.strip-sec .wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: var(--max-width, 1360px);
  margin: 0 auto;
  padding: 0 16px;
}
.logo-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}
.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logoMarquee 90s linear infinite;
  will-change: transform;
}
@keyframes logoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.client-chip {
  flex: none;
  width: 125px;
  height: 48px;
  margin-right: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-chip img {
  max-width: 100%;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media(max-width: 560px) {
  .client-chip {
    width: 95px;
    height: 38px;
    margin-right: 20px;
  }
  .client-chip img {
    max-height: 22px;
  }
}
@media(prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

/* Button styles matching NPMUSEAI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 2px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  transition: background .15s, transform .15s;
  text-decoration: none;
  cursor: pointer;
}
.btn-y {
  background: var(--jh-yellow, #ffc000);
  color: var(--jh-dark, #1a1a1a);
}
.btn-y:hover {
  background: var(--jh-yellow-dark, #e6ac00);
  color: var(--jh-dark, #1a1a1a);
  text-decoration: none;
}

/* 3. SECTION HEADERS & ARTICLE GRID (UNIFIED WITH NPAGY DESIGN) */
.section-header-more {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--jh-teal);
  text-decoration: none;
  transition: color 0.2s;
}
.section-header-more:hover {
  color: var(--jh-teal-dark);
  text-decoration: underline;
}
@media(max-width: 768px) {
  .section-header-more {
    position: static;
    display: block;
    margin-top: 8px;
    transform: none;
  }
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.art {
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.art:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.art img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  display: block;
}
.art .a-in {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.art .a-tag {
  font-size: 11px;
  color: var(--jh-text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.art h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
}
.art h3 a {
  color: var(--jh-teal);
  transition: color 0.2s;
}
.art h3 a:hover {
  color: var(--jh-teal-dark);
}
.art p {
  color: var(--jh-text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 14px;
  flex: 1;
}
.art .a-more {
  font-weight: 700;
  font-size: 13px;
  color: var(--jh-teal);
  display: inline-flex;
  align-items: center;
}
.art .a-more:hover {
  color: var(--jh-teal-dark);
}

/* 5. SEO SECTION & STATS */
.seo-sec {
  border-top: 1px solid var(--jh-gray-border);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}
.intro-img {
  border-radius: var(--radius-sm);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.stat {
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  background-color: #ffffff;
}
.stat .sv {
  font-size: 28px;
  font-weight: 800;
  color: var(--jh-teal);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat .sl {
  font-size: 13px;
  color: var(--jh-text-muted);
  font-weight: 600;
}

/* Responsive adjustments */
@media(max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .category-sidebar {
    display: none;
  }
  .art-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topcats {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
}
@media(max-width: 560px) {
  .hero {
    height: 360px;
    min-height: 360px;
  }
  .hero-cap h2 {
    font-size: 24px;
  }
  .hero-cap p {
    font-size: 13.5px;
  }
  .hero-cap {
    padding: 0 20px;
  }
  .client-chip {
    width: 110px;
    height: 48px;
    margin: 0 12px;
  }
  .client-chip img {
    max-height: 28px;
  }
  .art-grid {
    grid-template-columns: 1fr;
  }
  .topcats {
    grid-template-columns: 1fr;
  }
  .stat-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sec-head-c .sec-more {
    position: static;
    display: block;
    margin-top: 6px;
    transform: none;
  }
}

/* Disable favorite buttons */
.card-fav-btn { display: none !important; }


/* ========================================================
   CATALOG & ALL PRODUCTS (SALE) PAGE STYLES
   ======================================================== */
.catalog {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 30px;
}
.side-tree {
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  position: sticky;
  top: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.side-tree h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--jh-teal);
  padding: 10px 18px 10px;
  margin: 0;
  border-bottom: 1px solid var(--jh-gray-border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.side-tree a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 15px;
  color: var(--jh-text);
  font-size: 14px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: all 0.15s ease;
}
.side-tree a:hover {
  text-decoration: none;
  background: #f0fdfa;
  color: var(--jh-teal);
}
.side-tree a.on {
  font-weight: 700;
  color: var(--jh-teal);
  border-left-color: var(--jh-yellow);
  background: #f0fdfa;
}
.side-tree a .cnt {
  color: #64748b;
  font-size: 12.5px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.fdrop {
  position: relative;
}
.fdrop-btn {
  border: 1.5px solid var(--jh-gray-border);
  background: #ffffff;
  border-radius: 4px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--jh-teal);
  cursor: pointer;
  transition: border-color 0.15s;
}
.fdrop-btn:hover {
  border-color: var(--jh-teal);
}
.fdrop-btn.has {
  border-color: var(--jh-teal);
  color: var(--jh-teal);
  background: #f0fdfa;
}
.fdrop-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid var(--jh-gray-border);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 18px;
  width: 300px;
  display: none;
  z-index: 50;
}
.fdrop.open .fdrop-panel {
  display: block;
}
.fdrop-panel h4 {
  margin: 0 0 10px;
  color: var(--jh-teal);
  font-size: 14px;
  font-weight: 700;
}
.fdrop-panel label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  font-size: 13.5px;
  cursor: pointer;
  color: #374151;
}
.fdrop-panel input[type=radio] {
  accent-color: var(--jh-teal);
  width: 16px;
  height: 16px;
}
.price-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.price-inputs input {
  width: 100%;
  border: 1.5px solid var(--jh-gray-border);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 13.5px;
  outline: none;
}
.price-inputs input:focus {
  border-color: var(--jh-teal);
}
.sort-sel {
  border: 1.5px solid var(--jh-gray-border);
  border-radius: 4px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 600;
  background: #ffffff;
  color: var(--jh-text);
  outline: none;
  cursor: pointer;
}
.sort-sel:focus {
  border-color: var(--jh-teal);
}
.view-tgl {
  display: inline-flex;
  border: 1.5px solid var(--jh-gray-border);
  border-radius: 4px;
  overflow: hidden;
  margin-left: auto;
}
.view-tgl button {
  border: none;
  background: #ffffff;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
}
.view-tgl button.on {
  background: var(--jh-teal);
  color: #ffffff;
}
.count-line {
  color: #64748b;
  font-size: 14px;
  margin: 12px 0 18px;
}
.count-line b {
  color: var(--jh-text);
}
.clear-filters {
  border: none;
  background: none;
  color: var(--jh-teal);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 10px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.clear-filters:hover {
  color: var(--jh-red);
  text-decoration: none !important;
}
/* grid view */
.cat-pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
/* row card */
.prow-card {
  border: 1px solid var(--jh-gray-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 0;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s;
}
.prow-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.prow-card .rimg {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prow-card .rimg img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 3px;
  background: #f8fafc;
}
.prow-card .rmid {
  padding: 18px 18px 16px 12px;
  display: flex;
  flex-direction: column;
}
.prow-card .rmid h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}
.prow-card .rmid h3 a {
  color: var(--jh-teal);
  text-decoration: none;
}
.prow-card .rmid h3 a:hover {
  text-decoration: underline;
}
.prow-card .rmeta {
  font-size: 13px;
  color: #4b5563;
  margin-top: 8px;
}
.prow-card .rmeta div {
  margin-bottom: 4px;
}
.prow-card .rmeta b {
  color: var(--jh-teal);
}
.prow-card .rbuy {
  border-left: 1px solid var(--jh-gray-border);
  background: #f8fafc;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.prow-card .rbuy .add-btn {
  width: 100%;
  padding: 11px 8px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--jh-teal);
  color: #ffffff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}
.prow-card .rbuy .add-btn:hover {
  background: var(--jh-teal-dark);
}
.loadmore-wrap {
  text-align: center;
  padding: 28px 0 16px;
}
.loadmore-wrap .lm-info {
  color: #64748b;
  font-size: 13.5px;
  margin-top: 10px;
}
.empty-box {
  border: 1px dashed var(--jh-gray-border);
  border-radius: 6px;
  padding: 44px 20px;
  text-align: center;
  color: #64748b;
  background: #ffffff;
}
@media (max-width: 991px) {
  .catalog {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cat-pgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prow-card {
    grid-template-columns: 1fr;
  }
  .prow-card .rbuy {
    border-left: none;
    border-top: 1px solid var(--jh-gray-border);
  }
}
@media (max-width: 600px) {
  .cat-pgrid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PRODUCT COMPARISON SYSTEM (CMP-BAR & CMP-MODAL)
   Extracted & standardized from NPMUSEAI prototype
   ========================================================================== */

/* Compare Line in Cards */
.cmp-line, .compare-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #334155;
  margin-top: 10px;
  cursor: pointer;
  user-select: none;
}
.cmp-line input, .compare-box input {
  width: 16px;
  height: 16px;
  accent-color: var(--jh-teal);
  cursor: pointer;
  margin: 0;
}
.cmp-line:hover, .compare-box:hover {
  color: var(--jh-teal);
}

/* Floating Bottom Comparison Bar */
.cmp-bar {
  position: fixed;
  left: 50%;
  transform: translate(-50%, 120px);
  bottom: 24px;
  z-index: 950;
  background: var(--jh-teal);
  color: #ffffff;
  border-radius: 6px;
  padding: 10px 18px 10px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
  max-width: 94vw;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.cmp-bar.on {
  transform: translate(-50%, 0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
#cmpBarText {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.cmp-bar .btn-cmp-open {
  background-color: var(--jh-yellow);
  color: var(--jh-dark);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.cmp-bar .btn-cmp-open:hover {
  background-color: var(--jh-yellow-dark);
  transform: translateY(-1px);
}
.cmp-bar .btn-cmp-clear {
  background: none;
  border: none;
  color: #e2e8f0;
  text-decoration: underline;
  font-size: 13.5px;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s;
  white-space: nowrap;
}
.cmp-bar .btn-cmp-clear:hover {
  color: #ffffff;
}

/* Comparison Modal Overlay */
.cmp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cmp-modal.on {
  display: flex;
}
.cmp-modal .cmp-m-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.cmp-modal .cmp-m-box {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  max-width: 1060px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  z-index: 10;
  animation: cmpModalFadeIn 0.25s ease-out;
}
@keyframes cmpModalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cmp-modal .cmp-m-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.15s ease;
}
.cmp-modal .cmp-m-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}
.cmp-modal h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--jh-teal);
  margin: 0 0 18px 0;
  padding-right: 40px;
}

/* Comparison Table */
.cmp-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--jh-gray-border);
  border-radius: 6px;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 650px;
}
.cmp-table th, .cmp-table td {
  border: 1px solid var(--jh-gray-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.cmp-table th {
  background: #f0f7f9;
  color: var(--jh-teal);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}
.cmp-table th a {
  color: var(--jh-teal);
  text-decoration: none;
  font-weight: 700;
}
.cmp-table th a:hover {
  text-decoration: underline;
  color: var(--jh-teal-dark);
}
.cmp-table th .sku-line {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
}
.cmp-table td:first-child {
  font-weight: 700;
  width: 145px;
  background: #ffffff;
  color: var(--jh-teal);
  white-space: nowrap;
}
.cmp-table td {
  color: #334155;
  line-height: 1.6;
}
.cmp-table td b {
  color: #0f172a;
  font-size: 15px;
}
.cmp-table img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.cmp-table .sub-note {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}
.cmp-table .btn-view-pdp {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--jh-teal);
  text-decoration: none !important;
}
.cmp-table .btn-view-pdp:hover {
  text-decoration: underline !important;
}

/* PDP Survey Notice Callout */
.pdp-survey-notice-box {
  margin: 0 20px 16px;
  padding: 12px 14px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 4px solid #0d9488;
  border-radius: 4px;
}
.pdp-survey-notice-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.pdp-survey-notice-desc {
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
  margin: 0;
}

/* PDP Primary CTAs */
.pdp-cta-group {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-pdp-survey-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #006580;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 101, 128, 0.2);
}
.btn-pdp-survey-cta:hover {
  background: #004b5f;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 101, 128, 0.3);
}
.btn-pdp-hotline-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #006580 !important;
  border: 1px solid #006580;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-pdp-hotline-cta:hover {
  background: #f0fdfa;
}
.badge-direct-mfg {
  background: #0f766e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


/* ==========================================================================
   PROJECT IMPLEMENTATION PROCESS (QUY TRÌNH TRIỂN KHAI DỰ ÁN KỆ KHO)
   Standardized 4-Step Process with 100% Full Uncropped 4:3 Photos
   ========================================================================== */
.project-process-section {
  padding: 52px 0;
  background: #f8fafc;
  border-top: 1px solid var(--jh-gray-border);
  border-bottom: 1px solid var(--jh-gray-border);
  margin: 40px 0;
}
.project-process-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 28px;
}
.project-process-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.project-process-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--jh-teal);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.project-process-subtitle {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* Tabs */
.process-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.process-tab-btn {
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.process-tab-btn.active {
  background: var(--jh-teal);
  color: #ffffff;
  border-color: var(--jh-teal);
  box-shadow: 0 4px 12px rgba(0, 101, 128, 0.25);
}
.process-tab-btn:hover:not(.active) {
  border-color: var(--jh-teal);
  color: var(--jh-teal);
}

/* 4-Card Grid with Natural 4:3 Ratio */
.project-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}
.process-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  position: relative;
}
/* Hover effect temporarily disabled per user request */
/*
.process-step-card:hover {
  border-color: var(--jh-teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 101, 128, 0.12);
}
*/
.process-step-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #f1f5f9;
  margin-bottom: 14px;
}
.process-step-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
/*
.process-step-card:hover .process-step-img-box img {
  transform: scale(1.05);
}
*/
.process-step-num {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--jh-yellow);
  color: #0f172a;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.process-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 101, 128, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #ffffff;
  font-size: 22px;
}
/*
.process-step-img-box:hover .process-zoom-overlay {
  opacity: 1;
}
*/
.process-zoom-overlay {
  display: none !important;
}
.process-step-body {
  padding: 0 2px 4px 2px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.process-step-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--jh-teal);
  margin-bottom: 8px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 8px;
}
.process-step-name i {
  color: #f59e0b;
  font-size: 15px;
}
.process-step-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}
.process-step-highlight {
  font-size: 11.5px;
  font-weight: 700;
  color: #166534;
  background: #f0fdf4;
  padding: 6px 10px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bbf7d0;
  width: fit-content;
}

/* Summary Infographic Tab */
.process-infographic-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.process-infographic-panel img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  display: block;
  margin: 0 auto;
}

/* Bottom CTA Banner */
.process-cta-banner {
  margin-top: 32px;
  background: linear-gradient(90deg, #094c5c 0%, #002e3b 100%);
  border-radius: 4px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #ffffff;
}
.process-cta-text h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.process-cta-text p {
  margin: 0;
  font-size: 13px;
  color: #d0e5ea;
}

/* CTA Banner Buttons & Phone */
.process-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 10px 20px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1.2;
  box-sizing: border-box;
}
.process-cta-btn-outline:hover {
  background: #ffffff;
  color: var(--jh-teal);
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.process-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 30px;
  transition: color 0.2s ease;
}
.process-cta-phone:hover {
  color: var(--jh-yellow);
  text-decoration: underline;
}

.process-cta-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .project-process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .process-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 575px) {
  .project-process-grid {
    grid-template-columns: 1fr;
  }
}


/* Process Lightbox Modal */
.process-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.process-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}
.process-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.process-lightbox-content {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  max-width: 1080px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  animation: modalPopIn 0.22s ease-out;
}
@keyframes modalPopIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.process-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #334155;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}
.process-lightbox-close:hover {
  background: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}
.process-lightbox-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.process-lightbox-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.process-lightbox-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--jh-teal);
}
.process-lightbox-body {
  padding: 16px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}
.process-lightbox-body img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


/* ==========================================================================
   FLOATING CONTACT WIDGET (REAL CALL & ZALO ICONS - EXACT USER SPEC)
   ========================================================================== */
.np-floating-widget {
  position: fixed;
  bottom: 30px;
  right: 28px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.np-floating-widget > * {
  pointer-events: auto;
}

.np-floating-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  text-decoration: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.np-floating-item:hover {
  transform: scale(1.1);
}

/* 1. Green Call Icon */
.np-call-img-box {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 14px rgba(34, 197, 94, 0.45));
}
.np-call-img-box img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Call Ripple Pulse Rings */
.np-call-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 197, 94, 0.7);
  pointer-events: none;
  animation: npCallPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
.np-call-pulse-ring-2 {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.35);
  pointer-events: none;
  animation: npCallPulse 2s cubic-bezier(0.24, 0, 0.38, 1) 0.5s infinite;
}
@keyframes npCallPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  60% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* 2. Zalo Real Icon */
.np-zalo-img-box {
  position: relative;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 14px rgba(0, 104, 255, 0.45));
}
.np-zalo-img-box img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

/* Zalo Red Notification Badge (unread 1) */
.np-notify-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  animation: npBadgeBounce 2s infinite ease-in-out;
}
@keyframes npBadgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* 3. Back to Top Button */
.np-btn-backtotop {
  width: 38px;
  height: 38px;
  background: #ffffff;
  color: #475569;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  border: 1px solid #cbd5e1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}
.np-btn-backtotop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.np-btn-backtotop:hover {
  background: var(--jh-teal);
  color: #ffffff;
  border-color: var(--jh-teal);
}

/* Floating Tooltip */
.np-floating-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.np-floating-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(15, 23, 42, 0.92);
}
.np-floating-item:hover .np-floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 575px) {
  .np-floating-widget {
    bottom: 20px;
    right: 16px;
    gap: 12px;
  }
  .np-floating-item {
    width: 48px;
    height: 48px;
  }
  .np-call-img-box, .np-zalo-img-box {
    width: 48px;
    height: 48px;
  }
  .np-notify-badge {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .np-floating-tooltip {
    display: none;
  }
}


/* ========================================================
   CONTACT PORTAL UPGRADE (VALIDATION, MODAL, BRANCH MAP)
   ======================================================== */
/* Form Validation */
.contact-field-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
.contact-field-group label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 6px;
}
.contact-field-group label i {
  color: #ef4444;
  font-style: normal;
  margin-left: 2px;
}
.contact-field-group input,
.contact-field-group select,
.contact-field-group textarea {
  width: 100%;
  border: 1px solid var(--jh-gray-border, #cbd5e1);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  outline: none;
  box-sizing: border-box;
}
.contact-field-group input:focus,
.contact-field-group select:focus,
.contact-field-group textarea:focus {
  border-color: var(--jh-teal, #005a70);
  box-shadow: 0 0 0 3px rgba(0, 90, 112, 0.12);
}
.contact-field-group.has-error input,
.contact-field-group.has-error select,
.contact-field-group.has-error textarea {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}
.contact-field-group.has-error input:focus,
.contact-field-group.has-error select:focus,
.contact-field-group.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.contact-field-group .field-error-text {
  display: none;
  font-size: 11.5px;
  color: #ef4444;
  margin-top: 5px;
  font-weight: 600;
  align-items: center;
  gap: 4px;
}
.contact-field-group.has-error .field-error-text {
  display: flex;
}

/* Success Modal */
.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.contact-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.contact-modal-dialog {
  background: #ffffff;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  padding: 32px 28px;
  border-top: 5px solid var(--jh-teal, #005a70);
  box-sizing: border-box;
}
.contact-modal-backdrop.is-open .contact-modal-dialog {
  transform: scale(1) translateY(0);
}
.contact-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 14px;
}
.contact-modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.contact-modal-header {
  text-align: center;
  margin-bottom: 20px;
}
.contact-modal-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 12px;
  box-shadow: 0 0 0 6px rgba(220, 252, 231, 0.6);
}
.contact-modal-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--jh-teal, #005a70);
  margin-bottom: 6px;
}
.contact-ticket-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  font-family: monospace;
}
.contact-ticket-tag i {
  color: var(--jh-teal, #005a70);
}

/* Service SLA Commitment Box */
.contact-sla-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-sla-box .sla-icon {
  font-size: 22px;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-sla-box .sla-text {
  font-size: 12.5px;
  color: #14532d;
  line-height: 1.6;
}
.contact-sla-box .sla-text strong {
  color: #0f172a;
}

/* Summary Grid */
.contact-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 12.5px;
  line-height: 1.6;
}
.contact-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.contact-summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.contact-summary-label {
  color: #64748b;
  font-weight: 500;
}
.contact-summary-val {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
  max-width: 60%;
}

/* Actions in Modal */
.contact-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn-modal-zalo {
  background: #0068ff;
  color: #ffffff;
  border-radius: 4px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-modal-zalo:hover {
  background: #0054cc;
  transform: translateY(-1px);
}
.btn-modal-call {
  background: #22c55e;
  color: #ffffff;
  border-radius: 4px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-modal-call:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

/* Branch Network & Map Section */
.branch-network-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--jh-gray-border, #e2e8f0);
}
.branch-header {
  margin-bottom: 24px;
}
.branch-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: stretch;
}
.branch-tabs-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.branch-tab-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}
.branch-tab-card:hover {
  border-color: var(--jh-teal, #005a70);
  background: #f8fafc;
}
.branch-tab-card.active {
  border-color: var(--jh-teal, #005a70);
  border-left: 5px solid var(--jh-teal, #005a70);
  background: #f0fdfa;
  box-shadow: 0 4px 14px rgba(0, 90, 112, 0.1);
}
.branch-tab-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--jh-teal, #005a70);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.branch-tab-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 12px;
}
.branch-tab-card.active .branch-tab-badge {
  background: var(--jh-teal, #005a70);
  color: #ffffff;
}
.branch-tab-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 6px;
}
.branch-tab-meta {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  gap: 14px;
}
.branch-tab-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Map Frame */
.branch-map-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.1));
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
.branch-map-toolbar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.branch-map-name {
  font-weight: 800;
  color: #0f172a;
}
.branch-map-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--jh-teal, #005a70);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.branch-map-link:hover {
  text-decoration: underline;
}
.branch-map-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
}

@media (max-width: 900px) {
  .branch-grid {
    grid-template-columns: 1fr;
  }
  .contact-modal-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET UX UPGRADE (MAX-WIDTH: 991px / 767px)
   100% Zero Regression on Desktop (> 991px)
   ========================================================================== */

/* Hide mobile-only elements on desktop */
.np-mobile-menu-btn,
.np-mobile-drawer-overlay,
.np-mobile-drawer,
.np-mobile-cat-toggle {
  display: none;
}

@media (max-width: 991px) {
  /* 1. Prevent any accidental horizontal overflow */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* 2. Top announcement bar compact on mobile */
  .top-bar {
    font-size: 11px;
    padding: 6px 12px;
    line-height: 1.35;
  }
  .top-bar a {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  /* 3. Main Header: Two-Row Smart Layout on Mobile/Tablet
     Row 1: Logo (left) + Action Icons & Hamburger Button (right)
     Row 2: Full-width Live Search Bar with Autocomplete */
  .main-header {
    padding: 10px 0 12px;
    position: sticky;
    top: 0;
    z-index: 990;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  }
  .header-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-logo.logo-namphat {
    padding: 6px 12px;
    order: 1;
  }
  .logo-namphat .lg1 {
    font-size: 17px;
  }
  .logo-namphat .lg2 {
    font-size: 8.5px;
    letter-spacing: 1.5px;
  }
  .header-actions {
    order: 2;
    margin-left: auto;
    gap: 10px;
  }
  .hotline-box {
    display: none !important;
  }
  .action-icons {
    gap: 6px;
  }
  .action-link {
    font-size: 17px;
    padding: 7px;
  }
  .header-search {
    display: block !important;
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin-top: 2px;
  }
  .search-input {
    height: 38px;
    font-size: 13px;
    padding: 0 46px 0 12px;
  }
  .search-btn {
    height: 38px;
    width: 42px;
  }

  /* Mobile Hamburger Menu Button inside Header */
  .np-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px !important;
    font-size: 17px;
    cursor: pointer;
    margin-left: 4px;
    flex-shrink: 0;
  }
  .np-mobile-menu-btn:active {
    background: rgba(255, 255, 255, 0.25);
  }

  /* 4. Sub-Navigation Bar: Horizontal Scrollable Quick Links + Compact VAT Switch */
  .sub-nav {
    padding: 6px 0;
    overflow: hidden;
  }
  .sub-nav-row {
    gap: 10px;
    align-items: center;
  }
  .nav-links {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 16px;
    padding: 4px 4px 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a,
  .nav-dropdown-item > a {
    white-space: nowrap;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  /* Disable hover mega-dropdown on touch screens to prevent viewport overflow */
  .nav-dropdown-item .mega-dropdown {
    display: none !important;
  }
  .vat-toggle-wrapper {
    flex-shrink: 0;
    gap: 5px;
    font-size: 11px;
    padding-left: 8px;
    border-left: 1px solid #e2e8f0;
  }
  .toggle-switch {
    width: 34px;
    height: 18px;
  }
  .slider:before {
    width: 12px;
    height: 12px;
    left: 3px;
    bottom: 3px;
  }
  input:checked + .slider:before {
    transform: translateX(16px);
  }

  /* 5. Mobile Slide-Out Navigation Drawer */
  .np-mobile-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .np-mobile-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  .np-mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    max-width: 86vw;
    background: #ffffff;
    z-index: 99999;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }
  .np-mobile-drawer.is-open {
    transform: translateX(0);
  }
  .np-drawer-head {
    background: var(--jh-teal);
    color: #ffffff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .np-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
  }
  .np-drawer-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    padding: 14px 18px 6px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
  }
  .np-drawer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .np-drawer-nav li {
    border-bottom: 1px solid #f1f5f9;
  }
  .np-drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
  }
  .np-drawer-nav a i.nav-ico {
    width: 22px;
    color: var(--jh-teal);
    font-size: 14px;
    margin-right: 8px;
  }
  .np-drawer-cat-list a {
    font-weight: 600;
    font-size: 13px;
    padding: 10px 18px;
    color: #334155;
  }
  .np-drawer-cat-count {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
  }
  .np-drawer-foot {
    margin-top: auto;
    padding: 16px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
  }

  /* 6. Hide left "?" floating button on mobile so it never covers headings/text */
  .floating-help {
    display: none !important;
  }

  /* 7. Catalog / Sale Page Collapsible Category Filter on Mobile */
  .np-mobile-cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: var(--jh-teal);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: 6px !important;
    border: none;
    cursor: pointer;
    margin-bottom: 8px;
  }
  .catalog .side-tree {
    position: static;
    display: none;
    margin-bottom: 12px;
  }
  .catalog .side-tree.is-mobile-open {
    display: block;
  }

  /* 8. Cart & Checkout Responsive Stacking */
  main.container > div[style*="grid-template-columns: 1fr 340px"],
  form#checkoutForm[style*="grid-template-columns: 1fr 380px"],
  main.container > div[style*="grid-template-columns: 380px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  #freeShippingNotice {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px;
  }
  .cart-item-row {
    grid-template-columns: 80px 1fr !important;
    gap: 12px !important;
  }
  .cart-item-row > div:nth-child(3) {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left !important;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
  }

  /* 9. Auth / Login Page & Contact Form Responsive */
  .auth-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  #npContactForm {
    grid-template-columns: 1fr !important;
  }
  #npContactForm > div[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

  /* 10. Product Detail Page (PDP) Mobile Refinements */
  .pdp-gallery-zoom-box {
    height: 300px;
  }
  .product-detail-tab-navigation-list {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .product-detail-tab-navigation-list::-webkit-scrollbar {
    display: none;
  }
  .product-detail-tab-navigation-link {
    font-size: 13.5px;
    padding: 12px 16px 10px;
    white-space: nowrap;
  }
  .product-detail-tabs-content {
    padding: 20px 16px;
  }
  .pdp-b2b-action-row {
    grid-template-columns: 1fr;
  }
  .pdp-trust-badges {
    grid-template-columns: 1fr;
  }
  .properties-label,
  .properties-value {
    flex: 0 0 50%;
    word-break: break-word;
  }

  /* 11. Compare Page Mobile Refinements */
  #cmpQuickAddWrap {
    width: 100% !important;
  }
  .cmp-table {
    table-layout: auto !important;
    min-width: 720px;
  }
  .cmp-table th:first-child,
  .cmp-table td:first-child {
    width: 130px !important;
    min-width: 130px;
  }
  .cmp-table th:not(:first-child),
  .cmp-table td:not(:first-child) {
    min-width: 210px;
  }
  .cmp-bar {
    width: calc(100vw - 24px);
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #cmpBarText {
    font-size: 12.5px;
    flex: 1 1 100%;
    text-align: center;
  }
  .cmp-bar .btn-cmp-open {
    flex: 1;
    padding: 8px 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 640px) {
  .page-title {
    font-size: 21px !important;
    line-height: 1.3;
  }
  .checkout-stepper {
    gap: 8px;
    font-size: 11px;
    flex-wrap: wrap;
  }
  .step-divider {
    width: 16px;
  }
  .form-card {
    padding: 16px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
