/*
Theme Name: Default Theme
Theme URI: https://www.shopagg.com/
Author: ShopAGG
Author URI: https://www.shopagg.com/
Description: ShopAGG B2B 企业官网默认主题，包含完整的页面模板、区块配置和基础样式。
Version: 1.0.0
License: MIT
*/

/**
 * Default Theme - Custom Styles for Tailwind CSS
 */

/* ===== Base & Variables ===== */
:root {
  --brand-ink: #0f172a;
  --brand-muted: #475569;
  --brand-surface: #ffffff;
  --brand-border: #e2e8f0;
  --brand-accent: #0ea5e9;
}

/* ===== Typography ===== */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Hero Swiper ===== */
.hero-banner {
  height: clamp(420px, 45.4545vw, 900px);
}

.hero-banner .swiper,
.hero-banner .swiper-wrapper,
.hero-banner .swiper-slide {
  height: 100%;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  background: rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background 0.2s;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
}

.hero-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #fff;
}

/* ===== Swiper Thumbs ===== */
.thumbs-swiper .swiper-slide {
  opacity: 0.6;
  transition: opacity 0.2s;
}

.thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: #0ea5e9 !important;
}

/* Rich content styles are now in /app/views/admin/rich-content.css */

/* ===== Sticky Sidebar ===== */
.sticky-element {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
}

/* ===== Smooth Scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Focus States ===== */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: none;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===== Animation Utilities ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* ===== Mobile Menu Animation ===== */
#mobile-menu {
  transition: all 0.3s ease;
}

/* ===== Product Card Hover ===== */
.product-card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* ===== Image Hover Zoom ===== */
.img-zoom {
  transition: transform 0.5s ease;
}

.img-zoom:hover {
  transform: scale(1.05);
}

/* ===== Button Ripple Effect ===== */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ===== Modal Backdrop ===== */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== Loading Spinner ===== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Floating Contact ===== */
.site-float-contact {
  position: fixed;
  right: 1rem;
  bottom: 3rem;
  z-index: 45;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.site-float-contact__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
  color: #fff;
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  box-shadow: 0 22px 40px rgba(2, 132, 199, 0.28);
}

.site-float-contact__panel {
  width: min(320px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: 1.5rem;
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.3), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.site-float-contact__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 0.45rem;
}

.site-float-contact__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.site-float-contact__desc {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
}

.site-float-contact__group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
}

.site-float-contact__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-float-contact__item:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.12);
}

.site-float-contact__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%);
  color: #0284c7;
  flex-shrink: 0;
}


.site-float-contact__item--phone .site-float-contact__icon {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
}


.site-float-contact__item--email .site-float-contact__icon {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #fff;
}



.site-float-contact__item--whatsapp .site-float-contact__icon {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
}



.site-float-contact__item--address .site-float-contact__icon {
  background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
  color: #fff;
}

.site-float-contact__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.site-float-contact__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.site-float-contact__value {
  color: #0f172a;
  font-size: 0.94rem;
  line-height: 1.45;
  word-break: break-word;
}

.site-float-contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.site-float-contact__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.95);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-float-contact__social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.45);
  color: #0284c7;
}

