/*
 Theme Name:   Astra Child - Trade
 Theme URI:    http://localhost:8080/
 Description:  Astra child theme for foreign trade inquiry site
 Author:       WP Show
 Template:     astra
 Version:      1.0.2
 License:      GPL v2
*/

/* ========== CSS Variables ========== */
:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --accent: #f97316;
  --dark: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 50px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

/* ========== Reset & Base ========== */
html {
  overflow-y: scroll;
}
body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.7;
  background: #f8fafc;
}
.ast-plain-container,
.ast-page-builder-template {
  background: #f8fafc;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

/* Smooth page transition - eliminates flash between navigations */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Home hero carousel: full-bleed (edge to edge) while page content stays 1200px */
body.home .carousel {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}
.site-content {
  animation: pageFadeIn 0.2s ease-out;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--primary-dark);
}

/* ========== Header / Navigation ========== */
.site-header {
  background: #f0f6ff !important;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ========== Footer social links (standard vertical list) ========== */
.site-footer .footer-social-inner-wrap {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.site-footer .ast-builder-social-element {
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  background: transparent !important;
  box-shadow: none;
}
.site-footer .ast-footer-social-1-wrap .ast-builder-social-element svg {
  width: 18px;
  height: 18px;
}
.site-footer .social-item-label {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  padding-left: 0;
  transition: color 0.2s ease;
}
.site-footer .ast-builder-social-element:hover .social-item-label {
  color: var(--color);
}
.zz-footer-top {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0 32px;
}
.zz-footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr 1.3fr 1.05fr;
  gap: 32px;
}
@media (max-width: 1024px) {
  .zz-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .zz-footer-grid {
    grid-template-columns: 1fr;
  }
}
.zz-footer-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 14px;
}
.zz-footer-col p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}
.zz-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zz-footer-col li {
  margin-bottom: 8px;
}
.zz-footer-col a {
  display: block;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 8px;
}
.zz-footer-col a:hover {
  color: #60a5fa;
}
.zz-footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color);
  margin-bottom: 10px;
}
.zz-footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}
.zz-footer-social a span {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.zz-footer-social a:hover span {
  color: var(--color);
}

/* Dark copyright bar under the rich footer top */
.site-footer {
  background: #0f172a;
}
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
  background-color: #0f172a !important;
  border-top: 0 !important;
  margin-top: 0;
}
.site-footer .ast-footer-copyright {
  color: #94a3b8;
}
.main-header-bar {
  background: #f0f6ff !important;
  min-height: 64px;
}
.main-navigation a {
  font-weight: 500;
  color: var(--dark) !important;
  padding: 8px 16px !important;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--primary) !important;
}

/* ========== Hero Section ========== */
.hero-section {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}
.hero-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-section .btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
}
.btn-primary {
  background: var(--accent);
  color: var(--white) !important;
}
.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white) !important;
  margin-left: 12px;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark) !important;
}

/* ========== Feature Cards ========== */
.features-section {
  padding: 64px 0;
  background: var(--light);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.feature-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* ========== CTA Section ========== */
.cta-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 12px;
}
.cta-section p {
  opacity: 0.9;
  margin-bottom: 24px;
}

/* ========== Hide Default Page Title (we use page-banner instead) ========== */
.entry-header {
  display: none;
}

/* ========== Page Banner ========== */
.page-banner {
  background: var(--light);
  color: var(--dark);
  padding: 32px 0;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}
.page-banner h1 {
  color: var(--dark);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}
.page-banner p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 4px 0 0;
}

/* ========== Container ========== */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-padding {
  padding: 64px 0;
}

