/*
Theme Name: JD - GreatWorld Baby
Theme URI: http://127.0.0.1-jiandan/
Author: JD
Author URI: http://127.0.0.1-jiandan/
Description: Premium baby textile manufacturing and global trend sourcing landing theme.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jd
*/

/* ===== Fonts ===== */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #faf6ef;
  --purple: #5a1e8a;
  --purple-dark: #4a1772;
  --primary: #5a1e8a;
  --accent: oklch(0.76 0.16 60);
  --text: #2b2b2b;
  --border: #e9e0d4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: #faf6ef;
  color: var(--text);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(90, 30, 138, 0.04);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ===== Logo ===== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* ===== Navigation ===== */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--purple);
}

/* ===== CTA Button ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 30px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

/* ===== Mobile toggle ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

/* Drawer close button + overlay (hidden on desktop) */
.nav-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--purple);
  cursor: pointer;
}

.nav-overlay {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .header-inner {
    padding: 12px 20px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .cta-button {
    margin-left: auto;
  }

  /* Left slide-out drawer */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    height: 100vh;
    width: 280px;
    max-width: 80vw;
    flex: none;
    display: block;
    background: var(--bg);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    padding: 72px 24px 24px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-close {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 16px;
  }

  .main-nav a:hover {
    background: rgba(90, 30, 138, 0.06);
  }

  /* Overlay */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
  }
}

/* ===== Hero / Banner ===== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(90, 30, 138, 0.85),
    rgba(90, 30, 138, 0.7) 50%,
    rgba(90, 30, 138, 0.9)
  );
}

.hero-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
}

.hero-badge svg {
  color: var(--accent);
}

.accent {
  color: var(--accent);
}

.italic {
  font-style: italic;
}

.hero-title {
  margin-top: 24px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
}

.hero-subtitle {
  margin: 20px auto 0;
  max-width: 768px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
}

.hero-desc {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: clamp(0.875rem, 1.6vw, 1.125rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
  .hero-content {
    padding: 160px 32px;
  }
}

/* ===== Trust bar ===== */
.trust-bar {
  background: rgba(245, 237, 225, 0.6);
  border-top: 1px solid rgba(233, 224, 212, 0.7);
  border-bottom: 1px solid rgba(233, 224, 212, 0.7);
}

.trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(90, 30, 138, 0.1);
  color: var(--primary);
}

.trust-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

@media (min-width: 768px) {
  .trust-inner {
    grid-template-columns: repeat(4, 1fr);
    padding: 28px 32px;
  }
}

/* ===== Factory products ===== */
.factory {
  padding: 96px 0;
  background: #fbf5e9;
}

