/* =====================================================
   BAO BI VIEN NGUYEN — Main Stylesheet
   Brand: Purple gradient #9B7ED8 -> #5B3F9E, Navy #1B1464
   ===================================================== */

/* ALL @import MUST be at top of file (CSS spec requirement) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Components */
@import url('components/_header.css');
@import url('components/_footer.css');
@import url('components/_hero.css');
@import url('components/_product-card.css');
@import url('components/_product-gallery.css');
@import url('components/_search.css');
@import url('components/_language-switcher.css');
@import url('components/_breadcrumb.css');
@import url('components/_pagination.css');
@import url('components/_contact-form.css');
@import url('components/_timeline.css');

/* Pages */
@import url('pages/_home.css');
@import url('pages/_about.css');
@import url('pages/_products.css');
@import url('pages/_single-product.css');
@import url('pages/_contact.css');
@import url('pages/_404.css');

:root {
  --purple-light: #9B7ED8;
  --purple-dark:  #5B3F9E;
  --purple-deep:  #4A328A;
  --gradient-purple: linear-gradient(135deg, #9B7ED8 0%, #5B3F9E 100%);
  --gradient-purple-soft: linear-gradient(135deg, #B49DE3 0%, #6B4FA8 100%);
  --gradient-hero: linear-gradient(135deg, rgba(155,126,216,0.85) 0%, rgba(91,63,158,0.85) 50%, rgba(27,20,100,0.92) 100%);

  --navy:        #1B1464;
  --navy-soft:   #2A2280;
  --navy-deep:   #120D47;

  --ink:         #0F1235;
  --text:        #2B2E55;
  --text-muted:  #6B6E8C;
  --text-light:  #9094B3;

  --bg-white:    #FFFFFF;
  --bg-soft:     #F8F9FA;
  --bg-alt:      #F2F0FB;
  --border:      #E6E6F0;
  --border-soft: #EFEEF6;

  --shadow-sm:   0 1px 2px rgba(27,20,100,.04), 0 2px 6px rgba(27,20,100,.04);
  --shadow-md:   0 4px 12px rgba(27,20,100,.06), 0 12px 32px rgba(27,20,100,.06);
  --shadow-lg:   0 12px 32px rgba(27,20,100,.10), 0 24px 64px rgba(27,20,100,.08);
  --shadow-purple: 0 16px 40px rgba(91,63,158,.28);

  --radius-sm: 6px;
  --radius:    8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --container: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { list-style: none; padding: 0; margin: 0; }

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

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-dark);
  margin-bottom: 14px;
}

.section-title {
  font-size: 44px;
  text-align: center;
  margin: 0 auto 16px;
  max-width: 720px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.65;
}

.title-underline {
  width: 64px;
  height: 4px;
  background: var(--gradient-purple);
  border-radius: 2px;
  margin: 16px auto 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91,63,158,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(91,63,158,.36); }

.btn-white {
  background: #fff;
  color: var(--navy);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--purple-dark);
  border-color: var(--purple-light);
}
.btn-outline:hover { background: var(--purple-dark); color: #fff; border-color: var(--purple-dark); }

.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  padding: 22px 0 6px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--purple-dark); }
.breadcrumb .sep { color: var(--text-light); font-size: 11px; }
.breadcrumb .current { color: var(--navy); font-weight: 500; }

/* ---------- Small hero (sub-pages) ---------- */
.sub-hero {
  position: relative;
  padding: 96px 0 88px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #5B3F9E 0%, #1B1464 70%);
}
.sub-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 300px at 80% 10%, rgba(155,126,216,.45), transparent 70%),
    radial-gradient(500px 280px at 0% 100%, rgba(155,126,216,.35), transparent 70%);
  pointer-events: none;
}
.sub-hero > .container { position: relative; z-index: 1; }
.sub-hero h1 {
  color: #fff;
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 12px;
}
.sub-hero p {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  max-width: 620px;
}
.sub-hero .breadcrumb {
  color: rgba(255,255,255,.7);
  padding-top: 0;
  margin-bottom: 24px;
}
.sub-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.sub-hero .breadcrumb a:hover { color: #fff; }
.sub-hero .breadcrumb .current { color: #fff; }
.sub-hero .breadcrumb .sep { color: rgba(255,255,255,.45); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: all .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 4px rgba(155,126,216,.15);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Utility ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Site wrapper */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main {
  flex: 1;
}

/* Floating Zalo button + popup — visible on every page */
.zalo-floating-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
}
.zalo-floating-global {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 14px 16px;
  background: #0068FF;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 104, 255, 0.45), 0 4px 10px rgba(0,0,0,0.12);
  animation: zalo-pulse 2.4s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.zalo-floating-global:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 104, 255, 0.55);
}
.zalo-floating-global svg { width: 24px; height: 24px; flex: 0 0 24px; }
.zalo-floating-global .zfg-label { white-space: nowrap; }
@keyframes zalo-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(0,104,255,.45), 0 0 0 0 rgba(0,104,255,.55); }
  50%      { box-shadow: 0 10px 28px rgba(0,104,255,.45), 0 0 0 14px rgba(0,104,255,0); }
}

