/* GL-Carparts section layout clone */

:root {
  --gl-blue: #1869b0;
  --gl-blue-dark: #0d4f8b;
  --gl-dark: #0a111f;
}

/* Category masonry grid — matches GL packery layout */
.cat-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 100px;
  gap: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.cat-masonry .box-cat {
  position: relative;
  overflow: hidden;
  display: block;
  color: #fff;
}
.cat-masonry .box-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.cat-masonry .box-cat:hover img { transform: scale(1.06); }
.cat-masonry .box-cat .overlay {
  position: absolute; inset: 0;
  background: rgba(10, 17, 31, 0.35);
  transition: background .25s;
}
.cat-masonry .box-cat:hover .overlay { background: rgba(10, 17, 31, 0.5); }
.cat-masonry .box-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; z-index: 2;
}
.cat-masonry .box-text h5 {
  margin: 0; font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.cat-masonry .box-text .count {
  margin: .35rem 0 0; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em; opacity: 0;
  transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.cat-masonry .box-cat:hover .box-text .count {
  opacity: .9; transform: translateY(0);
}
.cat-span-lg { grid-column: span 2; grid-row: span 4; }
.cat-span-md { grid-column: span 2; grid-row: span 2; }
.cat-span-sm { grid-column: span 1; grid-row: span 2; }

.shop-head { text-align: center; padding-top: 2.5rem; }
.shop-head h2 { font-size: 1.75rem; margin: 0 0 .5rem; }
.shop-head p em { color: var(--muted); font-style: italic; }

.shop-search-row {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 1rem; align-items: center; margin: 1.5rem 0;
}
.shop-wa-row {
  display: flex; justify-content: center; margin: 1rem 0 1.5rem;
}
.shop-wa-row .btn-whatsapp { border-radius: 99px; padding: .75rem 2rem; }
.shop-search-row .btn-whatsapp { width: 100%; justify-content: center; border-radius: 99px; }

/* Dark model section */
.section-dark {
  position: relative;
  background: #0b1220 center/cover no-repeat;
  color: #fff;
  padding: 3.5rem 0;
  margin-bottom: 1.25rem;
  isolation: isolate;
}
.section-dark::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(8,14,28,.72) 0%, rgba(8,14,28,.78) 55%, rgba(8,14,28,.88) 100%),
    linear-gradient(90deg, rgba(8,14,28,.55) 0%, rgba(8,14,28,.2) 100%);
}
.section-dark > .container { position: relative; z-index: 1; }
.section-dark .section-head h3 { color: #fff; font-size: 1.75rem; margin: 0 0 .5rem; }
.section-dark .section-head p { color: rgba(255,255,255,.85); }

.model-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
  margin-top: 2rem;
}
.model-box {
  text-align: left; padding: 1rem .5rem;
  transition: transform .2s;
}
.model-box:hover { transform: translateY(-4px); }
.model-box img {
  width: 65%; margin: 0 0 1rem;
  max-height: 70px; object-fit: contain;
}
.model-box h4 { margin: 0 0 .25rem; font-size: 1rem; color: #fff; }
.model-box p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.65); }

/* Why choose — icon boxes */
.section-why { padding: 3rem 0; background: #fff; }
.section-why h3 { text-align: center; font-size: 1.75rem; margin: 0 0 2rem; }
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.icon-box {
  display: flex; flex-direction: column; gap: .75rem;
}
.icon-box .icon-wrap {
  width: 60px; height: 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gl-blue);
}
.icon-box .icon-wrap svg { width: 32px; height: 32px; fill: var(--gl-blue); }
.icon-box h5 { margin: 0; font-size: .95rem; color: var(--gl-blue); }
.icon-box p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* Three image stat banners */
.banner-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.stat-banner {
  position: relative; min-height: 300px;
  overflow: hidden; display: block; color: #fff;
}
.stat-banner img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: transform .45s ease;
  filter: saturate(1.05) contrast(1.04);
}
.stat-banner:hover img { transform: scale(1.06); }
.stat-banner .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,16,32,.78) 0%, rgba(8,16,32,.28) 55%, rgba(8,16,32,.18) 100%);
}
.stat-banner .banner-text {
  position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; z-index: 2;
}
.stat-banner h4 { margin: 0; font-size: .95rem; font-weight: 400; opacity: .9; }
.stat-banner h2 { margin: .25rem 0 0; font-size: 1.5rem; line-height: 1.2; }

