/* ==========================================================================
   Thiệp Cưới Online - Dâu Tây Studio
   Pixel-faithful LoveWedding.vn Architecture & Visual Design System
   ========================================================================== */

:root {
  --primary-50: #fff1f4;
  --primary-100: #ffe4ea;
  --primary-200: #fecdd8;
  --primary-300: #fda4b8;
  --primary-400: #fb7192;
  --primary-500: #f43f6e;
  --primary-600: #e11d55;
  --primary-700: #be1245;
  --gold-400: #eab308;
  --gold-500: #ca8a04;
  --navy-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --font-sans: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, Cambria, serif;
  --font-script: "Great Vibes", "Dancing Script", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy-900);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ==========================================================================
   Header / Sticky Navbar (Transparent over hero, solid frosted white on scroll)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background-color: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  color: var(--navy-900);
}

.header-inner {
  max-width: 82rem;
  margin: 0 auto;
  height: 4.5rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 0 1.75rem;
  }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f43f6e 0%, #be1245 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(244, 63, 110, 0.35);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-main {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand-main {
    font-size: 0.92rem;
    letter-spacing: 0.02em;
  }
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.site-header.scrolled .brand-sub {
  color: var(--primary-600);
  opacity: 1;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

@media (min-width: 1120px) {
  .main-nav {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.15rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.92);
}

.site-header:not(.scrolled) .nav-link:hover {
  color: #ffffff;
}

.site-header.scrolled .nav-link {
  color: var(--slate-600);
}

.site-header.scrolled .nav-link:hover {
  color: var(--primary-600);
}

/* Mega Dropdown on "Mẫu thiệp Online" */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: -1rem;
  width: 24rem;
  background-color: #ffffff;
  color: var(--navy-900);
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  padding: 1.125rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 60;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin: 0 0 0.5rem;
}

.dropdown-link {
  display: block;
  padding: 0.42rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: background-color 0.15s ease, color 0.15s ease;
  text-align: left;
  width: 100%;
}

