/* Kuyumcu Metin – ortak stiller. Sayfa tasarımı satır içi stillerdedir; burada temel ayarlar ve mobil uyum var. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #FAFAFA; color: #1B2028; font-family: 'Manrope', system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: #4E5B6B; }
a:hover { color: #2B3440; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #2B3440; outline-offset: 3px; }
footer a:focus-visible { outline-color: #C7CCD3; }
input:focus, textarea:focus { border-color: #2B3440 !important; outline: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: #2B3440; color: #F4F6F8; text-decoration: none; border-radius: 2px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #F4F6F8; }

/* görsel kartlarda hafif yakınlaştırma */
main a img { transition: transform .5s ease; }
main a:hover img { transform: scale(1.03); }
main a[aria-current="page"] { cursor: default; }

/* üst menü */
header { position: sticky; top: 0; z-index: 50; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid #C3C9D1; border-radius: 2px; background: #FAFAFA; color: #1B2028; font: 600 14px 'Manrope', system-ui, sans-serif; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }


/* sabit WhatsApp düğmesi */
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25D366; color: #FFFFFF; box-shadow: 0 6px 20px rgba(27, 32, 40, .25); transition: transform .2s ease, box-shadow .2s ease; }
.wa-float:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(27, 32, 40, .3); }
.wa-float:focus-visible { outline: 3px solid #2B3440; outline-offset: 3px; }
@media print { .wa-float { display: none; } }

@media (max-width: 1080px) {
  header nav { gap: 4px 18px !important; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  header > div { flex-wrap: wrap !important; gap: 12px 16px !important; min-height: 72px !important; }
  header nav { display: none !important; order: 10; flex-basis: 100%; flex-direction: column; align-items: stretch !important; gap: 0 !important; padding: 4px 0 8px; }
  header nav.open { display: flex !important; }
  header nav a { padding: 14px 0 !important; border-bottom: 1px solid #E1E4E8 !important; font-size: 16px !important; }
  header nav a:last-child { border-bottom: 0 !important; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(38px, 10vw, 48px) !important; line-height: 1.06 !important; }
  h2 { font-size: clamp(28px, 7.4vw, 34px) !important; }
  main section[style*="padding:"], main section > div[style*="max-width"][style*="padding:"] { padding-top: 48px !important; padding-bottom: 56px !important; }
  main section[style*="padding: 0 24px"] { padding-top: 0 !important; }
  main section { gap: 32px !important; }
  /* yan yana esnek blokların taşmasını önle */
  main [style*="flex: 1"], main [style*="flex: 1.2"], main [style*="flex: 1.4"] { flex-basis: 100% !important; }
  main [style*="height: 600px"] { height: 420px !important; }
  main [style*="min-height: 540px"] { min-height: 360px !important; }
  main [style*="height: 320px"] { height: 240px !important; }
  main [style*="padding: 36px"] { padding: 24px !important; }
  main [style*="grid-template-columns: repeat(6"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  main [style*="grid-template-columns: repeat(2, minmax(0, 1fr))"] { grid-template-columns: 1fr !important; }
  main [style*="minmax(210px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 12px !important; }
  main [style*="minmax(150px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* ana sayfa: koleksiyonlar, öne çıkanlar ve Instagram ızgaraları mobilde 2 sütun */
  main [style*="auto-fill, minmax(300px"], main [style*="auto-fit, minmax(240px"], main [style*="auto-fill, minmax(260px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 12px !important; }
  main [style*="auto-fill, minmax(300px"] [style*="height: 320px"] { height: 180px !important; }
  main [style*="auto-fill, minmax(300px"] span[style*="font-size: 26px"] { font-size: 21px !important; }
  main [style*="auto-fill, minmax(300px"] a > span { flex-direction: column; align-items: flex-start !important; gap: 2px !important; }
  main [style*="columns: 4"] { columns: 2 !important; column-gap: 12px !important; }
  main [style*="columns: 4"] figcaption { font-size: 12px !important; }
  .menu-toggle { font-size: 0; gap: 0; width: 44px; justify-content: center; padding: 0; margin-left: auto; }
  header > div { flex-wrap: nowrap !important; padding: 12px 20px !important; }
  header nav { display: none !important; }
  header.menu-open > div { flex-wrap: wrap !important; }
  header.menu-open nav { display: flex !important; }
  header a[href^="tel:"] { flex: 0 0 44px; font-size: 0 !important; padding: 0 !important; width: 44px; gap: 0 !important; }
  header a[href^="tel:"] svg { width: 18px; height: 18px; }
  header a[href="index.html"] img { width: 36px !important; height: auto !important; }
  header a[href="index.html"] > span > span:first-child { font-size: 24px !important; }
  footer > div { padding-top: 48px !important; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  footer { padding-bottom: 72px; }
}

@media (max-width: 420px) {
  main [style*="minmax(210px"], main [style*="minmax(150px"] { gap: 16px 10px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