/* ========== Form Styling ========== */
.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.inquiry-form input[type="submit"] {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 40px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.inquiry-form input[type="submit"]:hover {
  background: var(--primary-dark);
}

/* ========== Rounded Everywhere ========== */
img {
  border-radius: var(--radius);
}
.ast-container,
.content-area article,
.ast-row {
  border-radius: var(--radius);
}
.main-navigation ul li a {
  border-radius: var(--radius-sm);
}
input, select, textarea, button {
  border-radius: var(--radius-sm) !important;
}
input[type="submit"],
button[type="submit"],
.wp-block-button__link {
  border-radius: var(--radius-full) !important;
}

/* ========== Gutenberg Block Overrides ========== */
.wp-block-cover__inner-container h1 {
  font-size: 2.8rem;
  font-weight: 700;
}
.wp-block-gallery img {
  border-radius: var(--radius);
}
.wp-block-gallery .wp-element-caption {
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
  margin-top: 8px;
}
.wp-block-embed iframe {
  border-radius: var(--radius);
}
.wp-block-columns {
  gap: 24px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2rem; }
  .hero-section { padding: 48px 0; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ========== Product Single (single-fastener_product.php) ========== */
.product-single {
  padding-bottom: 16px;
}
.product-breadcrumb {
  padding: 22px 20px 0;
  font-size: 0.85rem;
  color: var(--gray);
  max-width: 1200px;
  margin: 0 auto;
}
.product-breadcrumb a {
  color: var(--gray);
}
.product-breadcrumb a:hover {
  color: var(--primary);
}
.product-breadcrumb .crumb-sep {
  margin: 0 8px;
  color: #cbd5e1;
}
.product-breadcrumb .crumb-current {
  color: var(--dark);
  font-weight: 600;
}
.product-hero {
  display: grid;
  grid-template-columns: minmax(300px, 480px) 1fr;
  gap: 48px;
  align-items: start;
  padding: 32px 0 40px;
}
.product-hero-media {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.product-hero-main {
  display: block;
}
.product-hero-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.product-hero-placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.product-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.product-gallery-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.product-gallery-thumb:hover {
  opacity: 0.85;
}
.product-gallery-thumb.is-active {
  border-color: var(--primary);
}
.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-hero-info {
  padding-top: 8px;
}
.product-chip {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.product-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--dark);
}
.product-hero-desc {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
}
.product-hero-desc p {
  margin: 0 0 10px;
}
.product-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.product-fact {
  background: var(--light);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}
.product-fact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.product-fact-value {
  font-size: 0.92rem;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.45;
}
.product-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.product-cta-primary {
  display: inline-block;
  padding: 15px 38px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}
.product-cta-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.product-cta-secondary {
  display: inline-block;
  padding: 14px 32px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.product-cta-secondary:hover {
  background: var(--primary);
  color: var(--white);
}
.product-specs-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.product-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--dark);
}
.product-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.product-specs th,
.product-specs td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}
.product-specs tr:last-child th,
.product-specs tr:last-child td {
  border-bottom: 1px solid #eef2f7;
}
.product-specs th {
  width: 30%;
  font-weight: 600;
  color: var(--dark);
  background: var(--light);
}
.product-related {
  padding: 48px 0 8px;
}
.product-cta-band {
  width: 100%;
  max-width: 1160px;
  margin: 56px auto 72px;
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 55%, #1e3a8a 100%);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
}
.product-cta-band h2 {
  color: var(--white);
  font-size: 1.7rem;
  margin: 0 0 12px;
}
.product-cta-band p {
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 26px;
}
.product-cta-band-btn {
  display: inline-block;
  padding: 15px 42px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, color 0.2s ease;
}
.product-cta-band-btn:hover {
  background: var(--white);
  color: var(--primary-dark);
}

@media (max-width: 920px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-hero-title {
    font-size: 1.8rem;
  }
}
@media (max-width: 640px) {
  .product-facts {
    grid-template-columns: 1fr;
  }
  .product-specs-card {
    padding: 22px;
  }
  .product-cta-band {
    padding: 40px 22px;
  }
  .product-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .product-hero-cta a {
    text-align: center;
  }
}

