/**
 * AWA — Clothes tema: giyim odaklı dikey görsel sistemi
 * Scope: .clothes-theme (yalnızca clothes temasında yüklenir)
 */

.clothes-theme {
  --clothes-portrait-ratio: 3 / 4;
  --clothes-portrait-ratio-tight: 2 / 3;
  --clothes-hero-ratio-mobile: 3 / 4;
  --clothes-hero-ratio-desktop: 16 / 9;
  --clothes-accent: #111111;
  --clothes-muted: #6b7280;
  --clothes-border: #e5e7eb;
  --clothes-surface: #fafafa;
}

/* ——— Anasayfa hero — mobil dikey / masaüstü tam genişlik banner ——— */
.clothes-theme .clothes-hero-slideshow {
  padding: 0;
  background: #000;
}

@media (min-width: 576px) {
  .clothes-theme .clothes-hero-slideshow {
    background: transparent;
  }
}

.clothes-theme .clothes-hero-slideshow .home-slideshow {
  width: 100%;
  max-width: none;
  margin: 0;
}

.clothes-theme .clothes-hero-slideshow .slide,
.clothes-theme .clothes-hero-slideshow .slide .slideimg,
.clothes-theme .clothes-hero-slideshow .slide .slideimg a {
  display: block;
  width: 100%;
}

/* Mobil: dikey editorial slider */
@media (max-width: 575.98px) {
  .clothes-theme .clothes-hero-slideshow .slide .slideimg a {
    position: relative;
    aspect-ratio: var(--clothes-hero-ratio-mobile);
    overflow: hidden;
    background: #111;
  }
}

/* Masaüstü: tam genişlik yatay banner */
@media (min-width: 576px) {
  .clothes-theme .clothes-hero-slideshow .slide .slideimg a {
    position: relative;
    aspect-ratio: var(--clothes-hero-ratio-desktop);
    overflow: hidden;
    background: var(--clothes-surface);
  }
}

.clothes-theme .clothes-hero-slideshow .clothes-hero-img,
.clothes-theme .clothes-hero-slideshow .home-slideshow .slick-slide img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

.clothes-theme .clothes-hero-slideshow .clothes-hero-img--mobile {
  object-position: center top;
}

.clothes-theme .clothes-hero-slideshow .home-slideshow .slick-track,
.clothes-theme .clothes-hero-slideshow .home-slideshow .slick-list,
.clothes-theme .clothes-hero-slideshow .home-slideshow .slick-slide,
.clothes-theme .clothes-hero-slideshow .home-slideshow .slick-slide > div {
  height: auto !important;
}

/* ——— Anasayfa koleksiyon grid — dikey kartlar ——— */
.clothes-theme .clothes-collections-section {
  padding: 48px 0 56px;
}

.clothes-theme .clothes-collections-grid {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 12px;
}

.clothes-theme .clothes-collection-card {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.clothes-theme .clothes-collection-card:hover,
.clothes-theme .clothes-collection-card:focus-visible {
  text-decoration: none;
  color: inherit;
}

.clothes-theme .clothes-collection-card__media {
  position: relative;
  aspect-ratio: var(--clothes-portrait-ratio);
  overflow: hidden;
  background: var(--clothes-surface);
  border-radius: 2px;
}

.clothes-theme .clothes-collection-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

.clothes-theme .clothes-collection-card:hover .clothes-collection-card__media img {
  transform: scale(1.03);
}

.clothes-theme .clothes-collection-card__body {
  padding: 12px 2px 0;
  text-align: center;
}

.clothes-theme .clothes-collection-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clothes-accent);
}

/* ——— Ürün kartları — dikey (kategori + slider) ——— */
.clothes-theme .clothes-product-card .clothes-product-card__media-link {
  display: block;
  aspect-ratio: var(--clothes-portrait-ratio);
  overflow: hidden;
  background: var(--clothes-surface);
  border-radius: 2px;
  position: relative;
}

.clothes-theme .clothes-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease, opacity 0.35s ease;
}

.clothes-theme .clothes-product-card:hover .clothes-product-card__img {
  transform: scale(1.02);
}

.clothes-theme .clothes-product-card .product-details {
  text-align: left !important;
  padding: 10px 2px 4px;
}

.clothes-theme .clothes-product-card .product-name {
  margin-top: 0 !important;
  line-height: 1.35;
}

