/* pages alanına özel ek stiller */

/* Önceki bölümün devamı gibi duran bloklar (geniş görsel, video): üst boşluğu iç öğenin margin'i verir */
.ak-section.ak-pg-flush {
  padding-top: 0;
}

.ak-pg-lead {
  max-width: 720px;
  margin-top: 20px;
}

/* ana sayfa "Bizi Tanıyın" zengin metni */
.ak-pg-home-about p:last-child {
  margin-bottom: 28px;
}

/* serbest metin */
.ak-pg-rich-body {
  max-width: 860px;
}

.ak-pg-rich-body .ak-section-title + .ak-pg-prose {
  margin-top: 32px;
}

.ak-pg-prose {
  font-size: 17px;
  line-height: 1.75;
  color: #5A5A66;
}

.ak-pg-prose h2,
.ak-pg-prose h3,
.ak-pg-prose h4 {
  margin: 1.6em 0 .6em;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ak-dark, #2E2E3E);
}

.ak-pg-prose h2 { font-size: 28px; }
.ak-pg-prose h3 { font-size: 22px; }
.ak-pg-prose h4 { font-size: 18px; }

.ak-pg-prose p,
.ak-pg-prose ul,
.ak-pg-prose ol {
  margin: 0 0 1.1em;
}

.ak-pg-prose a {
  color: #C30E2E;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ak-pg-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.ak-pg-prose blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #C30E2E;
  color: var(--ak-dark, #2E2E3E);
}

/* harekete geçirici kutu */
.ak-pg-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 64px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, #2E2E3E 0%, #1E1E2A 60%, #5D0B18 100%);
  color: #fff;
}

.ak-pg-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(195, 14, 46, .25);
  pointer-events: none;
}

.ak-pg-cta-text {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.ak-pg-cta h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.ak-pg-cta p {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .75);
}

.ak-pg-cta-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .ak-pg-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 28px;
  }

  .ak-pg-cta h2 {
    font-size: 26px;
  }
}

/* Öne çıkan ürün kartı: panelden eklenen fotoğraf, çizim (svg) ile aynı alana sığar */
.ak-product-img img {
  max-width: 100%;
  max-height: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 404 */
.ak-404 {
  padding: 120px 0 130px;
}

.ak-404-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.ak-404-code {
  margin: 28px 0 8px;
  font-size: 160px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -4px;
  color: var(--ak-red);
}

.ak-404 .ak-lead {
  margin: 20px auto 0;
  max-width: 520px;
}

.ak-404-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.ak-404-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 41px;
  padding: 0 24px;
  border: 1px solid var(--ak-line);
  border-radius: 41px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ak-dark);
  transition: border-color .2s, color .2s;
}

.ak-404-link svg {
  width: 11px;
  height: 11px;
}

.ak-404-link:hover {
  border-color: var(--ak-red);
  color: var(--ak-red);
}

@media (max-width: 767px) {
  .ak-404 {
    padding: 72px 0 84px;
  }

  .ak-404-code {
    font-size: 110px;
    letter-spacing: -2px;
  }
}

/* header aşağı kaydırınca kırmızıya döner */
.ak-header {
  transition: background-color .2s linear, border-color .2s linear;
}

.ak-header.is-scrolled {
  background-color: #BA0C2F;
  border-bottom-color: #BA0C2F;
}

/* ana sayfa: header slider'ın üstüne biner, başta saydamdır; kaydırınca yukarıdaki kırmızı görünüme,
   Ürünler menüsü açılınca (is-mega, layout.js) beyaz görünüme geçer */
.ak-header--overlay {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
}

.ak-header--overlay:not(.is-scrolled):not(.is-mega) {
  background-color: transparent;
  border-bottom-color: transparent;
}

/* görselin üstünde okunsun diye menü yazıları biraz kalın; kaydırınca da aynı kalır, menü kaymaz */
.ak-header--overlay .ak-nav > li > a,
.ak-header--overlay .ak-mega-btn {
  font-weight: 500;
}

/* kırmızı ve saydam header'da yazılar, logo ve butonlar beyaz */
.ak-header.is-scrolled .ak-logo img,
.ak-header--overlay:not(.is-mega) .ak-logo img {
  filter: brightness(0) invert(1);
}

.ak-header.is-scrolled .ak-nav > li > a,
.ak-header--overlay:not(.is-mega) .ak-nav > li > a,
.ak-header.is-scrolled .ak-mega-btn,
.ak-header--overlay:not(.is-mega) .ak-mega-btn {
  color: rgba(255, 255, 255, .8);
}

.ak-header.is-scrolled .ak-nav > li > a:hover,
.ak-header--overlay:not(.is-mega) .ak-nav > li > a:hover,
.ak-header.is-scrolled .ak-nav > li.active > a,
.ak-header--overlay:not(.is-mega) .ak-nav > li.active > a,
.ak-header.is-scrolled .ak-has-mega:hover .ak-mega-btn,
.ak-header--overlay:not(.is-mega) .ak-has-mega:hover .ak-mega-btn,
.ak-header.is-scrolled .ak-has-mega.active .ak-mega-btn,
.ak-header--overlay:not(.is-mega) .ak-has-mega.active .ak-mega-btn,
.ak-header.is-scrolled .ak-has-mega.is-open .ak-mega-btn,
.ak-header--overlay:not(.is-mega) .ak-has-mega.is-open .ak-mega-btn {
  color: #fff;
}

.ak-header.is-scrolled .ak-lang-btn,
.ak-header--overlay:not(.is-mega) .ak-lang-btn {
  border-color: rgba(255, 255, 255, .35);
  background-color: transparent;
  color: #fff;
}

