/* ==========================================================================
   Shofbi — Özel stiller
   Tailwind CDN'i tamamlayan, Tailwind ile kolay yapılamayan küçük dokunuşlar.
   Tema: beyaz / açık. Tek vurgu rengi: --brand (turuncu).
   ========================================================================== */

:root {
    --brand: #ea580c;
    --brand-dark: #c2410c;
}

html { scroll-behavior: smooth; }

/* Görsel yer tutucu (placeholder) — gerçek görsel gelene kadar.
   Panelden upload edilen görseller bunların yerini alacak. */
.img-placeholder {
    background-color: #f1f5f9;
    background-image:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    user-select: none;
}

/* --------------------------------------------------------------------------
   Slider
   -------------------------------------------------------------------------- */
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.6s ease; }
.slider-slide { min-width: 100%; }

.slider-dot {
    width: 8px; height: 8px; border-radius: 9999px;
    background: rgba(15, 23, 42, 0.2);
    transition: all 0.3s ease; cursor: pointer;
}
.slider-dot.active { width: 24px; background: var(--brand); }

/* Slider geçiş okları (orta sol / orta sağ) — varsayılan hafif soluk */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.35;                 /* hafif belli olmayan */
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.slider-arrow-left  { left: 0.75rem; }
.slider-arrow-right { right: 0.75rem; }
.slider:hover .slider-arrow { opacity: 0.6; }   /* slider üzerine gelince biraz belirir */
.slider-arrow:hover { opacity: 1; background: rgba(255, 255, 255, 0.92); }  /* okun üzerinde net */

/* --------------------------------------------------------------------------
   SSS akordeon
   -------------------------------------------------------------------------- */
.faq-item > button .faq-icon { transition: transform 0.3s ease; }
.faq-item.open > button .faq-icon { transform: rotate(45deg); }
.faq-item .faq-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-item.open .faq-body { max-height: 400px; }

/* --------------------------------------------------------------------------
   Yıldız puanlama (yorum formu)
   -------------------------------------------------------------------------- */
.star-input { cursor: pointer; color: #cbd5e1; transition: color 0.15s ease; font-size: 1.75rem; line-height: 1; }
.star-input.active { color: #f59e0b; }

/* Satın al / sepete ekle butonlarında küçük tıklama geri bildirimi */
.btn-press:active { transform: scale(0.97); }

/* --------------------------------------------------------------------------
   Ürün fotoğrafı yakınlaştırma (lightbox)
   -------------------------------------------------------------------------- */
#lightbox {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(15, 23, 42, 0.85);
    display: none;
    align-items: center; justify-content: center;
    overflow: hidden;
    touch-action: none;
}
#lightbox.open { display: flex; }
#lightbox img {
    max-width: 90vw; max-height: 85vh;
    user-select: none;
    cursor: grab;
    transition: transform 0.08s linear;
    will-change: transform;
}
#lightbox img.dragging { cursor: grabbing; transition: none; }
.lb-btn {
    position: absolute;
    width: 44px; height: 44px;
    border-radius: 9999px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 61;
}
.lb-btn:hover { background: rgba(255,255,255,0.35); }
.lb-close { top: 1rem; right: 1rem; }
.lb-zoom-in  { bottom: 1rem; right: 50%; transform: translateX(56px); }
.lb-zoom-out { bottom: 1rem; left: 50%;  transform: translateX(-56px); }
.lb-hint {
    position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.6); font-size: 0.75rem; pointer-events: none;
}

/* --------------------------------------------------------------------------
   Kategori filtre butonları (ana sayfa)
   -------------------------------------------------------------------------- */
.cat-filter-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cat-filter-btn:hover { background: #f1f5f9; border-color: #94a3b8; }
.cat-filter-btn.filter-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
