/* =========================================================================
   Ürünler & Ürün Detay sayfaları — özel stil dosyası.
   Not: assets/styles-*.css derlenmiş (purge edilmiş) bir Tailwind çıktısıdır ve
   sonradan eklenen PHP sayfalarında kullanılan pek çok utility class (hover:,
   disabled:, lg:/md: önekleri, renk aileleri vb.) bu pakette YOK. Bu yüzden bu
   sayfaların tüm görsel/etkileşimli tasarımı, sitenin tema renk değişkenlerini
   (--background, --foreground, --primary, --surface-2 vb.) kullanan bağımsız,
   elle yazılmış CSS ile sağlanır.
   ========================================================================= */

.shop-page { padding-top: 6.5rem; padding-bottom: 8rem; }
.shop-container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }

.shop-header { margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.05); padding-bottom: 1.5rem; }
.shop-eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .25em; color: var(--primary); font-weight: 700; }
.shop-title { font-family: "Instrument Serif", serif; font-style: italic; font-size: 2.5rem; margin-top: .5rem; color: var(--foreground); line-height: 1.1; }
.shop-subtitle { color: var(--muted-foreground); margin-top: .75rem; max-width: 42rem; line-height: 1.6; font-size: .95rem; }

/* ── Sekmeler ─────────────────────────────────────────────────────────── */
.shop-tabs { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.shop-tab {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.15rem; border-radius: .65rem; font-size: .8rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.08); color: var(--muted-foreground); background: var(--background);
  text-decoration: none; transition: all .15s ease; cursor: pointer;
}
.shop-tab:hover { color: var(--foreground); border-color: rgba(255,255,255,.2); }
.shop-tab.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* ── Sayfa düzeni: içerik + sağ sepet için ayrılmış boşluk ───────────── */
.shop-layout { display: flex; gap: 2rem; align-items: flex-start; }
.shop-main { flex: 1 1 auto; min-width: 0; }
.shop-sidebar-spacer { flex: 0 0 320px; }
@media (max-width: 1023px) { .shop-sidebar-spacer { display: none; } }

/* ── Ürün / Paket kartları ────────────────────────────────────────────── */
.shop-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 720px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }

.shop-card {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 1rem; padding: 1.5rem;
  display: flex; flex-direction: column; gap: .9rem;
  transition: border-color .2s ease;
}
.shop-card:hover { border-color: rgba(230,120,60,.4); }
.shop-card.is-full { opacity: .6; }

