/*
Theme Name: Joy Catalog
Author: WordPress Telex
Description: A warm, cinematic B2B exhibition theme for children's electric vehicles and bicycles. Features golden-hour aesthetics, professional product catalog presentation, trust-building elements, and streamlined inquiry workflows designed for international wholesale buyers.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: joy-catalog
Tags: block-theme, full-site-editing, e-commerce, b2b
*/

/* Equal-height card grid */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* Footer margin reset */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* Hero badge styling */
.hero-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 253, 247, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 253, 247, 0.25);
  border-radius: 50px;
  padding: 0.45rem 1.3rem;
}
.hero-badge-row .badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F0A500;
  box-shadow: 0 0 8px rgba(240, 165, 0, 0.6);
  flex-shrink: 0;
}

/* Stats strip */
.stats-strip {
  border-top: 1px solid rgba(255, 253, 247, 0.12);
}
.stats-strip .wp-block-columns {
  gap: 0 !important;
}
.stats-strip .wp-block-column {
  text-align: center;
  position: relative;
  padding: 0.5rem 1rem;
}
.stats-strip .wp-block-column + .wp-block-column::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 253, 247, 0.18);
}

/* Road divider accent */
.road-divider {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #F0A500 0px,
    #F0A500 30px,
    transparent 30px,
    transparent 50px
  );
  opacity: 0.6;
}

/* Gold underline accent for headings */
.gold-underline::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #F0A500;
  border-radius: 2px;
  margin-top: 0.75rem;
}
.gold-underline-center::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #F0A500;
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* Category card hover */
.category-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border-radius: 12px;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(92, 74, 50, 0.15);
}

/* Advantage card icon circle */
.advantage-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F0A500 0%, #D4920A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(240, 165, 0, 0.3);
  color: #FFFDF7;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

/* Inquiry banner gradient */
.inquiry-banner {
  position: relative;
  overflow: hidden;
}
.inquiry-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Trust badges row */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}
.trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}
.trust-badge-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFF8E7;
  border: 2px solid #F0A500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #D4920A;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

/* Smooth nav */
.site-nav a {
  position: relative;
  padding-bottom: 2px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #F0A500;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.site-nav a:hover::after {
  width: 100%;
}

/* Nav CTA button */
.nav-cta-btn a {
  background: #F0A500 !important;
  color: #3A3630 !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.5rem !important;
  box-shadow: 0 3px 14px rgba(240, 165, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta-btn a:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(240, 165, 0, 0.5);
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}
.fade-in-up-delay-1 {
  animation: fadeInUp 0.7s ease 0.15s both;
}
.fade-in-up-delay-2 {
  animation: fadeInUp 0.7s ease 0.3s both;
}
.fade-in-up-delay-3 {
  animation: fadeInUp 0.7s ease 0.45s both;
}

/* Product card styling */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border-radius: 12px;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(92, 74, 50, 0.12);
}
.product-card img {
  transition: transform 0.4s ease;
}
.product-card:hover img {
  transform: scale(1.03);
}

/* Product model number */
.product-model {
  display: inline-block;
  background: #FDF0C8;
  color: #5C4A32;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* Category tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.category-tab {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1.5px solid #FDF0C8;
  color: #5C4A32;
  background: #FFFDF7;
  cursor: pointer;
}
.category-tab:hover,
.category-tab.active {
  background: #F0A500;
  color: #3A3630;
  border-color: #F0A500;
  box-shadow: 0 2px 12px rgba(240, 165, 0, 0.3);
}

/* Product detail spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
}
.spec-table tr {
  border-bottom: 1px solid #FDF0C8;
}
.spec-table tr:last-child {
  border-bottom: none;
}
.spec-table td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}
.spec-table td:first-child {
  font-weight: 700;
  color: #5C4A32;
  white-space: nowrap;
  width: 38%;
  background: #FFFDF7;
}
.spec-table td:last-child {
  color: #3A3630;
}

/* Product detail image gallery */
.product-gallery-main {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #FDF0C8;
}
.product-gallery-main img {
  width: 100%;
  height: auto;
  display: block;
}
.product-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.product-gallery-thumbs .thumb-item {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #FDF0C8;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.2s ease;
}
.product-gallery-thumbs .thumb-item:hover,
.product-gallery-thumbs .thumb-item.active {
  border-color: #F0A500;
  transform: scale(1.03);
}
.product-gallery-thumbs .thumb-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* Product detail info badges */
.product-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FDF0C8;
  color: #5C4A32;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* Spec section card */
.spec-section {
  background: #FFFDF7;
  border: 1px solid #FDF0C8;
  border-radius: 12px;
  overflow: hidden;
}
.spec-section-header {
  background: linear-gradient(135deg, #F0A500 0%, #D4920A 100%);
  color: #FFFDF7;
  padding: 0.65rem 1.25rem;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* OEM service highlight */
.oem-highlight {
  position: relative;
  border-left: 4px solid #F0A500;
  padding-left: 1.25rem;
}

/* Service item styling */
.service-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  border-bottom: 1px solid #FDF0C8;
}
.service-item:last-child {
  border-bottom: none;
}
.service-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F0A500 0%, #D4920A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFDF7;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 3px 12px rgba(240, 165, 0, 0.3);
}
.service-content h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #3A3630;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}
.service-content p {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #3A3630;
  margin: 0;
}

/* Contact page styles */
.contact-info-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(92, 74, 50, 0.1);
}
.contact-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F0A500 0%, #D4920A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFDF7;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 3px 12px rgba(240, 165, 0, 0.3);
  flex-shrink: 0;
}
.contact-whatsapp-highlight {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFDF7;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.contact-whatsapp-highlight .wa-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-whatsapp-highlight .wa-icon svg {
  width: 30px;
  height: 30px;
  fill: #FFFDF7;
}
.contact-whatsapp-highlight .wa-text h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #FFFDF7;
  margin: 0 0 0.25rem 0;
}
.contact-whatsapp-highlight .wa-text p {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}
.contact-form-field {
  width: 100%;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #FDF0C8;
  border-radius: 8px;
  background: #FFFDF7;
  color: #3A3630;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}
.contact-form-field:focus {
  border-color: #F0A500;
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.12);
}
.contact-form-field::placeholder {
  color: #a09888;
}
textarea.contact-form-field {
  resize: vertical;
  min-height: 120px;
}
.contact-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-form-row > div {
  flex: 1;
}
.contact-form-label {
  display: block;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5C4A32;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.contact-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #3A3630;
  background: #F0A500;
  padding: 1rem 2.4rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 20px rgba(240, 165, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(240, 165, 0, 0.45);
}
.contact-reply-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FDF0C8;
  color: #5C4A32;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.contact-reply-badge .reply-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.5);
}

/* Responsive */
@media (max-width: 782px) {
  .stats-strip .wp-block-column + .wp-block-column::before {
    display: none;
  }
  .hero-badge-row {
    font-size: 0.75rem;
  }
  .category-tabs {
    gap: 0.4rem;
  }
  .category-tab {
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
  }
  .spec-table td:first-child {
    width: auto;
    display: block;
    padding-bottom: 0;
  }
  .spec-table td:last-child {
    display: block;
    padding-top: 0.25rem;
  }
  .spec-table tr {
    display: block;
    padding: 0.5rem 0;
  }
  .product-gallery-thumbs .thumb-item img {
    height: 60px;
  }
  .contact-form-row {
    flex-direction: column;
    gap: 0;
  }
  .contact-form-row > div {
    margin-bottom: 1rem;
  }
  .contact-whatsapp-highlight {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}