.clothes-theme .clothes-product-card .product-name a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clothes-accent);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clothes-theme .clothes-product-card .product-price {
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Slider kartları */
.clothes-theme .clothes-product-slide .clothes-product-slide__media {
  aspect-ratio: var(--clothes-portrait-ratio);
  overflow: hidden;
  background: var(--clothes-surface);
  border-radius: 2px;
}

.clothes-theme .clothes-product-slide .clothes-product-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.clothes-theme .clothes-product-slide:hover .clothes-product-slide__media img {
  transform: scale(1.02);
}

.clothes-theme .clothes-product-slide .awa-diva-details {
  padding-left: 0;
  padding-right: 0;
}

.clothes-theme .awa-diva-hp .awa-diva-pimg,
.clothes-theme .awa-diva-tab-slider .awa-diva-pimg {
  aspect-ratio: var(--clothes-portrait-ratio);
  background: var(--clothes-surface);
  border-radius: 2px;
}

.clothes-theme .awa-diva-hp .awa-diva-pimg img,
.clothes-theme .awa-diva-tab-slider .awa-diva-pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Anasayfa ürün slider bölümleri */
.clothes-theme .clothes-home-section .section-header {
  margin-bottom: 1.5rem;
}

.clothes-theme .clothes-home-section .section-header .h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clothes-theme .clothes-home-section .section-header p {
  color: var(--clothes-muted);
  font-size: 0.9375rem;
  margin-top: 0.35rem;
}

/* ——— Kategori sayfası — editorial grid ——— */
.clothes-theme .clothes-listing-page--editorial {
  background: #ffffff;
  padding: 1.5rem 0 4rem;
}

.clothes-theme .clothes-listing-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .clothes-theme .clothes-listing-shell {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1200px) {
  .clothes-theme .clothes-listing-shell {
    padding: 0 3rem;
  }
}

.clothes-theme .clothes-listing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0;
}

.clothes-theme .clothes-listing-head__title {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #111111;
}

.clothes-theme .clothes-listing-head__count {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.clothes-theme .clothes-listing-head__tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.clothes-theme .clothes-listing-head__filter-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  color: #111111;
  cursor: pointer;
}

.clothes-theme .clothes-listing-head__filter-btn.is-active {
  color: #6b7280;
}

.clothes-theme .clothes-listing-head__sort-wrap {
  margin: 0;
}

.clothes-theme .clothes-listing-head__sort {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23111' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 1rem;
}

.clothes-theme .clothes-listing-filters {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid #ececec;
}

.clothes-theme .clothes-listing-filters.is-open {
  display: block;
}

.clothes-theme .clothes-listing-filters__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.clothes-theme .clothes-listing-filters__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.clothes-theme .clothes-listing-filters__pill {
  position: relative;
}

.clothes-theme .clothes-listing-filters__pill summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clothes-theme .clothes-listing-filters__pill summary::-webkit-details-marker {
  display: none;
}

.clothes-theme .clothes-listing-filters__pill.is-active summary {
  border-color: #111111;
}

.clothes-theme .clothes-listing-filters__dropdown {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.clothes-theme .clothes-listing-filters__apply {
  border: 1px solid #111111;
  background: #111111;
  color: #fff;
  padding: 0.55rem 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.clothes-theme .clothes-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 0.85rem;
}

@media (min-width: 768px) {
  .clothes-theme .clothes-editorial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1rem;
  }
}

@media (min-width: 1024px) {
  .clothes-theme .clothes-editorial-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem 1rem;
  }
}

.clothes-theme .clothes-editorial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.clothes-theme .clothes-editorial-card__media-wrap {
  position: relative;
}

.clothes-theme .clothes-editorial-card__media {
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: #f3f4f6;
}

.clothes-theme .clothes-editorial-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease;
}

.clothes-theme .clothes-editorial-card:hover .clothes-editorial-card__img {
  transform: scale(1.015);
}