.factory-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.factory-head {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.factory-title {
  margin-top: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.factory-sub {
  margin-top: 16px;
  font-size: 16px;
  color: #6b6357;
}

.product-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(233, 224, 212, 0.7);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(90, 30, 138, 0.1);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 30px;
}

.product-body {
  padding: 14px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.product-moq {
  margin-top: 4px;
  font-size: 13px;
  color: #8a8175;
}

@media (min-width: 640px) {
  .product-grid {
    gap: 24px;
  }
  .product-card {
    border-radius: 24px;
  }
  .product-body {
    padding: 20px;
  }
  .product-name {
    font-size: 18px;
  }
  .product-badge {
    left: 12px;
    top: 12px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Magic Bridge ===== */
.bridge {
  background: #f8f0e0;
  padding: 96px 0;
}

.bridge-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.bridge-head {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.bridge-title {
  margin-top: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.br-md {
  display: none;
}

.bridge-flow {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 24px;
}

.bridge-card {
  border: 1px solid rgba(233, 224, 212, 0.7);
  border-radius: 24px;
  background: #fff;
  padding: 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.bridge-card--highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.3);
}

.bridge-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 16px;
}

.bridge-icon--primary {
  background: rgba(90, 30, 138, 0.1);
  color: var(--primary);
}

.bridge-icon--accent {
  background: rgba(245, 185, 66, 0.2);
  color: #8a5a00;
}

.bridge-card-title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.bridge-card-sub {
  margin-top: 4px;
  font-size: 14px;
  color: #8a8175;
}

.bridge-op {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(90, 30, 138, 0.1);
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
}

.bridge-note {
  max-width: 768px;
  margin: 56px auto 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(43, 43, 43, 0.8);
}

.bridge-note-strong {
  font-weight: 600;
  color: var(--primary);
}

@media (min-width: 768px) {
  .br-md {
    display: block;
  }
  .bridge-flow {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }
  .bridge-op {
    width: 56px;
    height: 56px;
  }
}

/* ===== Global Trend Sourcing Hub ===== */
.trends {
  background: #f7ecdc;
  padding: 96px 0;
}

.trends-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.trends-head {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.trends-title {
  margin-top: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.trends-sub {
  margin-top: 16px;
  font-size: 16px;
  color: #6b6357;
}

.trend-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.trend-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(90, 30, 138, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(90, 30, 138, 0.15);
}

.trend-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.trend-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.trend-card:hover .trend-media img {
  transform: scale(1.05);
}

.trend-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--accent);
  color: #5a3a00;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.trend-body {
  padding: 24px;
}

.trend-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.trend-meta {
  margin-top: 6px;
  font-size: 14px;
  color: #8a8175;
}

@media (min-width: 640px) {
  .trend-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .trend-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Inside the Factory ===== */
.about {
  background: #fbf5e9;
  padding: 96px 0;
}

.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-head {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  margin-top: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.about-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
}

/* Video / factory image */
.about-video {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(233, 224, 212, 0.7);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-video img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-video:hover img {
  transform: scale(1.03);
}

.about-video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(90, 30, 138, 0.3);
}

.about-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  background: rgba(251, 245, 233, 0.9);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  border: 1px solid rgba(233, 224, 212, 0.7);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 30, 138, 0.4);
  box-shadow: 0 12px 24px rgba(90, 30, 138, 0.1);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 185, 66, 0.25);
  color: var(--primary);
}

.feature-title {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.feature-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #8a8175;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Market Insights ===== */
.insights {
  background: #f8f0e0;
  padding: 96px 0;
}

.insights-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.insights-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.insights-intro {
  max-width: 672px;
}

.insights-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 185, 66, 0.15);
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 30px;
}

.insights-title {
  margin-top: 16px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.insights-sub {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #6b6357;
}

.insights-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border: 1px solid rgba(90, 30, 138, 0.3);
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  transition: background 0.2s ease, color 0.2s ease;
}

.insights-viewall:hover {
  background: var(--primary);
  color: #fff;
}

.insights-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Featured */
.insight-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(233, 224, 212, 0.7);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(90, 30, 138, 0.1);
}

.insight-feature-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.3), rgba(245, 185, 66, 0.15) 50%, rgba(90, 30, 138, 0.1));
  color: var(--accent);
}

.insight-feature-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.insight-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.insight-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 30px;
}

.insight-cat--accent {
  background: rgba(245, 185, 66, 0.15);
  color: #8a5a00;
}

.insight-cat--muted {
  background: rgba(90, 30, 138, 0.08);
  color: rgba(43, 43, 43, 0.7);
  font-size: 10px;
}

.insight-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8a8175;
}

.insight-feature-title {
  margin-top: 16px;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.insight-feature-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b6357;
}

.insight-feature-foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.insight-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #5a3a00;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  transition: transform 0.2s ease;
}

.insight-feature:hover .insight-readmore {
  transform: translateX(2px);
}

/* List */
.insight-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(233, 224, 212, 0.7);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.insight-item:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 30, 138, 0.4);
  box-shadow: 0 12px 24px rgba(90, 30, 138, 0.1);
}

.insight-item-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(245, 185, 66, 0.15);
  color: #8a5a00;
}

.insight-item-body {
  flex: 1;
  min-width: 0;
}

.insight-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.insight-date {
  font-size: 12px;
  color: #8a8175;
}

.insight-item-title {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  transition: color 0.2s ease;
}

.insight-item:hover .insight-item-title {
  color: var(--primary);
}

.insight-item-time {
  margin-top: 8px;
}

.insight-item-arrow {
  flex-shrink: 0;
  margin-top: 4px;
  color: #8a8175;
  transition: transform 0.2s ease, color 0.2s ease;
}

.insight-item:hover .insight-item-arrow {
  transform: translateX(2px);
  color: var(--primary);
}

@media (min-width: 640px) {
  .insights-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .insights-viewall {
    align-self: flex-end;
  }
}

@media (min-width: 1024px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: #fff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 16px;
}