.shop-card-icon {
  width: 2.75rem; height: 2.75rem; border-radius: .85rem;
  background: rgba(230,120,60,.12); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.shop-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.shop-card-name { font-size: 1.05rem; font-weight: 600; color: var(--foreground); text-decoration: none; }
.shop-card-name:hover { color: var(--primary); }
.shop-card-desc {
  color: var(--muted-foreground); font-size: .82rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-badge-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.shop-badge {
  font-size: .65rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.shop-badge.amber { background: rgba(245,158,11,.12); color: #f5b342; border-color: rgba(245,158,11,.25); }
.shop-badge.red { background: rgba(239,68,68,.12); color: #f87171; border-color: rgba(239,68,68,.25); }
.shop-badge.green { background: rgba(34,197,94,.15); color: #4ade80; border-color: rgba(34,197,94,.25); }
.shop-badge.primary { background: rgba(230,120,60,.15); color: var(--primary); border-color: rgba(230,120,60,.25); }
.shop-badge.muted { background: rgba(255,255,255,.05); color: var(--muted-foreground); border-color: rgba(255,255,255,.08); }

.shop-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .75rem; border-top: 1px dashed rgba(255,255,255,.08); }
.shop-price-block { display: flex; flex-direction: column; }
.shop-price-old { font-size: .7rem; color: var(--muted-foreground); text-decoration: line-through; }
.shop-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.shop-detail-link { font-size: .75rem; color: var(--muted-foreground); text-decoration: underline; }
.shop-detail-link:hover { color: var(--foreground); }

.shop-add-btn {
  border: 1px solid rgba(230,120,60,.35); background: transparent; color: var(--primary);
  font-size: .78rem; font-weight: 700; padding: .55rem 1rem; border-radius: .6rem;
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.shop-add-btn:hover { background: rgba(230,120,60,.1); }
.shop-add-btn.in-cart { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.shop-add-btn:disabled { opacity: .45; cursor: not-allowed; }
.shop-add-btn:disabled:hover { background: transparent; }

/* ── Ürün Detay sayfası ───────────────────────────────────────────────── */
.shop-detail-hero { display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 2.5rem; }
.shop-detail-icon {
  width: 6rem; height: 6rem; border-radius: 1.25rem; background: rgba(230,120,60,.1);
  color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.shop-detail-body { flex: 1 1 320px; min-width: 0; }
.shop-back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted-foreground); text-decoration: none; margin-bottom: 1.25rem; }
.shop-back-link:hover { color: var(--foreground); }
.shop-detail-desc { color: rgba(255,255,255,.85); line-height: 1.75; font-size: .95rem; margin-top: 1rem; white-space: pre-line; }
.shop-spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-top: 1.5rem; }
@media (max-width: 480px) { .shop-spec-grid { grid-template-columns: 1fr; } }
.shop-spec-card { background: var(--background); border: 1px solid rgba(255,255,255,.05); border-radius: .85rem; padding: 1rem; }
.shop-spec-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); margin-bottom: .3rem; }
.shop-spec-value { font-size: .95rem; font-weight: 600; color: var(--foreground); }

.shop-pkg-items { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.shop-pkg-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--background); border: 1px solid rgba(255,255,255,.05); border-radius: .75rem; padding: .8rem 1rem; }
.shop-pkg-item-name { font-size: .85rem; color: var(--foreground); }
.shop-pkg-item-price { font-size: .8rem; font-weight: 600; color: var(--muted-foreground); }

.shop-detail-purchase { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ── Sepet paneli (ürün listesiyle aynı hizada, sticky) ───────────────── */
.shop-cart-sticky {
  position: sticky;
  top: 6rem;
  z-index: 30;
}
@media (max-width: 1023px) { .shop-cart-sticky { display: none; } }

.shop-cart-box {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1.1rem;
  padding: 1.25rem;
  box-shadow: 0 20px 45px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 8rem);
}

.shop-cart-heading { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; color: var(--foreground); margin-bottom: .2rem; }
.shop-cart-count-badge { font-size: .65rem; background: rgba(230,120,60,.15); color: var(--primary); padding: .1rem .5rem; border-radius: 999px; font-weight: 700; }
.shop-cart-category { font-size: .7rem; color: var(--muted-foreground); margin-bottom: .75rem; }

.shop-cart-items { overflow-y: auto; padding-right: .25rem; flex: 1 1 auto; min-height: 2.5rem; }
.shop-cart-items::-webkit-scrollbar { width: 5px; }
.shop-cart-items::-webkit-scrollbar-track { background: rgba(255,255,255,.02); border-radius: 10px; }
.shop-cart-items::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; }

.shop-cart-empty { font-size: .78rem; color: var(--muted-foreground); text-align: center; padding: 1.5rem 0; line-height: 1.5; }
.shop-cart-item { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; font-size: .78rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.shop-cart-item-name { color: rgba(255,255,255,.85); line-height: 1.4; }
.shop-cart-item-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.shop-cart-item-price { color: var(--primary); font-weight: 700; }
.shop-cart-remove-btn { background: none; border: none; color: rgba(255,255,255,.35); cursor: pointer; padding: 0; display: flex; }
.shop-cart-remove-btn:hover { color: #f87171; }

.shop-cart-footer { flex-shrink: 0; padding-top: .9rem; margin-top: .9rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: .75rem; }

.shop-qty-row { display: flex; align-items: center; justify-content: space-between; }
.shop-qty-label { font-size: .78rem; font-weight: 600; color: var(--foreground); }
.shop-qty-sub { font-size: .65rem; color: var(--muted-foreground); }
.shop-qty-controls { display: flex; align-items: center; gap: .5rem; }
.shop-qty-btn {
  width: 1.75rem; height: 1.75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.15);
  background: transparent; color: var(--muted-foreground); font-size: 1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s ease;
}
.shop-qty-btn:hover { border-color: rgba(230,120,60,.5); color: var(--primary); }
.shop-qty-display { font-size: .95rem; font-weight: 700; width: 1.25rem; text-align: center; user-select: none; }

.shop-currency-row { display: flex; gap: .4rem; font-size: .72rem; }
.shop-currency-btn {
  flex: 1; padding: .4rem 0; border-radius: .5rem; border: 1px solid rgba(255,255,255,.1);
  background: var(--background); color: var(--muted-foreground); cursor: pointer; transition: all .15s ease; font-weight: 600;
}
.shop-currency-btn.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.shop-totals { font-size: .78rem; display: flex; flex-direction: column; gap: .4rem; }
.shop-totals-row { display: flex; justify-content: space-between; color: rgba(255,255,255,.7); }
.shop-totals-row .val { font-weight: 600; color: rgba(255,255,255,.9); }
.shop-discount-row { display: flex; justify-content: space-between; color: var(--primary); font-weight: 600; }
.shop-total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; padding-top: .4rem; border-top: 1px dashed rgba(255,255,255,.1); }
.shop-total-row .val { color: var(--primary); }

.shop-hint { font-size: .68rem; line-height: 1.5; padding: .6rem .7rem; border-radius: .6rem; }
.shop-hint.active { background: rgba(230,120,60,.08); border: 1px solid rgba(230,120,60,.2); color: var(--primary); }
.shop-hint.muted { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); color: var(--muted-foreground); }
.shop-hint.amber { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2); color: #f5b342; }

