/* ===== TOP HEALTHCARE4U - Design System ===== */
:root {
  --primary: #5D0C80;
  --primary-dark: #46095F;
  --primary-light: #8B2FC0;
  --accent: #D2952D;
  --accent-hover: #B87C1F;
  --bg: #FBF8FD;
  --bg-alt: #F4EEF8;
  --card: #ffffff;
  --text: #241430;
  --text-muted: #6B5B78;
  --border: #E3D7EA;
  --white: #ffffff;
  --shadow: 0 2px 16px rgba(93,12,128,0.08);
  --shadow-lg: 0 8px 32px rgba(93,12,128,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-h: 72px;
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ===== Utility ===== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ===== Top Info Bar ===== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info a { color: rgba(255,255,255,0.9); }
.topbar-info a:hover { color: #fff; }
.topbar-emergency {
  font-weight: 700;
  color: var(--accent) !important;
}
.header.has-topbar { top: 37px; }

/* ===== New Home Hero (redesign) ===== */
.hero-home {
  margin-top: calc(var(--header-h) + 37px);
  background: linear-gradient(160deg, #F3ECF8 0%, #ffffff 60%);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-home .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(93,12,128,0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-home h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.hero-home h1 span {
  color: var(--primary);
  position: relative;
}
.hero-home p.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.hero-trust li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
}
.hero-home-visual {
  position: relative;
}
.hero-home-visual .img-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  position: relative;
}
.hero-home-visual .img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
}
.float-card .fc-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.float-card .fc-label { font-size: 0.8rem; color: var(--text-muted); line-height: 1.2; }
.float-card .fc-value { font-weight: 800; color: var(--primary); font-size: 1.05rem; line-height: 1.2; }
.float-card.fc-1 { top: 30px; left: -30px; }
.float-card.fc-2 { bottom: 40px; right: -20px; }
.float-card.fc-3 { bottom: -24px; left: 40px; }

/* ===== Hero Slider ===== */
.hero-slider {
  margin-top: calc(var(--header-h) + 37px);
  position: relative;
  height: min(88vh, 840px);
  min-height: 560px;
  overflow: hidden;
  background: var(--primary-dark);
}
.hero-slider .slides,
.hero-slider .slide { position: absolute; inset: 0; }
.hero-slider .slide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  transition: opacity 0.9s ease, transform 1.2s ease;
  z-index: 1;
}
.hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.hero-slider .slide-bg,
.hero-slider .slide-bg img { position: absolute; inset: 0; }
.hero-slider .slide-bg img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(28,8,38,0.85) 0%,
    rgba(70,9,95,0.55) 45%,
    rgba(0,0,0,0.15) 100%);
}
.slide-content {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.slide-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  background: rgba(210,149,45,0.22);
  border: 1px solid rgba(232,182,74,0.55);
  color: #FFD789;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}
.slide-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 18px;
  max-width: 620px;
}
.slide-content h1 span { color: #FFD789; }
.slide-content p {
  font-size: 1.15rem;
  opacity: 0.92;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 32px;
}
.slide-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.slide-actions .btn-outline {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}
.slide-actions .btn-outline:hover {
  background: #fff;
  color: var(--primary-dark);
}
.slide-trust {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
  font-size: 0.92rem;
  font-weight: 600;
}
.slide-trust li { display: flex; align-items: center; gap: 8px; }
.slide-trust li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.slider-dots button.active {
  width: 34px;
  background: var(--accent);
}

/* ===== Feature mini cards ===== */
.feature-strip {
  background: var(--primary);
  color: #fff;
  padding: 24px 0;
}
.feature-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-strip .mini-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-strip .mf-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.feature-strip .mf-title { font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.feature-strip .mf-sub { font-size: 0.82rem; opacity: 0.8; line-height: 1.3; }

/* ===== Emergency strip ===== */
.emergency-strip {
  background: linear-gradient(120deg, #b33939 0%, #d64545 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.emergency-strip h3 { font-size: 1.4rem; margin-bottom: 6px; }
.emergency-strip p { opacity: 0.92; }
.emergency-strip .btn {
  background: #fff;
  color: #b33939;
  font-weight: 700;
}
.emergency-strip .btn:hover { background: #f3e2e2; }

/* ===== ===== */

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
  max-width: none;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo-text span {
  color: var(--accent);
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 0.95rem;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--bg-alt);
}
.nav .btn {
  margin-left: 8px;
  padding: 8px 20px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  margin-top: var(--header-h);
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(93,12,128,0.9) 0%, rgba(70,9,95,0.78) 60%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 600px;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-content h1 span {
  color: var(--accent);
}
.hero-content p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--white);
  margin-top: -48px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Services Cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}
.service-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.service-card .btn {
  margin-top: 16px;
}

/* ===== About / Feature Rows ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-row.reverse .feature-image { order: -1; }
.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.feature-content h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.feature-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.check-list { margin-top: 16px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text);
}
.check-list li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== Team Cards ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-avatar {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--bg-alt);
}
.team-avatar-placeholder {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.5);
}
.team-info { padding: 20px; }
.team-info h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.team-info .role {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.team-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.testimonial-stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== Form Success / Error ===== */
.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 0.95rem;
}
.form-alert.success {
  background: #e4f7ee;
  color: #1f7a4d;
  border: 1px solid #b6e6cb;
}
.form-alert.error {
  background: #fdeaea;
  color: #b33939;
  border: 1px solid #f3c1c1;
}

/* ===== Testimonials Slider ===== */
.carousel {
  overflow: hidden;
  position: relative;
}
.carousel .testimonials-grid {
  display: flex;
  transition: transform 0.6s ease;
}
.carousel .testimonial-card {
  min-width: 100%;
  margin: 0;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.cta-banner p {
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-accent {
  background: var(--accent);
}

/* ===== Forms ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93,12,128,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== Contact Info ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.contact-item h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2px;
}
.contact-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Map Placeholder ===== */
.map-placeholder {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-top: 48px;
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  margin-top: var(--header-h);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0 48px;
  text-align: center;
  color: var(--white);
}
.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.85;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  background: #2A0A3D;
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.7;
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.footer-links a:hover { opacity: 1; }
.footer-newsletter p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 12px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--accent-hover); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.7;
}
.footer-bottom-links { display: flex; gap: 20px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .topbar { display: none; }
  .header, .header.has-topbar { top: 0; }
  .hero-slider { margin-top: var(--header-h); }
  .hero-home { margin-top: var(--header-h); }
  .shop-banner { margin-top: var(--header-h); }
  /* Mobile: two-row header — logo + cart/account on row 1, all menu links visible on row 2 */
  :root { --header-h: 93px; }
  .header { height: auto; padding-top: 4px; }
  .header .container { flex-wrap: wrap; min-height: 72px; padding-bottom: 0; }
  .nav {
    order: 10;
    flex: 1 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2px;
    padding: 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex-shrink: 0; white-space: nowrap; padding: 10px 12px; font-size: 0.9rem; }
  .nav .btn { margin-left: 0; }
  .header-actions { margin-left: auto; gap: 6px; }
  .nav-cart { width: 44px; padding: 0; }
  .nav-cart .account-label { display: none; }
  .hero-slider { height: 76vh; min-height: 520px; }
  .slide-content h1 { font-size: 2.4rem; }
  .slide-content { padding: 0 70px; }
  .hero-home .container { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .hero-home h1 { font-size: 2.4rem; }
  .hero-home-visual .img-frame img { height: 360px; }
  .float-card.fc-1 { left: -10px; }
  .float-card.fc-2 { right: -10px; }
  .feature-strip .container { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-image { order: 0; }
  .feature-image img { height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-slider { margin-top: var(--header-h); height: 72vh; min-height: 460px; }
  .slide-content { padding: 0 24px; }
  .slide-content h1 { font-size: 1.85rem; }
  .slide-content p { font-size: 1rem; }
  .slider-arrow { width: 42px; height: 42px; font-size: 1.1rem; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .slider-dots { bottom: 18px; }
  .hero-home { margin-top: var(--header-h); padding-top: 40px; }
  .hero-home h1 { font-size: 1.9rem; }
  .hero-home .container { gap: 32px; }
  .float-card.fc-3 { bottom: -18px; left: 16px; }
  .feature-strip .container { grid-template-columns: 1fr; gap: 16px; }
  .emergency-strip { padding: 28px 24px; }
  .hero-content h1 { font-size: 2rem; }
  .hero { min-height: 65vh; }
  .stats-bar { margin-top: -24px; padding: 24px 16px; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-header h1 { font-size: 1.8rem; }
}

/* ================= STOREFRONT ================= */
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-empty {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-empty:hover { border-color: #d64545; color: #d64545; }
.btn.flash { background: #1f8a4c !important; border-color: #1f8a4c !important; }

/* Header icon actions (cart + account) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 1.15rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-cart:hover {
  color: var(--primary);
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: var(--shadow);
}
.nav-cart .account-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  display: none;
  box-shadow: 0 0 0 2px var(--white);
}
.cart-count.show { display: inline-block; }

/* Shop hero */
.shop-banner {
  margin-top: calc(var(--header-h) + 37px);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.shop-banner h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; }
.shop-banner p { opacity: 0.9; max-width: 560px; margin: 0 auto; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard-media { position: relative; background: var(--bg-alt); }
.pcard-media img { width: 100%; height: 220px; object-fit: cover; }
.pcard-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pcard-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.pcard-wish:hover { color: #d64545; }
.pcard-wish.in-wish { color: #d64545; background: #fdeaea; border-color: #f3c1c1; }
.pcard-cat {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(42,10,61,0.8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.pcard-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.pcard-name { font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.pcard-name a:hover { color: var(--primary); }
.pcard-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stars { color: var(--accent); font-size: 0.85rem; letter-spacing: 1px; }
.stars.small { font-size: 0.75rem; }
.pcard-stars { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.pcard-price { margin-bottom: 12px; }
.pcard-price .price { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.pcard-price del { color: var(--text-muted); font-size: 0.9rem; margin-left: 6px; }
.pcard-price .save {
  display: inline-block;
  margin-left: 8px;
  background: #e4f7ee;
  color: #1f7a4d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.pcard-actions { display: flex; gap: 8px; margin-top: auto; }
.pcard-actions .btn { flex: 1; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h2, .empty-state h3 { color: var(--primary); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* Box */
.box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.box h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 20px; }

/* Shop layout */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.shop-sidebar h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 12px; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.filter-check:hover { color: var(--text); }
.filter-check input { accent-color: var(--primary); width: 16px; height: 16px; }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.toolbar-search { position: relative; flex: 1; min-width: 220px; }
.toolbar-search input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}
.toolbar-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(93,12,128,0.12); }
.toolbar-search::before { content: "\1F50D"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: 0.6; }
.toolbar-sort, .toolbar-sort select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
}
.price-range { display: flex; flex-direction: column; gap: 10px; }
.price-range input[type="range"] { accent-color: var(--primary); }
#priceLabel { font-size: 0.9rem; color: var(--primary); font-weight: 600; }
.result-count { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }

/* Product detail */
.pdetail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pdetail-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pdetail-media img { width: 100%; height: 460px; object-fit: cover; }
.pdetail-breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.pdetail-breadcrumb a:hover { color: var(--primary); }
.pdetail-info h1 { font-size: 2rem; color: var(--text); margin-bottom: 10px; }
.pdetail-stars { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--text-muted); font-size: 0.9rem; }
.pdetail-desc { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 18px; }
.pdetail-price .price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.pdetail-price del { color: var(--text-muted); font-size: 1.2rem; margin-left: 8px; }
.pdetail-meta { display: flex; gap: 16px; margin: 18px 0; font-size: 0.9rem; color: var(--text-muted); flex-wrap: wrap; }
.pdetail-meta .in-stock { color: #1f7a4d; font-weight: 700; }
.pdetail-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0 12px; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-stepper button {
  width: 40px;
  height: 46px;
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--primary);
  transition: background var(--transition);
}
.qty-stepper button:hover { background: var(--border); }
.qty-stepper span { min-width: 44px; text-align: center; font-weight: 700; }
.pdetail-assurance { font-size: 0.85rem; color: var(--text-muted); }

/* Tabs */
.pdetail-tabs { margin-top: 48px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tabs-nav { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.tabs-nav .tab { padding: 14px 22px; background: none; cursor: pointer; font-weight: 600; color: var(--text-muted); border-bottom: 3px solid transparent; }
.tabs-nav .tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; padding: 28px; }
.tab-panel.active { display: block; }
.tab-panel p { color: var(--text-muted); line-height: 1.8; }

/* Reviews */
.review-form-card { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 24px; }
.review-form-card h3 { color: var(--primary); margin-bottom: 14px; }
.review-form-card textarea { width: 100%; min-height: 90px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; resize: vertical; }
.review-form-card textarea:focus { border-color: var(--primary); }
.review-rating-picker { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.review-rating-picker select { padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }
.picker-stars { color: var(--accent); font-size: 1.3rem; letter-spacing: 2px; }
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.review-name { font-weight: 600; font-size: 0.92rem; }
.review-item p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 6px; }
.review-item time { font-size: 0.8rem; color: var(--text-muted); }
.related { margin-top: 56px; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.free-ship-bar { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.free-ship-bar.done { background: #e4f7ee; border-color: #b6e6cb; }
.fs-text { font-size: 0.9rem; margin-bottom: 8px; }
.fs-track { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.fs-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); }
.ci-info h4 a { font-size: 0.98rem; color: var(--text); }
.ci-info h4 a:hover { color: var(--primary); }
.ci-info > span { font-size: 0.86rem; color: var(--text-muted); }
.ci-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ci-qty button { width: 30px; height: 30px; border-radius: 6px; background: var(--bg-alt); color: var(--primary); cursor: pointer; border: 1px solid var(--border); }
.ci-qty button:hover { background: var(--border); }
.ci-qty span { font-weight: 700; min-width: 20px; text-align: center; }
.ci-total { font-weight: 800; color: var(--primary); }
.ci-remove { background: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; padding: 4px 8px; }
.ci-remove:hover { color: #d64545; }
.cart-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.cart-summary .btn { width: 100%; margin-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-muted); font-size: 0.95rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-weight: 800; color: var(--text); font-size: 1.1rem; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.9rem; color: var(--text-muted); }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.checkout-col { display: flex; flex-direction: column; gap: 24px; }
.checkout-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; }
.checkout-guest { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 6px; }
.order-confirm { text-align: center; max-width: 620px; margin: 0 auto; padding: 40px 24px; }
.confirm-icon { font-size: 4rem; margin-bottom: 16px; }
.order-confirm h2 { color: var(--primary); font-size: 1.9rem; margin-bottom: 12px; }
.order-confirm p { color: var(--text-muted); margin-bottom: 26px; }
.confirm-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.order-confirm .summary-row.total { max-width: 320px; margin: 0 auto 20px; }

/* Auth */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 880px; margin: 0 auto; }
.auth-box h3 { margin-bottom: 18px; }
.auth-box .form-group { margin-bottom: 16px; }
.auth-switch { font-size: 0.9rem; color: var(--text-muted); margin-top: 14px; }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* Account */
.account-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.account-side { position: sticky; top: calc(var(--header-h) + 24px); }
.account-user { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.account-av { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.account-user strong { font-size: 1rem; display: block; }
.account-user span { font-size: 0.8rem; color: var(--text-muted); word-break: break-all; }
.account-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.an-link { text-align: left; padding: 11px 14px; border-radius: var(--radius-sm); background: none; cursor: pointer; color: var(--text-muted); font-weight: 500; transition: all var(--transition); }
.an-link:hover { background: var(--bg-alt); color: var(--text); }
.an-link.active { background: var(--primary); color: #fff; }
.pane { display: none; }
.pane.active { display: block; }

/* Orders / tracking */
.order-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.order-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.order-head strong { color: var(--text); }
.order-head span { color: var(--text-muted); font-size: 0.85rem; }
.order-total { text-align: right; }
.order-total .status-pill { display: inline-block; margin-left: 8px; padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: #fff; }
.status-pill.processing { background: var(--accent); }
.status-pill.shipped { background: #2877c9; }
.status-pill.out-for-delivery { background: var(--primary-light); }
.status-pill.delivered { background: #1f8a4c; }
.order-items { border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); padding: 10px 0; margin-bottom: 14px; }
.track-steps { display: flex; justify-content: space-between; gap: 6px; }
.track-steps .track-step { flex: 1; text-align: center; position: relative; }
.track-step .ts-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--border); border: 3px solid var(--bg);
  display: block; margin: 0 auto 6px; position: relative; z-index: 2;
}
.track-steps .track-step::before { content: ""; position: absolute; top: 7px; left: calc(-50% + 8px); right: calc(50% + 8px); height: 3px; background: var(--border); z-index: 1; }
.track-steps .track-step:first-child::before { display: none; }
.track-steps .track-step.done .ts-dot { background: var(--primary); }
.track-steps .track-step.done::before { background: var(--primary); }
.track-steps .track-step.active .ts-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(210,149,45,0.25); }
.track-steps .track-step.active::before { background: var(--primary); }
.ts-label { font-size: 0.78rem; color: var(--text-muted); }
.track-steps .track-step.done .ts-label, .track-steps .track-step.active .ts-label { color: var(--text); font-weight: 600; }
.track-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* ===== PHP Store — Account / Orders / Cart / Checkout ===== */
/* Top offset clears fixed header (+ adult topbar on desktop; topbar hidden on mobile) */
.store-top { padding-top: calc(var(--header-h) + 37px + 40px); }
.store-top.extra { padding-top: calc(var(--header-h) + 37px + 60px); }
.page-title { font-size: 2.1rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin-bottom: 26px; }
.muted { color: var(--text-muted); font-size: 0.9rem; }
.w-100 { width: 100%; }

/* Flash alerts (used by PHP store, styled to match site, no Bootstrap needed) */
.alert { border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 20px; font-size: 0.95rem; position: relative; }
.alert-success { background: #e4f7ee; border: 1px solid #b6e6cb; color: #1f7a4d; }
.alert-danger { background: #fdecec; border: 1px solid #f3c2c2; color: #b33939; }
.alert-dismissible { padding-right: 48px; }
.alert-dismissible .btn-close { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); background: none; border: none; font-size: 1.25rem; line-height: 1; color: inherit; cursor: pointer; opacity: 0.55; padding: 4px; }
.alert-dismissible .btn-close::before { content: "\2715"; }
.alert-dismissible .btn-close:hover { opacity: 1; }

/* Form fields (.field is the PHP store equivalent of .form-group) */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.field input, .field select, .field textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93,12,128,0.12);
}

/* Account tabs */
.acct-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.acct-tabs a {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.acct-tabs a:hover { background: var(--bg-alt); color: var(--text); }
.acct-tabs a.active { background: var(--grad); color: #fff; box-shadow: 0 5px 16px rgba(93,12,128,0.28); }

/* Order rows */
.order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 2px;
  border-bottom: 1px dashed var(--border);
}
.order-row:last-child { border-bottom: none; }
.order-row > *:first-child { flex: 1; min-width: 180px; }
.order-row .muted { margin-top: 2px; }
.order-no { font-weight: 700; color: var(--primary); text-decoration: none; }
.order-no:hover { text-decoration: underline; }
.order-amount { font-weight: 800; color: var(--text); white-space: nowrap; margin-left: auto; }

/* Status badge (PHP store) */
.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
  white-space: nowrap;
}
.status-badge.pending { background: #8a8194; }
.status-badge.processing { background: var(--accent); }
.status-badge.shipped { background: #2877c9; }
.status-badge.out_for_delivery { background: var(--primary-light); }
.status-badge.delivered { background: #1f8a4c; }
.status-badge.cancelled { background: #d64545; }

/* Account overview stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .stat-label { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-top: 6px; }

/* Profile page */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* Order tracking timeline (vertical) */
.tracking-steps { display: flex; flex-direction: column; gap: 0; margin: 12px 0 28px; }
.tracking-steps .track-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 26px;
  position: relative;
}
.tracking-steps .track-step::before {
  content: "";
  position: absolute;
  left: 15px; top: 32px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.tracking-steps .track-step:last-child::before { display: none; }
.tracking-steps .track-step.done::before { background: var(--primary-light); }
.track-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.tracking-steps .track-step.done .track-dot { background: var(--primary); }
.tracking-steps .track-step.current .track-dot { background: var(--accent); box-shadow: 0 0 0 5px rgba(210,149,45,0.24); }
.track-label { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.track-date { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* Order totals */
.order-money { border-top: 1px dashed var(--border); margin-top: 16px; padding-top: 14px; }
.order-money > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--text-muted); font-size: 0.95rem; }
.order-money strong { color: var(--text); }
.order-money .grand { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.1rem; color: var(--text); }
.order-money .grand strong { color: var(--primary); }
.oi-name { font-weight: 600; color: var(--text); }
.oi-name .norm { font-weight: 400; }

/* Cart (PHP) */
.cart-main { display: flex; flex-direction: column; gap: 16px; }
.cart-main .cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cart-main .cart-item img { width: 84px; height: 84px; flex-shrink: 0; }
.cart-main .ci-info { flex: 1; min-width: 200px; }
.cart-main .ci-info h3 { font-size: 1.02rem; }
.cart-main .ci-info h3 a { color: var(--text); }
.cart-main .ci-info h3 a:hover { color: var(--primary); }
.cart-main .ci-info .ci-price { font-size: 0.9rem; color: var(--primary); font-weight: 700; margin-top: 2px; }
.cart-main .ci-info .ci-old { font-size: 0.85rem; }
.cart-main .ci-qty { margin-left: auto; }
.cart-main .ci-qty input[type="number"] { width: 56px; text-align: center; }
.cart-item .ci-total, .cart-main .ci-total { font-weight: 800; color: var(--primary); white-space: nowrap; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cart-actions .btn { margin: 0; }

/* Free shipping bar with progress track (PHP) */
.free-ship-bar { position: relative; overflow: hidden; }
.free-ship-bar > span { position: relative; z-index: 1; }
.free-ship-bar .fsb-track {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  opacity: 0.14;
  border-radius: inherit;
}

/* Summary rows (PHP) */
.cs-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--text-muted); font-size: 0.95rem; }
.cs-row.small { font-size: 0.88rem; }
.cs-row.discount strong { color: #1f8a4c; }
.cs-row strong { color: var(--text); font-weight: 700; }
.cs-total { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid var(--border); margin-top: 10px; padding-top: 14px; font-weight: 800; font-size: 1.12rem; color: var(--text); }

/* Coupon */
.coupon-card { background: var(--bg-alt); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 16px; margin: 16px 0; }
.coupon-card label { font-weight: 600; font-size: 0.88rem; display: block; margin-bottom: 8px; }
.coupon-input { display: flex; gap: 8px; }
.coupon-input input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.92rem; }
.coupon-input button { white-space: nowrap; }

/* Payment method radio rows */
.radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition);
}
.radio-row:hover { border-color: var(--primary-light); background: var(--bg-alt); }
.radio-row input { width: 18px; height: 18px; accent-color: var(--primary); }

/* Checkout main column */
.checkout-main { display: flex; flex-direction: column; gap: 24px; }

/* Pagination (PHP store renders Bootstrap classes without Bootstrap) */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 32px 0 8px; }
.pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; background: var(--card);
  transition: all var(--transition);
}
.pagination .page-link:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.pagination .page-item.active .page-link { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(93,12,128,0.25); }
.pagination .page-item.disabled .page-link { opacity: 0.45; pointer-events: none; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.faq-q { width: 100%; text-align: left; padding: 18px 20px; background: none; cursor: pointer; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .faq-icon { font-size: 1.3rem; color: var(--primary); transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--text-muted); line-height: 1.7; }

/* Store responsive */
@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .pdetail-grid { grid-template-columns: 1fr; gap: 32px; }
  .pdetail-media img { height: 340px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .auth-grid { grid-template-columns: 1fr; }
  .shop-banner { margin-top: var(--header-h); }
}
@media (max-width: 768px) {
  .cart-item { grid-template-columns: 64px 1fr auto; }
  .cart-item img { width: 64px; height: 64px; }
  .ci-remove { grid-column: 3; grid-row: 1; }
  .track-step .ts-label { font-size: 0.68rem; }
}

/* PHP store responsive */
@media (max-width: 960px) {
  .store-top, .store-top.extra { padding-top: calc(var(--header-h) + 32px); }
}
@media (max-width: 768px) {
  .page-title { font-size: 1.7rem; margin-bottom: 20px; }
  .acct-tabs { flex-wrap: wrap; gap: 8px; }
  .acct-tabs a, .acct-tabs button { padding: 10px 16px; font-size: 0.9rem; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
  .profile-grid { grid-template-columns: 1fr; }
  .order-row { flex-wrap: wrap; gap: 10px; }
  .cart-main .cart-item { align-items: flex-start; }
  .cart-main .ci-qty { margin-left: auto; }
  .cart-main .ci-total { min-width: auto; margin-top: 8px; }
  .cs-row { flex-wrap: wrap; }
  .tracking-steps { padding-left: 4px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .cart-main .cart-item { flex-wrap: wrap; }
  .cart-main .ci-qty { margin-left: 0; }
}

/* Mobile refinements (storefront + PHP store) */
@media (max-width: 768px) {
  .page-header { padding: 48px 0 36px; }
  .page-header h1 { font-size: 1.7rem; }
  .breadcrumb { flex-wrap: wrap; font-size: 0.82rem; }
  .shop-banner { padding: 44px 0; }
  .shop-banner h1 { font-size: 1.8rem; }
  .emergency-strip { padding: 24px; }
  .emergency-strip h3 { font-size: 1.15rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px 16px; }
  .stat-number { font-size: 1.6rem; }
  .stat-item + .stat-item::before { display: none; }
  .section-subtitle { margin-bottom: 32px; }
  .feature-content h2 { font-size: 1.4rem; }
  .feature-image img { height: 220px; }
  .pdetail-media img { height: 300px; }
  .pdetail-info h1 { font-size: 1.6rem; }
  .pdetail-price .price { font-size: 1.6rem; }
  .pdetail-buy .btn-lg { flex: 1; }
  .tabs-nav { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .tabs-nav .tab { white-space: nowrap; flex-shrink: 0; padding: 12px 16px; font-size: 0.88rem; }
  .tab-panel { padding: 20px 16px; }
  .cart-item { grid-template-columns: 64px 1fr auto; }
  .cart-item img { width: 64px; height: 64px; }
  .ci-qty { flex-wrap: wrap; }
  .cart-summary { margin-top: 8px; }
  .confirmation-pane, .order-confirm h2 { font-size: 1.5rem; }
  .free-ship-bar { padding: 12px 14px; }
  .coupon-input { flex-wrap: wrap; }
  .coupon-input input { flex: 1 1 100%; }
  .faq-q { padding: 14px 16px; }
  .footer-newsletter .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; }
  .wa-chat { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
@media (max-width: 480px) {
  :root { --header-h: 89px; }
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .page-header h1 { font-size: 1.5rem; }
  .logo img { height: 34px; }
  .header-actions { gap: 5px; margin-left: 8px; }
  .nav-cart { width: 40px; height: 40px; font-size: 1rem; }
  .nav-toggle { padding: 5px; }
  .nav-toggle span { width: 20px; }
  .cart-count { min-width: 16px; height: 16px; line-height: 16px; font-size: 0.62rem; }
  .acct-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .acct-tabs::-webkit-scrollbar { display: none; }
  .acct-tabs a, .acct-tabs button { flex-shrink: 0; }
  .cart-main .ci-info { min-width: 0; }
  .cart-main .cart-item img { width: 64px; height: 64px; }
  .cart-main .ci-qty { width: 100%; justify-content: center; }
  .pcard-actions { flex-direction: column; }
  .pcard-actions .btn { width: 100%; }
  .order-row > *:first-child { min-width: 0; }
  .order-row .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 10px; }
  .hero-home p.lead { font-size: 1rem; }
  .float-card.fc-3 { display: none; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 300px) {
  .header-actions .nav-cart:last-of-type { display: none; }
}

/* ============ WhatsApp live chat ============ */
.wa-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-chat:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}
.wa-chat svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  display: block;
}
.wa-chat .wa-chat-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #128c7e;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.wa-chat:hover .wa-chat-tip {
  opacity: 1;
  visibility: visible;
}

/* ================================================================
   DESIGN POLISH — rich gradients, depth + refined interactions
   ================================================================ */
:root {
  --grad: linear-gradient(135deg, #6b0fa8 0%, #5D0C80 55%, #3d0a55 100%);
  --grad-accent: linear-gradient(135deg, #e8b23e 0%, #D2952D 60%, #a96f13 100%);
  --grad-soft: linear-gradient(135deg, #f4e6ff 0%, #fdfbff 100%);
  --shadow-soft: 0 10px 30px rgba(93,12,128,0.10);
  --shadow-hover: 0 22px 45px rgba(93,12,128,0.18);
}

/* Selection + scrollbar */
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary-light), var(--primary)); border-radius: 20px; }

/* Buttons */
.btn {
  border-radius: 50px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(93,12,128,0.16);
}
.btn-primary { background: var(--grad); }
.btn-primary:hover {
  background: var(--grad);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px rgba(93,12,128,0.30);
}
.btn-outline:hover {
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-2px);
}
.btn-accent { background: var(--grad-accent); }
.btn-accent:hover {
  background: var(--grad-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(210,149,45,0.35);
}

/* Section titles */
.section-title { position: relative; padding-bottom: 18px; }
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 84px;
  height: 5px;
  border-radius: 10px;
  background: var(--grad-accent);
}
.section-subtitle { font-size: 1.06rem; line-height: 1.7; }

/* Page header — glowing inner pages */
.page-header {
  position: relative;
  overflow: hidden;
  background: var(--grad);
}
.page-header::before,
.page-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.page-header::before {
  width: 320px; height: 320px;
  background: rgba(210,149,45,0.25);
  top: -120px; left: -80px;
}
.page-header::after {
  width: 260px; height: 260px;
  background: rgba(139,47,192,0.55);
  bottom: -120px; right: -60px;
}
.page-header h1 { position: relative; z-index: 1; text-shadow: 0 4px 22px rgba(0,0,0,0.25); }
.breadcrumb { position: relative; z-index: 1; }

/* Hero overlays — softer cinematic blend */
.hero-overlay {
  background: linear-gradient(180deg, rgba(36,9,49,0.72) 0%, rgba(59,13,82,0.55) 60%, rgba(36,9,49,0.30) 100%);
}

/* Service / feature cards */
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--grad-soft);
  border-radius: 18px;
  border: 1px solid rgba(93,12,128,0.10);
  box-shadow: var(--shadow-soft);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(139,47,192,0.35);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  background: linear-gradient(160deg, #a43ce0 0%, var(--primary) 60%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(93,12,128,0.30);
  transition: transform 0.35s ease;
}
.service-card:hover .service-icon { transform: translateY(-6px) scale(1.06); rotate: -6deg; }
.service-card h3 { transition: color 0.3s ease; }

/* Feature rows — framed, soft images */
.feature-image {
  position: relative;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(93,12,128,0.12);
}
.feature-image::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  pointer-events: none;
}
.feature-image img { transition: transform 0.5s ease; }
.feature-image:hover img { transform: scale(1.045); }
.feature-content h2 { position: relative; padding-bottom: 14px; }
.feature-content h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 4px;
  border-radius: 10px;
  background: var(--grad-accent);
}

/* Check list badges */
.check-list li::before {
  background: var(--grad);
  box-shadow: 0 4px 10px rgba(93,12,128,0.30);
}

/* Stats bar — elevated glass panel */
.stats-bar {
  border: 1px solid rgba(93,12,128,0.12);
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}
.stat-number { font-size: 2.2rem; }
.stat-item {
  position: relative;
  padding: 8px 0;
}
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: -12px; top: 15%; bottom: 15%;
  width: 1px;
  background: var(--border);
}
.stat-number {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CTA banner — glowing rich panel */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.cta-banner::before {
  width: 340px; height: 340px;
  background: rgba(210,149,45,0.30);
  top: -140px; right: -80px;
}
.cta-banner::after {
  width: 280px; height: 280px;
  background: rgba(139,47,192,0.40);
  bottom: -140px; left: -60px;
}
.cta-banner h2, .cta-banner p, .cta-banner .hero-actions { position: relative; z-index: 1; }

/* Nav link underline animation */
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  border-radius: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); transform-origin: left; }

/* Newsletters */
.newsletter-form button {
  background: var(--grad-accent);
  border-radius: 50px;
  box-shadow: 0 6px 14px rgba(210,149,45,0.35);
}
.newsletter-form button:hover {
  background: var(--grad-accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(210,149,45,0.45);
}

/* Header states */
.header.scrolled {
  box-shadow: 0 6px 24px rgba(36,9,49,0.14);
  backdrop-filter: saturate(1.1);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

