/*
Theme Name: PVI Sài Gòn Child Theme
Theme URI: https://pvisg.com.vn/
Template: astra
Author: PVI Sài Gòn
Version: 1.0.2
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --pvi-primary: #005baa;
  --pvi-secondary: #0071d9;
  --pvi-accent: #ffb400;
  --pvi-red: #d32f2f;
  --pvi-dark: #1b1b1b;
  --pvi-body: #333333;
  --pvi-bg-light: #f8fafc;
  --pvi-border: #dde4ed;
  --ast-global-color-0: #005baa;
  --ast-global-color-1: #0071d9;
  --ast-global-color-2: #1b1b1b;
  --ast-global-color-3: #333333;
  --ast-global-color-4: #ffffff;
  --ast-global-color-5: #F2F0FE;
  --ast-global-color-7: #dde4ed;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Roboto', sans-serif !important;
  color: var(--pvi-body);
  font-size: 16px;
  line-height: 1.65;
  background-color: #f8fafc;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Semi Condensed', sans-serif !important;
  font-weight: 700 !important;
  color: var(--pvi-primary);
  text-transform: uppercase;
}

a {
  color: var(--pvi-primary);
  transition: all 0.25s ease;
  text-decoration: none;
}

a:hover {
  color: var(--pvi-accent);
}

.pvi-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header Styling */
.pvi-header {
  background: var(--pvi-header-bg, var(--pvi-primary));
  border-bottom: 2px solid var(--pvi-header-border, var(--pvi-secondary));
  box-shadow: 0 4px 15px rgba(0, 91, 170, 0.18);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.pvi-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pvi-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.pvi-nav > ul,
ul.pvi-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 25px;
}

.pvi-nav > ul > li,
ul.pvi-menu-list > li {
  position: relative;
}

.pvi-nav > ul > li > a,
ul.pvi-menu-list > li > a {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--pvi-menu-color, #ffffff);
  padding: 12px 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
}

.pvi-dropdown-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.pvi-nav > ul > li.current-menu-item > a,
.pvi-nav > ul > li:hover > a,
.pvi-nav > ul > li.is-active > a,
ul.pvi-menu-list > li.current-menu-item > a,
ul.pvi-menu-list > li:hover > a,
ul.pvi-menu-list > li.is-active > a {
  color: var(--pvi-menu-hover, var(--pvi-accent));
}

.pvi-nav > ul > li:hover > a .pvi-dropdown-icon,
.pvi-nav > ul > li.is-active > a .pvi-dropdown-icon,
ul.pvi-menu-list > li:hover > a .pvi-dropdown-icon,
ul.pvi-menu-list > li.is-active > a .pvi-dropdown-icon {
  transform: rotate(180deg);
}

/* GTranslate Flags Only on Header */
ul.pvi-menu-list > li.menu-item-gtranslate {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  margin-left: 10px !important;
  padding: 0 !important;
}

/* Ẩn link wrapper đơn lẻ mặc định của GTranslate */
ul.pvi-menu-list > li.menu-item-gtranslate > a.gt-current-wrapper {
  display: none !important;
}

/* Hiển thị danh sách cờ nằm ngang cạnh nhau */
ul.pvi-menu-list > li.menu-item-gtranslate > ul.dropdown-menu,
ul.pvi-menu-list > li.menu-item-gtranslate > ul.sub-menu {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  background: rgba(255, 255, 255, 0.12) !important;
  padding: 4px 8px !important;
  margin: 0 !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: none !important;
  list-style: none !important;
}

ul.pvi-menu-list > li.menu-item-gtranslate > ul.dropdown-menu > li,
ul.pvi-menu-list > li.menu-item-gtranslate > ul.sub-menu > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

ul.pvi-menu-list > li.menu-item-gtranslate a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px !important;
  border-radius: 50% !important;
  opacity: 0.65;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  line-height: 1 !important;
  border: 1.5px solid transparent !important;
}

ul.pvi-menu-list > li.menu-item-gtranslate a:hover {
  opacity: 1 !important;
  transform: scale(1.15);
}

ul.pvi-menu-list > li.menu-item-gtranslate a.gt-current-lang {
  opacity: 1 !important;
  border-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.08);
}

