/* Sepet, ürün kartı aksiyonları, katalog araması */

/* Menüdeki sepet */
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); transition: background .2s, color .2s; flex: none; }
.cart-link:hover { background: var(--soft); color: var(--red); }
.cart-link .icon { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
@media (max-width: 900px) { .cart-link { margin-left: auto; } .nav-toggle { margin-left: 0; } }

/* Ürün kartı */
.product-card h3 a:hover { color: var(--red); }
.product-actions { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-actions .btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; gap: 7px; }
.product-actions .btn .icon { width: 17px; height: 17px; }
.product-actions .product-link { margin: 0; padding: 0; border: 0; }
.btn.is-added { background: #1e9e57; border-color: #1e9e57; }

/* Ürün sayfası */
.pd-cart { display: flex; align-items: stretch; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pd-qty { display: flex; align-items: center; gap: 8px; border: 1px solid #cfcfd3; border-radius: var(--radius); padding: 0 10px; background: #fff; }
.pd-qty span { font-size: 13px; color: var(--muted); }
.pd-qty input { width: 64px; border: 0; font: 600 16px var(--font-body); padding: 10px 0; text-align: center; background: transparent; }
.pd-qty input:focus { outline: none; }
.pd-cart .btn { flex: 1; max-width: 260px; }

/* Katalog araması ve sayfalama */
.catalog-search { display: flex; align-items: center; gap: 10px; border: 1px solid #cfcfd3; border-radius: var(--radius); padding: 6px 6px 6px 14px; margin-bottom: 20px; background: #fff; }
.catalog-search .icon { color: var(--muted); width: 20px; height: 20px; }
.catalog-search input { flex: 1; border: 0; font: inherit; font-size: 15px; padding: 8px 0; min-width: 0; background: transparent; }
.catalog-search input:focus { outline: none; }
.catalog-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,18,20,.08); }
.catalog-toolbar a { color: var(--red); font-weight: 600; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pagination a:hover { border-color: var(--ink); }
.pagination a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination span { border: 0; }

/* Sepet sayfası */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.cart-box { border: 1px solid var(--line); background: #fff; margin-bottom: 14px; }
.cart-empty { padding: clamp(28px, 4vw, 48px); text-align: center; }
.cart-empty h2 { font-size: 24px; margin-bottom: 8px; }
.cart-empty p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cart-product img { width: 64px; height: 64px; object-fit: cover; background: var(--soft); border: 1px solid var(--line); flex: none; }
.cart-product a { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.3; }
.cart-product a:hover { color: var(--red); }
.cart-table code { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid #cfcfd3; border-radius: var(--radius); }
.cart-qty button { width: 34px; height: 36px; font-size: 18px; color: var(--ink); }
.cart-qty button:hover { color: var(--red); }
.cart-qty input { width: 48px; height: 36px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: 600 15px var(--font-body); }
.cart-remove { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.cart-remove:hover { color: var(--red); background: #fff1f1; }
.cart-remove .icon { width: 19px; height: 19px; }
.cart-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.cart-mini { background: var(--soft); border-left: 3px solid var(--red); padding: 14px 18px; margin-bottom: 20px; font-size: 14px; }
.cart-mini ul { margin: 8px 0; padding-left: 18px; }
.cart-mini a { color: var(--red); font-weight: 600; }

.cart-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 16px; background: var(--ink); color: #fff; padding: 14px 20px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.45);
  font-size: 14.5px; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); }
.cart-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cart-toast a { color: #ff8d92; font-weight: 700; white-space: nowrap; }

@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .product-actions { flex-direction: column; align-items: stretch; }
  .product-actions .btn { width: 100%; }
  .product-actions .product-link { justify-content: center; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .cart-table td { padding: 0; border: 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
  .cart-table td:nth-child(2) { grid-column: 1 / -1; }
}

/* Instagram */
.instagram .section-head .btn { display: inline-flex; align-items: center; gap: 8px; }
.instagram .section-head .btn svg { width: 18px; height: 18px; }
.ig-handle { margin: 6px 0 0; color: var(--muted, #666); font-weight: 600; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #eee; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ig-tile span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; opacity: 0; transition: opacity .3s; }
.ig-tile span svg { width: 32px; height: 32px; }
.ig-tile:hover img { transform: scale(1.06); }
.ig-tile:hover span, .ig-tile:focus-visible span { opacity: 1; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* Sepet: ürünler → renk → bilgiler tek sütunda */
.cart-page { max-width: 980px; display: grid; gap: 22px; }
.cart-page form { display: grid; gap: 34px; }
.cart-step-title { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 1.6vw, 24px); margin: 0 0 14px; }
.cart-step-title span { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 15px; flex: none; }
.cart-step.form-card .cart-step-title { margin-bottom: 18px; }
.cart-submit { display: grid; gap: 10px; margin-top: 18px; }
.cart-submit .btn { justify-self: start; }
.btn-lg { min-height: 54px; padding-inline: 30px; font-size: 16px; }
.btn .icon { width: 18px; height: 18px; }
.btn-wa { background: #25d366; color: #fff; margin-top: 10px; }
.btn-wa:hover { background: #1da851; color: #fff; }
.cart-sent p { margin: 8px 0 0; }
.form-error-js { color: var(--red); font-weight: 600; margin: 12px 0 0; }
.cart-aside { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }

/* Renk kombinasyonları */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.swatch { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
.swatch-colors { display: flex; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transform: rotate(-45deg); }
.swatch-colors span { flex: 1; }
.swatch-none .swatch-colors { transform: none; background: var(--soft); display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.swatch-text { display: grid; line-height: 1.25; }
.swatch-text strong { font-size: 14px; color: var(--ink); letter-spacing: .02em; }
.swatch-text small { font-size: 13px; color: var(--ink-2); }
.swatch-grid-select .swatch { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.swatch-grid-select .swatch:hover { border-color: #c9c9ce; }
.swatch-grid-select input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-grid-select .swatch:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 2px var(--red) inset; }
.swatch-grid-select .swatch:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }

/* Instagram takip kutusu */
.ig-follow { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; }
.ig-follow:hover { color: #fff; filter: brightness(1.05); }
.ig-follow-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.ig-follow-icon .icon { width: 22px; height: 22px; }
.ig-follow small { display: block; font-size: 12px; opacity: .9; }
.ig-follow strong { font-size: 16px; }

/* Ürünler sayfası: renk seçimi tanıtımı */
.color-intro { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.color-intro .section-title { margin: 6px 0 10px; }
.color-intro p { margin: 0 0 16px; }
@media (max-width: 900px) { .color-intro { grid-template-columns: 1fr; } }
.side-colors { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; }
.side-colors:hover strong { color: var(--red); }
.side-colors-dots { display: flex; }
.side-colors-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; }
.side-colors-dots span:first-child { margin-left: 0; }
.side-colors strong { display: block; font-size: 14px; color: var(--ink); }
.side-colors small { font-size: 12.5px; color: var(--muted); }
.contact-follow { margin: 0 0 18px; }
.catalog-grid > * { min-width: 0; }

/* Üst çubukta Instagram: her ekranda kullanıcı adıyla görünür */
.brand-name, .main-nav > ul > li > a { white-space: nowrap; }
.header-ig .ig-follow { padding: 4px 14px 4px 4px; gap: 8px; white-space: nowrap; }
.header-ig .ig-follow-icon { width: 30px; height: 30px; }
.header-ig .ig-follow-icon .icon { width: 17px; height: 17px; }
.header-ig .ig-follow strong { font-size: 13px; line-height: 1.2; }
@media (min-width: 901px) and (max-width: 1500px) { .main-nav ul { gap: clamp(12px, 1.3vw, 24px); } .header-inner { gap: 20px; } }
@media (min-width: 901px) and (max-width: 1280px) {
  .header-cta { display: none; }
  .main-nav ul { gap: 12px; }
  .main-nav a { font-size: 13.5px; }
  .brand-name { font-size: 17px; }
  .header-inner { gap: 14px; }
  .header-ig .ig-follow { padding: 3px 10px 3px 3px; gap: 6px; }
  .header-ig .ig-follow-icon { width: 26px; height: 26px; }
  .header-ig .ig-follow strong { font-size: 12px; }
}
@media (min-width: 901px) and (max-width: 1060px) {
  .main-nav ul { gap: 10px; }
  .main-nav a { font-size: 12.5px; }
  .brand-name { font-size: 15px; }
  .header-ig .ig-follow-icon { display: none; }
  .header-ig .ig-follow { padding: 5px 10px; }
  .header-ig .ig-follow strong { font-size: 11.5px; }
}
/* Telefon ve dikey tablet: kullanıcı adı logonun altında ince bir satırda */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; min-height: 64px; gap: 6px 8px; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle { flex: none; }
  .header-ig { order: 10; flex-basis: 100%; }
  .header-ig .ig-follow { display: flex; justify-content: center; width: 100%; border-radius: 6px; padding: 4px 10px; }
  .header-ig .ig-follow-icon { width: 24px; height: 24px; background: none; }
  .header-ig .ig-follow strong { font-size: 13.5px; }
  .main-nav { position: absolute; inset: 100% 0 auto 0; max-height: calc(100vh - 110px); }
  .jump-nav { top: 108px; }
}
@media (max-width: 359px) { .brand { gap: 8px; } .brand-name { font-size: 15px; } .logo-mark { width: 32px; height: 21px; } }

/* Ürünler sayfası üstündeki renk bandı */
.color-band { padding-block: clamp(32px, 4vw, 52px); }

/* Üst çubukta "Bizi takip edin" + kullanıcı adı */
.header-ig .ig-follow small { display: block; font-size: 10.5px; line-height: 1.1; opacity: .9; }
@media (min-width: 901px) and (max-width: 1280px) { .header-ig .ig-follow small { font-size: 9.5px; } }
@media (max-width: 900px) {
  .header-ig .ig-follow > span:last-child { display: flex; align-items: baseline; gap: 6px; }
  .header-ig .ig-follow small { font-size: 12.5px; }
}
@media (max-width: 359px) { .header-ig .ig-follow small { font-size: 11px; } .header-ig .ig-follow strong { font-size: 12px; } .header-ig .ig-follow-icon { width: 20px; height: 20px; } .header-ig .ig-follow { gap: 4px; padding: 4px 6px; } }

/* Logo: PNG'deki kırmızı S işareti + GYM FABRICA yazısı */
.brand-mark { display: block; height: clamp(32px, 2.4vw, 40px); width: auto; max-width: none; flex: none; }
.site-header .brand, .site-footer .brand { flex: none; }
@media (max-width: 900px) { .brand-mark { height: 30px; } }
@media (max-width: 359px) { .brand-mark { height: 26px; } }
