/**
 * ui/lines.css
 * Birleştirilmiş: hero.css + product-list-ref.css
 * Lines sayfaları (ürün kataloğu) için hero, grid, card, story stilleri.
 * Fonts: Cormorant Garamond (headings) + Outfit (body).
 */

/* ═══════════════════════════════════════════════════════════════
   HERO (css/hero.css)
   ═══════════════════════════════════════════════════════════════ */

.page-hero {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.page-hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  max-height: 570px;
}

@media (max-width: 768px) {
  .page-hero__media {
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-hero__media {
    min-height: 180px;
  }
}

.page-hero__video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 768px) {
  .page-hero__video {
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
  }
}

.page-hero__media img,
.page-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 768px) {
  .page-hero__media img,
  .page-hero__img {
    object-fit: cover;
  }
}

@media (min-width: 769px) {
  .page-hero__media img,
  .page-hero__img {
    object-fit: cover;
  }
}

.page-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.page-hero__media picture img,
.page-hero__media picture .page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 768px) {
  .page-hero__media picture img,
  .page-hero__media picture .page-hero__img {
    object-fit: cover;
  }
}

@media (min-width: 769px) {
  .page-hero__media picture img,
  .page-hero__media picture .page-hero__img {
    object-fit: cover;
  }
}

.page-hero__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem 2rem;
  max-width: 100%;
  pointer-events: none;
}

.page-hero__caption .header__title,
.content__block.header-video .header__title,
.page-hero__caption p.header__title {
  white-space: normal;
  font-weight: 400;
  font-size: 2.744em;
  line-height: 1.15;
  margin: 0;
}

@media (min-width: 769px) {
  .page-hero__caption {
    padding: 2rem 3rem;
  }
}

@media (max-width: 768px) {
  .page-hero__caption .header__title {
    display: none;
  }
  .page-hero__caption--split .header__titles .header__title-sub {
    display: none;
  }
  .page-hero__caption--split .header__titles .header__titles-divider {
    display: none;
  }
}

/* Split hero: iki satır + divider (örn. moisturizing, sensitive, lighning) */
.page-hero__caption--split .header__titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-hero__caption--split .header__titles .header__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(28px, 5.5vw, 52px);
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0;
}

.page-hero__caption--split .header__titles .header__title-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.18em;
  margin: 0;
}

.page-hero__caption--split .header__titles .header__titles-divider {
  width: 36px;
  height: 0.5px;
  background-color: #000;
  margin: 18px 0;
  flex-shrink: 0;
}

.page-hero--tall .page-hero__media {
  aspect-ratio: auto;
  height: 50vw;
  max-height: 570px;
  min-height: 200px;
}

@media (max-width: 1024px) {
  .page-hero--tall .page-hero__media {
    height: 56.25vw;
    max-height: 570px;
  }
}

@media (max-width: 480px) {
  .page-hero--tall .page-hero__media {
    max-height: 570px;
    min-height: 160px;
  }
}

/* Hero: sub pages (40vh) */
.page-hero--sub {
  height: 40vh;
}

.page-hero--sub .page-hero__media {
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  min-height: 0;
}

/* ═══════════════════════════════════════════════════════════════
   LINES TYPE HERO (tipografi, görsel yok — MasterPage font ağırlıkları)
   ═══════════════════════════════════════════════════════════════ */

.lines-type-hero {
  position: relative;
  width: 100%;
  height: 280px;
  box-sizing: border-box;
  overflow: hidden;
  background: #ededed;
  border-top: 0.5px solid rgba(0, 0, 0, 0.07);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.07);
}

.lines-type-hero__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lines-type-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' width='400' height='400'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  background-size: 400px 400px;
  background-repeat: repeat;
}

.lines-type-hero__halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 58% 88% at 50% 50%,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.28) 38%,
    transparent 68%
  );
  opacity: 0;
  animation: linesTypeHeroFxIn 1.2s ease-out 0.08s forwards;
}

.lines-type-hero__beam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(154, 120, 72, 0.2),
    transparent
  );
  opacity: 0;
  animation: linesTypeHeroFxIn 1.2s ease-out 0.08s forwards;
}

@keyframes linesTypeHeroFxIn {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lines-type-hero__halo,
  .lines-type-hero__beam {
    animation: none;
    opacity: 1;
  }
}

.lines-type-hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
  margin-top: 50px;
}