ul.pvi-menu-list > li.menu-item-gtranslate img {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* Mega menu dropdown */
.pvi-dropdown {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: -580px;
  width: 940px;
  max-width: 95vw;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(0, 40, 100, 0.12);
  border-top: 3px solid var(--pvi-primary);
  border-radius: 0 0 8px 8px;
  padding: 24px;
  z-index: 99999;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.pvi-has-dropdown:hover > .pvi-dropdown,
.pvi-has-dropdown.is-active > .pvi-dropdown,
.pvi-has-dropdown:focus-within > .pvi-dropdown,
li.menu-item-has-children:hover > .pvi-dropdown,
li.menu-item-has-children.is-active > .pvi-dropdown,
.pvi-dropdown:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.pvi-dropdown::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

.pvi-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pvi-mega-col h4 {
  font-size: 14px;
  color: var(--pvi-primary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pvi-mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.pvi-mega-col ul li a {
  font-size: 13.5px;
  color: #4b5563;
  display: block;
  font-weight: 400;
  line-height: 1.4;
}

.pvi-mega-col ul li a:hover {
  color: var(--pvi-primary);
  padding-left: 4px;
}

/* Simple Dropdown support */
.pvi-simple-dropdown {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-top: 3px solid var(--pvi-primary);
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
  z-index: 99999;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  list-style: none;
  margin: 0;
  pointer-events: none;
}

.pvi-simple-dropdown::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

.pvi-has-dropdown:hover > .pvi-simple-dropdown,
.pvi-has-dropdown.is-active > .pvi-simple-dropdown,
.pvi-has-dropdown:focus-within > .pvi-simple-dropdown,
li.menu-item-has-children:hover > .pvi-simple-dropdown,
li.menu-item-has-children.is-active > .pvi-simple-dropdown,
.pvi-simple-dropdown:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.pvi-simple-dropdown li {
  width: 100%;
  margin: 0;
  padding: 0;
}

.pvi-simple-dropdown li a {
  display: block !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  font-family: inherit !important;
}

.pvi-simple-dropdown li a:hover {
  background: #f0f7ff;
  color: var(--pvi-primary) !important;
  padding-left: 24px !important;
}

/* Breadcrumb Bar */
.pvi-breadcrumb-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--pvi-border);
  padding: 12px 0;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 25px;
}

.pvi-breadcrumb-bar a {
  color: #64748b;
}

.pvi-breadcrumb-bar a:hover {
  color: var(--pvi-primary);
}

.pvi-breadcrumb-bar span {
  color: var(--pvi-primary);
  font-weight: 600;
}

/* Single Product Styles */
.pvi-product-page-container {
  padding-bottom: 50px;
}

.pvi-product-hero-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 40px;
  background: #ffffff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--pvi-border);
  margin-bottom: 35px;
}

.pvi-product-gallery {
  position: relative;
}

.pvi-product-image-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.pvi-product-feat-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pvi-product-feat-img:hover {
  transform: scale(1.03);
}

.pvi-badge-authentic {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--pvi-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(211,47,47,0.4);
}

.pvi-cat-tag {
  display: inline-block;
  background: rgba(0,91,170,0.1);
  color: var(--pvi-primary);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pvi-product-title {
  font-size: 30px;
  margin: 0 0 15px 0;
  line-height: 1.25;
}

.pvi-product-short-desc {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 25px;
  border-bottom: 1px dashed var(--pvi-border);
  padding-bottom: 20px;
}

.pvi-product-actions-box {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--pvi-primary);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}

.pvi-hotline-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.hotline-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--pvi-primary);
}

.hotline-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--pvi-red);
  letter-spacing: 0.5px;
}

.pvi-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.pvi-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pvi-btn-primary {
  background: var(--pvi-primary);
  color: #ffffff !important;
}

.pvi-btn-primary:hover {
  background: var(--pvi-accent);
  color: #1b1b1b !important;
  transform: translateY(-2px);
}

.pvi-btn-zalo {
  background: #0088cc;
  color: #ffffff !important;
}

.pvi-btn-zalo:hover {
  background: #006699;
  transform: translateY(-2px);
}

.pvi-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pvi-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #374151;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}

/* Product Content Layout */
.pvi-product-content-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 35px;
}

.pvi-content-box {
  background: #ffffff;
  padding: 35px;
  border-radius: 12px;
  border: 1px solid var(--pvi-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.pvi-section-heading {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pvi-primary);
}

/* Sidebar Consultation Card */
.pvi-sticky-consult-card {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 2px solid var(--pvi-primary);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,91,170,0.12);
}

.pvi-sticky-consult-card h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--pvi-primary);
  text-align: center;
}