.ak-header.is-scrolled .ak-lang-btn:hover,
.ak-header--overlay:not(.is-mega) .ak-lang-btn:hover,
.ak-header.is-scrolled .ak-lang.is-open .ak-lang-btn,
.ak-header--overlay:not(.is-mega) .ak-lang.is-open .ak-lang-btn {
  border-color: rgba(255, 255, 255, .6);
  background-color: rgba(255, 255, 255, .1);
}

.ak-header.is-scrolled .ak-lang-btn .ak-globe,
.ak-header--overlay:not(.is-mega) .ak-lang-btn .ak-globe,
.ak-header.is-scrolled .ak-lang-btn .ak-chev,
.ak-header--overlay:not(.is-mega) .ak-lang-btn .ak-chev {
  color: #fff;
}

.ak-header.is-scrolled .ak-header-right .ak-btn,
.ak-header--overlay:not(.is-mega) .ak-header-right .ak-btn {
  background-color: #fff;
  color: var(--ak-red);
}

.ak-header.is-scrolled .ak-header-right .ak-btn:hover,
.ak-header--overlay:not(.is-mega) .ak-header-right .ak-btn:hover {
  background-color: var(--ak-soft);
}

.ak-header.is-scrolled .ak-toggle span,
.ak-header--overlay:not(.is-mega) .ak-toggle span {
  background-color: #fff;
}

/* ana sayfa: menü yazıları saydam ve kırmızı header'da tam beyaz (mega menü açıkken beyaz header'da koyu kalır) */
.ak-header--overlay:not(.is-mega) .ak-nav > li > a,
.ak-header--overlay:not(.is-mega) .ak-mega-btn,
.ak-header--overlay.is-scrolled .ak-nav > li > a,
.ak-header--overlay.is-scrolled .ak-mega-btn {
  color: #fff;
}

/* bölümler arasında kısa kırmızı ayraç çizgisi */
.ak-section + .ak-section:not(.ak-pg-flush):not(.ak-pg-cta-wrap) > .container::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: -50px 0 47px;
  border-radius: 3px;
  background-color: var(--ak-red);
}

@media (max-width: 991px) {
  .ak-section + .ak-section:not(.ak-pg-flush):not(.ak-pg-cta-wrap) > .container::before {
    margin: -32px 0 29px;
  }
}

/* market sayfası: geniş görsel slider'ı (galeri okları ve noktalarını kullanır) */
.ak-wide-img.ak-gslider {
  margin-top: 90px;
}

.ak-wide-img.ak-gslider img {
  height: 480px;
}

.ak-wide-slide {
  position: relative;
}

.ak-wide-caption {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 41px;
  padding: 0 18px;
  border-radius: 41px;
  background-color: rgba(255, 255, 255, .92);
  font-size: 15px;
  font-weight: 500;
  color: var(--ak-dark);
}

.ak-wide-caption::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: var(--ak-red);
}

.ak-gslider .ak-wide-caption {
  bottom: 64px;
}

@media (max-width: 991px) {
  .ak-wide-img.ak-gslider {
    margin-top: 56px;
  }

  .ak-wide-img.ak-gslider img {
    height: 280px;
  }

  .ak-wide-caption {
    left: 16px;
    bottom: 16px;
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }

  .ak-gslider .ak-wide-caption {
    bottom: 48px;
  }
}

/* ana sayfa market kartları: kartın tamamı tıklanabilir */
.sectionone .item > a.ak-card-link {
  inset: 0;
  z-index: 1;
}

.sectionone .item .text,
.sectionone .item > a:not(.ak-card-link) {
  z-index: 2;
}

.sectionone .item:hover a span {
  background-color: #C30E2E;
}

.sectionone .item:hover a span svg path {
  fill: #fff;
}

.hmbrandssection .swiper-button-nextc,
.hmbrandssection .swiper-button-prevc {
  cursor: pointer;
}

/* üst geniş görselin tepesinde Atakel kırmızısı şerit */
.ak-banner {
  position: relative;
}

.ak-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 6px;
  background-color: var(--ak-red);
}

@media (max-width: 991px) {
  .ak-banner::before {
    height: 4px;
  }
}

/* market sayfası: kategoriden otomatik gelen kayan ürün serisi kartları */
.ak-products-slider {
  margin-top: 56px;
}

.ak-products-slider .swiper {
  /* kartın hover gölgesi ve yukarı kalkması kesilmesin */
  margin: -12px -12px 0;
  padding: 12px 12px 28px;
}

.ak-products-slider .swiper-slide {
  height: auto;
}

.ak-products-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

.ak-products-nav .ak-gnav {
  position: static;
  margin: 0;
  border: 1px solid var(--ak-line);
}

.ak-products-dots {
  display: flex;
  gap: 10px;
  width: auto !important;
}

.ak-products-dots .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  background-color: var(--ak-dark);
  opacity: .2;
}

.ak-products-dots .swiper-pagination-bullet-active {
  background-color: var(--ak-red);
  opacity: 1;
}

@media (max-width: 991px) {
  .ak-products-slider {
    margin-top: 40px;
  }
}

/* market detay: banner ve geniş görsel panelde kırpılan oranla gösterilir (sabit yükseklikle yeniden kırpılmaz) */
.ak-banner.ak-img-fit img,
.ak-wide-img.ak-img-fit img,
.ak-wide-img.ak-gslider.ak-img-fit img {
  height: auto;
  aspect-ratio: var(--ak-ratio, auto);
  object-fit: cover;
}