.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-about {
  margin-top: 20px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.footer-links {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.footer-newsletter-text {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.footer-form {
  margin-top: 16px;
  display: flex;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 4px;
}

.footer-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
}

.footer-form button {
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #5a3a00;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  transition: filter 0.2s ease;
}

.footer-form button:hover {
  filter: brightness(0.95);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-inner {
    padding: 80px 32px;
  }
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ===== Footer contact links ===== */
.footer-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--accent);
}

/* Custom logo sizing (header & footer) */
.logo .custom-logo,
.footer-logo .custom-logo {
  height: 44px;
  width: auto;
  display: block;
}

/* ===== Content area (page.php / single.php) ===== */
.site-main {
  background: var(--bg);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.entry-header {
  padding-top: 56px;
}

.entry-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.entry-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #8a8175;
}

.entry-thumbnail {
  margin-top: 28px;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* Constrain default-template content for readability.
   Elementor Full Width / Canvas templates bypass page.php and are unaffected. */
.entry-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 24px 72px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

.entry-content > * {
  margin-bottom: 1.2em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--primary);
  line-height: 1.25;
  margin-top: 1.4em;
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.entry-content blockquote {
  margin: 1.5em 0;
  padding: 12px 22px;
  border-left: 4px solid var(--accent);
  background: #fbf5e9;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.entry-footer {
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #8a8175;
}

.page-links {
  margin-top: 1.5em;
  font-weight: 600;
}

/* ===================================================================
   Product archive & category
   =================================================================== */
.product-archive {
  padding: 56px 0 80px;
}

.product-archive-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.product-archive-title {
  margin-top: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.product-archive-sub {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #6b6357;
}

.product-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 8px;
}

.product-filter-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid rgba(90, 30, 138, 0.25);
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-filter-item:hover,
.product-filter-item.is-active {
  background: var(--primary);
  color: #fff;
}

.product-grid--archive {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-pagination {
  margin-top: 48px;
  text-align: center;
}

.product-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.product-pagination .page-numbers.current {
  background: var(--primary);
  color: #fff;
}

.product-empty {
  text-align: center;
  padding: 60px 0;
  color: #8a8175;
}

@media (min-width: 640px) {
  .product-grid--archive {
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .product-grid--archive {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================================================
   Single product
   =================================================================== */
.product-breadcrumb {
  padding-top: 28px;
  font-size: 14px;
  color: #8a8175;
}

.product-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.product-breadcrumb span {
  margin: 0 6px;
}

.product-single {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.product-single-media {
  position: relative;
}

.product-single-media .product-badge {
  position: absolute;
  left: 16px;
  top: 16px;
}

.product-single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-single-cats .eyebrow {
  text-decoration: none;
}

.product-single-title {
  margin-top: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.product-single-excerpt {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #6b6357;
}

.product-specs {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.product-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
}

.product-spec-label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  flex-shrink: 0;
}

.product-spec-value {
  text-align: right;
  color: #6b6357;
  font-size: 14px;
}

.product-single-actions {
  margin-top: 24px;
}

.product-description {
  margin-top: 64px;
}

.product-section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-description-body {
  max-width: none;
  margin: 0;
  padding: 8px 0 0;
}

@media (min-width: 900px) {
  .product-single {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

/* ===================================================================
   Inquiry form (询盘)
   =================================================================== */
.product-inquiry {
  margin: 72px 0 90px;
  padding: 40px;
  border-radius: 24px;
  background: #f8f0e0;
  border: 1px solid var(--border);
}

.product-inquiry-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
}

.product-inquiry-title {
  margin-top: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--primary);
}

.product-inquiry-sub {
  margin-top: 10px;
  color: #6b6357;
  line-height: 1.6;
}

.inquiry-alert {
  max-width: 720px;
  margin: 0 auto 22px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  text-align: center;
}

.inquiry-alert--ok {
  background: rgba(46, 160, 90, 0.12);
  color: #1d7a44;
  border: 1px solid rgba(46, 160, 90, 0.35);
}

.inquiry-alert--err {
  background: rgba(200, 60, 60, 0.1);
  color: #b13b3b;
  border: 1px solid rgba(200, 60, 60, 0.3);
}

.inquiry-form {
  max-width: 760px;
  margin: 0 auto;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.inquiry-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inquiry-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.inquiry-field input,
.inquiry-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #d9d2e3;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inquiry-field input:focus,
.inquiry-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.inquiry-field--full {
  margin-top: 18px;
}

.inquiry-submit {
  margin-top: 22px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

@media (min-width: 640px) {
  .inquiry-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .product-inquiry {
    padding: 24px 18px;
  }
}

/* ===================================================================
   Quote / Inquiry modal
   =================================================================== */
.jd-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}

.jd-modal.is-open {
  display: flex;
}

.jd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 20, 66, 0.55);
  backdrop-filter: blur(3px);
}

.jd-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: var(--bg);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: jd-modal-in 0.25s ease;
}

@keyframes jd-modal-in {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.jd-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: var(--primary);
  cursor: pointer;
}

.jd-modal-head {
  text-align: center;
  margin-bottom: 20px;
}

.jd-modal-title {
  margin-top: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--primary);
}

.jd-modal-sub {
  margin-top: 8px;
  font-size: 14px;
  color: #6b6357;
  line-height: 1.6;
}

.jd-modal-alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
}

.jd-modal-alert.is-ok {
  background: rgba(46, 160, 90, 0.12);
  color: #1d7a44;
  border: 1px solid rgba(46, 160, 90, 0.35);
}

.jd-modal-alert.is-err {
  background: rgba(200, 60, 60, 0.1);
  color: #b13b3b;
  border: 1px solid rgba(200, 60, 60, 0.3);
}

.jd-modal-form .inquiry-submit {
  width: 100%;
}

body.jd-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .jd-modal-dialog {
    padding: 26px 20px;
  }
}

/* ===================================================================
   Insights widget – dynamic image fills
   =================================================================== */
.insight-feature-media {
  position: relative;
  overflow: hidden;
}

.insight-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-feature-title a {
  color: inherit;
  text-decoration: none;
}

.insight-feature-title a:hover {
  color: var(--primary);
}

.insight-item-icon {
  overflow: hidden;
}

.insight-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ===================================================================
   Blog archive & post cards
   =================================================================== */
.post-archive {
  padding: 56px 0 80px;
}

.post-archive-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 8px;
}

.post-archive-title {
  margin-top: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.post-archive-sub {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #6b6357;
}

.post-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(90, 30, 138, 0.12);
}

.post-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.3), rgba(90, 30, 138, 0.12));
}