.card-subtitle {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-bottom: 20px;
}

.pvi-form-group {
  margin-bottom: 12px;
}

.pvi-form-group input,
.pvi-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.pvi-form-group input:focus,
.pvi-form-group textarea:focus {
  outline: none;
  border-color: var(--pvi-primary);
  box-shadow: 0 0 0 3px rgba(0,91,170,0.15);
}

.pvi-btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--pvi-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
}

.pvi-btn-submit:hover {
  background: var(--pvi-accent);
  color: #1b1b1b;
}

/* Contact Form 7 Integration in Sidebar */
.pvi-sticky-consult-card .wpcf7-form p {
  margin: 0;
}

.pvi-sticky-consult-card .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.pvi-sticky-consult-card .wpcf7-text,
.pvi-sticky-consult-card .wpcf7-textarea {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s !important;
}

.pvi-sticky-consult-card .wpcf7-text:focus,
.pvi-sticky-consult-card .wpcf7-textarea:focus {
  outline: none !important;
  border-color: var(--pvi-primary) !important;
  box-shadow: 0 0 0 3px rgba(0,91,170,0.15) !important;
}

.pvi-sticky-consult-card input.wpcf7-submit {
  width: 100% !important;
  padding: 12px !important;
  background: var(--pvi-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: 'Barlow Semi Condensed', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
}

.pvi-sticky-consult-card input.wpcf7-submit:hover {
  background: var(--pvi-accent) !important;
  color: #1b1b1b !important;
}

.pvi-sticky-consult-card .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

.pvi-sticky-consult-card .wpcf7-response-output {
  margin: 15px 0 0 0 !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

.pvi-sticky-consult-card .wpcf7-spinner {
  margin: 10px auto 0 auto;
  display: block;
}

.sidebar-contact-info {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--pvi-border);
  font-size: 13px;
  color: #475569;
}

.sidebar-contact-info p {
  margin: 4px 0;
}

/* Rich Content Entry Styles */
.pvi-entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #2b3445;
}

.pvi-entry-content h2,
.pvi-entry-content h3,
.pvi-entry-content h4 {
  margin-top: 35px;
  margin-bottom: 15px;
}

.pvi-entry-content h2 {
  font-size: 24px;
  border-left: 4px solid var(--pvi-primary);
  padding-left: 12px;
}

.pvi-entry-content h3 {
  font-size: 20px;
}

.pvi-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
}

.pvi-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 14.5px;
}

.pvi-entry-content th,
.pvi-entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--pvi-border);
  text-align: left;
}

.pvi-entry-content th {
  background: var(--pvi-primary);
  color: #ffffff;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
}

.pvi-entry-content tr:nth-child(even) {
  background: #f8fafc;
}

.pvi-entry-content blockquote {
  border-left: 4px solid var(--pvi-accent);
  background: #fffbeb;
  padding: 16px 20px;
  margin: 25px 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

/* Single Post Layout */
.pvi-single-post-container {
  padding-bottom: 50px;
}

.pvi-post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 35px;
}