/* Zalo popup (3 numbers) */
.zalo-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.08);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all .25s ease;
  pointer-events: none;
}
.zalo-popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.zalo-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 8px;
  color: #1B1464;
  font-size: 13px;
}
.zalo-popup-header svg {
  width: 20px;
  height: 20px;
  color: #0068FF;
}
.zalo-popup-header strong {
  font-weight: 700;
}
.zalo-popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #1B1464;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s;
}
.zalo-popup-item:hover {
  background: #F0F4FF;
}
.zalo-popup-item svg {
  width: 22px;
  height: 22px;
  color: #0068FF;
  flex-shrink: 0;
}
.zalo-popup-item span {
  letter-spacing: 0.02em;
}

/* Mobile: Zalo shrink to icon only */
@media (max-width: 768px) {
  .zalo-floating-wrap { right: 14px !important; bottom: 14px !important; }
  .zalo-floating-global { padding: 12px !important; }
  .zalo-floating-global .zfg-label { display: none !important; }
  .zalo-popup { width: 240px; right: 0; }
}

/* ===================== RESPONSIVE ===================== */

/* Mobile menu chrome (hidden on desktop) */
.mobile-menu-btn {
  display: none;
  background: transparent; border: 0; padding: 8px;
  color: var(--navy); cursor: pointer;
  margin-right: 4px;
}
.mobile-menu-btn svg { width: 26px; height: 26px; }
.mobile-nav, .mobile-nav-backdrop { display: none; }

/* TABLET — under 1024px */
@media (max-width: 1024px) {
  .container { padding-left: 24px !important; padding-right: 24px !important; }
  .nav a { padding: 8px 10px !important; font-size: 14px !important; }
  .nav a.active::after { left: 10px !important; right: 10px !important; bottom: 2px !important; }
  .phone-pill { display: none !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-title, .section-title, .section-title-left { font-size: clamp(28px, 5vw, 44px) !important; }
  .hero-content { max-width: 100% !important; }
  .hero-stats { flex-wrap: wrap !important; gap: 18px 28px !important; }
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 36px !important; }
  .mv-grid { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 32px 20px !important; }
  .stats-grid .num { font-size: 48px !important; }
  .section { padding: 64px 0 !important; }
}