.post-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.05);
}

.post-card-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.post-card-date {
  font-size: 12px;
  color: #8a8175;
}

.post-card-title {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card:hover .post-card-title a {
  color: var(--primary);
}

.post-card-excerpt {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b6357;
  flex: 1;
}

.post-card-foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================================================
   Entry footer (categories / tags)
   =================================================================== */
.entry-taxlabel {
  font-weight: 600;
  color: var(--text);
}

.entry-footer a {
  color: var(--primary);
  text-decoration: none;
}

.entry-footer a:hover {
  text-decoration: underline;
}

/* ===================================================================
   Comments
   =================================================================== */
.comments-area {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 24px 80px;
}

.comments-title,
.comment-reply-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--primary);
  margin: 32px 0 20px;
}

.comment-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.comment-list ol.children {
  list-style: none;
  margin: 0 0 0 28px;
  padding: 0;
}

.comment-list .comment-body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-list .comment-author img.avatar {
  border-radius: 50%;
}

.comment-list .comment-author .fn {
  font-weight: 700;
  color: var(--text);
  font-style: normal;
}

.comment-list .comment-author .says {
  display: none;
}

.comment-list .comment-metadata {
  margin-top: 4px;
  font-size: 12px;
  color: #8a8175;
}

.comment-list .comment-metadata a {
  color: #8a8175;
  text-decoration: none;
}

