/* ==========================================================================
   ArtisResin Craft Co., Ltd. - Official Design System
   Theme: Editorial Minimalist & Artisan Craft (极简高雅轻奢 / 艺术工匠风)
   WCAG 2.2 AA Verified | Defensive CSS Hardened | Fully Responsive
   ========================================================================== */

/* --- Custom Properties & Palette --- */
:root {
  /* Warm Editorial Canvas & Elevated Tones */
  --bg-primary: #FAF8F5;          /* Warm alabaster cream canvas */
  --bg-secondary: #F2ECE4;        /* Soft parchment tint */
  --bg-card: #FFFFFF;             /* Pure white crisp card layer */
  --bg-dark: #1E1A17;             /* Deep espresso dark slate */
  --bg-dark-accent: #2C2621;      /* Elevated espresso surface */
  
  /* Typography & Neutral Inks (WCAG AA Compliant >= 4.5:1 on light) */
  --text-main: #231F1C;           /* High-contrast deep obsidian charcoal (14.2:1) */
  --text-muted: #585049;          /* Refined warm stone grey (5.6:1 on light) */
  --text-light: #8A8077;          /* Secondary caption tone */
  --text-on-dark: #FAF8F5;        /* Crisp off-white on dark backgrounds */
  --text-muted-on-dark: #D4CCC2;  /* High contrast muted on dark */

  /* Artisan Luxury Accents */
  --color-gold: #C59A45;          /* Champagne matte gold accent */
  --color-gold-hover: #A88032;    /* Darkened gold for hover */
  --color-gold-light: #F4EADA;    /* Soft gold wash */
  --color-bronze: #7A583A;        /* Antique bronze tone */
  --color-green: #3A664E;         /* Botanical sage tone */
  --color-terracotta: #B85D43;    /* Warm terracotta red */

  /* Structural & Functional */
  --border-light: #E6DFD5;        /* Delicate flaxen border */
  --border-medium: #D0C6B8;       /* Defined card separator */
  --border-gold: #D8B775;         /* Gold highlight border */
  
  --shadow-sm: 0 2px 6px rgba(35, 31, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(35, 31, 28, 0.08);
  --shadow-lg: 0 16px 40px rgba(35, 31, 28, 0.12);
  --shadow-jelly: 0 12px 30px rgba(197, 154, 69, 0.25);

  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); /* Jelly bounce */
}

/* --- Global Reset & Defensive Rules --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Accessibility: Skip to Content */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--bg-dark);
  color: #FFFFFF;
  padding: 12px 20px;
  font-weight: 700;
  z-index: 10000;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 20px;
}

/* Standard Container */
.site-container,
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  min-width: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  word-break: break-word;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p {
  word-break: break-word;
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

/* --- Buttons & Jelly Bounce Interactions --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-bounce);
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background-color: var(--color-gold);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(197, 154, 69, 0.3);
}
.btn-primary:hover {
  background-color: var(--color-gold-hover);
  box-shadow: var(--shadow-jelly);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-medium);
}
.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-hover);
  background-color: var(--color-gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-medium);
}
.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-hover);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}

/* --- Top Announcement Bar --- */
.top-announcement-bar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.announcement-badge {
  background: rgba(197, 154, 69, 0.25);
  color: #E6C57A;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.announcement-cta {
  color: #E6C57A;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announcement-cta:hover {
  color: #FFFFFF;
}

/* --- Sticky Main Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 230px;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.brand-logo:hover .header-brand-logo-img {
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 6px rgba(197, 154, 69, 0.4));
}
.footer-brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  margin-bottom: 16px;
  transition: opacity var(--transition-fast);
}
.footer-brand-logo:hover .footer-brand-logo-img {
  opacity: 0.9;
}
.artisan-logo-svg {
  display: block;
  transition: transform var(--transition-fast);
}
.brand-logo:hover .artisan-logo-svg {
  transform: rotate(15deg);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.logo-brand {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  flex-wrap: nowrap;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 4px;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--color-gold-hover);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger-bar {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 23, 0.6);
  z-index: 2000;
  backdrop-filter: blur(6px);
}
.mobile-nav-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: var(--bg-primary);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.mobile-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}
.mobile-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.mobile-nav-links .nav-link {
  font-size: 1.1rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mobile-nav-cta {
  margin-top: auto;
}
.mobile-contact-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* --- Ins-Style Live RFQ Marquee Stream --- */
.ins-live-rfq-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.85rem;
}
.ins-live-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding-right: 16px;
  border-right: 1px solid var(--border-medium);
  font-weight: 700;
  color: var(--text-main);
  max-width: 100%;
  flex-shrink: 0;
}
.ins-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #27AE60;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
  animation: pulse-green 1.8s infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(39, 174, 96, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}