.site-float-contact__social-icon {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.site-float-contact__social-text {
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}
.site-float-contact__social-link{
  background-color: #ffffff;
}


.site-float-contact__social-link--facebook .site-float-contact__social-icon {
  background: linear-gradient(135deg, #1877f2 0%, #60a5fa 100%);
}



.site-float-contact__social-link--instagram .site-float-contact__social-icon {
  background: linear-gradient(135deg, #f97316 0%, #e4405f 55%, #8b5cf6 100%);
}


.site-float-contact__social-link--twitter .site-float-contact__social-icon {
  background: linear-gradient(135deg, #0f172a 0%, #1da1f2 100%);
}


.site-float-contact__social-link--linkedin .site-float-contact__social-icon {
  background: linear-gradient(135deg, #0a66c2 0%, #38bdf8 100%);
}


.site-float-contact__social-link--youtube .site-float-contact__social-icon {
  background: linear-gradient(135deg, #dc2626 0%, #ff0000 100%);
}

.site-float-contact__cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #0284c7 0%, #0f172a 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.18);
}

@media (min-width: 1024px) {
  .site-float-contact {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    align-items: flex-start;
  }

  .site-float-contact__toggle {
    display: none;
  }

  .site-float-contact__panel {
    width: auto;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 0.75rem 0.55rem;
    border-radius: 0 1.4rem 1.4rem 0;
    background:
      radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 36%),
      linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.28);
  }

  .site-float-contact__eyebrow,
  .site-float-contact__title,
  .site-float-contact__desc,
  .site-float-contact__cta {
    display: none;
  }

  .site-float-contact__group {
    margin-top: 0;
    gap: 0.55rem;
  }

  .site-float-contact__item {
    width: 3.35rem;
    min-height: 3.35rem;
    padding: 0.38rem;
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: none;
    overflow: hidden;
    white-space: nowrap;
  }

  .site-float-contact__item:hover {
    width: min(17rem, calc(100vw - 3rem));
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  }

  .site-float-contact__icon {
    width: 2.6rem;
    height: 2.6rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  }

  .site-float-contact__item:hover .site-float-contact__icon {
    transform: scale(1.02);
  }

  .site-float-contact__meta {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.22s ease, opacity 0.18s ease;
  }

  .site-float-contact__item:hover .site-float-contact__meta {
    max-width: 11rem;
    opacity: 1;
  }

  .site-float-contact__label {
    color: #64748b;
  }

  .site-float-contact__value {
    max-width: 10.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-float-contact__social {
    margin-top: 0.55rem;
    flex-direction: column;
    gap: 0.55rem;
  }

  .site-float-contact__social-link {
    width: 3.15rem;
    min-height: 3.15rem;
    padding: 0.32rem;
    border-color: rgba(148, 163, 184, 0.14);
    overflow: hidden;
    box-shadow: none;
  }

  .site-float-contact__social-link:hover {
    width: min(13rem, calc(100vw - 3rem));
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  }

  .site-float-contact__social-icon {
    width: 2.5rem;
    height: 2.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  }

  .site-float-contact__social-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    color: #0f172a;
    transition: max-width 0.22s ease, opacity 0.18s ease;
  }

  .site-float-contact__social-link:hover .site-float-contact__social-text {
    max-width: 7rem;
    opacity: 1;
  }
}

@media (max-width: 1023px) {
  .site-float-contact {
    align-items: flex-end;
  }

  .site-float-contact__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.75rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-float-contact__social-link {
    padding-right: 0.9rem;
  }

  .site-float-contact.is-open .site-float-contact__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* ===== Print Styles ===== */
@media print {
  nav, footer, .no-print, .site-float-contact {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .container {
    max-width: 100%;
  }
}

/* ===== Responsive Typography ===== */
@media (max-width: 640px) {
  .rich-content {
    font-size: 0.9375rem;
  }
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {
  .bg-gradient-to-r {
    background: #1e293b !important;
  }
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Baoyue Motors Inspired Frontend ===== */
.by-body {
  margin: 0;
  background: #f3f4f6;
  color: #1f2933;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.by-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.by-topbar {
  background: #161616;
  color: #c9c9c9;
  font-size: 13px;
}

.by-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.by-topbar a,
.by-topbar span {
  color: inherit;
  text-decoration: none;
}

.by-topbar i {
  color: #e6501e;
  margin-right: 6px;
}

.by-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.by-nav__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.by-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #171717;
  text-decoration: none;
}

.by-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.by-logo strong {
  display: block;
  font-size: 19px;
  letter-spacing: .06em;
}

.by-logo small {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.by-navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
}

.by-navlinks a {
  position: relative;
  color: #242424;
  text-decoration: none;
  padding: 30px 16px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.by-navlinks a:hover {
  color: #e6501e;
}

.by-navlinks a:not(.by-nav-cta)::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 22px;
  height: 3px;
  background: #e6501e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.by-navlinks a:hover::after {
  transform: scaleX(1);
}

.by-navlinks .by-nav-cta {
  margin-left: 10px;
  padding: 12px 22px;
  background: #e6501e;
  color: #fff;
}

.by-menu-btn {
  display: none;
  border: 0;
  background: #171717;
  color: #fff;
  width: 44px;
  height: 44px;
}

.by-eyebrow {
  margin: 0 0 10px;
  color: #e6501e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.by-hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #111;
}

.by-hero__media,
.by-hero__media img,
.by-hero__shade {
  position: absolute;
  inset: 0;
}

.by-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 4600ms ease;
}

.by-hero__media img.is-active {
  opacity: 1;
  transform: scale(1);
}

.by-hero__shade {
  background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.54) 45%, rgba(0,0,0,.18) 100%);
}

.by-hero__content {
  position: relative;
  z-index: 1;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: center;
}

.by-hero__copy {
  max-width: 720px;
}

.by-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: .98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.by-hero__copy p:not(.by-eyebrow) {
  margin: 26px 0 0;
  max-width: 650px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

.by-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.by-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  color: #fff;
  text-decoration: none;
  border: 2px solid transparent;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}

.by-btn--primary {
  background: #e6501e;
}

.by-btn--primary:hover {
  background: #c43f12;
}

.by-btn--ghost {
  border-color: rgba(255,255,255,.8);
}

.by-btn--ghost:hover {
  background: #fff;
  color: #111;
}

.by-btn--dark {
  background: #181818;
}

.by-hero__panel {
  background: rgba(255,255,255,.92);
  border-top: 5px solid #e6501e;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.by-hero__panel strong {
  display: block;
  color: #111;
  font-size: 24px;
  margin-bottom: 18px;
}

.by-hero__panel span {
  display: block;
  border-top: 1px solid #e5e7eb;
  padding: 14px 0;
  color: #374151;
  font-weight: 700;
}

.by-section {
  padding: 72px 0;
}

.by-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.by-section-head h2 {
  margin: 0;
  color: #171717;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
}

.by-section-head a {
  color: #e6501e;
  text-decoration: none;
  font-weight: 800;
}

.by-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.by-category-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  padding: 24px;
  background: #111;
}

.by-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
  transition: transform .35s ease, opacity .35s ease;
}

.by-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(0,0,0,.85) 100%);
}

