
/* == Wrapper escape: col-full kisitlamasindan kurtar == */
body.page-template-template-home-custom-php #content,
body.page-template-template-home-custom-php #content > .shoptimizer-archive,
body.page-template-template-home-custom-php #content > .col-full {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
body.page-template-template-home-custom-php .archive-header,
body.page-template-template-home-custom-php .page-header,
body.page-template-template-home-custom-php .entry-header,
body.page-template-template-home-custom-php .page-title { display: none !important; }
body.page-template-template-home-custom-php #primary,
body.page-template-template-home-custom-php .content-area {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
body.page-template-template-home-custom-php #secondary,
body.page-template-template-home-custom-php .widget-area { display: none !important; }
/* == /Wrapper escape == */

/*
 * Wellmas Custom Homepage — custom-home.css
 * BEM, Mobile-First, No Elementor
 * Scope: #wm-home
 */

/* ── Design tokens (scoped) ───────────────────────────── */
#wm-home {
  --wm-red:    #E31E24;
  --wm-red-d:  #C01A1F;
  --wm-ink:    #0E0F12;
  --wm-muted:  #6B7280;
  --wm-line:   #E5E7EB;
  --wm-mist:   #F4F5F7;
  --wm-white:  #fff;
  --wm-font:   "Inter", system-ui, -apple-system, sans-serif;
  --wm-r:      8px;
  --wm-r-lg:   16px;
  --wm-shadow: 0 2px 12px rgba(14,15,18,.08);
  --wm-shadow-lg: 0 8px 32px rgba(14,15,18,.12);
}

#wm-home {
  font-family: var(--wm-font);
  color: var(--wm-ink);
}

/* ── Container ────────────────────────────────────────── */
.wm-container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}
@media (min-width: 768px) { .wm-container { padding-inline: 24px; } }

/* ── Buttons ──────────────────────────────────────────── */
.wm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--wm-r);
  font-family: var(--wm-font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.wm-btn--primary {
  background: var(--wm-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(227,30,36,.32);
}
.wm-btn--primary:hover {
  background: var(--wm-red-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(227,30,36,.42);
  color: #fff;
}
.wm-btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.wm-btn--ghost:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.wm-btn--sm {
  padding: 8px 16px;
  font-size: 13px;
  background: var(--wm-ink);
  color: #fff;
}
.wm-btn--sm:hover { background: var(--wm-red); color: #fff; }

/* ── Section head ─────────────────────────────────────── */
.wm-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.wm-section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.wm-section-head__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--wm-ink);
  margin: 0 0 6px;
  line-height: 1.2;
}
.wm-section-head__sub {
  font-size: 15px;
  color: var(--wm-muted);
  margin: 0;
  line-height: 1.5;
}
.wm-section-head__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--wm-red);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.wm-section-head__link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
.wm-hero-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: 1;
}
.wm-hero-banner {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 40px 5%;
  box-sizing: border-box;
}
.wm-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  pointer-events: none;
}
.wm-mobile-bg-overlay {
  display: none;
}
.wm-trust-badge {
  position: absolute;
  top: 30px;
  right: 6%;
  width: 85px;
  height: 85px;
  background: #E31E24;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(227,30,36,0.4);
  font-weight: bold;
  animation: wm-pulse 2s infinite;
  line-height: 1.2;
}
.wm-trust-badge .percentage {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.wm-trust-badge .text {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  opacity: .9;
}
@keyframes wm-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.wm-hero-content {
  position: relative;
  z-index: 5;
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  width: 100%;
}
.wm-hero-left {
  flex: 1.2;
  position: relative;
  padding-top: 50px;
}
.wm-hero-badge {
  position: absolute;
  top: -20px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227,30,36,0.15);
  border: 1px solid rgba(227,30,36,0.4);
  padding: 8px 18px;
  border-radius: 50px;
  color: #ff4d4d;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
}
.wm-hero-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -.02em;
}
.wm-highlight { color: #E31E24; }
.wm-hero-desc {
  font-size: 17px;
  color: #bbb;
  margin: 0 0 30px;
  line-height: 1.6;
}
.wm-hero-desc strong { color: #fff; }
.wm-hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.wm-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-align: center;
  line-height: 1.2 !important;
  cursor: pointer;
  white-space: nowrap;
}
.wm-btn-primary {
  background: #E31E24;
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 16px rgba(227,30,36,.35);
}
.wm-btn-primary:hover {
  background: #C01A1F;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227,30,36,.45);
  color: #fff !important;
}
.wm-btn-secondary {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.2);
}
.wm-btn-secondary:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
  color: #fff !important;
}
.wm-hero-right {
  flex: 0.8;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wm-image-wrap {
  position: relative;
}
.wm-image-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(227,30,36,.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.wm-image-wrap img {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
  position: relative;
  z-index: 2;
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .wm-hero-banner {
    min-height: 420px;
    padding: 15px 15px 30px;
    background-image: url("https://wellmasoto.com.tr/wp-content/uploads/2018/05/hero-banner.png") !important;
    background-size: 220px !important;
    background-position: center 12px !important;
    background-repeat: no-repeat !important;
    align-items: flex-end;
  }
  .wm-hero-banner::after { display: none; }
  .wm-mobile-bg-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
      rgba(0,0,0,.15) 0%,
      rgba(0,0,0,.75) 50%,
      rgba(0,0,0,.97) 100%);
    z-index: 2;
  }
  .wm-trust-badge {
    top: 15px !important;
    right: 15px !important;
    width: 65px !important;
    height: 65px !important;
    z-index: 5;
  }
  .wm-trust-badge .percentage { font-size: 13px; }
  .wm-hero-right { display: none !important; }
  .wm-hero-content {
    flex-direction: column;
    text-align: center;
    padding-top: 190px;
    gap: 0;
  }
  .wm-hero-left {
    padding-top: 0;
    width: 100%;
  }
  .wm-hero-badge {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 12px;
    justify-content: center;
    font-size: 11px;
  }
  .wm-hero-title { font-size: 25px !important; }
  .wm-hero-desc { font-size: 15px; }
  .wm-hero-buttons { justify-content: center; }
}

