/* Abralion-cursor ek stiller */

/* Dökümanlar sayfası — page-header (referans documents.html) */
.page-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-bottom: 1px solid var(--color-gray-lighter);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-black);
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.page-header p {
  color: var(--color-gray-dark);
  font-size: var(--font-size-large);
  margin: 0;
}

.document-card .btn-icon-svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex-shrink: 0;
}

.document-card-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  width: 100%;
}

.document-card-actions .btn {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
}

.document-card-actions .btn-open-browser {
  background: transparent;
  color: var(--color-gray-dark);
  border: 1px solid var(--color-gray-lighter);
}

.document-card-actions .btn-open-browser:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(227, 30, 36, 0.04);
}

/* ===== Ana sayfa — hero + güven (tek panel) ===== */
.home-hero-section.section {
  padding: var(--spacing-md) 0 0;
  background: var(--color-white);
}

.home-top-panel {
  background: var(--color-black);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

#home-hero.home-hero {
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 0;
  padding: 48px 40px 24px;
  min-height: 0;
  overflow: hidden;
}

.home-hero__layout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
}

@keyframes home-hero-disc-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.home-hero__content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: fit-content;
}

.home-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.home-hero__title {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-white);
}

.home-hero__accent {
  color: var(--color-primary);
}

.home-hero__subtitle {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: var(--font-size-large);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: center;
}

#home-hero .home-hero__btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--color-white);
}

#home-hero .home-hero__btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
}

.home-hero__stat {
  padding-right: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.home-hero__stat:last-child {
  padding-right: 0;
  border-right: none;
}

.home-hero__stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

.home-hero__stat-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.home-hero__deco-wrap {
  flex: 0 0 312px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 91px;
  margin-right: 0;
  transform: none;
  pointer-events: none;
}

.home-hero__deco {
  display: block;
  width: 312px;
  height: 312px;
  max-width: 312px;
  max-height: 312px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  animation: home-hero-disc-spin 18s linear infinite;
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__deco {
    animation: none;
  }
}

/* ===== Ana sayfa — güven şeridi (#home-trust) ===== */
#home-trust.home-trust {
  margin: 0;
  padding: 0 40px 32px;
  background: transparent;
}

.home-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme #home-trust.home-trust.section {
  background: transparent;
}

.home-trust__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.home-trust__icon {
  display: block;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  flex-shrink: 0;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.home-trust__icon svg {
  display: block;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  stroke: var(--color-primary);
}

#home-trust .home-trust__card .home-trust__title {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-white);
}

#home-trust .home-trust__card .home-trust__text {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

#main-content .about-preview.section {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  background: var(--color-white);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

body.dark-theme #main-content .about-preview.section {
  background: var(--color-background);
}

#main-content .about-preview .about-preview-text h2 {
  color: var(--color-black);
}

#main-content .about-preview .about-preview-text p {
  color: var(--color-gray-dark);
}

body.dark-theme #main-content .about-preview .about-preview-text h2 {
  color: var(--color-text-primary);
}

body.dark-theme #main-content .about-preview .about-preview-text p {
  color: var(--color-text-secondary);
}

#main-content .about-preview .feature-item {
  background-color: var(--color-gray-lighter);
  border-left: 3px solid var(--color-primary);
}

body.dark-theme #main-content .about-preview .feature-item {
  background: var(--color-background-card);
  border: 1px solid var(--color-border-subtle);
  border-left: 3px solid var(--color-primary);
}

#main-content .about-preview .feature-item h3 {
  color: var(--color-black);
}

#main-content .about-preview .feature-item p {
  color: var(--color-gray-dark);
}

body.dark-theme #main-content .about-preview .feature-item h3 {
  color: var(--color-text-primary);
}

body.dark-theme #main-content .about-preview .feature-item p {
  color: var(--color-text-secondary);
}

#main-content .about-preview .feature-icon {
  width: auto;
  height: auto;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: block;
}

body.dark-theme #main-content .about-preview .feature-icon {
  width: auto;
  height: auto;
  font-size: 1.25rem;
  background: transparent;
  box-shadow: none;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  #home-hero.home-hero {
    padding: 32px 24px 16px;
    min-height: 0;
  }

  .home-hero__title {
    font-size: 1.5rem;
  }

  .home-hero__deco-wrap {
    display: none !important;
  }

  .home-hero__stats {
    margin-top: 28px;
  }

  .home-hero__stat {
    padding-right: 24px;
  }

  .home-hero__stat:last-child {
    padding-right: 0;
  }

  #home-trust.home-trust {
    padding: 0 24px 24px;
  }

  .home-trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  #home-hero .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  #home-hero .home-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .home-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin-top: 24px;
  }

  .home-hero__stat {
    padding-right: 0;
    border-right: none;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .home-hero__stat:nth-child(2) {
    border-right: none;
  }

  .home-hero__stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .home-hero__stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
  }

  .home-trust__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Kart ve grid hizalama düzeltmeleri ===== */

.product-grid {
  align-items: stretch;
}

.product-card-image {
  object-fit: contain;
  background-color: var(--color-white);
}

/* Kart görseli — statik dosya: assets/images/products/{slug}/{slug}-kart.jpg */
.product-card-image-container--static-hero {
  line-height: 0;
}

