/* ==========================================================================
   Nước Mắm Phan Thiết Hương Trung - Modern Responsive Stylesheet
   ========================================================================== */
:root {
  --bg-cream: #fbf6ec;
  --bg-ivory: #fffdf8;
  --bg-sand: #f4ead7;
  --border-warm: #e5d5ba;
  --text-dark: #3f2817;
  --text-muted: #6c5340;
  --accent: #d85f19;
  --accent-hover: #bc4b0c;
  --gold: #c98a2c;
  --shadow-sm: 0 4px 14px rgba(63, 40, 23, 0.06);
  --shadow-md: 0 12px 32px rgba(63, 40, 23, 0.11);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif', Georgia, serif;
  --font-script: 'Charm', cursive;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

section[id],
footer[id] {
  scroll-margin-top: 82px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-cream);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 246, 236, 0.97);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23c98a2c' stroke-opacity='0.15' stroke-width='1'%3E%3Cpath d='M0 24a24 24 0 0 1 48 0M6 24a18 18 0 0 1 36 0M12 24a12 12 0 0 1 24 0'/%3E%3Cpath d='M-24 12a24 24 0 0 1 48 0M-18 12a18 18 0 0 1 36 0M-12 12a12 12 0 0 1 24 0'/%3E%3Cpath d='M24 12a24 24 0 0 1 48 0M30 12a18 18 0 0 1 36 0M36 12a12 12 0 0 1 24 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 48px 24px;
  border-bottom: 1px solid rgba(229, 213, 186, 0.85);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(63, 40, 23, 0.11);
  border-bottom-color: rgba(215, 183, 140, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding-block: 6px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.brand-logo img {
  height: 66px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(63, 40, 23, 0.14));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #e56a20 0%, #c8500f 100%);
  color: #fff;
  padding: 11px 22px;
  font-size: 0.94rem;
  box-shadow: 0 6px 16px rgba(216, 95, 25, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d85f19 0%, #b04309 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(216, 95, 25, 0.35);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text-dark);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 54px 0 64px;
  background-color: #dbeeff;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(95deg, rgba(251, 246, 236, 0.92) 0%, rgba(251, 246, 236, 0.78) 45%, rgba(251, 246, 236, 0.22) 100%);
  pointer-events: none;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
}

.hero-ornament {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.16;
  margin: 0 0 12px;
  color: #462a14;
  font-weight: 800;
}

.hero-title .brand-accent {
  color: var(--accent);
  display: block;
}

.hero-tagline {
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  color: #3a2618;
  margin: 0 0 22px;
  font-weight: 600;
}

.hero-desc {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 0 0 28px;
  max-width: 510px;
  color: #453121;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(45, 28, 14, 0.22);
  border: 3px solid rgba(255, 253, 248, 0.85);
}

/* ==========================================================================
   Trust Badges Bar
   ========================================================================== */
.trust-bar {
  background: linear-gradient(180deg, #f8efe0 0%, #f3e6cf 100%);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 12px;
  position: relative;
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-warm);
}

.trust-icon {
  color: #a96728;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ocop-badge {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.ocop-badge .o1 { color: #b92b27; }
.ocop-badge .c1 { color: #2b7a3d; }
.ocop-badge .o2 { color: #d87a19; }
.ocop-badge .p1 { color: #1f5f99; }

.ocop-stars {
  color: #e6a817;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-top: 2px;
}

.trust-label {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-dark);
}

/* ==========================================================================
   Products Section (Accordion)
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
  text-align: center;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  margin: 0;
  color: #4b2d16;
}

.flourish {
  width: 64px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.product-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card {
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card.is-open {
  border-color: #d7b78c;
  box-shadow: var(--shadow-md);
}

.product-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text-dark);
}

.product-trigger:hover {
  background: rgba(244, 234, 215, 0.38);
}

.product-trigger-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.product-thumb-sm {
  width: 50px;
  height: 50px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-warm);
  flex-shrink: 0;
  background: var(--bg-sand);
}

.product-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #4b2d16;
}

.product-subtitle {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 1px solid var(--border-warm);
  padding-left: 14px;
}

.product-trigger-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.price-pill {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  background: #fdf0e4;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #f2cfb2;
}

.chevron {
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.product-card.is-open .chevron {
  transform: rotate(180deg);
}

.product-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  border-top: 1px solid transparent;
  transition: grid-template-rows 0.36s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.28s ease,
              border-color 0.28s ease;
}

.product-card.is-open .product-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  border-top-color: rgba(229, 213, 186, 0.6);
}

.product-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.product-body-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 20px 24px 26px;
}

.product-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  background: var(--bg-sand);
}

.product-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #d92d20;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(217, 45, 32, 0.35);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.price-old {
  font-size: 1rem;
  color: #937d6b;
  text-decoration: line-through;
}

.product-rich-desc {
  color: var(--text-dark);
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.product-rich-desc p {
  margin: 0 0 10px;
}

.product-rich-desc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.product-rich-desc ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
}

.product-rich-desc ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.capacities-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cap-chip {
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.86rem;
}

/* ==========================================================================
   Story Section ("Nước mắm biết kể chuyện")
   ========================================================================== */
.story-section {
  position: relative;
  padding: 72px 0 180px;
  background-color: #eaf3f9;
  background-image:
    linear-gradient(180deg, #fbf6ec 0%, rgba(251, 246, 236, 0.85) 28%, rgba(251, 246, 236, 0.15) 70%, rgba(251, 246, 236, 0) 100%),
    url('../images/story-bg.jpg');
  background-size: cover;
  background-position: center bottom;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.story-title {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.12;
  color: var(--accent);
  margin: 0;
  text-align: center;
}

.story-text {
  border-left: 3px solid var(--gold);
  font-size: 1.02rem;
  color: #3f2817;
  background: rgba(251, 246, 236, 0.78);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ==========================================================================
   Certifications Section
   ========================================================================== */
.cert-section {
  background: linear-gradient(180deg, #f6ecda 0%, #fbf6ec 100%);
  padding: 58px 0;
  border-top: 1px solid var(--border-warm);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cert-card {
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cert-badge-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fdf0e4;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  border: 1px solid #f0cba8;
}

.cert-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-warm);
  background: var(--bg-sand);
}

.cert-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-rich-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cert-rich-desc p {
  margin: 0 0 6px;
}

.cert-card h3 {
  font-family: var(--font-serif);
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.cert-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #2f1b0d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23ffd396' stroke-opacity='0.09' stroke-width='1'%3E%3Cpath d='M0 24a24 24 0 0 1 48 0M6 24a18 18 0 0 1 36 0M12 24a12 12 0 0 1 24 0'/%3E%3Cpath d='M-24 12a24 24 0 0 1 48 0M-18 12a18 18 0 0 1 36 0M-12 12a12 12 0 0 1 24 0'/%3E%3Cpath d='M24 12a24 24 0 0 1 48 0M30 12a18 18 0 0 1 36 0M36 12a12 12 0 0 1 24 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 28px;
  color: #f5e9d6;
  padding: 48px 0 28px;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  align-items: start;
}

.footer-logo-wrap {
  margin-bottom: 16px;
}

.footer-rich-content {
  font-size: 0.95rem;
  color: #e6d5bd;
  line-height: 1.75;
}

.footer-rich-content p {
  margin: 0 0 8px;
}

.footer-rich-content a {
  color: #ffb066;
  text-decoration: underline;
}

.footer-nav-box h4 {
  font-family: var(--font-serif);
  color: #ffd396;
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #e6d5bd;
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: #ffb066;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #c7b299;
}

/* ==========================================================================
   Order Modal Popup (Shopee / Lazada / TikTok)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(28, 16, 7, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-warm);
  background: #fff;
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-family: var(--font-serif);
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #4b2d16;
  padding-right: 30px;
}

.modal-subtitle {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.marketplace-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-warm);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.market-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(63, 40, 23, 0.08);
}

.market-btn--shopee {
  border-color: #fbc7bc;
  color: #c93717;
}
.market-btn--shopee:hover {
  background: #fff5f2;
  border-color: #ee4d2d;
}

.market-btn--lazada {
  border-color: #cdd2ff;
  color: #161d8f;
}
.market-btn--lazada:hover {
  background: #f5f6ff;
  border-color: #3f48cc;
}

.market-btn--tiktok {
  border-color: #d6d8de;
  color: #161823;
}
.market-btn--tiktok:hover {
  background: #f6f7f9;
  border-color: #161823;
}

.market-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-empty {
  padding: 16px;
  background: var(--bg-sand);
  border-radius: 12px;
  text-align: center;
  font-size: 0.93rem;
}

/* ==========================================================================
   Floating Ringing Phone & Zalo Buttons
   ========================================================================== */
.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.float-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease;
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-btn--phone {
  background: linear-gradient(135deg, #25b84c 0%, #168c36 100%);
}

.float-btn--zalo {
  background: linear-gradient(135deg, #008fe5 0%, #0068ff 100%);
}

.float-btn::before,
.float-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  pointer-events: none;
  animation: pulseRing 2.1s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.float-btn--phone::before,
.float-btn--phone::after {
  border-color: #25b84c;
}

.float-btn--zalo::before,
.float-btn--zalo::after {
  border-color: #0068ff;
}

.float-btn::after {
  animation-delay: 0.9s;
}

.float-icon-shake {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconShake 1.3s ease-in-out infinite;
}

.float-tooltip {
  position: absolute;
  right: 70px;
  background: #2f1b0d;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(6px);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes iconShake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  10%, 30% { transform: rotate(-16deg) scale(1.08); }
  20%, 40% { transform: rotate(16deg) scale(1.08); }
  50% { transform: rotate(-10deg) scale(1.04); }
  60% { transform: rotate(10deg) scale(1.04); }
  70% { transform: rotate(0deg) scale(1); }
}

@keyframes pulseRing {
  0% { transform: scale(0.85); opacity: 0.75; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
.story-section,
.cert-section,
#huong-dan,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

.nav-backdrop {
  display: none;
}

/* Small Desktop / Landscape Tablet */
@media (max-width: 1120px) {
  .main-nav {
    gap: 18px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
}

/* Tablet & Mobile Drawer Breakpoint */
@media (max-width: 960px) {
  .site-header {
    z-index: 1055;
  }

  .header-inner {
    position: relative;
    justify-content: center;
    min-height: 68px;
  }

  .header-inner .brand-logo {
    margin-inline: auto;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(28, 16, 7, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(300px, 80vw);
    z-index: 1050;
    background: var(--bg-ivory);
    border-left: 1px solid var(--border-warm);
    flex-direction: column;
    align-items: flex-start;
    padding: 86px 24px 28px;
    gap: 16px;
    overflow-y: auto;
    box-shadow: -12px 0 36px rgba(35, 20, 8, 0.22);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s ease;
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    padding: 8px 4px;
    font-size: 1rem;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1060;
    background: var(--bg-ivory);
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .product-body-grid,
  .story-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 34px 0 42px;
  }

  .hero-visual img {
    max-width: 380px;
  }

  .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(251, 246, 236, 0.9) 0%, rgba(251, 246, 236, 0.72) 100%);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2)::after {
    display: none;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 50px 0;
  }

  .story-section {
    padding: 56px 0 130px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .brand-logo img {
    height: 52px;
  }

  .hero-section {
    padding: 28px 0 36px;
  }

  .hero-desc {
    font-size: 0.94rem;
    margin-bottom: 22px;
  }

  .hero-visual img {
    max-width: 100%;
  }

  .section {
    padding: 40px 0;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 24px;
  }

  .flourish {
    width: 34px;
  }

  .product-subtitle {
    display: none;
  }

  .product-name {
    font-size: 1.06rem;
  }

  .product-trigger {
    padding: 13px 14px;
    min-height: 60px;
  }

  .product-body-grid {
    padding: 16px 14px 20px;
    gap: 18px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .trust-item::after {
    display: none !important;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .story-section {
    padding: 44px 0 105px;
  }

  .story-text {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .site-footer {
    padding: 36px 0 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .floating-contact {
    right: 12px;
    bottom: 14px;
    gap: 12px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
  }

  .float-tooltip {
    display: none;
  }
}

/* Small Mobile */
@media (max-width: 400px) {
  .flourish {
    display: none;
  }

  .btn-lg {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
