/*
Theme Name: IcekiLink B2B
Theme URI: https://icekilink.com/
Author: IcekiLink
Description: Professional WordPress inquiry theme for EV charging adapter manufacturers, B2B wholesalers, OEM, ODM, and distributor websites.
Version: 1.6.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: icekilink-b2b
*/

:root {
  --ink: #182028;
  --graphite: #26313b;
  --muted: #66737e;
  --paper: #ffffff;
  --soft: #f5f7f4;
  --line: #d9e0dd;
  --teal: #087f7c;
  --teal-dark: #075f5d;
  --blue: #24608f;
  --orange: #e06f2f;
  --steel: #eef2f2;
  --shadow: 0 18px 48px rgba(24, 32, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 14px 64px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(24, 32, 40, 0.09);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 850;
}

.custom-logo {
  max-width: 170px;
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: #394751;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.footer-links a,
.text-link {
  color: inherit;
  text-decoration: none;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.text-link:hover,
.site-nav a:hover,
.footer-links a:hover {
  color: var(--orange);
}

.header-cta,
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0 18px;
  color: #ffffff;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.header-cta:hover,
.button:hover {
  color: #ffffff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(24, 32, 40, 0.18);
}

.button.secondary:hover,
.button.ghost:hover {
  color: var(--teal-dark);
  background: #f4fbf9;
}

.button.ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(24, 32, 40, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 58px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 70px 64px 82px;
  background:
    linear-gradient(90deg, rgba(245, 247, 244, 0.98), rgba(245, 247, 244, 0.82)),
    linear-gradient(135deg, #ffffff, #e9efed);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 880;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.page-title {
  margin: 0;
  color: var(--ink);
  font-size: 4.05rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero p,
.page-hero p,
.factory-copy p,
.inquiry-band p,
.quote-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.connector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.connector-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(24, 32, 40, 0.13);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-actions,
.card-actions,
.inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-facts {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-facts div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-facts dt {
  color: var(--ink);
  font-weight: 880;
}

.hero-facts dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.homepage-banner {
  padding: 22px 64px 0;
  background: var(--soft);
}

.homepage-banner img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(24, 32, 40, 0.08);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-card {
  min-height: 150px;
  padding: 26px;
  background: var(--paper);
}

.feature-card h2,
.card h3,
.info-panel h3,
.package-grid h3,
.product-card h2,
.archive-sidebar h2,
.empty-state h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.feature-card p,
.card p,
.product-card p,
.info-panel p,
.empty-state p,
.entry-summary,
.contact-points,
.quote-form label,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.section,
.content-wrap {
  padding: 82px 64px;
}

.content-wrap {
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  max-width: 860px;
  margin-bottom: 36px;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-title {
  font-size: 2.6rem;
  line-height: 1.08;
}

.surface-section {
  background: #ffffff;
}

.card-grid,
.product-grid,
.category-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.product-card,
.category-card,
.info-panel,
.empty-state,
.quote-form,
.archive-sidebar {
  background: var(--paper);
  border: 1px solid rgba(24, 32, 40, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(24, 32, 40, 0.06);
}

.card,
.info-panel,
.empty-state,
.quote-form,
.archive-sidebar {
  padding: 26px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--steel);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.product-kicker {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-card h2 a {
  color: var(--ink);
}

.product-mini-specs,
.summary-specs,
.hero-facts {
  padding: 0;
  list-style: none;
}

.product-mini-specs {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.product-mini-specs div,
.summary-specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.product-mini-specs dt,
.summary-specs dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.product-mini-specs dd,
.summary-specs dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.product-card .card-actions {
  margin-top: auto;
  padding-top: 22px;
}

.category-card {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: var(--ink);
}

.category-card span {
  font-size: 1.08rem;
  font-weight: 860;
}

.category-card strong {
  color: var(--teal-dark);
  font-size: 0.88rem;
}

.factory-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 46px;
  align-items: center;
  color: #ffffff;
  background: var(--graphite);
}

.factory-section .section-title,
.factory-section .factory-copy p {
  color: #ffffff;
}

.factory-section .factory-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.factory-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.factory-metrics div {
  min-height: 136px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.factory-metrics strong {
  display: block;
  color: #ffffff;
  font-size: 2.1rem;
  line-height: 1;
}

.factory-metrics span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 760;
}

.inquiry-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-dark), #20313a 64%, #2c2f32);
}

.inquiry-band .section-title,
.inquiry-band p {
  color: #ffffff;
}

.inquiry-band p {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: 56px 64px 66px;
  background:
    linear-gradient(90deg, rgba(245, 247, 244, 0.96), rgba(245, 247, 244, 0.78)),
    url("assets/images/ev-adapter-factory-hero.png") center / cover;
}

.page-title {
  max-width: 980px;
  font-size: 3.35rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.breadcrumb-separator {
  color: #9aa5a9;
}

.archive-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.archive-sidebar {
  position: sticky;
  top: 96px;
}

.archive-sidebar ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-sidebar a,
.archive-sidebar span {
  display: block;
  padding: 10px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 750;
}

.archive-sidebar a.is-active,
.archive-sidebar a:hover,
.archive-sidebar a:focus-visible {
  color: var(--teal-dark);
}

.woocommerce-product-card-image {
  display: block;
  background: var(--steel);
}

.woocommerce-product-card .product-thumb {
  display: block;
  object-fit: contain;
}

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

.single-product-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 48px;
  align-items: start;
}

.featured-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--steel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-gallery-thumbs a {
  display: block;
  overflow: hidden;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.woocommerce-product-showcase .woocommerce-product-gallery {
  width: 100%;
  max-width: 100%;
}

.woocommerce-product-showcase .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.woocommerce-product-showcase .woocommerce-product-gallery__image {
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.woocommerce-product-showcase .woocommerce-product-gallery__image a,
.woocommerce-product-showcase .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
}

.woocommerce-product-showcase .woocommerce-product-gallery__image img {
  height: auto;
  object-fit: contain;
}

.woocommerce-product-showcase .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.woocommerce-product-showcase .flex-control-thumbs li {
  margin: 0;
}

.woocommerce-product-showcase .flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.woocommerce-product-inquiry-summary .price,
.woocommerce-product-inquiry-summary form.cart,
.woocommerce-product-inquiry-summary .stock {
  display: none;
}

.product-summary h2 {
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.15;
}

.entry-summary > *:first-child {
  margin-top: 0;
}

.entry-summary > *:last-child {
  margin-bottom: 0;
}

.summary-specs {
  display: grid;
  margin: 24px 0 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 46px;
  align-items: start;
}

.info-stack {
  display: grid;
  gap: 16px;
}

.spec-table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid rgba(24, 32, 40, 0.1);
  border-radius: 8px;
}

.spec-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  color: var(--ink);
  background: #f7f9f8;
  font-weight: 820;
}

.spec-table td {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid rgba(24, 32, 40, 0.1);
  border-radius: 8px;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 820;
}

.faq-item p {
  padding: 0 20px 20px;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 48px;
  align-items: start;
  background: #ffffff;
}

.quote-form {
  display: grid;
  gap: 16px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  font-weight: 760;
}

.quote-form input,
.quote-form textarea,
.contact-panel input,
.contact-panel textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form .button {
  width: fit-content;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.contact-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-left: 20px;
}

.empty-state.compact {
  padding: 20px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.8fr) minmax(220px, 0.7fr);
  gap: 30px;
  padding: 42px 64px;
  color: rgba(255, 255, 255, 0.76);
  background: #131b22;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 880;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

.site-footer a {
  color: #ffffff;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-contact {
  justify-items: end;
  text-align: right;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
}

.nav-links .current {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 32px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

  .hero,
  .factory-section,
  .quote-section,
  .two-column,
  .single-product-layout,
  .inquiry-band,
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 56px 32px 64px;
  }

  .section,
  .homepage-banner,
  .content-wrap,
  .page-hero,
  .site-footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .archive-sidebar {
    position: static;
  }

  .feature-strip,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid,
  .card-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    justify-items: start;
    text-align: left;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header {
    position: static;
    padding: 14px 18px;
  }

  .site-nav,
  .site-nav ul {
    gap: 12px;
  }

  .header-cta,
  .site-nav {
    width: 100%;
  }

  .hero,
  .homepage-banner,
  .section,
  .content-wrap,
  .page-hero,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .page-title {
    font-size: 2.35rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
  }

  .hero-facts {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .feature-strip,
  .product-grid,
  .card-grid,
  .category-grid,
  .package-grid,
  .factory-metrics,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .split-head {
    display: grid;
    align-items: start;
  }

  .summary-specs div,
  .product-mini-specs div {
    display: grid;
    gap: 4px;
  }

  .summary-specs dd,
  .product-mini-specs dd {
    text-align: left;
  }

  .card-actions,
  .hero-actions,
  .inquiry-actions {
    width: 100%;
  }

  .button,
  .header-cta {
    width: 100%;
  }
}