.by-category-card span,
.by-category-card p {
  position: relative;
  z-index: 1;
}

.by-category-card span {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

.by-category-card p {
  margin: 8px 0 0;
  color: #e5e7eb;
  line-height: 1.55;
}

.by-category-card:hover img {
  transform: scale(1.08);
  opacity: 1;
}

.by-products-band {
  background: #202020;
}

.by-section-head--light h2 {
  color: #fff;
}

.by-section-head--light a {
  color: #fff;
}

.by-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.by-product-card {
  display: block;
  background: #fff;
  color: #111827;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}

.by-product-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efefef;
}

.by-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.by-product-card div {
  padding: 18px;
}

.by-product-card span {
  color: #e6501e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.by-product-card h3 {
  margin: 6px 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.by-product-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.55;
}

.by-product-card em {
  display: inline-block;
  margin-top: 14px;
  color: #e6501e;
  font-style: normal;
  font-weight: 900;
}

.by-product-card:hover img {
  transform: scale(1.06);
}

.by-about-strip {
  background: #fff;
}

.by-about-strip__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 34px;
  align-items: center;
}

.by-about-strip h2 {
  margin: 0;
  color: #171717;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
}

.by-about-strip p {
  color: #4b5563;
  line-height: 1.8;
}

.by-page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.by-page-hero img,
.by-page-hero__shade {
  position: absolute;
  inset: 0;
}

.by-page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.by-page-hero__shade {
  background: linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.35));
}

.by-page-hero .by-wrap {
  position: relative;
  z-index: 1;
}

.by-page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  text-transform: uppercase;
}

.by-page-hero p:not(.by-eyebrow) {
  max-width: 650px;
  margin-top: 14px;
  color: #e5e7eb;
  font-size: 18px;
}

.by-products-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 30px;
}

.by-sidebar {
  background: #fff;
  padding: 22px;
  align-self: start;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.by-sidebar h3 {
  margin: 0 0 14px;
  font-size: 20px;
  text-transform: uppercase;
}

.by-sidebar > a {
  display: block;
  color: #374151;
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 800;
}

.by-sidebar > a:hover,
.by-sidebar > a.is-active {
  color: #e6501e;
}

.by-quote-box {
  margin-top: 22px;
  background: #202020;
  color: #fff;
  padding: 20px;
}

.by-quote-box strong {
  font-size: 20px;
}

.by-quote-box p {
  color: #d1d5db;
  line-height: 1.6;
}

.by-quote-box a {
  display: inline-flex;
  background: #e6501e;
  color: #fff;
  text-decoration: none;
  padding: 11px 16px;
  font-weight: 900;
}

.by-product-grid--list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.by-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  margin-bottom: 24px;
}

.by-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.by-breadcrumb a:hover {
  color: #e6501e;
}

.by-detail-hero {
  padding: 46px 0 70px;
  background: linear-gradient(180deg, #fff 0%, #f3f4f6 100%);
}

.by-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: start;
}

.by-detail-gallery,
.by-detail-info {
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.1);
}

.by-detail-gallery {
  padding: 18px;
}

