/**
 * Landing page — hero slider, intro, services, footer overlap card.
 */

:root {
  --landing-muted: #5c5c5c;
  --landing-line: #d0d0d0;
  --landing-card: #f5f5f5;
  --landing-footer-dark: #0a0a0a;
  --landing-newsletter-btn: #8b7355;
  --landing-cyan: #00acc1;
}

/* Hero slider */
.hero-slider {
  position: relative;
  width: 100%;
  background: #000;
}

.hero-slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slide {
  display: none;
  line-height: 0;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  object-fit: cover;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.slider-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* Category strip — horizontal scroll, căn giữa khi đủ chỗ */
.category-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.1rem;
}

.category-strip-scroll {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@supports (justify-content: safe center) {
  .category-strip-scroll {
    justify-content: safe center;
  }
}

.category-strip-scroll::-webkit-scrollbar {
  height: 6px;
}

.category-strip-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.category-strip-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 5.5rem;
  max-width: 6.5rem;
  text-decoration: none;
  color: var(--fg);
  scroll-snap-align: start;
}

.category-strip-item:hover .category-strip-name {
  color: var(--accent);
}

.category-strip-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-strip-placeholder {
  font-weight: 700;
  font-size: 1.35rem;
  color: #94a3b8;
}

.category-strip-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

/* Section shell */
.landing-section {
  background: #fff;
  padding: 2.75rem 1.25rem 3rem;
}

.landing-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title-decor {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 2rem;
  color: #111;
  letter-spacing: 0.02em;
}

.section-title-decor__text {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title-decor__text::before,
.section-title-decor__text::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--landing-line);
}

.section-title-plain {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  text-align: center;
}

/* Intro */
.intro-lead {
  margin-bottom: 2.5rem;
}

.intro-lead-icon {
  display: inline-flex;
  color: var(--landing-cyan);
  margin-bottom: 0.5rem;
}

.intro-lead-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #111;
}

.intro-lead-text {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 900px;
}

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

@media (max-width: 800px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

.intro-feature {
  margin: 0 0 1.75rem;
}

.intro-feature:last-child {
  margin-bottom: 0;
}

.intro-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  color: var(--landing-cyan);
}

.intro-feature h4 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #111;
}

.intro-feature p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.intro-contact-block {
  max-width: 520px;
  padding-top: 0.5rem;
}

.intro-contact-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.intro-contact-line {
  margin: 0.35rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--landing-muted);
  line-height: 1.5;
}

.intro-contact-line a {
  color: var(--accent);
  text-decoration: none;
}

.intro-contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--landing-cyan);
}

/* Services */
.landing-services {
  padding-top: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

.service-card {
  position: relative;
  background: var(--landing-card);
  border-radius: 12px;
  padding: 2.25rem 1.25rem 1.5rem;
  text-align: center;
  min-height: 200px;
}

.service-card-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

.service-card h3 {
  margin: 0.5rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--landing-muted);
  line-height: 1.55;
}

/* Products block on landing */
.landing-products {
  background: #fafafa;
  padding: 2.5rem 1.25rem 3rem;
  scroll-margin-top: 72px;
}

.landing-products-inner .layout {
  align-items: start;
}

.landing-products-main .grid {
  margin-top: 0;
}

.product-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--landing-muted);
  margin: 0;
}

.landing-products-main .product-pagination {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.product-pagination__meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--landing-muted);
  text-align: center;
  line-height: 1.5;
}

.product-pagination__meta strong {
  color: var(--fg);
}

.product-pagination__sep {
  margin: 0 0.35rem;
  color: #bbb;
}

.product-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.product-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: #333;
  transition: background 0.15s, border-color 0.15s;
}

.product-pagination__link:hover:not(.product-pagination__link--disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.product-pagination__link--ghost {
  background: #fafafa;
}

.product-pagination__link--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-pagination__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-pagination__more:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
  color: #fff;
}

/* Contact */
.landing-contact {
  padding-bottom: 4rem;
  scroll-margin-top: 72px;
}

.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0.25rem;
}

.landing-contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
  .landing-contact-form {
    padding: 2rem 2rem 1.75rem;
  }
}

.contact-form-alert {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-form-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.contact-form-alert--error p {
  margin: 0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem 1.5rem;
}

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

  .contact-field--full {
    grid-column: 1 / -1;
  }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.contact-field__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}

.contact-input {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--fg);
  background: #fafafa;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-input::placeholder {
  color: #94a3b8;
}

.contact-input:hover:not(:focus) {
  border-color: #cbd5e1;
  background: #fff;
}

.contact-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.contact-input--textarea {
  min-height: 6.5rem;
  resize: vertical;
  vertical-align: top;
}

.contact-field--invalid .contact-input {
  border-color: #f87171;
  background: #fff8f8;
}

.contact-field--invalid .contact-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.contact-field-errors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-field-errors li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: #dc2626;
}

.contact-field-errors li::before {
  content: "";
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.contact-form-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: stretch;
}

@media (min-width: 640px) {
  .contact-form-actions {
    justify-content: flex-end;
  }
}

.contact-form-submit {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #0d6efd, #0d6efd);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 640px) {
  .contact-form-submit {
    width: auto;
    min-width: 12rem;
  }
}

.contact-form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.contact-form-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.45);
}

.contact-form-submit:active {
  transform: translateY(0);
}

#gioi-thieu,
#dich-vu,
#san-pham,
#lien-he,
#danh-muc {
  scroll-margin-top: 80px;
}

/* Footer */
.landing-footer {
  position: relative;
  background: var(--landing-footer-dark);
  color: #fff;
  padding: 4rem 1.25rem 2rem;
  margin-top: 0;
}

.landing-footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .landing-footer-wrap {
    grid-template-columns: 1fr;
  }
}

.landing-footer-card {
  background: #fff;
  color: #111;
  padding: 1.75rem 1.5rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  margin-top: -4.5rem;
}

.landing-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.landing-footer-brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--landing-cyan);
}

.landing-footer-intro {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #333;
}

.landing-footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.landing-footer-contact-list a {
  color: #111;
  text-decoration: none;
}

.landing-footer-contact-list a:hover {
  color: var(--accent);
}

.landing-footer-icon {
  flex-shrink: 0;
  color: var(--landing-cyan);
  margin-top: 2px;
}

.landing-footer-dark {
  padding-top: 0.5rem;
  padding-left: 0.5rem;
}

@media (max-width: 900px) {
  .landing-footer-dark {
    padding-left: 0;
  }

  .landing-footer-card {
    margin-top: -3rem;
  }
}

.landing-footer-eyebrow {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.landing-footer-newsletter-label {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: #ccc;
}

.landing-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-width: 420px;
}

.landing-newsletter-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid #444;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

.landing-newsletter-btn {
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 6px;
  background: var(--landing-newsletter-btn);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  max-width: none;
  width: auto;
}

.landing-newsletter-btn:hover {
  filter: brightness(1.05);
}

.landing-footer-payments {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pay-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  line-height: 1;
}

.pay-badge--visa {
  background: #1a1f71;
  color: #fff;
}

.pay-badge--mc {
  background: #eb001b;
  color: #fff;
}

.landing-footer-copy-right {
  margin: 0;
  text-align: right;
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 900px) {
  .landing-footer-copy-right {
    text-align: left;
  }
}