.dropdown-link:hover {
  background-color: var(--primary-50);
  color: var(--primary-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-partner {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

@media (min-width: 900px) {
  .btn-partner {
    display: inline-flex;
  }
}

.site-header:not(.scrolled) .btn-partner {
  background-color: #ffffff;
  color: var(--primary-600);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.site-header.scrolled .btn-partner {
  background-color: var(--primary-500);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(244, 63, 110, 0.25);
}

.btn-partner:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.btn-login-text {
  padding: 0.5rem 0.8rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.site-header:not(.scrolled) .btn-login-text {
  color: #ffffff;
}

.site-header:not(.scrolled) .btn-login-text:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.site-header.scrolled .btn-login-text {
  color: var(--slate-700);
}

.site-header.scrolled .btn-login-text:hover {
  background-color: var(--slate-100);
}

.btn-register-nav {
  display: none;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

@media (min-width: 520px) {
  .btn-register-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.site-header:not(.scrolled) .btn-register-nav {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.site-header:not(.scrolled) .btn-register-nav:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.site-header.scrolled .btn-register-nav {
  background-color: var(--primary-500);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(244, 63, 110, 0.28);
}

.site-header.scrolled .btn-register-nav:hover {
  background-color: var(--primary-600);
}

.btn-admin-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  background-color: var(--primary-500);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(244, 63, 110, 0.35);
}

.btn-admin-nav:hover {
  background-color: var(--primary-600);
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
}

@media (min-width: 1120px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-drawer {
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  background-color: #ffffff;
  color: var(--navy-900);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 49;
}

.mobile-drawer a,
.mobile-drawer button {
  padding: 0.65rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  color: var(--slate-700);
}

.mobile-drawer a:hover,
.mobile-drawer button:hover {
  background-color: var(--primary-50);
  color: var(--primary-600);
}

/* ==========================================================================
   Hero Section with 2-Row Sliding Wedding Card Collage & Curved Arch Bottom
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 670px;
  padding: 7.5rem 1.25rem 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #1e1b24;
  color: #ffffff;
}

.hero-collage-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 4.25rem 0 2rem;
  pointer-events: none;
  overflow: hidden;
}

.hero-marquee-row {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.hero-marquee-row.row-1 {
  animation: marqueeLeft 46s linear infinite;
}

.hero-marquee-row.row-2 {
  animation: marqueeRight 52s linear infinite;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.hero-tile {
  position: relative;
  width: 240px;
  height: 300px;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #2b2633;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.hero-tile-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.58) 0%, rgba(15, 23, 42, 0.72) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1.05rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(202, 138, 4, 0.4);
  margin-bottom: 1.25rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ff4d79 0%, #ff7a59 55%, #f6a944 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

.hero-script {
  margin: 0.4rem 0 1.25rem;
  font-family: var(--font-script);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  margin: 0 auto 2rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.25rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.75rem;
  border-radius: 0.875rem;
  background-color: var(--primary-500);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(244, 63, 110, 0.45);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-hero-primary:hover {
  background-color: var(--primary-600);
  transform: translateY(-2px);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.875rem;
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-hero-outline:hover {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-stat-item strong {
  font-weight: 700;
  color: #ffffff;
}

.hero-stat-item svg {
  color: var(--primary-400);
}

.hero-stat-item.stat-gold svg {
  color: #facc15;
}

.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 54px;
  z-index: 6;
  pointer-events: none;
}

/* ==========================================================================
   Common Section Styling
   ========================================================================== */
.section-block {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.015em;
}

.section-subtitle {
  margin: 0;
  font-size: 1.025rem;
  line-height: 1.6;
  color: var(--slate-600);
}

.section-footer-action {
  margin-top: 2.25rem;
  text-align: center;
}

.btn-outline-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.875rem;
  border: 1.5px solid var(--primary-300);
  background-color: #ffffff;
  color: var(--primary-600);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn-outline-rose:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-500);
  transform: translateY(-1px);
}

/* ==========================================================================
   Section 2: Templates Gallery & Filters
   ========================================================================== */
.filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--slate-100);
  color: var(--slate-600);
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background-color: var(--primary-50);
  color: var(--primary-600);
}

.filter-pill.active {
  background-color: var(--primary-500);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(244, 63, 110, 0.3);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .templates-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .templates-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.tpl-card {
  position: relative;
  border-radius: 1.125rem;
  overflow: hidden;
  background-color: var(--primary-50);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.tpl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
}

.tpl-card-media {
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background-color: #fdeef2;
}

.tpl-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease, object-position 8s ease-in-out;
  display: block;
}

.tpl-card:hover .tpl-card-media img {
  transform: scale(1.03);
  object-position: center bottom;
}

.tpl-badges-top {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  z-index: 3;
  pointer-events: none;
}

.badge-featured {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-new {
  background-color: var(--primary-500);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-tier {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.24rem 0.62rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.badge-tier.tier-premium {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #ffffff;
}

.badge-tier.tier-basic {
  background-color: #0ea5e9;
  color: #ffffff;
}

.badge-tier.tier-free {
  background-color: #10b981;
  color: #ffffff;
}

.tpl-card-hover-cta {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.15) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 4;
}

.tpl-card:hover .tpl-card-hover-cta {
  opacity: 1;
}

.tpl-preview-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: #ffffff;
  color: var(--primary-600);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.tpl-card-body {
  padding: 0.85rem 1rem;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tpl-card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpl-card-cat {
  font-size: 0.72rem;
  color: var(--slate-500);
  flex-shrink: 0;
}

/* ==========================================================================
   Section 3: 9 Features Grid
   ========================================================================== */
.features-section {
  background-color: #fafbfc;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.feature-item-card {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 1.125rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  border-color: var(--primary-200);
}

.feature-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background-color: var(--primary-100);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-item-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
}

.feature-item-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--slate-500);
}

/* ==========================================================================
   Section 4: Customer Cards Carousel ("Thiệp từ khách hàng")
   ========================================================================== */
.carousel-wrap {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(82% - 0.5rem);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.25rem 0 0.5rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .carousel-track {
    grid-auto-columns: calc(48% - 0.5rem);
  }
}

@media (min-width: 1024px) {
  .carousel-track {
    grid-auto-columns: calc(25% - 0.94rem);
  }
}

.carousel-nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: #ffffff;
  color: var(--navy-900);
  border: 1px solid var(--slate-200);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.15s ease, color 0.15s ease;
}

@media (min-width: 768px) {
  .carousel-nav-btn {
    display: inline-flex;
  }
}

.carousel-nav-btn:hover {
  color: var(--primary-600);
  transform: translateY(-50%) scale(1.06);
}

.carousel-nav-btn.prev { left: -1rem; }
.carousel-nav-btn.next { right: -1rem; }

.customer-card {
  position: relative;
  border-radius: 1.125rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  background-color: var(--slate-100);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.customer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.customer-card:hover img {
  transform: scale(1.05);
}

.customer-card-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 3rem 1rem 1rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.45) 60%, transparent 100%);
  color: #ffffff;
}

.customer-card-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

.customer-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.customer-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.1rem 0.25rem;
  border-radius: 0.35rem;
}