.shop-checkout-btn {
  width: 100%; background: var(--primary); color: var(--primary-foreground); border: none;
  padding: .85rem 1rem; border-radius: .8rem; font-weight: 700; font-size: .88rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  box-shadow: 0 10px 25px rgba(230,120,60,.25); transition: filter .15s ease;
}
.shop-checkout-btn:hover { filter: brightness(1.1); }
.shop-clear-btn { width: 100%; text-align: center; font-size: .7rem; color: rgba(255,255,255,.35); background: none; border: none; cursor: pointer; padding: .3rem 0; }
.shop-clear-btn:hover { color: #f87171; }

/* ── Mobil sepet çubuğu + çekmece ─────────────────────────────────────── */
.shop-cart-mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(22,20,18,.97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .85rem 1.25rem; align-items: center; justify-content: space-between; gap: .75rem;
}
@media (max-width: 1023px) { .shop-cart-mobile-bar { display: flex; } }
.shop-cart-mobile-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }
.shop-cart-mobile-total { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.shop-cart-mobile-btn {
  background: var(--primary); color: var(--primary-foreground); border: none; padding: .65rem 1.25rem;
  border-radius: 999px; font-size: .82rem; font-weight: 700; cursor: pointer;
}

.shop-cart-drawer-overlay { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); }
.shop-cart-drawer {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  background: var(--surface-2); border-top-left-radius: 1.25rem; border-top-right-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.08); padding: 1.25rem; max-height: 85vh; overflow-y: auto;
}
.shop-cart-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.shop-cart-drawer-close { background: none; border: none; color: var(--muted-foreground); cursor: pointer; display: flex; padding: .25rem; }
.shop-cart-drawer-close:hover { color: var(--foreground); }

.shop-cart-drawer-overlay.is-open { display: block; }
.shop-cart-drawer.is-open { display: block; }

/* ── Ürün detayı: soft HTML editöründen gelen "Uzun Açıklama" içeriği ──── */
.urun-html-content p { margin: 0 0 .9em; }
.urun-html-content p:last-child { margin-bottom: 0; }
.urun-html-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--foreground); margin: 1em 0 .5em; }
.urun-html-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--foreground); margin: .9em 0 .45em; }
.urun-html-content ul { list-style: disc; margin: .5em 0 .9em 1.25em; }
.urun-html-content ol { list-style: decimal; margin: .5em 0 .9em 1.25em; }
.urun-html-content li { margin: .25em 0; }
.urun-html-content a { color: var(--primary); text-decoration: underline; }

/* ── Genel yardımcılar ────────────────────────────────────────────────── */
.shop-visually-hidden { display: none !important; }