.clothes-theme .clothes-editorial-card__badges {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.clothes-theme .clothes-editorial-card__badge,
.clothes-theme .clothes-editorial-card__badges .clothes-editorial-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.clothes-theme .clothes-editorial-card__badges .diva-product-badge--text,
.clothes-theme .clothes-editorial-card__badges .product-badge_text {
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #111111;
}

.clothes-theme .clothes-editorial-card__badge--sale {
  background: #111111;
  color: #ffffff;
}

.clothes-theme .clothes-editorial-card__title {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.clothes-theme .clothes-editorial-card__title a {
  color: #111111;
  text-decoration: none;
}

.clothes-theme .clothes-editorial-card__title a:hover {
  color: #4b5563;
}

.clothes-theme .clothes-editorial-empty {
  grid-column: 1 / -1;
  padding: 3rem 0;
  text-align: center;
  color: #6b7280;
}

.clothes-theme .clothes-listing-pagination {
  margin-top: 3rem;
}

.clothes-theme .clothes-listing-seo {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ececec;
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.clothes-theme.clothes-page-category--editorial .diva-breadcrumb-bar,
.clothes-theme.clothes-page-category--editorial .diva-category-hero,
.clothes-theme.clothes-page-category--editorial .clothes-category-hero {
  display: none;
}

.clothes-theme.clothes-page-category--editorial .diva-active-filters {
  margin-bottom: 1rem;
}

/* legacy listing styles kept for other pages */
.clothes-theme .clothes-category-hero {
  padding: 24px 0 8px;
  text-align: center;
}

.clothes-theme .clothes-category-hero__frame {
  max-width: 360px;
  margin: 0 auto 16px;
  aspect-ratio: var(--clothes-portrait-ratio-tight);
  overflow: hidden;
  background: var(--clothes-surface);
  border-radius: 2px;
}

.clothes-theme .clothes-category-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.clothes-theme .clothes-category-hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clothes-accent);
}

.clothes-theme .clothes-category-hero--plain {
  padding: 32px 0 8px;
}

.clothes-theme .clothes-listing-page .diva-listing-toolbar {
  border-top: 1px solid var(--clothes-border);
  border-bottom: 1px solid var(--clothes-border);
  padding: 12px 0;
  margin-bottom: 1.25rem;
}

.clothes-theme .clothes-listing-grid {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 20px;
}

@media (min-width: 768px) {
  .clothes-theme .clothes-listing-grid {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 28px;
  }
}

.clothes-theme .clothes-listing-grid > .item {
  margin-bottom: 0;
}

/* ——— Ürün detay ——— */
.clothes-theme .clothes-product-detail-page .bredcrumbWrap {
  border-bottom: 1px solid var(--clothes-border);
  margin-bottom: 0;
}

.clothes-theme .clothes-product-detail-page .bredcrumbWrap .breadcrumbs {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clothes-theme .clothes-product-layout {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.clothes-theme .clothes-product-gallery-col {
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .clothes-theme .clothes-product-gallery-col {
    margin-bottom: 0;
    position: sticky;
    top: 88px;
    align-self: start;
  }

  .clothes-theme .clothes-product-info-col {
    position: sticky;
    top: 88px;
    align-self: start;
  }
}

.clothes-theme .clothes-product-gallery .product-gallery-container--thumbnails-bottom .clothes-gallery-main {
  aspect-ratio: var(--clothes-portrait-ratio);
  height: auto !important;
  background: var(--clothes-surface);
  border-radius: 2px;
  overflow: hidden;
}

.clothes-theme .clothes-product-gallery .clothes-gallery-main .swiper-slide {
  height: auto !important;
}

.clothes-theme .clothes-product-gallery .clothes-gallery-main .swiper-slide a,
.clothes-theme .clothes-product-gallery .clothes-gallery-main .swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.clothes-theme .clothes-product-gallery .clothes-gallery-main .swiper-slide img {
  object-fit: cover;
  object-position: center top;
}

.clothes-theme .clothes-product-gallery .product-gallery-container--thumbnails-bottom .product-gallery-thumbs,
.clothes-theme .clothes-product-gallery .product-gallery-container--thumbnails-bottom .thumbs-swiper {
  height: 88px;
}

.clothes-theme .clothes-product-gallery .product-gallery-thumbs .swiper-slide {
  aspect-ratio: var(--clothes-portrait-ratio);
  height: auto !important;
  width: 56px !important;
  border-radius: 2px;
  overflow: hidden;
}

.clothes-theme .clothes-product-gallery .product-gallery-thumbs .swiper-slide img {
  object-fit: cover;
  object-position: center top;
}

.clothes-theme .clothes-product-detail h1.product-single__title {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.clothes-theme .clothes-product-detail .product-single__price {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.clothes-theme .clothes-product-detail .prInfoRow {
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.clothes-theme .clothes-product-tabs-wrap {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clothes-border);
}

.clothes-theme .clothes-product-detail .related-product .section-header .h2 {
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clothes-theme .clothes-product-detail .productPageSlider .clothes-product-slide {
  padding: 0 6px;
}

/* Minicart — dikey thumbnail */
.clothes-theme .diva-minicart__thumb {
  width: 72px;
  aspect-ratio: var(--clothes-portrait-ratio);
}

.clothes-theme .diva-minicart__thumb img {
  object-fit: cover;
  object-position: center top;
}

/* Mobil sticky sepete ekle barı */
@media (max-width: 991.98px) {
  .clothes-theme .clothes-product-detail .product-action {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--clothes-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  }

  .clothes-theme .clothes-product-detail-page {
    padding-bottom: 88px;
  }

  .clothes-theme .clothes-product-info-col .product-action {
    display: none;
  }

  .clothes-theme .clothes-mobile-buy-bar {
    display: block;
  }
}

@media (min-width: 992px) {
  .clothes-theme .clothes-mobile-buy-bar {
    display: none !important;
  }
}

.clothes-theme .clothes-mobile-buy-bar .btn {
  width: 100%;
  min-height: 48px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
}