/* ========== Products Catalog (page-products.php) ========== */
.catalog-banner {
  background:
    linear-gradient(rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.62)),
    url(/wp-content/uploads/2026/08/banner_products.webp) center/cover no-repeat;
  padding: 72px 0;
}
.catalog-banner h1 {
  color: var(--white);
  font-size: 1.9rem;
}
.catalog-banner p {
  color: rgba(255, 255, 255, 0.85);
}
.product-catalog {
  max-width: 1200px;
}
.product-filter {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.filter-field {
  flex: 1;
  min-width: 0;
}
.filter-field.filter-search {
  flex: 1.5;
}
.filter-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 6px;
}
.filter-field input,
.filter-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
}
.filter-field input:focus,
.filter-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}
.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.filter-submit {
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
}
.filter-submit:hover {
  background: var(--primary-dark);
}
.filter-reset {
  padding: 10px 18px;
  background: var(--light);
  color: var(--gray);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  white-space: nowrap;
}
.catalog-count {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.product-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(30, 41, 59, 0.78);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  backdrop-filter: blur(2px);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--dark);
  text-decoration: none;
}
.product-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.product-card-placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 16px 6px;
  line-height: 1.4;
}
.product-card-terms {
  flex: 1;
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0 16px 12px;
  line-height: 1.5;
}
.product-card-more {
  display: block;
  margin: 0 16px 16px;
  padding: 10px 0;
  text-align: center;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  transition: background 0.2s ease, color 0.2s ease;
}
.product-card:hover .product-card-more {
  background: var(--primary);
  color: var(--white);
}
.catalog-pagination {
  margin-top: 36px;
}
.catalog-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalog-pagination li {
  margin: 0;
}
.catalog-pagination a.page-numbers,
.catalog-pagination .page-numbers.current,
.catalog-pagination .page-numbers.dots {
  display: inline-block;
  min-width: 42px;
  text-align: center;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  color: var(--dark);
  background: var(--white);
}
.catalog-pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.catalog-pagination a.page-numbers:hover {
  background: var(--light);
  color: var(--primary);
}
.catalog-empty {
  text-align: center;
  color: var(--gray);
  padding: 48px 0;
}