/* MOBILE — under 768px */
@media (max-width: 768px) {
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none !important; }
  .lang-toggle { display: none !important; }
  .icon-btn { padding: 6px !important; }
  .site-header-inner { padding: 12px 16px !important; gap: 8px !important; }
  .brand img { height: 36px !important; width: auto !important; }
  .brand-text strong { font-size: 14px !important; }
  .brand-text span { font-size: 10px !important; }

  /* Mobile nav drawer */
  body.mobile-nav-open { overflow: hidden; }
  .mobile-nav-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(27,20,100,.5);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9990;
  }
  body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1; pointer-events: auto;
  }
  .mobile-nav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: -280px; bottom: 0; width: 270px;
    background: #fff; padding: 80px 24px 32px;
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
    transition: left .28s ease;
    z-index: 9991;
    gap: 4px;
  }
  body.mobile-nav-open .mobile-nav { left: 0; }
  .mobile-nav a {
    display: block; padding: 14px 4px;
    color: var(--navy); text-decoration: none;
    font-weight: 600; font-size: 16px;
    border-bottom: 1px solid #f0f0f5;
  }
  .mobile-nav a.active { color: #5B3F9E; }
  .mobile-nav-phone {
    margin-top: 20px;
    background: linear-gradient(135deg, #9B7ED8, #5B3F9E);
    color: #fff !important;
    border-radius: 8px;
    text-align: center;
    border: 0 !important;
  }
  .mobile-nav::before {
    content: '';
    position: absolute; top: 18px; right: 18px;
    width: 32px; height: 32px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1464' stroke-width='2.2' stroke-linecap='round'><line x1='5' y1='5' x2='19' y2='19'/><line x1='19' y1='5' x2='5' y2='19'/></svg>") center/20px no-repeat;
    cursor: pointer;
    pointer-events: none;
  }

  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr !important; gap: 16px !important; }
  .section { padding: 48px 0 !important; }
  .section-head, .section-head-row { text-align: center !important; }
  .section-head-row { flex-direction: column !important; gap: 16px !important; align-items: center !important; }

  .hero { min-height: auto !important; padding: 80px 0 60px !important; }
  .hero-title { font-size: clamp(28px, 8vw, 40px) !important; line-height: 1.15 !important; }
  .hero-sub { font-size: 16px !important; }

  .cta-banner .cta-actions { flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; gap: 10px !important; align-items: center !important; }
  .cta-banner .cta-actions .btn { width: auto !important; flex: 0 1 auto !important; padding: 12px 18px !important; font-size: 14px !important; }
  .cta-banner h2 { font-size: 26px !important; }

  .hero-cta {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-start !important;
  }
  .hero-cta .btn {
    width: auto !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
  }

  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; text-align: left; }
  .footer-bottom, .copyright { flex-direction: column !important; gap: 8px !important; text-align: center; }

  .values-grid { grid-template-columns: 1fr !important; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }

  .gallery-thumbs { grid-template-columns: repeat(4, 1fr) !important; }
  .spec-table th, .spec-table td { padding: 10px 8px !important; font-size: 13px !important; }

  /* zalo floating: shrink to icon-only on mobile */
  .zalo-floating-global { padding: 12px !important; right: 14px !important; bottom: 14px !important; }
  .zalo-floating-global .zfg-label { display: none !important; }

  /* sub-hero smaller */
  .sub-hero { padding: 80px 0 50px !important; }
  .sub-hero h1 { font-size: clamp(28px, 7vw, 40px) !important; }

  /* breadcrumb wrap */
  .breadcrumb { font-size: 12px !important; flex-wrap: wrap !important; }

  /* contact info grid */
  .contact-info-grid { grid-template-columns: 1fr !important; }
  .map-block iframe { height: 320px !important; }

  /* Hero slider on mobile */
  .hero-slide { opacity: 0 !important; }
  .hero-slide.is-active { opacity: 0.55 !important; }
  .hero-slider-dots { right: 16px !important; bottom: 16px !important; }

  /* Hero stats: compact horizontal row on mobile */
  .hero-stat-divider { display: none !important; }
  .hero-product-photo { width: 100% !important; }
  .hero-stats {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-around !important;
    gap: 12px 8px !important;
    padding: 14px 12px !important;
    margin-top: 28px !important;
  }
  .hero-stats .stat,
  .hero-stats > div {
    flex: 1 1 30% !important;
    min-width: 80px !important;
    text-align: center !important;
  }
  .hero-stats .stat strong,
  .hero-stats .num,
  .hero-stats > div > strong:first-child,
  .hero-stats > div > div:first-child {
    font-size: 22px !important;
    line-height: 1 !important;
  }
  .hero-stats .stat span,
  .hero-stats .lbl,
  .hero-stats > div > span {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
  .hero-stats .divider { display: none !important; }
}

/* Smaller phones */
@media (max-width: 420px) {
  .hero-title { font-size: 28px !important; }
  .section-title, .section-title-left { font-size: 24px !important; }
  .brand-text { display: none !important; }
  .about-stats-grid .stat-num { font-size: 28px !important; }
}

/* Mobile product grids: 2 per row */
@media (max-width: 768px) {
  .related-grid,
  .product-grid,
  .featured-grid,
  .grid-3.product-grid,
  .grid-4.product-grid,
  #related-grid,
  .pl-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .related-grid .product-card,
  .product-grid .product-card,
  #related-grid .product-card,
  .pl-grid .product-card {
    min-width: 0 !important;
  }
  .product-card .body { padding: 12px !important; }
  .product-card h3 { font-size: 14px !important; line-height: 1.3 !important; }
  .product-card .badge-cat { font-size: 10px !important; padding: 3px 8px !important; }
  .product-card .meta { font-size: 11px !important; }
  .product-card .more { font-size: 12px !important; }
}