/* Ordering guides */
.section-guides { padding: 3.5rem 0; background: #f8fafc; }
.section-guides h2 { text-align: center; font-size: 1.75rem; margin: 0 0 2rem; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.guide-card {
  background: #e5e5e5; border: none;
  padding: 15px; border-radius: 0;
}
.guide-card h5 { margin: 0 0 .65rem; font-size: 1rem; color: var(--gl-blue); }
.guide-card p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* FAQ */
.section-faq { padding: 3.5rem 0; background: #fff; }
.section-faq h2 { text-align: center; font-size: 1.75rem; margin: 0 0 1.5rem; }
.faq-accordion { max-width: 860px; margin: 0 auto; }
.faq-btn {
  width: 100%; text-align: left;
  background: #f8fafc; border: 1px solid var(--line);
  padding: 1rem 1.25rem; font: inherit; font-weight: 600;
  cursor: pointer; margin-bottom: .5rem; border-radius: 4px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-btn::after { content: "+"; font-size: 1.25rem; color: var(--gl-blue); }
.faq-btn.active::after { content: "−"; }
.faq-panel {
  display: none; padding: 0 1.25rem 1rem;
  color: var(--muted); font-size: .92rem; line-height: 1.6;
}
.faq-panel.open { display: block; }
.faq-tip {
  text-align: center; margin-top: 1.5rem;
  padding: 1rem; background: #fffbeb;
  border: 1px solid #fde68a; border-radius: 6px;
  font-size: .92rem;
}

/* Trusted + form split */
.section-trusted {
  padding: 3.75rem 0;
  background: #e4e4e4;
  color: var(--text);
}
.trusted-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.trusted-grid h2 { margin: 0 0 1rem; font-size: 1.6rem; color: var(--text); }
.trusted-grid p { color: var(--muted); line-height: 1.65; }
.trusted-cta {
  text-align: center; max-width: 720px; margin: 0 auto;
}
.trusted-cta h2 { margin: 0 0 1rem; font-size: 1.6rem; color: var(--text); }
.trusted-cta p { color: var(--muted); line-height: 1.65; }
.inquiry-form {
  background: #fff; border-radius: 8px; padding: 1.5rem;
  color: var(--text);
}
.inquiry-form h4 { margin: 0 0 1rem; color: var(--text); }
.inquiry-form input, .inquiry-form textarea {
  background: #f8fafc; border: 1px solid var(--line);
  width: 100%; padding: .65rem .85rem; font: inherit;
  border-radius: 4px; margin-bottom: .75rem;
}
.inquiry-form .btn-primary { width: 100%; border-radius: 99px; }

/* Brand intro */
.section-brand {
  padding: 3rem 0; text-align: center; background: #fff;
}
.section-brand h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.section-brand p { max-width: 720px; margin: 0 auto 1rem; color: var(--muted); }

/* Header tweaks */
.search-bar button { font-size: 0; padding: 0 1rem; }
.search-bar button::before {
  content: ""; display: block; width: 18px; height: 18px;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  flex-wrap: wrap;
}
.top-actions { display: flex; gap: .75rem; align-items: center; }
.currency-select {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 0.45rem 0.5rem; font: inherit; background: #fff;
}
.nav-main-inner {
  display: flex; align-items: center; gap: .25rem;
  min-height: 48px; flex-wrap: wrap; width: 100%;
}
.nav-links-wrap { display: flex; gap: .25rem; flex: 1; }

/* Inner pages */
.page-title-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}
.page-title-bar h1 { margin: 0 0 .5rem; font-size: 1.75rem; }
.page-title-bar p { margin: 0; color: var(--muted); max-width: 60ch; }

.gl-product-grid .product-card {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}
.gl-product-grid .product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.gl-product-grid .product-card-body h3 {
  font-size: .88rem; color: var(--text); line-height: 1.4;
}
.product-price {
  margin: .35rem 0 .65rem;
  color: var(--gl-blue);
  font-size: .85rem;
  font-weight: 600;
}

/* GL category page — subcategory filter grid */
.hidden { display: none !important; }

.gl-cat-page { background: #fff; padding: 2rem 0 3rem; }
.cat-back { margin: 0 0 .5rem; font-size: .85rem; }
.cat-back a { color: var(--gl-blue); }
.cat-back .sep { margin: 0 .35rem; opacity: .5; color: var(--muted); }
.cat-back span { color: var(--muted); font-weight: 600; }
.cat-page-title {
  margin: 0 0 1.25rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
}
.cat-filter-label {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.subcat-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0;
  border: 1px solid #e8e8e8;
  margin-bottom: 0;
}
.subcat-card {
  display: block;
  text-align: center;
  padding: 1.35rem 1rem;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  color: var(--text);
  transition: background .2s, box-shadow .2s;
}
.subcat-card:hover {
  background: #fafbfc;
  box-shadow: inset 0 0 0 1px var(--gl-blue);
  z-index: 1;
  position: relative;
}
.subcat-card-icon {
  width: 56px; height: 56px;
  margin: 0 auto .65rem;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f2f5;
}
.subcat-card-icon img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .85;
}
.subcat-card h5 {
  margin: 0 0 .3rem;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}
.subcat-card p {
  margin: 0;
  font-size: .72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cat-divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 1.75rem 0;
}
.products-section-title {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.inner-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.product-cat-tag {
  display: inline-block; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--gl-blue); margin-bottom: .25rem;
}
.empty-products { text-align: center; color: var(--muted); padding: 2rem; }
.cat-masonry .box-cat.cat-active { outline: 3px solid var(--gl-blue); outline-offset: -3px; }
.cat-text-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}
.cat-text-link {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  text-decoration: none;
  border: 1px solid #dbe3f1;
  border-radius: 10px;
  padding: .8rem .9rem;
  background: #fff;
  transition: border-color .2s ease, background-color .2s ease;
}
.cat-text-link .name {
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}
.cat-text-link .count {
  color: var(--muted);
  font-size: .85rem;
}
.cat-text-link:hover {
  border-color: var(--gl-blue);
  background: #f7faff;
}
.cat-text-link.cat-active {
  border-color: var(--gl-blue);
  background: #eff5ff;
}
.brand-intro {
  margin: .9rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

.products-section-title .title-bar { color: var(--gl-blue); margin-right: .5rem; font-weight: 700; }

/* Parts page — GL category archive layout */
.shop-page-title.category-page-title {
  background: #f4f6f8;
  border-bottom: 1px solid #e8e8e8;
  padding: .85rem 0;
  margin-bottom: 0;
}
.page-title-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.filter-button.mobile-only {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: .45rem .85rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}
.parts-layout {
  display: block;
  padding: 1.5rem 0 3rem;
}
.parts-layout.has-sidebar {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.parts-sidebar {
  position: sticky;
  top: 1rem;
}
.sidebar-widget {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 1rem 1rem .5rem;
}
.sidebar-widget-title {
  margin: 0 0 .75rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-categories.cat-tree-root,
.cat-tree-root {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-tree-item { margin: 0; }
.cat-tree-item > a {
  display: block;
  padding: .45rem 0;
  font-size: .88rem;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
}
.cat-tree-item > a:hover,
.cat-tree-item > a.active { color: var(--gl-blue); font-weight: 600; }
.cat-tree-sub {
  list-style: none;
  margin: 0 0 .25rem;
  padding: 0 0 0 .85rem;
}
.cat-tree-sub .cat-tree-item > a {
  font-size: .82rem;
  padding: .35rem 0;
}
.parts-browse-section { padding-top: 1rem; }
.gl-subcat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.product-category-col { min-width: 0; }
.gl-subcat-box {
  display: block;
  background: #fff;
  border: 1px solid #e8e8e8;
  color: var(--text);
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.gl-subcat-box:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.gl-subcat-img {
  aspect-ratio: 247 / 296;
  overflow: hidden;
  background: #f3f5f7;
}
.gl-subcat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gl-subcat-text {
  padding: .85rem .75rem 1rem;
  text-align: center;
}
.gl-subcat-text h5 {
  margin: 0 0 .35rem;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}
.gl-subcat-text .count {
  margin: 0;
  font-size: .7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.gl-parts-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e8e8e8;
}
.gl-parts-table th,
.gl-parts-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
}
.gl-parts-table th {
  background: #f8fafc;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.gl-parts-table .col-img { width: 110px; }
.gl-parts-table .col-img img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
}
.gl-parts-table .col-name a { font-weight: 600; color: var(--text); }
.gl-parts-table .col-desc { color: var(--muted); font-size: .88rem; }
.gl-parts-table .col-price { color: var(--gl-blue); font-weight: 600; white-space: nowrap; }

@media (max-width: 992px) {
  .gl-subcat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-text-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .parts-layout.has-sidebar { grid-template-columns: 220px minmax(0, 1fr); gap: 1.25rem; }
}
@media (max-width: 768px) {
  .filter-button.mobile-only { display: inline-flex; }
  .parts-layout.has-sidebar { grid-template-columns: 1fr; }
  .parts-sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: min(300px, 88vw);
    background: #fff;
    padding: 1rem;
    overflow: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }
  .parts-sidebar.sidebar-open { display: block; }
  .gl-subcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-text-grid { grid-template-columns: 1fr; }
  .gl-parts-table thead { display: none; }
  .gl-parts-table tr { display: block; border-bottom: 1px solid #eee; padding: .75rem 0; }
  .gl-parts-table td { display: block; border: 0; padding: .25rem 0; }
}

.inner-card {
  background: #e5e5e5; padding: 1.25rem; border-radius: 0;
}
.inner-card h3 { margin: 0 0 .65rem; font-size: 1rem; color: var(--gl-blue); }
.inner-card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }

.page-cta {
  padding: 2.5rem 0; background: #e4e4e4; text-align: center;
}
.page-cta p { margin: 0 0 1rem; color: var(--muted); }

.quote-panel {
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  padding: 1.5rem; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.legal-page { padding: 2.5rem 0 4rem; background: #fff; }
.legal-page h1 { margin: 0 0 1rem; }
.legal-page h2 { margin: 2rem 0 .75rem; font-size: 1.15rem; color: var(--gl-blue); }

/* Guides + FAQ side-by-side (GL layout) */
.section-guides-faq { padding: 0 0 3rem; background: #fff; }
.guides-faq-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  align-items: start;
}
.blog-menu { display: flex; flex-direction: column; }
.blog-link {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
  font-size: .92rem; color: var(--text);
}
.blog-link:hover { color: var(--gl-blue); }
.blog-link::before {
  content: "›"; color: var(--gl-blue); font-weight: 700; flex-shrink: 0;
}
.section-faq-inline h2 { text-align: left; font-size: 1.75rem; margin: 0 0 1rem; }
.faq-block details {
  background: #f8fafc; border: 1px solid var(--line);
  margin-bottom: .5rem; border-radius: 4px;
}
.faq-block summary {
  padding: 1rem 1.25rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; color: var(--gl-blue); font-size: 1.25rem; }
.faq-block details[open] summary::after { content: "−"; }
.faq-block details p { margin: 0; padding: 0 1.25rem 1rem; color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* Brand tags footer section */
.brand-section {
  padding: 2.5rem 0; background: #fff; border-top: 1px solid var(--line);
}
.brand-section h2 { text-align: center; font-size: 1.35rem; margin: 0 0 1.5rem; }
.brand-grid {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
}
.brand-item {
  padding: .45rem .85rem; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; font-size: .82rem; color: var(--muted);
}
.brand-item:hover { border-color: var(--gl-blue); color: var(--gl-blue); }

/* Nav GL style */
.nav-main { background: var(--gl-blue); border-bottom: none; }
.nav-main a { color: rgba(255,255,255,.9); text-transform: uppercase; }
.nav-main a:hover, .nav-main a.active { background: rgba(0,0,0,.15); color: #fff; }

@media (max-width: 900px) {
  .guides-faq-row { grid-template-columns: 1fr; }
  .cat-masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .cat-span-lg { grid-column: span 2; grid-row: span 2; }
  .cat-span-md, .cat-span-sm { grid-column: span 1; grid-row: span 2; }
  .model-row { grid-template-columns: repeat(3, 1fr); }
  .icon-grid, .guide-grid, .banner-row, .trusted-grid, .shop-search-row, .inner-card-grid {
    grid-template-columns: 1fr;
  }
}