/* ════════════════════════════════════════════════════════
   ÜRÜNLER — Product Grid
════════════════════════════════════════════════════════ */
.wm-products {
  padding: 56px 0;
  background: #fff;
}
@media (min-width: 768px) { .wm-products { padding: 72px 0; } }

.wm-products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 576px) { .wm-products__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .wm-products__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.wm-product-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E5E7EB;
  transition: box-shadow .22s ease, transform .22s ease;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.wm-product-card:hover {
  box-shadow: 0 8px 24px rgba(14,15,18,.1);
  transform: translateZ(0) translateY(-4px);
}
.wm-product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #F9FAFB;
  display: block;
}
.wm-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  transition: transform .3s;
}
.wm-product-card:hover .wm-product-card__img { transform: scale(1.04); }
.wm-product-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D1D5DB;
}
.wm-product-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.wm-product-card__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}
.wm-product-card__title a {
  color: #0E0F12;
  text-decoration: none;
}
.wm-product-card__title a:hover { color: #E31E24; }

/* Fiyat — kurumsal, kırmızı değil */
.wm-product-card__price {
  font-size: 16px;
  font-weight: 700;
  color: #111 !important;
  margin-top: auto;
  padding-top: 4px;
}
.wm-product-card__price .woocommerce-Price-amount,
.wm-product-card__price bdi,
.wm-bs-card__price .woocommerce-Price-amount,
.wm-bs-card__price bdi {
  color: #111 !important;
}
.wm-product-card__price ins,
.wm-bs-card__price ins {
  text-decoration: none;
  font-weight: 700;
  color: #111 !important;
}
.wm-product-card__price del,
.wm-bs-card__price del {
  color: #9CA3AF !important;
  font-size: 13px;
  font-weight: 400;
}

/* Sepete Ekle butonu */
.wm-product-card__atc {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 6px;
  background: #E31E24;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
  margin-top: 6px;
  text-align: center;
  line-height: 1.2;
}
.wm-product-card__atc:hover {
  background: #C01A1F;
  color: #fff !important;
}

/* ╔════════════════════════════════════════════════════════
   NEDEN WELLMAS — Centered Cards v2
╔════════════════════════════════════════════════════════ */
.wm-features {
  padding: 64px 0;
  background: #fff;
  text-align: center;
}
@media (min-width: 768px) { .wm-features { padding: 80px 0; } }

.wm-features__heading {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
  line-height: 1.3;
}
@media (min-width: 768px) { .wm-features__heading { font-size: 30px; } }

.wm-features__lead {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 52px;
}

.wm-features__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 24px;
}
@media (min-width: 560px) {
  .wm-features__cards { grid-template-columns: repeat(2, 1fr); gap: 52px 32px; }
}
@media (min-width: 992px) {
  .wm-features__cards {
    grid-template-columns: repeat(3, minmax(0, 300px));
    gap: 40px 48px;
    justify-content: center;
  }
}