.pvi-article-content {
  background: #ffffff;
  padding: 35px;
  border-radius: 12px;
  border: 1px solid var(--pvi-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.pvi-article-title {
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 15px 0;
}

.pvi-post-meta {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--pvi-border);
}

.meta-date, .meta-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pvi-post-feat-img-wrapper {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.pvi-post-feat-img {
  width: 100%;
  height: auto;
  display: block;
}

.pvi-article-cta-box {
  background: linear-gradient(135deg, #005baa, #00386b);
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
  text-align: center;
}

.pvi-article-cta-box h3 {
  color: #ffffff !important;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

.pvi-article-cta-box p {
  color: #e2e8f0;
  font-size: 14.5px;
  margin-bottom: 20px;
}

.pvi-cta-action-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Sidebar Widgets */
.pvi-sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--pvi-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.widget-title {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pvi-primary);
}

.pvi-recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pvi-recent-posts-list li a {
  display: flex;
  gap: 12px;
  align-items: center;
}

.recent-thumb {
  width: 65px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.recent-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
}

.pvi-recent-posts-list li a:hover .recent-title {
  color: var(--pvi-primary);
}

.recent-date {
  font-size: 12px;
  color: #94a3b8;
}

/* Archives Styling */
.pvi-archive-container {
  padding-bottom: 60px;
}

.pvi-archive-hero {
  background: linear-gradient(135deg, #005baa, #003366);
  color: #ffffff;
  padding: 40px 0 45px 0;
  margin-bottom: 40px;
}

.pvi-archive-hero .pvi-breadcrumb-bar {
  background: transparent;
  border: none;
  padding: 0 0 15px 0;
  color: #cbd5e1;
}

.pvi-archive-hero .pvi-breadcrumb-bar a {
  color: #cbd5e1;
}

.pvi-archive-hero .pvi-breadcrumb-bar span {
  color: var(--pvi-accent);
}

.pvi-archive-title {
  color: #ffffff !important;
  font-size: 32px;
  margin: 0 0 10px 0;
}

.pvi-archive-desc {
  font-size: 15px;
  color: #e2e8f0;
  max-width: 800px;
  margin: 0;
}

.pvi-products-grid,
.pvi-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pvi-product-card,
.pvi-news-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--pvi-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pvi-product-card:hover,
.pvi-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,91,170,0.12);
  border-color: #bfdbfe;
}

.pvi-card-img-wrap,
.pvi-news-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.pvi-card-thumb,
.pvi-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pvi-product-card:hover .pvi-card-thumb,
.pvi-news-card:hover .pvi-news-thumb {
  transform: scale(1.06);
}

.pvi-card-body,
.pvi-news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pvi-card-title,
.pvi-news-title {
  font-size: 18px;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.pvi-card-title a,
.pvi-news-title a {
  color: #1b1b1b;
}

.pvi-card-title a:hover,
.pvi-news-title a:hover {
  color: var(--pvi-primary);
}

.pvi-card-excerpt,
.pvi-news-excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.pvi-news-date {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.pvi-card-btn,
.pvi-news-btn {
  display: inline-block;
  background: #f0f7ff;
  color: var(--pvi-primary);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  align-self: flex-start;
  transition: all 0.25s;
}

.pvi-card-btn:hover,
.pvi-news-btn:hover {
  background: var(--pvi-primary);
  color: #ffffff;
}

/* Pagination */
.pvi-pagination {
  margin-top: 40px;
  text-align: center;
}

.pvi-pagination .nav-links {
  display: inline-flex;
  gap: 8px;
}

.pvi-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--pvi-border);
  color: #475569;
  font-weight: 600;
  font-size: 14px;
}

.pvi-pagination .page-numbers.current,
.pvi-pagination .page-numbers:hover {
  background: var(--pvi-primary);
  color: #ffffff;
  border-color: var(--pvi-primary);
}

/* Footer Styling */
.pvi-footer {
  background: #00386b;
  color: #f1f5f9;
  padding-top: 50px;
  padding-bottom: 20px;
  margin-top: 40px;
}

.pvi-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1.1fr;
  gap: 40px;
}

.pvi-footer h3 {
  color: #ffffff !important;
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.pvi-footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--pvi-accent);
}

.pvi-footer p, .pvi-footer li {
  font-size: 14px;
  line-height: 1.7;
  color: #cbd5e1;
}

.pvi-footer a {
  color: #e2e8f0;
}

.pvi-footer a:hover {
  color: var(--pvi-accent);
}

.pvi-footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pvi-footer-nav-list li {
  margin: 0;
  padding: 0;
}

.pvi-footer-nav-list li a {
  color: #e2e8f0;
  display: inline-block;
  font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pvi-footer-nav-list li a:hover {
  color: var(--pvi-accent);
  padding-left: 4px;
}

.pvi-footer-btn {
  display: inline-block;
  background: #ffffff;
  color: var(--pvi-primary) !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  margin-top: 8px;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.pvi-footer-btn:hover {
  background: var(--pvi-accent);
  color: #000000 !important;
}

.pvi-bottom-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: #94a3b8;
}

/* Floating contact buttons */
#button-contact-vr {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pvi-float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  position: relative;
  cursor: pointer;
  animation: pviPulse 2s infinite;
}

.pvi-float-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.pvi-float-btn.zalo-btn {
  background: #0088cc;
}

.pvi-float-btn.phone-btn {
  background: #f7786b;
}

@keyframes pviPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 120, 107, 0.7); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 15px rgba(247, 120, 107, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 120, 107, 0); }
}

#ast-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pvi-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s;
}