.ins-live-title {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-gold-hover);
}
.ins-slot-counter {
  font-size: 0.75rem;
  background: rgba(197, 154, 69, 0.15);
  color: var(--color-bronze);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.ins-ticker-viewport {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}
.ins-ticker-track {
  display: inline-flex;
  gap: 24px;
  animation: ticker-slide 60s linear infinite;
}
.ins-ticker-track:hover {
  animation-play-state: paused;
}
@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ins-ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  cursor: pointer;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
}
.ins-ticker-pill:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.ins-avatar-ring {
  font-size: 1rem;
}
.ins-item-hl {
  color: var(--color-gold-hover);
  font-weight: 600;
}
.ins-rebate-chip {
  background: rgba(39, 174, 96, 0.12);
  color: #1E7E34;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- Breadcrumb Navigation --- */
.breadcrumb-container {
  padding: 12px 0;
  font-size: 0.85rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--text-light);
  margin-right: 8px;
}
.breadcrumb-item a {
  color: var(--text-muted);
}
.breadcrumb-item a:hover {
  color: var(--color-gold-hover);
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 600;
}

/* --- Full-Bleed Micro Showcase Hero Section --- */
.hero-full-bleed {
  position: relative;
  background-color: #14110E;
  background-image: 
    linear-gradient(90deg, rgba(16, 13, 11, 0.96) 0%, rgba(16, 13, 11, 0.90) 45%, rgba(16, 13, 11, 0.40) 80%, rgba(16, 13, 11, 0.65) 100%),
    url('../images/hero/hero-polyresin-showcase.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: var(--text-on-dark);
  padding: clamp(70px, 9vw, 130px) 0;
  min-height: clamp(560px, 75vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(197, 154, 69, 0.18) 0%, rgba(18, 15, 12, 0) 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-content-col {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 154, 69, 0.2);
  border: 1px solid rgba(197, 154, 69, 0.45);
  color: #E6C57A;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero-headline {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 22px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero-headline em {
  font-style: italic;
  color: #E6C57A;
}
.hero-subhead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(245, 240, 235, 0.88);
  margin-bottom: 32px;
  max-width: 660px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-craft-highlight-card {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(30, 25, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 154, 69, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  flex-wrap: wrap;
  margin-top: 8px;
}
.craft-highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.craft-highlight-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.craft-highlight-text {
  display: flex;
  flex-direction: column;
}
.craft-highlight-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #E6C57A;
  font-family: var(--font-serif);
  line-height: 1.2;
}
.craft-highlight-desc {
  font-size: 0.76rem;
  color: var(--text-muted-on-dark);
  line-height: 1.3;
}
.craft-highlight-divider {
  width: 1px;
  height: 36px;
  background: rgba(197, 154, 69, 0.25);
}
@media (max-width: 640px) {
  .craft-highlight-divider {
    display: none;
  }
}
.hero-guarantee-chips {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted-on-dark);
}
.hero-chip-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Metrics Counter Section --- */
.metrics-counter-section {
  background: var(--bg-card);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.metric-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  transition: all var(--transition-bounce);
}
.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}
.metric-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.metric-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}
.metric-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}
.metric-unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-gold-hover);
}
.metric-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Product Cards & Catalog Grid --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  background: var(--bg-secondary);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card-img-link {
  display: block;
  width: 100%;
  height: 100%;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .card-img {
  transform: scale(1.05);
}

.card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(35, 31, 28, 0.85);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.card-sku-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.card-title a:hover {
  color: var(--color-gold-hover);
}
.card-short-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-spec-grid {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.spec-label {
  color: var(--text-muted);
}
.spec-val {
  color: var(--text-main);
  text-align: right;
}
.spec-price-tag {
  color: var(--color-gold-hover);
  font-weight: 700;
}

.card-compliance-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.comp-badge {
  font-size: 0.72rem;
  background: rgba(39, 174, 96, 0.08);
  color: #1E7E34;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.card-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

/* --- Macro Specimen Switcher (Stage 13 Specimen Switcher) --- */
.specimen-switcher-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.switcher-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.specimen-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.specimen-tab-btn {
  text-align: left;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.specimen-tab-btn:hover, .specimen-tab-btn.active {
  border-color: var(--color-gold);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.tab-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}
.tab-badge {
  font-size: 0.72rem;
  background: rgba(197, 154, 69, 0.15);
  color: var(--color-gold-hover);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}
.tab-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.specimen-display-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.specimen-display-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- GEO Direct Answer Chunks --- */
.geo-direct-answer-chunk {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 40px 0;
  box-shadow: 0 4px 16px rgba(197, 154, 69, 0.08);
}
.geo-badge-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.geo-ai-pill {
  background: rgba(197, 154, 69, 0.15);
  color: var(--color-gold-hover);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}
.geo-verified-pill {
  background: rgba(39, 174, 96, 0.1);
  color: #1E7E34;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.geo-question-heading {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}
.geo-answer-prose p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.geo-meta-chips {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Engineering Spec Tables --- */
.eng-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.88rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.eng-spec-table th, .eng-spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  min-width: 0;
}
.eng-spec-table th {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.eng-spec-table tr:hover td {
  background: rgba(244, 234, 218, 0.4);
}

/* --- Formula & Callout Boxes --- */
.formula-callout {
  background: #FFFDF9;
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.technical-callout {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.blog-figure {
  margin: 36px 0;
  text-align: center;
}
.blog-figure img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-left: auto;
  margin-right: auto;
}
.blog-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

.faq-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 40px 0;
}
.faq-block h3 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* --- Footer Styling --- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 72px 0 28px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted-on-dark);
  margin-bottom: 20px;
}
.footer-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-chip {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: #E6C57A;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-gold);
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link-list a {
  font-size: 0.86rem;
  color: var(--text-muted-on-dark);
  transition: color var(--transition-fast);
}
.footer-link-list a:hover {
  color: #E6C57A;
  padding-left: 4px;
}

.footer-contact-details p {
  font-size: 0.86rem;
  color: var(--text-muted-on-dark);
  margin-bottom: 8px;
  font-style: normal;
}
.footer-contact-details a {
  color: #E6C57A;
}
.footer-hours {
  font-size: 0.78rem;
  color: #A0968B;
  margin-top: 12px;
}

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted-on-dark);
}
.footer-policy-links a {
  color: var(--text-muted-on-dark);
}
.footer-policy-links a:hover {
  color: #E6C57A;
}

/* --- RFQ Modal Styling --- */
.rfq-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 23, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.rfq-modal-overlay[hidden] {
  display: none !important;
}

.rfq-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-pop var(--transition-bounce);
}
@keyframes modal-pop {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.rfq-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.rfq-modal-close:hover {
  color: var(--text-main);
}

.rfq-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.rfq-modal-badge {
  background: rgba(197, 154, 69, 0.15);
  color: var(--color-gold-hover);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.rfq-modal-badge-alt {
  background: rgba(39, 174, 96, 0.12);
  color: #1E7E34;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.rfq-modal-headline {
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.rfq-modal-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 6px;
}
.form-group .req {
  color: var(--color-terracotta);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-main);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(197, 154, 69, 0.15);
}

.rfq-guarantees-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.rfq-alert-msg {
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
}
.rfq-alert-msg.success {
  background: rgba(39, 174, 96, 0.12);
  color: #1E7E34;
  border: 1px solid #A3E4D7;
}
.rfq-alert-msg.error {
  background: rgba(231, 76, 60, 0.12);
  color: #C0392B;
  border: 1px solid #FADBD8;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subhead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-guarantee-chips {
    justify-content: center;
  }
  .hero-float-card {
    left: 20px;
    bottom: -16px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .switcher-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .main-nav, .header-actions .btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .header-inner {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .ins-live-rfq-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }
  .ins-live-badge-wrap {
    border-right: none;
    padding-right: 0;
    margin-bottom: 4px;
    white-space: normal;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 0.78rem;
    max-width: 100%;
  }
  .ins-slot-counter {
    font-size: 0.75rem;
    padding: 2px 6px;
  }
  .ins-ticker-viewport {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }
}

/* ==========================================================================
   5 Core Overseas Buyer Questions Fast-Track Decision Workbench
   ========================================================================== */
.buyer-qa-section {
  background: var(--bg-card);
  padding: clamp(60px, 8vw, 90px) 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.buyer-qa-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 52px;
}
.buyer-qa-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1200px) {
  .buyer-qa-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .buyer-qa-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.buyer-qa-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-bounce);
  position: relative;
}
.buyer-qa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(197, 154, 69, 0.12);
  border-color: rgba(197, 154, 69, 0.5);
}
.qa-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  background: rgba(197, 154, 69, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.qa-question {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 12px;
  min-height: 48px;
}
.qa-answer-lead {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-gold-hover);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-light);
}
.qa-answer-body {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}
.qa-answer-body ul {
  padding-left: 16px;
  margin: 6px 0 0;
}
.qa-answer-body li {
  margin-bottom: 5px;
}
.qa-action {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.qa-link, .qa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.qa-link:hover, .qa-btn:hover {
  color: var(--color-gold-hover);
  transform: translateX(4px);
}


/* --- Factory Audit & Video Tour Hub --- */
.audit-channel-card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.audit-channel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.vtour-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
  width: 100%;
}
.vtour-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}
.vtour-tab-btn.active {
  background: rgba(197, 154, 69, 0.15);
  border-color: rgba(197, 154, 69, 0.4);
  color: #FFFFFF;
}
.vtour-tab-idx {
  font-family: monospace;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-gold);
}
.vtour-tab-info strong {
  display: block;
  font-size: 0.84rem;
  color: inherit;
}
.vtour-tab-info span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.vtour-tab-btn.active .vtour-tab-info span {
  color: #E6C57A;
}
@media (max-width: 900px) {
  .video-tour-grid {
    grid-template-columns: 1fr !important;
  }
  #vtourScreenWrap {
    min-height: 280px;
  }
}

