/* Maktaş Jewel - Ana sayfa stilleri
   Tüm sınıflar "hm-" öneki taşır; style.css ile çakışmaz. */

:root {
  --hm-ink: #1A1A1D;
  --hm-steel: #4A4E69;
  --hm-gold: #D4AF37;
  --hm-gold-deep: #8a712a;
  --hm-gold-soft: #F0D98C;
  --hm-ivory: #FBF7EE;
  --hm-sand: #F1ECE0;
  --hm-rule: rgba(26, 26, 29, .12);
  --hm-muted: #5d5d63;
  --hm-ease: cubic-bezier(.2, .8, .2, 1);
}

/* Genel bölüm boşluğu (style.css'teki "section" kuralını ezmek için element + sınıf) */
section.hm-section { padding: 96px 0; }
section.hm-section-tight { padding-top: 24px; }
.hm-dark { background: var(--hm-ink); color: rgba(251, 247, 238, .78); }
.hm-dark h2, .hm-dark h3 { color: var(--hm-ivory); }

.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================= ANIMASYONLAR ================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--hm-ease), transform 0.8s var(--hm-ease);
  will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Klavye odağı */
.hm-section :focus-visible,
.hm-trust :focus-visible,
.hm-qv :focus-visible {
  outline: 2px solid var(--hm-gold);
  outline-offset: 3px;
}

/* ================= BUTONLAR ================= */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border: 1px solid transparent; border-radius: 2px;
  font-family: 'Jost', sans-serif; font-size: .95rem; font-weight: 500; letter-spacing: .02em; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.hm-btn-gold { background: var(--hm-gold); color: var(--hm-ink); }
.hm-btn-gold:hover { background: var(--hm-gold-soft); }
.hm-btn-ink { background: var(--hm-ink); color: var(--hm-ivory); }
.hm-btn-ink:hover { background: var(--hm-steel); }
.hm-btn-line { border-color: var(--hm-ink); color: var(--hm-ink); background: transparent; }
.hm-btn-line:hover { background: var(--hm-ink); color: var(--hm-ivory); }

/* ================= BÖLÜM BAŞLIKLARI ================= */
.hm-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  flex-wrap: wrap; margin-bottom: 44px;
}
.hm-head h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; margin: 0;
}
.hm-head p { max-width: 46ch; margin: 12px 0 0; color: var(--hm-muted); font-size: 1rem; line-height: 1.65; }
.hm-dark .hm-head p { color: rgba(251, 247, 238, .65); }
.hm-head-link {
  font-family: 'Jost', sans-serif; font-weight: 500; font-size: .95rem; color: var(--hm-ink);
  text-decoration: underline; text-decoration-color: var(--hm-gold); text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}
.hm-head-link:hover { color: var(--hm-gold-deep); }
.hm-dark .hm-head-link { color: var(--hm-ivory); }
.hm-dark .hm-head-link:hover { color: var(--hm-gold-soft); }

/* ================= HERO (veri yoksa) ================= */
.hm-hero-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(ellipse at 50% 30%, #2c2c31, var(--hm-ink) 70%); text-align: center; padding: 0 24px;
}
.hm-hero-fallback-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 600; color: var(--hm-gold-soft); line-height: 1; }
.hm-hero-fallback-sub { color: rgba(251, 247, 238, .7); letter-spacing: .3em; font-size: .8rem; margin-bottom: 14px; }

/* ================= GÜVEN ŞERİDİ ================= */
.hm-trust { background: #fff; border-bottom: 1px solid var(--hm-rule); }
.hm-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hm-trust-item { display: flex; align-items: center; gap: 14px; padding: 26px 24px; border-left: 1px solid var(--hm-rule); }
.hm-trust-item:first-child { border-left: 0; padding-left: 0; }
.hm-trust-item svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--hm-gold-deep); }
.hm-trust-item strong { display: block; font-family: 'Jost', sans-serif; font-weight: 500; font-size: .98rem; color: var(--hm-ink); }
.hm-trust-item span { display: block; font-size: .85rem; color: var(--hm-muted); margin-top: 2px; line-height: 1.4; }

/* ================= KATEGORİLER ================= */
.hm-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.hm-cat {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px;
  background: var(--hm-steel); text-decoration: none; isolation: isolate;
}
.hm-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--hm-ease); z-index: -2; }
.hm-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,29,0) 45%, rgba(26,26,29,.82) 100%); z-index: -1; }
.hm-cat:hover img { transform: scale(1.05); }
.hm-cat-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 18px; color: #fff; }
.hm-cat-text strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.hm-cat-text small { display: block; margin-top: 4px; font-size: .85rem; color: rgba(255, 255, 255, .8); }

/* ================= SEKMELER ================= */
.hm-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--hm-rule); margin-bottom: 36px; overflow-x: auto; scrollbar-width: none; }
.hm-tabs::-webkit-scrollbar { display: none; }
.hm-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 0;
  font-family: 'Jost', sans-serif; font-size: 1rem; font-weight: 500; color: #7a7a80; cursor: pointer; white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.hm-tab:hover { color: var(--hm-ink); }