#ast-scroll-top:hover {
  background: var(--pvi-accent);
  color: #000;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .pvi-product-hero-grid {
    grid-template-columns: 1fr;
  }
  .pvi-product-content-layout,
  .pvi-post-layout {
    grid-template-columns: 1fr;
  }
  .pvi-products-grid,
  .pvi-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pvi-footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .pvi-products-grid,
  .pvi-posts-grid {
    grid-template-columns: 1fr;
  }
  .pvi-product-title,
  .pvi-article-title,
  .pvi-archive-title {
    font-size: 24px;
  }
}

/* ====================================================
   HOMEPAGE STYLES (ĐỒNG BỘ 100% PVISG.COM.VN)
   ==================================================== */

.pvi-sec-title {
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #005baa;
    text-transform: uppercase;
    margin-top: 45px;
    margin-bottom: 25px;
    position: relative;
    letter-spacing: 0.5px;
}
.pvi-sec-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ffb400;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* 1. HERO SLIDER */
.pvi-hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.pvi-hero-slider.is-dragging {
    cursor: grabbing;
}
.pvi-slides-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    will-change: transform;
}
.pvi-slide {
    min-width: 100%;
    position: relative;
    user-select: none;
}
.pvi-slide a {
    -webkit-user-drag: none;
}
.pvi-slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1024 / 439;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}
.pvi-slider-nav {
    display: none !important;
}
.pvi-prev { left: 20px; }
.pvi-next { right: 20px; }
.pvi-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.pvi-dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.pvi-dot.active {
    background: #005baa;
    width: 28px;
    border-radius: 6px;
}

/* 2. SẢN PHẨM NỔI BẬT */
.pvi-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.pvi-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
}
.pvi-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 91, 170, 0.12);
}
.pvi-product-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}
.pvi-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pvi-product-card:hover .pvi-product-img img {
    transform: scale(1.06);
}
.pvi-product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}
.pvi-product-title {
    font-size: 24px;
    font-weight: 700;
    color: #1b1b1b;
    margin: 0 0 16px 0;
    line-height: 1.35;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
}
.pvi-btn-readmore {
    margin-top: auto;
    display: inline-block;
    padding: 10px 28px;
    background: #005baa;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14.5px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: center;
}
.pvi-btn-readmore:hover {
    background: #ffb400;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(255, 180, 0, 0.35);
}

/* 3. ƯU ĐIỂM NỔI BẬT */
.pvi-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.pvi-feature-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}
.pvi-feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 91, 170, 0.1);
    border-color: #005baa;
}
.pvi-feature-icon {
    width: 94px;
    height: 94px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 50%;
}
.pvi-feature-icon img,
.pvi-feature-icon svg {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    object-fit: contain;
    display: block;
}
.pvi-feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #005baa;
    margin-bottom: 12px;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
}
.pvi-feature-desc {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* 4. DANH MỤC NỔI BẬT */
.pvi-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}
.pvi-cat-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    aspect-ratio: 16 / 9;
    display: block;
    text-decoration: none;
}
.pvi-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.pvi-cat-card:hover img {
    transform: scale(1.08);
}
.pvi-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 56, 107, 0.85) 0%, rgba(0,0,0,0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #ffffff;
}
.pvi-cat-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 4px 0;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
}
.pvi-cat-count {
    font-size: 13.5px;
    color: #ffb400;
    font-weight: 600;
}

/* 5. ĐÁNH GIÁ KHÁCH HÀNG */
.pvi-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.pvi-testi-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px 25px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.pvi-testi-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
}
.pvi-testi-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 15px;
}
.pvi-testi-meta img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #005baa;
}
.pvi-testi-name {
    font-size: 16px;
    font-weight: 700;
    color: #005baa;
    margin: 0;
}
.pvi-testi-company {
    font-size: 13px;
    color: #64748b;
}

/* Slider wrappers */
.pvi-testimonials-wrapper,
.pvi-news-wrapper {
    position: relative;
    width: 100%;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.pvi-testimonials-track,
.pvi-news-track {
    will-change: transform;
}
.pvi-testi-slide a,
.pvi-news-slide a {
    -webkit-user-drag: none;
}
.pvi-testi-slide img,
.pvi-news-slide img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}
.pvi-testi-dots,
.pvi-news-dots {
    display: none !important;
}