.product-card-image--hero {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image--hero {
  filter: grayscale(0%);
}

.documents-grid {
  align-items: stretch;
  /* auto-fit: 2 kartta boş sütun bırakmaz; satır tam genişliğe yayılır */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

@media screen and (min-width: 769px) {
  .documents-section .documents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.document-card {
  height: 100%;
}

.document-card-actions {
  margin-top: auto;
}

.document-info {
  min-width: 0;
}

/* Ürün detay — çift kutu/ padding çakışmasını önle */
.page-product-detail .product-detail-grid {
  padding: 0;
  gap: 0;
}

.page-product-detail .product-detail-info .product-actions {
  margin-top: auto;
}

.page-product-detail .product-detail-info .product-actions .btn {
  width: auto;
  max-width: 100%;
}

/* Hakkımızda — inline grid yerine responsive sınıf */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media screen and (max-width: 768px) {
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }
}

/* Header — karşılaştır rozeti kayması */
.header-nav-list > li > .header-nav-link {
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.header-nav-list > li > .header-nav-link .compare-badge {
  margin-left: 0;
}

/* Karşılaştır tablosu yatay kaydırma */
.compare-page .compare-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.products-main {
  min-width: 0;
}

.category-chips {
  display: none;
}

.products-layout {
  align-items: start;
}

/* Ürünler sayfası — satırda 3 kart, orantılı küçültme (24 ürün ≈ 8 satır) */
@media screen and (min-width: 1100px) {
  .products-main .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-sm);
  }

  .products-main .product-card-image-container,
  .products-main .product-card-image,
  .products-main .product-card-image--hero {
    height: 150px;
  }

  .products-main .product-card-content {
    padding: 0.65rem 0.75rem;
  }

  .products-main .product-card-title {
    font-size: 0.95rem;
  }

  .products-main .product-card-description {
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
  }

  .products-main .product-card-category {
    font-size: 0.68rem;
    margin-bottom: 0.25rem;
  }

  .products-main .product-card-actions .btn-small {
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }
}

@media screen and (min-width: 769px) and (max-width: 1099px) {
  .products-main .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Ürünler sayfası — mobil katalog grid */
@media screen and (max-width: 768px) {
  .products-main .product-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .products-main .product-card-image-container,
  .products-main .product-card-image,
  .products-main .product-card-image--hero {
    height: 140px;
  }

  .products-main .product-card-content {
    padding: 0.65rem 0.75rem;
  }

  .products-main .product-card-title {
    font-size: 15px;
    line-height: 1.3;
  }

  .products-main .product-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 0.5rem;
  }

  .products-main .product-card-category {
    font-size: 12px;
  }

  .products-main .product-card-actions .btn-small {
    font-size: 0.875rem;
    padding: 0.5rem 0.65rem;
  }

  .products-main .product-card-actions .btn-icon-compare {
    align-self: flex-end;
  }
}

@media screen and (min-width: 576px) and (max-width: 768px) {
  .products-main .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .products-main .product-card-image-container,
  .products-main .product-card-image,
  .products-main .product-card-image--hero {
    height: 120px;
  }
}

@media screen and (max-width: 480px) {
  .products-main .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Mega menü — ince kaydırma çubuğu */
.mega-menu::-webkit-scrollbar {
  width: 6px;
}

.mega-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

body.dark-theme .mega-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* ===== Katalog — statik HTML, skeleton, SEO fallback ===== */
a.category-btn {
  display: block;
  text-decoration: none;
}

.product-card--static .product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card--static .product-card-title a:hover {
  color: var(--color-primary);
}

.product-grid--loading .product-card--static {
  opacity: 0.55;
  pointer-events: none;
}

.product-card--skeleton {
  pointer-events: none;
  border: 1px solid var(--color-gray-lighter);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--color-white);
}

.product-card-skeleton-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(
    90deg,
    var(--color-gray-lighter) 0%,
    #f5f5f5 50%,
    var(--color-gray-lighter) 100%
  );
  background-size: 200% 100%;
  animation: catalog-skeleton-shimmer 1.2s ease-in-out infinite;
}

.product-card-skeleton-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card-skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: var(--color-gray-lighter);
  animation: catalog-skeleton-shimmer 1.2s ease-in-out infinite;
}

.product-card-skeleton-line--short {
  width: 40%;
}

.product-card-skeleton-line--medium {
  width: 72%;
}

.product-card-skeleton-btn {
  height: 36px;
  width: 96px;
  margin-top: 4px;
  border-radius: var(--border-radius);
  background: var(--color-gray-lighter);
  animation: catalog-skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes catalog-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.catalog-fallback-notice {
  margin: 0 0 var(--spacing-sm);
  padding: 12px 16px;
  font-size: var(--font-size-small);
  line-height: 1.5;
  color: var(--color-gray-dark);
  background: rgba(227, 30, 36, 0.08);
  border: 1px solid rgba(227, 30, 36, 0.2);
  border-radius: var(--border-radius);
}

body.dark-theme .product-card--skeleton {
  background: var(--color-background-card);
  border-color: var(--color-border-subtle);
}

body.dark-theme .product-card-skeleton-image,
body.dark-theme .product-card-skeleton-line,
body.dark-theme .product-card-skeleton-btn {
  background: var(--color-background-elevated);
}

body.dark-theme .catalog-fallback-notice {
  color: var(--color-text-secondary);
  background: rgba(227, 30, 36, 0.12);
  border-color: rgba(227, 30, 36, 0.35);
}