.comment-content {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.comment-content p {
  margin-bottom: 0.8em;
}

.comment-list .reply {
  margin-top: 6px;
}

.comment-list .reply a {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.comment-list .reply a:hover {
  text-decoration: underline;
}

.comment-respond {
  background: #f8f0e0;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 28px 32px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #d9d2e3;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form .logged-in-as,
.comment-form .comment-notes {
  font-size: 13px;
  color: #8a8175;
  margin-bottom: 16px;
}

.comment-form .logged-in-as a {
  color: var(--primary);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.comment-form .form-submit {
  margin-top: 8px;
}

.comment-form .form-submit .submit {
  border: none;
  cursor: pointer;
}

.comment-notes,
.comment-form-cookies-consent {
  font-size: 13px;
  color: #8a8175;
}

.no-comments {
  color: #8a8175;
  font-style: italic;
}

@media (min-width: 640px) {
  .comment-form-author,
  .comment-form-email {
    display: inline-block;
    width: calc(50% - 8px);
  }
  .comment-form-author {
    margin-right: 12px;
  }
}

/* ===================================================================
   Single post: match the header content width (1280px / 32px padding)
   =================================================================== */
.entry-wide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.entry--single .entry-content {
  max-width: 1280px;
  padding-top: 32px;
  padding-bottom: 72px;
}

.entry--single ~ #comments,
#comments.comments-area {
  max-width: 1280px;
  padding-left: 32px;
  padding-right: 32px;
}

/* ===================================================================
   Header dropdown (left of the CTA button)
   =================================================================== */
.header-dropdown {
  position: relative;
}

.header-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.header-dropdown-toggle:hover {
  color: var(--purple);
}

.header-dropdown-caret {
  display: inline-flex;
  transition: transform 0.25s ease;
}

.header-dropdown:hover .header-dropdown-caret,
.header-dropdown.is-open .header-dropdown-caret {
  transform: rotate(180deg);
}

.header-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(90, 30, 138, 0.16);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

.header-dropdown:hover .header-dropdown-menu,
.header-dropdown.is-open .header-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.header-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-dropdown-list li {
  margin: 0;
}

.header-dropdown-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.header-dropdown-list a:hover {
  background: rgba(90, 30, 138, 0.08);
  color: var(--purple);
}

/* Nested submenus (e.g. TranslatePress language switcher children) */
.header-dropdown-list .sub-menu {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.header-dropdown-list .menu-item-has-children > a {
  font-weight: 600;
  color: var(--purple);
}

.header-dropdown-list .sub-menu a {
  padding-left: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Language switcher: hide the parent "current language" link (it's shown as the button),
   promote its children to the top level of the list. */
.is-lang-switcher .header-dropdown-list > .menu-item-has-children > a {
  display: none;
}

.is-lang-switcher .header-dropdown-list > .menu-item-has-children > .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.is-lang-switcher .header-dropdown-list > .menu-item-has-children > .sub-menu a {
  padding-left: 14px;
}

/* Language switcher flags & labels */
.header-dropdown-list .trp-flag-image {
  width: 18px;
  height: 14px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
}

.header-dropdown-list .trp-language-switcher-container a {
  display: flex;
  align-items: center;
}

.header-dropdown-list .trp-ls-language-name {
  vertical-align: middle;
}

/* Button label for lang switcher also shows flag inline */
.header-dropdown-toggle .trp-flag-image {
  width: 18px;
  height: 14px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
}

.header-dropdown-toggle .trp-menu-ls-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 980px) {
  .header-dropdown {
    display: none; /* Items live in the mobile drawer menu instead. */
  }
}

/* ===================================================================
   Social media sidebar
   =================================================================== */
.jd-social-bar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 14px 0 0 14px;
  padding: 8px 6px;
  box-shadow: -6px 8px 24px rgba(90, 30, 138, 0.12);
}

.jd-social-item {
  position: relative;
}

.jd-social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.jd-social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Popover (label or QR) */
.jd-social-pop {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%) translateX(8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}

.jd-social-item:hover .jd-social-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Arrow */
.jd-social-pop::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: #fff;
}

.jd-social-qr {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
}

.jd-social-poplabel {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.jd-social-pop:not(:has(.jd-social-qr)) .jd-social-poplabel {
  margin-top: 0;
}

@media (max-width: 768px) {
  .jd-social-bar {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    border-radius: 14px 14px 0 0;
    border-right: 1px solid var(--border);
    border-bottom: none;
    box-shadow: 0 -6px 20px rgba(90, 30, 138, 0.12);
  }

  .jd-social-pop {
    top: auto;
    bottom: calc(100% + 12px);
    right: 50%;
    left: auto;
    transform: translateX(50%) translateY(8px);
  }

  .jd-social-item:hover .jd-social-pop {
    transform: translateX(50%) translateY(0);
  }

  .jd-social-pop::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left-color: transparent;
    border-top-color: #fff;
  }
}

/* ===================================================================
   Product gallery (single product)
   =================================================================== */
.product-gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(233, 224, 212, 0.7);
  box-shadow: 0 10px 30px rgba(90, 30, 138, 0.08);
}

.product-gallery-slide {
  margin: 0;
  display: none;
  aspect-ratio: 1 / 1;
}

.product-gallery-slide.is-active {
  display: block;
}

.product-gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prev / next arrows */
.product-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(251, 245, 233, 0.92);
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-gallery-nav:hover {
  background: #fff;
}

.product-gallery-prev {
  left: 14px;
}

.product-gallery-prev svg {
  transform: rotate(180deg);
}

.product-gallery-next {
  right: 14px;
}

/* Thumbnails */
.product-gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.product-gallery-thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #fff;
  transition: border-color 0.2s ease;
}

.product-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumb.is-active {
  border-color: var(--primary);
}

/* Draggable main image */
.product-gallery-main {
  touch-action: pan-y;
}

.product-gallery-slide.is-active {
  display: block;
  cursor: grab;
}

.product-gallery-main.is-dragging .product-gallery-slide.is-active {
  cursor: grabbing;
}