/* 6. THÀNH TÍCH ĐẠT ĐƯỢC */
.pvi-achieve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.pvi-achieve-card,
.pvi-achieve-box {
    background: linear-gradient(135deg, #005baa 0%, #00386b 100%) !important;
    color: #ffffff !important;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 91, 170, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pvi-achieve-card:hover,
.pvi-achieve-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 91, 170, 0.35);
}
.pvi-achieve-icon {
    font-size: 38px;
    color: #ffb400 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pvi-achieve-icon svg,
.pvi-achieve-icon i {
    width: 44px;
    height: 44px;
    fill: #ffb400 !important;
    color: #ffb400 !important;
}
.pvi-achieve-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    text-transform: uppercase;
    line-height: 1.4 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 7. TIN TỨC CẬP NHẬT */
.pvi-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.pvi-news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.pvi-news-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}
.pvi-news-img a {
    display: block;
    width: 100%;
    height: 100%;
}
.pvi-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.pvi-news-card:hover .pvi-news-img img {
    transform: scale(1.06);
}
.pvi-news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.pvi-news-title {
    font-size: 17px;
    font-weight: 700;
    color: #1b1b1b;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
}
.pvi-news-date {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pvi-news-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}
.pvi-news-link {
    font-size: 14px;
    font-weight: 600;
    color: #005baa;
    display: inline-block;
    transition: color 0.2s;
}
.pvi-news-link:hover {
    color: #ffb400;
}

/* 8. LIÊN HỆ FORM */
.pvi-contact-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 91, 170, 0.08);
    border: 1px solid #e2e8f0;
}
.pvi-form-group {
    margin-bottom: 20px;
}
.pvi-form-group label {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
.pvi-form-group input,
.pvi-form-group select,
.pvi-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #334155;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}
.pvi-form-group input:focus,
.pvi-form-group select:focus,
.pvi-form-group textarea:focus {
    border-color: #005baa;
    box-shadow: 0 0 0 3px rgba(0, 91, 170, 0.15);
    outline: none;
    background: #ffffff;
}
.pvi-btn-submit {
    display: inline-block;
    width: 100%;
    padding: 14px 28px;
    background: #005baa;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pvi-btn-submit:hover {
    background: #ffb400;
    color: #000000;
    box-shadow: 0 6px 20px rgba(255, 180, 0, 0.35);
}

/* Contact Form 7 inside Homepage Contact Wrapper */
.pvi-contact-wrapper .wpcf7-form p {
    margin: 0;
}
.pvi-contact-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
.pvi-contact-wrapper .wpcf7-not-valid-tip {
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
}
.pvi-contact-wrapper .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 14.5px !important;
    line-height: 1.5 !important;
}
.pvi-contact-wrapper .wpcf7-spinner {
    margin: 12px auto 0 auto;
    display: block;
}
.pvi-contact-wrapper input.wpcf7-submit {
    display: inline-block;
    width: 100%;
    padding: 14px 28px;
    background: var(--pvi-primary, #005baa);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pvi-contact-wrapper input.wpcf7-submit:hover {
    background: var(--pvi-accent, #ffb400);
    color: #000000;
    box-shadow: 0 6px 20px rgba(255, 180, 0, 0.35);
}

/* ========================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ======================================================== */

/* 1. ĐỒNG BỘ CĂN LỀ ELEMENTOR CONTAINER & HEADER */
.elementor-section.elementor-section-boxed > .elementor-container,
.pvi-container {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* 2. NÚT HAMBURGER MENU TRÊN HEADER (CHUẨN THEO ẢNH YÊU CẦU) */
.pvi-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  background: var(--pvi-secondary, #0071d9);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.pvi-mobile-toggle:hover,
.pvi-mobile-toggle:active {
  background: var(--pvi-accent, #ffb400);
}

.pvi-mobile-toggle svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  stroke: #ffffff !important;
  transition: stroke 0.2s ease;
}

.pvi-mobile-toggle:hover svg,
.pvi-mobile-toggle:active svg {
  stroke: #000000 !important;
}

.pvi-mobile-toggle .pvi-svg-close {
  display: none !important;
}

/* Khi mở menu drawer: Nút toggle đổi thành icon đóng X */
body.pvi-menu-open .pvi-mobile-toggle .pvi-svg-hamburger {
  display: none !important;
}
body.pvi-menu-open .pvi-mobile-toggle .pvi-svg-close {
  display: block !important;
}

/* 3. MOBILE DRAWER PANEL & OVERLAY */
.pvi-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 20, 50, 0.65);
  backdrop-filter: blur(3px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pvi-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.pvi-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 99999;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pvi-mobile-drawer.is-open {
  transform: translateX(0);
}

.pvi-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--pvi-primary, #005baa);
  border-bottom: 2px solid var(--pvi-secondary, #0071d9);
}

.pvi-mobile-drawer-header .pvi-mobile-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.pvi-mobile-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.pvi-mobile-close svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
}

.pvi-mobile-close svg path {
  stroke: #ffffff !important;
  transition: stroke 0.2s ease !important;
}

.pvi-mobile-close:hover,
.pvi-mobile-close:active {
  background: var(--pvi-accent, #ffb400) !important;
  border-color: var(--pvi-accent, #ffb400) !important;
}

.pvi-mobile-close:hover svg path,
.pvi-mobile-close:active svg path {
  stroke: #000000 !important;
}

.pvi-mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 30px 0;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Menu Links */
ul.pvi-mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

ul.pvi-mobile-menu-list > li {
  border-bottom: 1px solid #f1f5f9;
}

ul.pvi-mobile-menu-list > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s, background 0.2s;
}

ul.pvi-mobile-menu-list > li > a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Home */
ul.pvi-mobile-menu-list > li:nth-child(1) > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23005baa'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

/* Giới thiệu */
ul.pvi-mobile-menu-list > li:nth-child(2) > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23005baa'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

/* Sản phẩm */
ul.pvi-mobile-menu-list > li:nth-child(3) > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23005baa'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'/%3E%3C/svg%3E");
}

/* Tin tức */
ul.pvi-mobile-menu-list > li:nth-child(4) > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23005baa'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z'/%3E%3C/svg%3E");
}

/* Tuyển dụng */
ul.pvi-mobile-menu-list > li:nth-child(5) > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23005baa'%3E%3Cpath d='M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z'/%3E%3C/svg%3E");
}

/* Liên hệ */
ul.pvi-mobile-menu-list > li:nth-child(6) > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23005baa'%3E%3Cpath d='M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.43-3.9-6.8-6.72l1.97-1.61c.28-.28.37-.67.25-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z'/%3E%3C/svg%3E");
}

