/* =========================================
   SHAOXINGYITUO Textile Manufacturer Website
   Responsive, SEO-friendly stylesheet
   ========================================= */

:root {
  --primary: #1e3a5f;
  --primary-dark: #14283f;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --light: #f8fafc;
  --text: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 0.5rem;
  --max-width: 1200px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: 0.3s;
}

@media (min-width: 900px) {
  .nav,
  .header-cta {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  transform: translateY(-120%);
  transition: transform 0.3s;
  z-index: 999;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 40, 63, 0.85), rgba(20, 40, 63, 0.6));
  z-index: -1;
}

.hero-content {
  max-width: 780px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Stats / trust bar */
.trust-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.8rem;
  color: var(--accent);
}

.trust-item span {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.card-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.card-cta {
  text-align: center;
}

.card-cta .card-img {
  background: var(--light);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.card-cta .arrow-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: transform 0.25s, background 0.25s;
}

.card-cta:hover .arrow-circle {
  transform: translateX(5px);
  background: var(--accent-hover);
}

.card-cta .card-body {
  align-items: center;
}

/* Product sections */
.product-hero {
  position: relative;
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  background: var(--primary-dark);
  color: var(--white);
}

.product-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
}

.product-hero .breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--primary);
}

/* Breadcrumb bar below banner */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-list a {
  color: var(--text-light);
  font-weight: 500;
}

.breadcrumb-list a:hover {
  color: var(--accent);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--primary-dark);
  font-weight: 700;
}

.breadcrumb-separator {
  color: var(--text-light);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.product-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-meta h1 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.product-meta .lead {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.specs th,
.specs td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.specs th {
  width: 40%;
  color: var(--primary-dark);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Inquiry section */
.inquiry-section {
  background: var(--light);
}

.inquiry-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .inquiry-box {
    grid-template-columns: 1fr 1fr;
  }
}

.inquiry-info h2 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

/* Certificates carousel */
.cert-carousel {
  position: relative;
  margin-top: 2rem;
  padding: 0 3.5rem;
}

.cert-viewport {
  overflow: hidden;
}

.cert-track {
  display: flex;
  transition: transform 0.35s ease;
}

.cert-item {
  flex: 0 0 33.3333%;
  padding: 0 0.75rem;
  text-align: center;
}

.cert-item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.75rem;
  cursor: zoom-in;
  transition: transform 0.2s;
}

.cert-item img:hover {
  transform: translateY(-3px);
}

.cert-item figcaption {
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.cert-arrow {
  position: absolute;
  top: calc(50% - 1rem);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  z-index: 2;
}

.cert-arrow:hover:not(:disabled) {
  background: var(--accent);
}

.cert-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.cert-prev { left: 0; }
.cert-next { right: 0; }

@media (max-width: 900px) {
  .cert-item {
    flex-basis: 50%;
  }
}

@media (max-width: 600px) {
  .cert-carousel {
    padding: 0 2.8rem;
  }
  .cert-item {
    flex-basis: 100%;
  }
  .cert-item img {
    height: 340px;
  }
  .cert-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
}

/* Image lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.4rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* Footer */
.footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-desc {
  line-height: 1.7;
  margin-bottom: 1.2rem;
  max-width: 420px;
}

.social-list {
  display: flex;
  gap: 0.8rem;
  list-style: none;
}

.social-list a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s;
}

.social-list a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--accent);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.contact-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-list strong {
  color: var(--white);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  z-index: 1001;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: var(--white);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* About page */
.about-hero {
  background: var(--primary-dark);
  color: var(--white);
  padding: calc(var(--header-height) + 3rem) 0 3rem;
}

.about-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr 1fr;
  }
}

.about-intro img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: space-between;
}

.value-item {
  width: 100%;
}

@media (min-width: 700px) {
  .value-item {
    width: calc(50% - 0.75rem);
  }
}

.value-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.value-item h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

/* Blog / FAQ list */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.article-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.article-card time {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.4rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  color: var(--text-light);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
  margin: 0 1.4rem;
  padding: 1rem 0 1.2rem;
  border-top: 1px solid var(--border);
}

.faq-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--light);
  color: var(--accent);
  font-size: 0.7rem;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: var(--accent);
  color: var(--white);
}

/* Blog list */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.blog-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.blog-card-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--light);
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.blog-card:hover .blog-card-cover img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.blog-card-title {
  font-size: 1.1rem;
  margin: 0.4rem 0 0.6rem;
  line-height: 1.35;
}

.blog-card-title a {
  color: var(--primary-dark);
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-light);
  flex: 1;
}

.blog-card-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.page-link {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

a.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-link.current {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
}

.page-link.disabled {
  opacity: 0.4;
}

/* Blog article */
.article-container {
  max-width: 860px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.55rem;
  color: var(--primary-dark);
  margin: 2.2rem 0 0.8rem;
}

.article-content h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin: 1.6rem 0 0.6rem;
}

.article-content p {
  margin: 0 0 1.1rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content img {
  max-width: 100%;
  border-radius: var(--radius);
}

.article-content figure {
  margin: 1.8rem 0;
}

.article-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.6rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--light);
  padding: 1rem 1.4rem;
  margin: 1.6rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #475569;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.article-content th {
  background: var(--light);
}

.article-cta {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.article-cta h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.article-cta-btns {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.article-nav-link {
  max-width: 48%;
}

.article-nav-link.next {
  text-align: right;
  margin-left: auto;
}

.article-nav-label {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.article-nav-title {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.article-nav-link:hover .article-nav-title {
  color: var(--accent);
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

@media (max-width: 600px) {
  .section {
    padding: 2.5rem 0;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .article-container {
    max-width: 100%;
  }
  .article-content {
    font-size: 1rem;
  }
  .article-content h2 {
    font-size: 1.35rem;
  }
  .article-nav {
    flex-direction: column;
  }
  .article-nav-link {
    max-width: 100%;
  }
  .article-nav-link.next {
    text-align: left;
    margin-left: 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  /* Homepage hero: compact so hero + trust bar fit the first screen */
  .hero {
    min-height: calc(100vh - 170px); /* fallback for browsers without svh */
    min-height: calc(100svh - 170px); /* 170px reserves space for the trust bar */
    padding: calc(var(--header-height) + 1.5rem) 0 2rem;
  }
  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-btns {
    gap: 0.75rem;
  }
  .hero-btns .btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
  }
  /* Trust bar: 2x2 compact grid, fully visible in the first screen */
  .trust-bar {
    padding: 1.25rem 0;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.5rem;
  }
  .trust-item strong {
    font-size: 1.5rem;
  }
  .trust-item span {
    font-size: 0.85rem;
  }
}

/* Desktop dropdown navigation */
.dropdown {
  position: relative;
}

.dropdown-arrow {
  display: inline-flex;
  margin-left: 0.35rem;
  transition: transform 0.25s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 1001;
}

/* little notch pointing up to the nav item */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.dropdown-menu li a::after {
  content: "\2192";
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
}

.dropdown-menu li a:hover {
  background: #fff7ed;
  color: var(--accent);
  transform: translateX(2px);
}

.dropdown-menu li a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile dropdown navigation */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.mobile-dropdown-icon {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.mobile-dropdown.open .mobile-dropdown-icon {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.3rem 0 0.5rem 1rem;
}

.mobile-dropdown.open .mobile-submenu {
  display: flex;
}

.mobile-submenu a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
}

.mobile-submenu a:hover {
  color: var(--accent);
}

/* Product listing grid */
.product-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card .card-text {
  font-size: 0.85rem;
}

.product-detail-layout .product-gallery img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

