/* ===================================================================
   KAMALI KLİMA — Modern Arayüz Katmanı
   shop.css'ten SONRA yüklenir; mevcut yapıyı bozmadan rafine eder.
   =================================================================== */

:root {
    --wa: #25d366;
    --wa-dark: #1da851;
    --ring: 0 0 0 3px rgba(0, 102, 255, 0.16);
    --lift: 0 1px 2px rgba(16, 24, 40, 0.04),
            0 8px 24px -6px rgba(16, 24, 40, 0.10);
    --lift-hi: 0 2px 4px rgba(16, 24, 40, 0.05),
               0 18px 40px -10px rgba(16, 24, 40, 0.16);
    --hair: rgba(16, 24, 40, 0.08);
}

/* ---------- Tipografi ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .product-title, .bs-title {
    letter-spacing: -0.022em;
    text-wrap: balance;
}
p, .card-installment, .qf-note { text-wrap: pretty; }

/* ---------- Sayfa başlığı ---------- */
.shop-head {
    background:
        radial-gradient(900px 320px at 12% -40%, rgba(0, 102, 255, 0.07), transparent 60%),
        linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
    border-bottom: 1px solid var(--hair);
    padding-top: 32px;
}
.shop-head h1 { font-weight: 800; }
.cat-tabs a { border-radius: 10px 10px 0 0; }
.cat-tabs a.active { background: rgba(0, 102, 255, 0.05); }

/* ---------- Filtre paneli ---------- */
.shop-filters {
    border-color: var(--hair);
    box-shadow: var(--lift);
    border-radius: 16px;
}
.filters-head { background: #fcfdff; }
.facet { border-radius: 9px; }
.facet .box { border-radius: 5px; }
.facet.on { background: rgba(0, 102, 255, 0.06); }
.chip { transition: var(--transition); }

/* ---------- Ürün kartı ---------- */
.product-grid .product-card {
    border-color: var(--hair);
    border-radius: 16px;
    box-shadow: var(--lift);
    overflow: clip;
}
.product-grid .product-card:hover {
    box-shadow: var(--lift-hi);
    transform: translateY(-3px);
    border-color: rgba(0, 102, 255, 0.22);
}
.product-grid .product-image {
    background: linear-gradient(180deg, #fafbfd 0%, #fff 70%);
    overflow: hidden;
}
.product-grid .product-image img {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-grid .product-card:hover .product-image img { transform: scale(1.045); }

.card-tag { border-radius: 6px; letter-spacing: 0.04em; }
.card-model {
    font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gray-400);
}
.product-grid .product-title { font-weight: 700; }
.card-spec { border-radius: 6px; font-variant-numeric: tabular-nums; }
.card-price .now { font-variant-numeric: tabular-nums; }

/* Enerji etiketi — imza öğe, biraz daha belirgin */
.energy-badge {
    height: 21px; font-size: 0.71rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.14);
}

/* ---------- Fiyat gizli şeridi ---------- */
.price-hidden {
    width: 100%;
    justify-content: center;
    background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
    border: 1px solid rgba(0, 102, 255, 0.20);
    border-radius: 11px;
    padding: 10px 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--primary-dark);
}
.price-hidden.is-detail {
    font-size: 1.15rem; padding: 15px 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f4f8ff 0%, #e9f1ff 100%);
    border-color: rgba(0, 102, 255, 0.28);
}

/* ---------- Düğmeler ---------- */
.card-actions { gap: 8px; }
.card-actions .btn-detail,
.btn-quote, .btn-whatsapp, .card-actions .btn-buy {
    border-radius: 11px;
    font-weight: 700;
    letter-spacing: 0.005em;
}