@media (max-width: 380px) {
  .related-grid, .product-grid, #related-grid, .pl-grid {
    gap: 10px !important;
  }
  .product-card .body { padding: 10px !important; }
}

/* Product list layout — sidebar collapse <=1199px */
@media (max-width: 1199px) {
  .pl-layout, .pl-main, .pl-sidebar, .pl-grid, .product-list-page .container {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .pl-layout { display: block !important; }
  .pl-sidebar {
    position: static !important;
    margin-bottom: 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(27,20,100,.06);
    padding: 16px !important;
  }
  .pl-sidebar > * { display: none; }
  .pl-sidebar.is-open > * { display: block; }
  .pl-sidebar > .pl-filter-toggle { display: flex !important; }
  .pl-sidebar.is-open .pl-filter-toggle svg { transform: rotate(180deg); }
  .pl-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .pl-grid .product-card {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .pl-main { width: 100% !important; }
  .pl-toolbar { flex-wrap: wrap !important; gap: 12px !important; }
  .pl-toolbar .pl-results { font-size: 13px !important; }
  .pl-active-filters { flex-wrap: wrap !important; gap: 6px !important; }
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .pagination { flex-wrap: wrap !important; justify-content: center !important; gap: 6px !important; }
  .pagination a, .pagination span { padding: 8px 12px !important; font-size: 13px !important; }
}

/* 540px breakpoints */
@media (max-width: 540px) {
  .pl-grid { grid-template-columns: 1fr !important; }
  .pl-toolbar { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
  .pl-toolbar .pl-sort { width: 100% !important; }
  .pl-toolbar h1 { font-size: 22px !important; }
  .sub-hero h1 { word-break: break-word !important; }
  .stats-grid { gap: 24px 14px !important; }
  .stats-grid .num { font-size: 38px !important; }
  .stats-grid .lbl { font-size: 12.5px !important; }
  .stats-banner { padding: 60px 0 !important; }
  .products-main h1 { font-size: 22px !important; }
  .filter-chips { gap: 6px !important; }
  .related-grid { grid-template-columns: 1fr !important; }
}

/* pl-filter-toggle hidden by default on desktop */
.pl-filter-toggle { display: none; }

/* Hero stats: lighter, more compact on desktop too */
.hero-stats {
  padding: 16px 22px !important;
  gap: 24px !important;
  margin-top: 36px !important;
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(10px);
  border-radius: 12px !important;
  max-width: 640px !important;
}
.hero-stats .stat strong,
.hero-stats .num,
.hero-stats > div > strong:first-child,
.hero-stats > div > div:first-child {
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
.hero-stats .stat span,
.hero-stats .lbl,
.hero-stats > div > span,
.hero-stats > div > div:last-child {
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  opacity: 0.85 !important;
}
.hero-stats .divider {
  width: 1px !important;
  height: 28px !important;
  background: rgba(255,255,255,.25) !important;
}

/* Product detail page: stack content sections on tablet/mobile */
@media (max-width: 1024px) {
  .pd-layout, .detail-content { grid-template-columns: 1fr !important; display: block !important; }
  .pd-layout > *, .detail-content > * { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  .detail-content > aside { margin-top: 28px !important; }
  .pd-tabs { flex-wrap: wrap !important; gap: 4px !important; }
  .pd-tabs button, .pd-tabs a { font-size: 14px !important; padding: 10px 12px !important; }
  .pd-gallery .gallery-main { aspect-ratio: 1/1 !important; }
}
@media (max-width: 540px) {
  .pd-tabs { overflow-x: auto !important; flex-wrap: nowrap !important; }
  .pd-tabs button, .pd-tabs a { flex: 0 0 auto !important; white-space: nowrap !important; }
}

/* Fix horizontal overflow */
html, body { overflow-x: hidden !important; }

/* Title accent responsive */
.hero-title { overflow: visible !important; padding: 0 0 0.12em !important; }
.title-accent {
  display: inline-block !important;
  padding: 0.05em 0.12em 0.15em 0.05em !important;
  margin-right: 0.05em !important;
  overflow: visible !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  line-height: 1.15 !important;
}
@media (max-width: 1024px) {
  .hero-title .title-accent {
    background: none !important;
    -webkit-text-fill-color: #C7B0F0 !important;
    color: #C7B0F0 !important;
    padding: 0 0.08em 0.18em 0.05em !important;
    line-height: 1.2 !important;
  }
}

/* @imports moved to top of file */