@media (max-width: 1080px) {
  .product-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .product-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-actions {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .product-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 901px) {
  .product-filter {
    flex-wrap: nowrap;
  }
}

/* ========== Homepage Carousel ========== */
.carousel .slide h1,
.carousel .slide h2,
.carousel .slide p {
  color: #ffffff;
}
.carousel .slide h1,
.carousel .slide h2 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.carousel .slide p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* ========== Solutions (page-solutions.php) ========== */
.solutions-page {
  padding-bottom: 16px;
}
.solutions-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.5)),
    url(/wp-content/uploads/2026/08/banner_solutions.webp) center/cover no-repeat;
  min-height: 300px;
  display: flex;
  align-items: center;
}
.solutions-hero-inner {
  width: 100%;
  text-align: center;
  color: var(--white);
}
.solutions-hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.solutions-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.solutions-section {
  padding: 64px 0 8px;
}
.solutions-section-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.solutions-section-sub {
  text-align: center;
  color: var(--gray);
  margin: 0 0 40px;
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.solution-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.solution-card-media {
  display: block;
  overflow: hidden;
}
.solution-card-media img {
  width: 100%;
  height: auto;
  display: block;
}
.solution-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.solution-card-label {
  align-self: flex-start;
  background: var(--light);
  color: var(--primary);
  border: 1px solid #dbe4f6;
  border-radius: var(--radius-full);
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.solution-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.solution-card-desc {
  flex: 1;
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0 0 12px;
}
.solution-card-tag {
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ========== Solution pairs (drawing + install guide, side by side) ========== */
.solutions-grid.solution-pairs {
  grid-template-columns: 1fr;
}
.solution-pair {
  flex-direction: row;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.solution-pair-media {
  flex: 1;
  min-width: 0;
}
.solution-pair-media a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.solution-pair-media img {
  width: 100%;
  height: auto;
  display: block;
}
.solution-pair-caption {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
}

/* ========== Project Pairs (group = two photos side by side, no card border) ========== */
.project-pairs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.project-pair {
  display: flex;
  gap: 12px;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-pair:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-pair a {
  flex: 1;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}
.project-pair img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== Production Facility photos ========== */
.factory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.factory-grid a {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.factory-grid a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.factory-grid img {
  width: 100%;
  display: block;
}

/* Image corners are clipped by their rounded container; neutralize the
   global img border-radius so only the container shapes the corners. */
.factory-grid img,
.project-pair img,
.solution-pair-media img {
  border-radius: 0;
}

@media (max-width: 768px) {
  .solution-pair {
    flex-direction: column;
  }
}

.solutions-cta {
  width: 100%;
  max-width: 1160px;
  margin: 56px auto 72px;
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 55%, #1e3a8a 100%);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  color: var(--white);
}
.solutions-cta h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--white);
}
.solutions-cta p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 auto 26px;
}
.solutions-cta-btn {
  display: inline-block;
  padding: 15px 42px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
  transition: background 0.2s ease, color 0.2s ease;
}
.solutions-cta-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
}

@media (max-width: 640px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .solutions-hero h1 {
    font-size: 2rem;
  }
  .solutions-section {
    padding: 40px 0 8px;
  }
  .solutions-cta {
    padding: 36px 20px;
  }
}

/* ========== Design System: Unified Page Banners ========== */
/* Full-bleed banner background + 1200px inner text on every page. */
.catalog-banner,
.solutions-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.catalog-banner {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}
.catalog-banner .content-container {
  width: 100%;
}
.solutions-hero {
  min-height: 300px;
}
.wp-block-cover {
  min-height: 300px !important;
}
.wp-block-cover__inner-container {
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
}

/* Consistent banner typography. */
.catalog-banner h1,
.solutions-hero h1,
.wp-block-cover h1 {
  font-size: 2.5rem !important;
  font-weight: 700;
}
.catalog-banner p,
.solutions-hero p {
  font-size: 1.05rem;
}

/* Consistent section titles. */
.product-section-title,
.solutions-section-title {
  font-size: 1.6rem !important;
}

@media (max-width: 768px) {
  .catalog-banner,
  .solutions-hero {
    min-height: 240px;
  }
  .catalog-banner h1,
  .solutions-hero h1,
  .wp-block-cover h1 {
    font-size: 2rem !important;
  }
}

/* ========== Block Buttons: restore palette colors & text ========== */
.wp-block-button__link,
.wp-block-button__link.wp-element-button {
  color: #ffffff !important;
}
.has-accent-background-color {
  background-color: var(--accent) !important;
}
.has-primary-background-color {
  background-color: var(--primary) !important;
}
.has-accent-color {
  color: var(--accent) !important;
}
.has-primary-color {
  color: var(--primary) !important;
}

/* ========== Homepage CTA band: match the light CTA card ========== */
body.home .wp-block-group.alignfull.has-primary-background-color {
  margin: 56px auto 72px !important;
  width: auto !important;
  max-width: 1200px !important;
  border-radius: 24px;
  padding: 48px 32px !important;
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 55%, #1e3a8a 100%) !important;
  border: none;
  color: var(--white) !important;
}
body.home .wp-block-group.alignfull.has-primary-background-color h2,
body.home .wp-block-group.alignfull.has-primary-background-color h2.has-white-color {
  color: #ffffff !important;
}
body.home .wp-block-group.alignfull.has-primary-background-color p {
  color: rgba(255, 255, 255, 0.92) !important;
}

@media (max-width: 768px) {
  body.home .wp-block-group.alignfull.has-primary-background-color {
    margin: 40px 16px 56px !important;
    padding: 40px 22px !important;
    border-radius: 16px;
  }
}

/* ========== Homepage product category cards (shortcode) ========== */
.zz-cat-section {
  padding: 64px 0;
}
.zz-cat-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--dark, #1e293b);
}
.zz-cat-subtitle {
  text-align: center;
  color: #64748b;
  margin: 0 0 36px;
}
.zz-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.zz-cat-card {
  display: block;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 16px;
  text-decoration: none;
  transition: transform 0.2s;
}
.zz-cat-card:hover {
  transform: translateY(-3px);
}
.zz-cat-card img,
.zz-cat-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
.zz-cat-card-placeholder {
  background: #e2e8f0;
}
.zz-cat-card h3 {
  font-size: 1rem;
  color: #1e293b;
  margin: 0 0 4px;
}
.zz-cat-card p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
}
@media (max-width: 921px) {
  .zz-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 544px) {
  .zz-cat-grid {
    grid-template-columns: 1fr;
  }
}