/* ==========================================================================
   Floating Sticky Pulsing RFQ Widget (Every Page Conversion Engine)
   ========================================================================== */
.floating-rfq-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 990;
  pointer-events: auto;
}

.floating-rfq-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 16px;
  background: linear-gradient(135deg, #1E1A17 0%, #2A241F 100%);
  color: #FFFFFF !important;
  text-decoration: none !important;
  border: 1.5px solid rgba(197, 154, 69, 0.7);
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(30, 26, 23, 0.45);
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  animation: rfq-pulse-glow 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
  backdrop-filter: blur(10px);
}

.floating-rfq-btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #E6C57A;
  box-shadow: 0 14px 32px rgba(30, 26, 23, 0.55), 0 0 18px rgba(197, 154, 69, 0.35);
}

.floating-rfq-btn:active {
  transform: translateY(0) scale(0.98);
}

.floating-rfq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(197, 154, 69, 0.18);
  border: 1px solid rgba(197, 154, 69, 0.4);
  border-radius: 50%;
  color: #E6C57A;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.floating-rfq-btn:hover .floating-rfq-icon {
  background: #C59A45;
  color: #1E1A17;
  transform: rotate(-8deg);
}

.floating-rfq-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.floating-rfq-title {
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.floating-rfq-sub {
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.70rem;
  color: #C59A45;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pulsing radar beacon dot */
.floating-rfq-beacon {
  position: absolute;
  top: 4px;
  right: 12px;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.floating-rfq-ping {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #22C55E;
  opacity: 0.75;
  animation: rfq-beacon-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.floating-rfq-dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

/* Keyframe animations */
@keyframes rfq-pulse-glow {
  0% {
    box-shadow: 0 8px 24px rgba(30, 26, 23, 0.45), 0 0 0 0 rgba(197, 154, 69, 0.65);
  }
  65% {
    box-shadow: 0 12px 28px rgba(30, 26, 23, 0.45), 0 0 0 14px rgba(197, 154, 69, 0);
  }
  100% {
    box-shadow: 0 8px 24px rgba(30, 26, 23, 0.45), 0 0 0 0 rgba(197, 154, 69, 0);
  }
}

@keyframes rfq-beacon-ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Mobile responsive optimization */
@media (max-width: 640px) {
  .floating-rfq-widget {
    right: 16px;
    bottom: 18px;
  }
  .floating-rfq-btn {
    padding: 10px 14px 10px 12px;
    gap: 8px;
  }
  .floating-rfq-title {
    font-size: 0.85rem;
  }
  .floating-rfq-sub {
    font-size: 0.65rem;
  }
  .floating-rfq-icon {
    width: 30px;
    height: 30px;
  }
  .floating-rfq-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Full Clickable Blog Cards */
.blog-preview-card,
.blog-card {
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.blog-preview-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold) !important;
}
.blog-preview-card .blog-card-thumb,
.blog-card .blog-card-thumb {
  transition: transform 0.35s ease;
}
.blog-preview-card:hover .blog-card-thumb,
.blog-card:hover .blog-card-thumb {
  transform: scale(1.04);
}


/* High-Contrast WhatsApp CTA Button */
.btn-whatsapp {
  background-color: #25D366 !important;
  color: #FFFFFF !important;
  border: 1px solid #20BA5C !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background-color: #1EBE5D !important;
  color: #FFFFFF !important;
  border-color: #1CA852 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}


/* ==========================================================================
   Catalog Dynamic Pagination & Controls
   ========================================================================== */
.catalog-pagination-wrap {
  margin: 44px 0 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.pagination-info {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-family: var(--font-sans);
}

.pagination-info strong {
  font-weight: 700;
}

.pagination-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-sans);
  user-select: none;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  border-color: var(--color-gold-hover);
  color: var(--color-gold-hover);
  background: var(--bg-gold-light);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: linear-gradient(135deg, #1E1A17 0%, #2A241F 100%) !important;
  color: #E6C57A !important;
  border-color: #C59A45 !important;
  box-shadow: 0 4px 14px rgba(30, 26, 23, 0.25);
  cursor: default;
}

.pagination-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--bg-primary);
  border-color: var(--border-light);
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 40px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1rem;
}

/* ==========================================================================
   Back to Top Floating Button (Fixed Bottom-Right)
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  right: 28px;
  bottom: 96px;
  z-index: 988;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(30, 26, 23, 0.92);
  color: #E6C57A;
  border: 1.5px solid rgba(197, 154, 69, 0.5);
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(30, 26, 23, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: #C59A45;
  color: #1E1A17;
  border-color: #E6C57A;
  box-shadow: 0 10px 28px rgba(197, 154, 69, 0.45);
  transform: translateY(-3px);
}

.back-to-top-btn:active {
  transform: translateY(0) scale(0.96);
}

.back-to-top-btn svg {
  transition: transform 0.2s ease;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

.back-to-top-text {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-top: 1px;
}

@media (max-width: 768px) {
  .back-to-top-btn {
    right: 18px;
    bottom: 84px;
    width: 42px;
    height: 42px;
  }
  .back-to-top-text {
    display: none;
  }
}