.hm-tab.is-active { color: var(--hm-ink); border-bottom-color: var(--hm-gold); }

/* ================= ÜRÜN KARTLARI ================= */
.hm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.hm-empty { text-align: center; padding: 40px 0; color: var(--hm-muted); }
.hm-more { text-align: center; margin-top: 56px; }

.hm-card { display: flex; flex-direction: column; min-width: 0; }
.hm-card[hidden] { display: none; }
.hm-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--hm-sand); border-radius: 3px; }
.hm-card-link { display: block; width: 100%; height: 100%; }
.hm-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--hm-ease); }
.hm-card:hover .hm-card-media img { transform: scale(1.04); }
.hm-card.is-soldout .hm-card-media img { opacity: .55; }

.hm-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 12px; border-radius: 2px;
  background: var(--hm-ink); color: var(--hm-gold-soft); font-family: 'Jost', sans-serif; font-size: .75rem; font-weight: 500;
}
.hm-soldout {
  position: absolute; top: 12px; right: 12px; z-index: 2; padding: 5px 12px; border-radius: 2px;
  background: #fff; color: #b42318; font-family: 'Jost', sans-serif; font-size: .75rem; font-weight: 500;
}

.hm-quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; padding: 12px; border: 0; border-radius: 2px;
  background: rgba(26, 26, 29, .92); color: var(--hm-ivory); font-family: 'Jost', sans-serif; font-size: .88rem; font-weight: 500; cursor: pointer;
  transform: translateY(calc(100% + 14px)); transition: transform .35s var(--hm-ease), background .2s ease;
}
.hm-card:hover .hm-quick, .hm-quick:focus-visible { transform: translateY(0); }
.hm-quick:hover { background: var(--hm-gold-deep); }

.hm-card-body { padding: 16px 2px 0; }
.hm-card-col { display: block; font-size: .8rem; color: var(--hm-gold-deep); margin-bottom: 4px; font-weight: 500; }
.hm-card-name { font-family: 'Jost', sans-serif; font-size: 1.02rem; font-weight: 500; line-height: 1.35; margin: 0 0 8px; }
.hm-card-name a { color: var(--hm-ink); text-decoration: none; }
.hm-card-name a:hover { color: var(--hm-gold-deep); }

.hm-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.hm-price strong { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 600; color: var(--hm-ink); line-height: 1; }
.hm-price s { font-size: .92rem; color: #9a9a9f; }
.hm-price em { font-style: normal; font-size: .8rem; font-weight: 600; color: #b42318; }
.hm-lowstock { display: block; margin-top: 6px; font-size: .82rem; color: #b45309; font-weight: 500; }

/* ================= KOLEKSİYONLAR (genişleyen paneller) ================= */
.hm-coll { display: flex; gap: 8px; height: 580px; }
.hm-coll-item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 3px; background: var(--hm-steel);
  text-decoration: none; color: #fff; isolation: isolate;
  transition: flex-grow .65s var(--hm-ease);
}
.hm-coll-item.is-open { flex-grow: 4.2; }
.hm-coll-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--hm-ease); }
.hm-coll-item.is-open img { transform: scale(1.04); }
.hm-coll-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,26,29,.05) 25%, rgba(26,26,29,.88) 100%); }

.hm-coll-vname {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  writing-mode: vertical-rl; transform-origin: center; rotate: 180deg;
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; white-space: nowrap; letter-spacing: .02em;
  transition: opacity .3s ease;
}
.hm-coll-item.is-open .hm-coll-vname { opacity: 0; pointer-events: none; }

.hm-coll-detail {
  position: absolute; left: 0; bottom: 0; width: min(460px, 100%); padding: 36px 34px;
  display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(14px);
  transition: opacity .4s ease, transform .5s var(--hm-ease);
}
.hm-coll-item.is-open .hm-coll-detail { opacity: 1; transform: translateY(0); transition-delay: .18s; }
.hm-coll-detail small { font-size: .85rem; color: var(--hm-gold-soft); font-weight: 500; }
.hm-coll-detail strong { font-family: 'Cormorant Garamond', serif; font-size: 2.3rem; font-weight: 600; line-height: 1.1; }
.hm-coll-desc { font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .82); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-coll-cta { margin-top: 6px; font-weight: 500; color: var(--hm-gold-soft); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

/* ================= İNDİRİM SERİSİ ================= */
.hm-rail-btns { display: flex; gap: 10px; }
.hm-rail-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hm-rule); background: #fff; color: var(--hm-ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.hm-rail-btn:hover { background: var(--hm-ink); color: var(--hm-ivory); border-color: var(--hm-ink); }
.hm-rail-btn svg { width: 20px; height: 20px; }
.hm-rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--hm-gold) transparent; }
.hm-rail .hm-card { flex: 0 0 270px; scroll-snap-align: start; }

