:root{
  --gewi-brand: #044b68;
  --gewi-brand-2: #00cc99;
  --gewi-bg: #f6f8fb;
  --gewi-card: #ffffff;
  --gewi-text: #1f2937;
  --gewi-muted: #6b7280;
  --gewi-border: rgba(2, 6, 23, 0.10);
  --gewi-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --gewi-radius: 14px;

  --gewi-highlight: rgba(4, 75, 104, 0.05);
  --gewi-highlight-2: rgba(4, 75, 104, 0.08);

  /* ✅ fine-tune image behaviour */
  --gewi-media-h: 400px;     /* was 140 */
  --gewi-media-zoom: 1;   /* was ~1.14 */
  --gewi-bgsize: 70%;
}

.gewi-products-landing{
  background: var(--gewi-bg);
  padding: 22px 0 44px;
}

.gewi-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Breadcrumbs */
.gewi-breadcrumbs{
  max-width: 1200px;
  margin: 10px auto 14px;
  padding: 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}
.gewi-breadcrumbs,
.gewi-breadcrumbs .woocommerce-breadcrumb,
.gewi-breadcrumbs .rank-math-breadcrumb,
.gewi-breadcrumbs .breadcrumb,
.gewi-breadcrumbs p{
  display: block;
}
.gewi-breadcrumbs .gewi-bc-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.gewi-breadcrumbs .gewi-bc-item{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.gewi-breadcrumbs a,
.gewi-breadcrumbs .gewi-bc-link{
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.gewi-breadcrumbs a:hover,
.gewi-breadcrumbs .gewi-bc-link:hover{
  text-decoration: underline;
}
.gewi-breadcrumbs .gewi-bc-sep{
  color: rgba(31, 41, 55, 0.45);
  font-weight: 600;
}
.gewi-breadcrumbs .gewi-bc-current{
  color: #111827;
  font-weight: 600;
}
.gewi-breadcrumbs::after{
  content: "";
  display: block;
  margin-top: 10px;
  border-bottom: 1px solid rgba(2, 6, 23, 0.08);
}
.gewi-breadcrumbs,
.gewi-breadcrumbs .woocommerce-breadcrumb,
.gewi-breadcrumbs .rank-math-breadcrumb,
.gewi-breadcrumbs .breadcrumb{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* HERO */
.gewi-page-hero{
  background: #ffffff;
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: 18px;
  padding: 36px 40px;
  margin: 10px auto 26px;
  max-width: 1200px;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.05);
}
.gewi-page-hero__content{ max-width: 720px; }
.gewi-page-hero__title{
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.gewi-page-hero__subtitle{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  font-weight: 400;
}

/* Accordion */
.gewi-section{
  background: var(--gewi-card) !important;
  border: 1px solid var(--gewi-border);
  border-radius: var(--gewi-radius);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
  margin: 14px 0;
  overflow: hidden;
}
.gewi-section__head{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px;
  background: transparent !important;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background-color .15s ease;
}
.gewi-section__head:hover{ background: var(--gewi-highlight) !important; }
.gewi-section__head:focus,
.gewi-section__head:focus-visible{
  background: var(--gewi-highlight) !important;
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(4, 75, 104, 0.12);
}
.gewi-section.is-open .gewi-section__head{ background: var(--gewi-highlight-2) !important; }

.gewi-section__title{
  font-weight: 700;
  color: var(--gewi-text);
  font-size: 15px;
}
.gewi-section__meta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gewi-chip{
  font-size: 12px;
  color: var(--gewi-muted);
  background: rgba(4, 75, 104, 0.06);
  border: 1px solid rgba(4, 75, 104, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
}
.gewi-chevron{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(2, 6, 23, 0.03);
  position: relative;
  flex: 0 0 auto;
}
.gewi-chevron::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(31, 41, 55, 0.7);
  border-bottom: 2px solid rgba(31, 41, 55, 0.7);
  transform: rotate(45deg);
  top: -2px;
}
.gewi-section.is-open .gewi-chevron::before{
  transform: rotate(-135deg);
  top: 2px;
}
.gewi-section__panel{ padding: 0 16px 16px; }
.gewi-empty{ padding: 16px; color: var(--gewi-muted); font-size: 14px; }

/* Grid + cards */
.gewi-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 12px;
}
.gewi-card{
  background: var(--gewi-card);
  border: 1px solid rgba(2, 6, 23, 0.10);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gewi-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--gewi-shadow);
}
.gewi-card__link{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ✅ Media */
.gewi-card__media{
  width: 100%;
  height: var(--gewi-media-h);
  overflow: hidden;
  background: #ffffff;

  /* background-image fallback */
  background-repeat: no-repeat;
  background-position: center;
  background-size: var(--gewi-bgsize);
}
.gewi-card__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;

  /* ✅ remove white borders by zoom */
  transform: scale(var(--gewi-media-zoom));
  transform-origin: center;

  /* ✅ slightly better rendering */
  backface-visibility: hidden;
  -webkit-transform: translateZ(0) scale(var(--gewi-media-zoom));
}

.gewi-card__media.is-fallback{
  background: linear-gradient(135deg, rgba(2,116,190,.18), rgba(0,204,153,.08));
}

.gewi-card__body{ padding: 14px; }
.gewi-card__kicker{
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gewi-muted);
  margin-bottom: 6px;
}
.gewi-card__title{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.25;
  color: var(--gewi-text);
  font-weight: 700;
  min-height: 36px;
}
.gewi-btn{
  display: inline-block;
  background: var(--gewi-brand);
  color: #fff;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}
.gewi-card:hover .gewi-btn{
  background: var(--gewi-brand-2);
  color: #0b2b24;
}

/* Responsive */
@media (max-width: 1100px){
  .gewi-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px){
  .gewi-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gewi-page-hero{ padding: 26px 24px; }
  .gewi-page-hero__title{ font-size: 26px; }
  .gewi-page-hero__subtitle{ font-size: 14px; }
}
@media (max-width: 520px){
  .gewi-grid{ grid-template-columns: 1fr; }
  :root{ --gewi-media-h: 160px; }
}