.by-detail-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eee;
}

.by-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.by-detail-thumbs button {
  border: 3px solid transparent;
  padding: 0;
  background: none;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.by-detail-thumbs button.is-active {
  border-color: #e6501e;
}

.by-detail-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.by-detail-info {
  padding: 34px;
}

.by-detail-info h1 {
  margin: 0;
  color: #111;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  text-transform: uppercase;
}

.by-detail-info > p:not(.by-eyebrow) {
  color: #4b5563;
  line-height: 1.8;
  margin: 20px 0;
}

.by-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.by-specs span,
.by-price-row div {
  background: #f3f4f6;
  padding: 14px;
  color: #374151;
}

.by-specs strong,
.by-price-row strong {
  display: block;
  color: #111;
  font-size: 13px;
  text-transform: uppercase;
}

.by-price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.by-detail-content {
  background: #fff;
}

.by-detail-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 50px;
}

.by-detail-content h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  text-transform: uppercase;
}

.by-detail-content aside {
  background: #202020;
  color: #fff;
  padding: 26px;
  align-self: start;
}

.by-detail-content aside h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.by-detail-content aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.by-detail-content aside li {
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #e5e7eb;
}

.by-inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.by-inquiry-modal.is-open {
  display: flex;
}

.by-inquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.68);
}

.by-inquiry-modal__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}

.by-inquiry-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.by-inquiry-modal__intro {
  padding: 42px;
  background: #202020;
  color: #fff;
}

.by-inquiry-modal__intro h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
}

.by-inquiry-modal__intro p:not(.by-eyebrow) {
  color: #d1d5db;
  line-height: 1.8;
}

.by-inquiry-form {
  padding: 42px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.by-inquiry-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
}

.by-inquiry-form label:nth-last-of-type(1) {
  grid-column: 1 / -1;
}

.by-inquiry-form input,
.by-inquiry-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 12px 13px;
  font: inherit;
}

.by-inquiry-form input:focus,
.by-inquiry-form textarea:focus {
  outline: 2px solid rgba(230,80,30,.24);
  border-color: #e6501e;
}

.by-inquiry-form button {
  grid-column: 1 / -1;
  min-height: 48px;
  border: 0;
  background: #e6501e;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.by-footer {
  background: #181818;
  color: #d1d5db;
}

.by-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr 1.1fr;
  gap: 38px;
  padding: 54px 0;
}

.by-footer img {
  width: 170px;
  background: #fff;
  padding: 8px;
  margin-bottom: 18px;
}

.by-footer h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
}

.by-footer p,
.by-footer a {
  color: #d1d5db;
  line-height: 1.7;
  text-decoration: none;
}

.by-footer a {
  display: block;
  margin-bottom: 8px;
}

.by-footer a:hover {
  color: #e6501e;
}

.by-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  padding: 18px;
  color: #9ca3af;
  font-size: 13px;
}

.by-float {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  gap: 10px;
}

.by-float a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e6501e;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.rich-content {
  color: #374151;
  line-height: 1.85;
}

@media (max-width: 1024px) {
  .by-topbar {
    display: none;
  }
  .by-menu-btn {
    display: inline-grid;
    place-items: center;
  }
  .by-navlinks {
    position: absolute;
    left: 0;
    right: 0;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid #e5e7eb;
  }
  .by-navlinks.is-open {
    display: flex;
  }
  .by-navlinks a {
    padding: 16px 24px;
  }
  .by-navlinks a::after {
    display: none;
  }
  .by-navlinks .by-nav-cta {
    margin: 10px 24px 20px;
    text-align: center;
  }
  .by-hero,
  .by-hero__content {
    min-height: 600px;
  }
  .by-hero__content,
  .by-about-strip__inner,
  .by-products-layout,
  .by-detail-grid,
  .by-detail-content__grid,
  .by-inquiry-modal__dialog {
    grid-template-columns: 1fr;
  }
  .by-hero__panel {
    display: none;
  }
  .by-category-grid,
  .by-product-grid,
  .by-product-grid--list,
  .by-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .by-logo span {
    display: none;
  }
  .by-logo img {
    width: 130px;
  }
  .by-section-head {
    display: block;
  }
  .by-category-grid,
  .by-product-grid,
  .by-product-grid--list,
  .by-specs,
  .by-price-row,
  .by-footer__grid,
  .by-inquiry-form {
    grid-template-columns: 1fr;
  }
  .by-inquiry-modal__intro,
  .by-inquiry-form {
    padding: 28px;
  }
}