ul.pvi-mobile-menu-list > li.menu-item-gtranslate > a::before {
  display: none !important;
}

ul.pvi-mobile-menu-list > li > a:hover,
ul.pvi-mobile-menu-list > li.current-menu-item > a {
  color: var(--pvi-primary, #005baa);
  background: #f8fafc;
}

/* Accordion Dropdown on Mobile */
ul.pvi-mobile-menu-list .pvi-dropdown,
ul.pvi-mobile-menu-list .pvi-simple-dropdown {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 16px 12px 20px !important;
  background: #f8fafc !important;
  pointer-events: auto !important;
  display: none !important;
}

ul.pvi-mobile-menu-list li.is-expanded > .pvi-dropdown,
ul.pvi-mobile-menu-list li.is-expanded > .pvi-simple-dropdown {
  display: block !important;
}

ul.pvi-mobile-menu-list .pvi-mega-grid {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  padding: 10px 0 !important;
}

ul.pvi-mobile-menu-list .pvi-mega-col h4 {
  font-size: 13.5px !important;
  color: var(--pvi-primary, #005baa) !important;
  margin-bottom: 8px !important;
  padding-bottom: 4px !important;
  border-bottom: 1px dashed #cbd5e1 !important;
}

ul.pvi-mobile-menu-list > li > a .pvi-dropdown-icon {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: #64748b;
  transition: transform 0.25s ease;
}

ul.pvi-mobile-menu-list > li.is-expanded > a .pvi-dropdown-icon {
  transform: rotate(180deg);
  color: var(--pvi-primary);
}

/* Language Switcher in Mobile Menu */
ul.pvi-mobile-menu-list > li.menu-item-gtranslate {
  padding: 12px 20px !important;
  background: #f1f5f9;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

ul.pvi-mobile-menu-list > li.menu-item-gtranslate::before {
  content: "Ngôn ngữ / Language:";
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  font-family: 'Barlow Semi Condensed', sans-serif;
}

/* Ẩn link wrapper đơn lẻ mặc định của GTranslate trên mobile */
ul.pvi-mobile-menu-list > li.menu-item-gtranslate > a.gt-current-wrapper {
  display: none !important;
}

ul.pvi-mobile-menu-list > li.menu-item-gtranslate > ul.dropdown-menu,
ul.pvi-mobile-menu-list > li.menu-item-gtranslate > ul.sub-menu {
  display: inline-flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}

ul.pvi-mobile-menu-list > li.menu-item-gtranslate a img {
  width: 26px !important;
  height: 26px !important;
}

/* Mobile Quick Hotline */
.pvi-mobile-footer-contact {
  padding: 18px 20px;
  margin-top: 10px;
}

.pvi-mobile-hotline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--pvi-primary, #005baa);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 91, 170, 0.25);
  font-family: 'Barlow Semi Condensed', sans-serif;
  letter-spacing: 0.5px;
}

/* ========================================================
   TABLET & MOBILE BREAKPOINTS
   ======================================================== */

/* Tablet & Mobile Header (<= 992px) */
@media (max-width: 992px) {
  .pvi-nav {
    display: none !important;
  }
  .pvi-mobile-toggle {
    display: flex !important;
  }
  .pvi-logo img {
    height: 42px !important;
    width: auto !important;
  }
  .pvi-features-grid,
  .pvi-cats-grid,
  .pvi-testimonials-grid,
  .pvi-achieve-grid,
  .pvi-news-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

/* Mobile Devices (<= 767px) */
@media (max-width: 767px) {
  /* Header căn lề thẳng mép 15px */
  .pvi-header-inner {
    padding: 10px 15px !important;
  }

  /* Elementor container căn lề ngang bằng tuyệt đối với header */
  .elementor-section.elementor-section-boxed > .elementor-container,
  .pvi-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .elementor-section.elementor-section-boxed > .elementor-container > .elementor-column > .elementor-widget-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* SẢN PHẨM NỔI BẬT: 1 HÀNG 2 SẢN PHẨM TRÊN MOBILE */
  .pvi-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 35px !important;
  }

  .pvi-product-card {
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }

  .pvi-product-img {
    aspect-ratio: 16 / 10 !important;
  }

  .pvi-product-info {
    padding: 10px 8px 12px !important;
  }

  .pvi-product-title {
    font-size: 17px !important;
    line-height: 1.35 !important;
    margin: 0 0 10px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 46px !important;
  }

  .pvi-btn-readmore {
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
  }

  /* Khối tiêu đề section */
  .pvi-sec-title {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }

  /* 1. Hero Slider: Không hiện 2 nút < > trên mobile */
  .pvi-hero-slider .pvi-slider-nav,
  .pvi-slider-nav.pvi-prev,
  .pvi-slider-nav.pvi-next {
    display: none !important;
  }

  /* 2. Nút To-Top: Ẩn trên giao diện mobile */
  #ast-scroll-top,
  .ast-scroll-top-icon {
    display: none !important;
  }

  /* 3. ĐÁNH GIÁ CỦA KHÁCH HÀNG: Mobile Slider */
  .pvi-testimonials-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 25px;
    cursor: grab;
  }
  .pvi-testimonials-wrapper.is-dragging {
    cursor: grabbing;
  }
  .pvi-testimonials-grid.pvi-testimonials-track {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.4s ease-in-out;
  }
  .pvi-testi-card.pvi-testi-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .pvi-testi-dots {
    position: static !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 15px !important;
    margin-bottom: 5px !important;
  }
  .pvi-testi-dots .pvi-dot {
    background: #cbd5e1 !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
  }
  .pvi-testi-dots .pvi-dot.active {
    background: #005baa !important;
    width: 26px !important;
    border-radius: 6px !important;
  }

  /* 4. TIN TỨC CẬP NHẬT: Mobile Slider tự động */
  .pvi-news-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 25px;
    cursor: grab;
  }
  .pvi-news-wrapper.is-dragging {
    cursor: grabbing;
  }
  .pvi-news-grid.pvi-news-track {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.45s ease-in-out;
  }
  .pvi-news-card.pvi-news-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .pvi-news-dots {
    position: static !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 15px !important;
    margin-bottom: 5px !important;
  }
  .pvi-news-dots .pvi-dot {
    background: #cbd5e1 !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
  }
  .pvi-news-dots .pvi-dot.active {
    background: #005baa !important;
    width: 26px !important;
    border-radius: 6px !important;
  }

  /* 5. THÀNH TÍCH ĐẠT ĐƯỢC trên mobile */
  .pvi-achieve-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
  }
  .pvi-achieve-card,
  .pvi-achieve-box {
    padding: 24px 18px !important;
  }
  .pvi-achieve-title {
    font-size: 17px !important;
  }

  /* Các khối khác trên điện thoại */
  .pvi-features-grid,
  .pvi-cats-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}