/* WhatsApp — birincil sipariş kanalı */
.btn-whatsapp {
    flex: 1 1 auto;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 14px;
    background: var(--wa);
    color: #fff;
    border: 1px solid var(--wa);
    font-size: 0.86rem;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 16px -6px rgba(37, 211, 102, 0.55);
    transition: var(--transition);
}
.btn-whatsapp:hover {
    background: var(--wa-dark); border-color: var(--wa-dark); color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.07), 0 10px 22px -8px rgba(37, 211, 102, 0.7);
}
.btn-whatsapp i { font-size: 1.05em; }
.btn-whatsapp.is-detail {
    width: 100%; padding: 16px; font-size: 1.02rem; border-radius: 14px;
}

.btn-quote.is-secondary {
    background: #fff;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    box-shadow: none;
}
.btn-quote.is-secondary:hover {
    background: var(--gray-50); border-color: var(--gray-400); color: var(--dark);
}

/* Ürün sayfası çağrı bloğu */
.detail-cta { display: flex; flex-direction: column; gap: 10px; }
.cta-hint {
    margin: -2px 0 2px;
    font-size: 0.78rem; color: var(--gray-500); text-align: center;
}
.detail-price-box {
    border: 1px solid var(--hair);
    border-radius: 18px;
    box-shadow: var(--lift);
    padding: 26px;
}
.detail-price { font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

/* ---------- Araç çubuğu ---------- */
.sort-select, .view-switch, .filters-toggle {
    border-radius: 11px; border-color: var(--hair);
}
.view-switch { overflow: hidden; }

/* ---------- Sayfalama ---------- */
.shop-pagination .pg { border-radius: 11px; border-color: var(--hair); }

/* ---------- Teklif formu ---------- */
.quote-form-wrap, .quote-product, .quote-done {
    border-color: var(--hair);
    border-radius: 18px;
    box-shadow: var(--lift);
}
.qf-field input, .qf-field textarea { border-radius: 11px; border-color: var(--gray-300); }
.qf-field input:focus, .qf-field textarea:focus { box-shadow: var(--ring); outline: none; }

.quote-wa {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--wa) 0%, var(--wa-dark) 100%);
    border-radius: 16px;
    color: #fff; text-decoration: none;
    box-shadow: 0 10px 26px -10px rgba(37, 211, 102, 0.75);
    transition: var(--transition);
}
.quote-wa:hover { transform: translateY(-2px); color: #fff; }
.quote-wa i { font-size: 1.9rem; flex: 0 0 auto; }
.quote-wa span { display: block; font-size: 0.82rem; opacity: 0.9; line-height: 1.4; }
.quote-wa strong { display: block; font-size: 1rem; opacity: 1; margin-bottom: 1px; }
.quote-call { border-radius: 16px; }

/* ---------- Üst menüdeki teklif kısayolu ---------- */
.header-quote {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 7px 14px;
}
.header-quote:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- Mobil: ürün sayfasında sabit alt çubuk ---------- */
.mobile-cta {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 1030;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--hair);
    box-shadow: 0 -6px 24px -12px rgba(16, 24, 40, 0.28);
    gap: 10px;
}
.mobile-cta .btn-whatsapp { flex: 2 1 0; padding: 13px; }
.mobile-cta .btn-quote { flex: 1 1 0; padding: 13px; }

@media (max-width: 767px) {
    .mobile-cta { display: flex; }
    body.has-mobile-cta { padding-bottom: 78px; }
    .whatsapp-float { bottom: 92px !important; }
    .detail-price-box { padding: 20px; border-radius: 16px; }
    .product-grid .product-card { border-radius: 14px; }
}

/* ---------- Erişilebilirlik ---------- */
a:focus-visible, button:focus-visible, select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}
.btn-whatsapp:focus-visible { outline-color: var(--wa-dark); }

@media (prefers-reduced-motion: reduce) {
    .product-grid .product-card:hover,
    .btn-whatsapp:hover, .quote-wa:hover { transform: none; }
    .product-grid .product-card:hover .product-image img { transform: none; }
    .product-grid .product-image img { transition: none; }
}