.like-btn:hover,
.like-btn.liked {
  color: #ff6b8b;
}

/* ==========================================================================
   Section 5: Why Choose Us ("Tại sao chọn Dâu Tây Studio?")
   ========================================================================== */
.why-section {
  background: linear-gradient(135deg, #fff1f5 0%, #fffaf7 52%, #fefce8 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.why-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(244, 63, 110, 0.1);
}

.why-icon-square {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fb7192 0%, #e11d55 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(244, 63, 110, 0.3);
}

.why-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-900);
}

.why-card-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--slate-500);
}

/* ==========================================================================
   Section 6 & 7: Wedding Accessories & Printed Handcards
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.product-card {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.125rem;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.09);
}

.product-card-img {
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  background-color: var(--slate-100);
}

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

.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 1rem 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.product-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy-900);
}

.product-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--primary-200);
  background: linear-gradient(90deg, #fff1f4, #fff7ed);
  color: var(--primary-600);
  font-size: 0.82rem;
  font-weight: 600;
  width: fit-content;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.product-cta-pill:hover {
  border-color: var(--primary-500);
  background: var(--primary-500);
  color: #ffffff;
}

/* ==========================================================================
   Section 8: Pricing Section ("Bảng giá dịch vụ")
   ========================================================================== */
.pricing-section {
  background-color: #fafbfc;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pricing-card {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card.highlight {
  border: 2px solid var(--primary-500);
  box-shadow: 0 20px 40px rgba(244, 63, 110, 0.14);
  transform: translateY(-4px);
}

.pricing-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  background-color: var(--primary-100);
  color: var(--primary-600);
  margin-bottom: 0.85rem;
}

.pricing-card.highlight .pricing-badge {
  background-color: var(--primary-500);
  color: #ffffff;
}

.pricing-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0.5rem 0 1.25rem;
}