/* ================= MARKA ================= */
.hm-story { background: var(--hm-sand); }
.hm-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hm-story-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1.05; margin: 0 0 22px; }
.hm-story-text p { color: var(--hm-muted); font-size: 1.05rem; line-height: 1.75; max-width: 52ch; margin: 0 0 16px; }
.hm-story-text .hm-story-count { color: var(--hm-ink); }
.hm-story-text .hm-story-count strong { font-weight: 600; box-shadow: inset 0 -.38em 0 rgba(212, 175, 55, .35); }
.hm-story-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hm-story-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hm-story-media figure { margin: 0; overflow: hidden; border-radius: 3px; background: var(--hm-steel); }
.hm-story-media figure:first-child { grid-row: span 2; }
.hm-story-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.hm-story-media figure:first-child img { aspect-ratio: auto; }
.hm-story-media figure:nth-child(2) { margin-top: 36px; }

/* ================= İLETİŞİM ================= */
.hm-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: center; }
.hm-contact h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.08; margin: 0 0 14px; }
.hm-contact p { color: rgba(251, 247, 238, .7); font-size: 1.02rem; line-height: 1.65; max-width: 40ch; margin: 0; }
.hm-contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(212, 175, 55, .3); }
.hm-contact-list li { border-bottom: 1px solid rgba(212, 175, 55, .3); }
.hm-contact-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 4px;
  text-decoration: none; color: var(--hm-ivory); transition: padding .3s var(--hm-ease), color .2s ease;
}
.hm-contact-list a:hover { padding-left: 14px; color: var(--hm-gold-soft); }
.hm-contact-list span { font-size: .9rem; color: rgba(251, 247, 238, .6); }
.hm-contact-list strong { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 600; text-align: right; word-break: break-word; }

/* ================= HIZLI BAKIŞ ================= */
.hm-qv { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(26, 26, 29, .72); backdrop-filter: blur(4px); }
.hm-qv[hidden] { display: none; }
.hm-qv-box {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 880px; max-height: calc(100vh - 40px);
  background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
  animation: hmQvIn .35s var(--hm-ease);
}
@keyframes hmQvIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.hm-qv-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--hm-ink); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.hm-qv-close:hover { background: var(--hm-ink); color: #fff; }
.hm-qv-img { background: var(--hm-sand); }
.hm-qv-img img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.hm-qv-info { padding: 44px 38px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.hm-qv-cat { font-size: .9rem; font-weight: 500; color: var(--hm-gold-deep); margin-bottom: 10px; }
.hm-qv-info h2 { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 600; line-height: 1.1; margin: 0 0 16px; }
.hm-qv-price strong { font-size: 1.9rem; }
.hm-qv-meta { margin: 24px 0 30px; border-top: 1px solid var(--hm-rule); }
.hm-qv-meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hm-rule); font-size: .95rem; }
.hm-qv-meta dt { color: var(--hm-muted); }
.hm-qv-meta dd { margin: 0; font-weight: 500; color: var(--hm-ink); text-align: right; }
.hm-qv-meta > div[hidden] { display: none; }
.hm-qv-go { width: 100%; padding: 16px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .hm-grid { grid-template-columns: repeat(3, 1fr); }
  .hm-story-grid { gap: 50px; }
}

@media (max-width: 900px) {
  section.hm-section { padding: 72px 0; }
  .hm-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-trust-item { border-left: 0; padding: 20px 0; }
  .hm-trust-item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--hm-rule); }
  .hm-trust-item:nth-child(n+3) { border-top: 1px solid var(--hm-rule); }

  .hm-coll { flex-direction: column; height: auto; }
  .hm-coll-item, .hm-coll-item.is-open { flex: none; height: 300px; }
  .hm-coll-vname { display: none; }
  .hm-coll-detail { opacity: 1; transform: none; padding: 26px 24px; width: 100%; }
  .hm-coll-detail strong { font-size: 1.9rem; }

  .hm-story-grid, .hm-contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 760px) {
  .hm-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .hm-rail .hm-card { flex-basis: 220px; }
  .hm-head { margin-bottom: 30px; }
  .hm-rail-btns { display: none; }
  .hm-card-name { font-size: .95rem; }
  .hm-price strong { font-size: 1.25rem; }

  .hm-qv-box { grid-template-columns: 1fr; overflow-y: auto; }
  .hm-qv-info { padding: 28px 24px 32px; overflow: visible; }
  .hm-qv-info h2 { font-size: 1.8rem; }

  .hm-contact-list strong { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .hm-trust-grid { grid-template-columns: 1fr; }
  .hm-trust-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .hm-trust-item:nth-child(n+2) { border-top: 1px solid var(--hm-rule); }
}

/* Dokunmatik ekranlarda hızlı bakış düğmesi her zaman görünür */
@media (hover: none) {
  .hm-quick { transform: none; left: 8px; right: 8px; bottom: 8px; padding: 9px; font-size: .8rem; background: rgba(26, 26, 29, .82); }
}

/* Hareketi azalt */
@media (prefers-reduced-motion: reduce) {
  .hm-card-media img, .hm-cat img, .hm-coll-item, .hm-coll-item img, .hm-coll-detail, .hm-quick, .hm-contact-list a, .animate-on-scroll { transition: none; transform: none; opacity: 1; }
  .hm-qv-box { animation: none; }
}