@media (min-width: 769px) {
  .lines-type-hero__inner {
    margin-top: 30px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

.lines-type-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 7px;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: #9a7848;
}

.lines-type-hero__title {
  margin: 0;
  max-width: min(92vw, 22rem);
  font-family: 'Cormorant Garamond', serif;
  /* Master’da italic 300 yok: düz 300 */
  font-weight: 300;
  font-style: normal;
  font-size: clamp(2rem, 11vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #1a1816;
  text-wrap: balance;
}

/* Desktop: tek satır + geniş alan — altyazının 280px içinde kalması için */
@media (min-width: 769px) {
  .lines-type-hero__title {
    max-width: min(calc(100% - 2.5rem), 42rem);
    white-space: nowrap;
    text-wrap: unset;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.lines-type-hero__separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.85rem 0;
}

.lines-type-hero__separator-line {
  display: block;
  width: 52px;
  height: 0.5px;
  background: #b89060;
}

.lines-type-hero__separator-diamond {
  display: block;
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  border: 0.5px solid #9a7848;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.lines-type-hero__subtitle {
  margin: 0;
  max-width: 36em;
  font-family: 'Outfit', sans-serif;
  /* Master’da 200 yok: 300 */
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a8580;
  text-wrap: balance;
}

/* ═══════════════════════════════════════════════════════════════
   LINES LAYOUT & PRODUCT GRID (product-list-ref)
   ═══════════════════════════════════════════════════════════════ */

.main-container.col1-layout.lines-products-wrap {
  width: 100%;
  max-width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}
.main-container.lines-products-wrap .main,
.main-container.lines-products-wrap .col-main {
  max-width: 100%;
  width: 100%;
  min-width: 0;
}

.intro {
  max-width: 720px;
  margin: 70px auto;
  text-align: center;
  border: none;
}

.intro h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.intro p {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

.category-products .grid {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2px;
  row-gap: 60px;
  list-style: none;
}

.category-products .card {
  background: #f0efed;
  border-radius: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.35s ease;
}

.category-products .card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
}

.category-products .card-image {
  position: relative;
  background: #ededeb;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  text-decoration: none;
}

.category-products .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-products .card:hover .card-image img {
  transform: scale(1.05);
}

.category-products .card-image .loader-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-products .badge {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #2d2d2d;
  z-index: 1;
}

.category-products .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 18px;
  background: #f0efed;
  border-top: 1px solid #dedad5;
}

.category-products .product-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
  color: #1a1a1a;
}

.category-products .product-title a {
  color: inherit;
  text-decoration: none;
}

.category-products .product-title a:hover {
  text-decoration: underline;
}

.category-products .product-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  color: #888;
  letter-spacing: 0.3px;
}

.category-products .price {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  color: #444;
  letter-spacing: 0.3px;
  margin-top: 5px;
  font-weight: 400;
}

.category-products .btn-sepete-ekle,
.category-products .card-footer .addtocart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #b8b5b0;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: #2d2d2d;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.category-products .btn-sepete-ekle:hover,
.category-products .card-footer .addtocart:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.category-products .btn-sepete-ekle i,
.category-products .btn-sepete-ekle svg,
.category-products .card-footer .addtocart i,
.category-products .card-footer .addtocart svg {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.category-products .btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* Story section */
.story {
  margin: 80px 0 100px;
  background: #ede8e1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.story-image {
  min-height: 0;
  overflow: hidden;
  display: flex;
}

.story-image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.story img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.story > img {
  align-self: stretch;
}

.story-text {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.story-text p {
  font-family: 'Outfit', sans-serif;
  color: #666;
  line-height: 1.7;
}

/* Filter Bar (all.aspx) */
.filter-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0 36px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-bar__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a1a1a;
}

.filter-bar__scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.filter-bar__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 9px 22px;
  border: 1px solid #c8c5c0;
  border-radius: 0;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.filter-btn.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.filter-group {
  display: none;
}

.filter-group.filter-active {
  display: block;
  animation: filterSlideIn 0.45s ease forwards;
}

@keyframes filterSlideIn {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#filteredProducts {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 800px) {
  .category-products .grid {
    grid-template-columns: 1fr 1fr;
  }

  .story {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    padding: 30px 16px 28px;
  }

  /* Kaydırıcı konteyner flex olmamalı: WebKit/iOS’ta overflow-x + display:flex sık kilitlenir.
     Blok + içte inline-flex / max-content en stabil desen. */
  .filter-bar__scroll {
    align-self: stretch;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-tap-highlight-color: transparent;
  }

  .filter-bar__scroll::-webkit-scrollbar {
    display: none;
  }

  .filter-bar__buttons {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: none;
    vertical-align: top;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 12px;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }
}

@media (max-width: 480px) {
  .category-products .grid {
    grid-template-columns: 1fr;
  }

  .story-text {
    padding: 40px 24px;
  }

  .intro {
    margin: 40px auto;
  }

  .intro h2 {
    font-size: 26px;
  }

  .intro p {
    font-size: 16px;
  }

  .filter-bar {
    padding: 24px 0 20px;
  }

  .filter-bar__scroll {
    padding: 0 16px 6px;
  }

  .filter-btn {
    padding: 7px 12px;
    font-size: 11.5px;
    flex-shrink: 0;
  }
}

/* Pager (productlist) */
.category-products .toolbar-bottom {
  margin-top: 40px;
  padding: 24px 0;
  text-align: center;
}

.category-products .pager .pages ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.category-products .pager .pages li a,
.category-products .pager .pages li.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border: 1px solid #d0ceca;
  background: #fff;
  transition: all 0.2s ease;
}

.category-products .pager .pages li a:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
  background: #fafafa;
}

.category-products .pager .pages li.current {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  cursor: default;
}

.category-products .pager .pages li a.previous,
.category-products .pager .pages li a.next {
  font-size: 18px;
}