.wm-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}
.wm-feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
}
.wm-feature-card__icon img,
.wm-feature-card__icon svg {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain;
  display: block;
}
.wm-feature-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
  line-height: 1.4;
}
.wm-feature-card__text {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.7;
  margin: 0;
}
/* Legacy classes kapat */
.wm-features__title { display: none !important; }
.wm-features__strip { display: none !important; }
.wm-feature-item { display: none !important; }

/* ════════════════════════════════════════════════════════
   ÇOK SATANLAR — Slider
════════════════════════════════════════════════════════ */
.wm-bestsellers {
  padding: 56px 0;
  background: var(--wm-white);
}
@media (min-width: 768px) { .wm-bestsellers { padding: 72px 0; } }

.wm-bestsellers__track-wrap {
  position: relative;
  overflow: hidden;
}
.wm-bestsellers__track {
  display: flex;
  gap: 16px;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
@media (min-width: 768px) { .wm-bestsellers__track { gap: 20px; } }

/* Bestseller Card */
.wm-bs-card {
  flex: 0 0 calc(50% - 8px);
  display: flex;
  flex-direction: column;
  border-radius: var(--wm-r-lg);
  overflow: hidden;
  background: var(--wm-white);
  border: 1px solid var(--wm-line);
  transition: box-shadow .2s, transform .2s;
}
@media (min-width: 576px) { .wm-bs-card { flex: 0 0 calc(33.333% - 11px); } }
@media (min-width: 900px)  { .wm-bs-card { flex: 0 0 calc(25% - 15px); } }
.wm-bs-card:hover { box-shadow: var(--wm-shadow-lg); transform: translateZ(0) translateY(-3px); }

.wm-bs-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--wm-mist);
  display: block;
}
.wm-bs-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  transition: transform .3s;
}
.wm-bs-card:hover .wm-bs-card__img { transform: scale(1.04); }
.wm-bs-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wm-line);
}
.wm-bs-card__badge { display: none !important; }
.wm-bs-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.wm-bs-card__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: var(--wm-ink);
}
.wm-bs-card__title a { color: inherit; text-decoration: none; }
.wm-bs-card__title a:hover { color: var(--wm-red); }
.wm-bs-card__price { font-size: 15px; font-weight: 700; color: var(--wm-red); margin-top: auto; }
.wm-bs-card__price .woocommerce-Price-amount { color: var(--wm-red); }

/* Slider nav buttons */
.wm-bs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wm-white);
  border: 1.5px solid var(--wm-line);
  box-shadow: var(--wm-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  color: var(--wm-ink);
}
.wm-bs-nav:hover { background: var(--wm-ink); color: #fff; }
.wm-bs-nav:disabled { opacity: .35; cursor: not-allowed; }
.wm-bs-nav--prev { left: -12px; }
.wm-bs-nav--next { right: -12px; }
@media (min-width: 768px) {
  .wm-bs-nav--prev { left: -20px; }
  .wm-bs-nav--next { right: -20px; }
}

/* ════════════════════════════════════════════════════════
   İŞ ORTAKLARI — Marquee band
════════════════════════════════════════════════════════ */
.wm-partners {
  padding: 40px 0;
  background: var(--wm-mist);
  border-top: 1px solid var(--wm-line);
  overflow: hidden;
}

.wm-partners__label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wm-muted);
  margin: 0 0 24px;
}

.wm-partners__track-wrap {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.wm-partners__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: wm-marquee 30s linear infinite;
}
.wm-partners__track:hover { animation-play-state: paused; }

@keyframes wm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.wm-partners__item {
  display: flex;
  align-items: center;
  opacity: .6;
  transition: opacity .2s;
  flex-shrink: 0;
}
.wm-partners__item:hover { opacity: 1; }
.wm-partners__item img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter .2s;
}
.wm-partners__item:hover img { filter: none; }

/* ── Homepage page-header override ────────────────────── */
body.home .page-header,
body.home .page-title,
body.home .entry-header {
  display: none !important;
}
/* Remove Elementor page content wrapper interference */
body.home .site-content,
body.home #content {
  padding: 0 !important;
}
body.home .content-area,
body.home .site-main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
/* No sidebar on homepage */
body.home .widget-area,
body.home #secondary {
  display: none !important;
}

/* Out of stock */
.wm-product-card__atc.wm-out-of-stock {
  background: #F3F4F6 !important;
  color: #9CA3AF !important;
  border-color: #E5E7EB !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