.pricing-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.pricing-features svg {
  color: var(--primary-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-pricing {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1.5px solid var(--primary-300);
  color: var(--primary-600);
  transition: all 0.15s ease;
}

.btn-pricing:hover,
.pricing-card.highlight .btn-pricing {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
  color: #ffffff;
}

/* ==========================================================================
   Section 9: FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.faq-card {
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-card.open {
  border-color: var(--primary-300);
  box-shadow: 0 8px 22px rgba(244, 63, 110, 0.08);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-900);
}

.faq-btn svg {
  color: var(--slate-500);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-card.open .faq-btn svg {
  transform: rotate(180deg);
  color: var(--primary-500);
}

.faq-body {
  display: none;
  padding: 0 1.35rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--slate-600);
}

.faq-card.open .faq-body {
  display: block;
}

/* ==========================================================================
   Section 10: Crimson Gradient CTA Banner
   ========================================================================== */
.cta-banner-section {
  padding: 2rem 0 4.5rem;
}

.cta-banner {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  padding: 4rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #f43f6e 0%, #c81448 100%);
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(200, 20, 72, 0.25);
}

.cta-circle {
  position: absolute;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.cta-circle-1 {
  width: 240px;
  height: 240px;
  top: -80px;
  right: -60px;
}

.cta-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -90px;
  left: -50px;
}

.cta-banner-title {
  position: relative;
  z-index: 2;
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 700;
}

.cta-banner-sub {
  position: relative;
  z-index: 2;
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-cta-white {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 0.875rem;
  background-color: #ffffff;
  color: var(--primary-600);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #fafbfc;
  border-top: 1px solid var(--slate-200);
  padding: 4rem 0 2rem;
  color: var(--slate-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-desc {
  margin: 1rem 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 19rem;
}

.footer-socials {
  display: flex;
  gap: 0.65rem;
}

.social-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  transition: transform 0.15s ease;
}

.social-circle:hover {
  transform: translateY(-2px);
}

.social-fb { background-color: #2563eb; }
.social-zalo { background-color: #1d4ed8; }
.social-tt { background-color: #0f172a; }

.footer-col-title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a,
.footer-links button {
  font-size: 0.875rem;
  color: var(--slate-500);
  transition: color 0.15s ease;
  text-align: left;
  padding: 0;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--primary-600);
}

.footer-bottom {
  border-top: 1px solid var(--slate-200);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--slate-500);
}

/* ==========================================================================
   Floating Support Headset Button & Quick Menu
   ========================================================================== */
.support-fab-wrap {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 45;
}

.support-fab {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f43f6e, #e11d55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(244, 63, 110, 0.42);
  transition: transform 0.2s ease;
}

.support-fab:hover {
  transform: scale(1.07);
}

.support-popover {
  position: absolute;
  bottom: 4.25rem;
  right: 0;
  width: 17rem;
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support-popover-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.support-popover-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  background-color: var(--slate-50);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-900);
  transition: background-color 0.15s ease;
}

.support-popover-item:hover {
  background-color: var(--primary-50);
  color: var(--primary-600);
}

/* ==========================================================================
   Modals (Template Preview, Lead/Consultation, Auth/Admin Login, Admin Panel)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background-color: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.modal-card {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #ffffff;
  color: var(--navy-900);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  background-color: var(--slate-100);
}

.modal-close:hover {
  color: var(--navy-900);
  background-color: var(--slate-200);
}

.preview-modal-card {
  max-width: 56rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .preview-modal-card {
    grid-template-columns: 310px 1fr;
  }
}

.preview-phone-frame {
  border-radius: 1rem;
  overflow-y: auto;
  max-height: 74vh;
  aspect-ratio: 9 / 16;
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
  scrollbar-width: none;
}

.preview-phone-frame::-webkit-scrollbar {
  display: none;
}

.preview-phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.form-field {
  margin-bottom: 0.9rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--slate-200);
  background-color: var(--slate-50);
  color: var(--navy-900);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-input:focus {
  border-color: var(--primary-500);
  background-color: #ffffff;
}

.btn-primary-full {
  width: 100%;
  padding: 0.78rem 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--primary-500);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(244, 63, 110, 0.3);
  transition: background-color 0.15s ease;
}

.btn-primary-full:hover {
  background-color: var(--primary-600);
}

/* ==========================================================================
   Independent Admin Dashboard Modal
   ========================================================================== */
.admin-modal-card {
  max-width: 64rem;
  height: 90vh;
  max-height: 800px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  background: linear-gradient(90deg, #fff1f4 0%, #ffffff 60%);
}

.admin-tabs-bar {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 0;
  border-bottom: 1px solid var(--slate-200);
  overflow-x: auto;
  flex-shrink: 0;
  background-color: #ffffff;
}

.admin-tab-btn {
  padding: 0.65rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-500);
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--navy-900);
}

.admin-tab-btn.active {
  color: var(--primary-600);
  border-bottom-color: var(--primary-500);
}

.admin-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  background-color: #fafbfc;
}

.admin-pane {
  display: none;
}

.admin-pane.active {
  display: block;
}

.admin-box {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 0.875rem;
  padding: 1.125rem;
  margin-bottom: 1rem;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .admin-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-row-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.7rem 0.85rem;
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  margin-bottom: 0.55rem;
}

.admin-thumb {
  width: 48px;
  height: 60px;
  border-radius: 0.45rem;
  object-fit: cover;
  object-position: top;
  background-color: var(--slate-100);
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-sm-primary {
  background-color: var(--primary-500);
  color: #ffffff;
}

.btn-sm-outline {
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  background-color: #ffffff;
}

.btn-sm-outline:hover {
  background-color: var(--slate-100);
}

.btn-sm-danger {
  border: 1px solid #fecaca;
  color: #dc2626;
  background-color: #fef2f2;
}

.btn-sm-danger:hover {
  background-color: #fee2e2;
}

/* Toast */
.toast-stack {
  position: fixed;
  top: 5.25rem;
  right: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg {
  pointer-events: auto;
  background-color: var(--navy-900);
  color: #ffffff;
  padding: 0.75rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
