/*
 * Hosting İndirimleri – Frontend CSS
 * Tema uyumlu: font, renk, background temadan miras alınır.
 * Tüm stiller .hi-section scope'u içinde kalır.
 */

/* ── Değişkenler (tema override edebilir) ── */
.hi-section {
    --hi-primary:   #2563eb;
    --hi-primary-d: #1d4ed8;
    --hi-success:   #16a34a;
    --hi-danger:    #dc2626;
    --hi-accent:    #f59e0b;
    --hi-border:    #e2e8f0;
    --hi-surface:   #ffffff;
    --hi-bg:        #f8fafc;
    --hi-muted:     #94a3b8;
    --hi-text-2:    #475569;
    --hi-radius:    10px;
    --hi-shadow:    0 1px 6px rgba(0,0,0,.06);
}
/* box-sizing sadece kendi elemanlarımıza */
.hi-section *, .hi-section *::before, .hi-section *::after {
    box-sizing: border-box;
}

/* ════════════════════════
   GÖVDE VE SOL MENÜ
   ════════════════════════ */
.hi-section .hi-body {
    padding: 0;
    margin: 0;
}

.hi-section .hi-layout-with-sidebar {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.hi-section .hi-sidebar {
    flex: 0 0 250px;
    background: #fff;
    border: 1px solid #eaedf1;
    border-radius: 10px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.hi-section .hi-sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.hi-section .hi-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hi-section .hi-sidebar-menu li {
    margin-bottom: 5px;
}

.hi-section .hi-sidebar-menu a {
    display: block;
    padding: 8px 12px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.hi-section .hi-sidebar-menu a:hover {
    background: #f8fafc;
    color: #ea580c;
}

.hi-section .hi-main-content {
    flex: 1;
    min-width: 0;
}

/* ════════════════════════
   KUTUCUK (GRID) GÖRÜNÜMÜ
   ════════════════════════ */
.hi-section .hi-grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Kart Yapısı */
.hi-section .hi-card-item {
    background: var(--hi-surface);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.hi-section .hi-card-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.hi-section .hi-card--expired {
    opacity: 0.6;
}

.hi-section .hi-card--hidden {
    display: none !important;
}

/* Kart: Header (Görsel ve Etiket) */
.hi-section .hi-card-header {
    height: 180px;
    background: #fff;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
    padding: 15px;
}

.hi-section .hi-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.hi-section .hi-card-badge-expired {
    background: #9ca3af;
}

.hi-section .hi-card-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hi-section .hi-card-img-wrap img {
    max-width: 80%;
    max-height: 120px;
    object-fit: contain;
}

.hi-section .hi-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #475569;
    font-size: 2.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kart: Gövde (Metinler ve Link) */
.hi-section .hi-card-body {
    padding: 24px 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hi-section .hi-text-center {
    text-align: center;
    align-items: center;
}

.hi-section .hi-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.hi-section .hi-card-price {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}
.hi-section .hi-old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9rem;
}
.hi-section .hi-new-price {
    color: #ea580c;
    font-size: 1.4rem;
    font-weight: 800;
}

.hi-section .hi-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.5;
    flex: 1;
}

.hi-section .hi-btn-modern {
    display: inline-block;
    background: #ea580c;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.2s;
    width: 100%;
}

.hi-section .hi-btn-modern:hover {
    background: #c2410c;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Boş durum ── */
.hi-section .hi-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--hi-surface);
    border: 1px solid var(--hi-border);
    border-radius: 12px;
    color: inherit;
    grid-column: 1 / -1;
}
.hi-section .hi-empty-state span { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.hi-section .hi-empty-state h3   { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; color: var(--hi-text); }
.hi-section .hi-empty-state p    { color: var(--hi-text-2); margin: 0; font-size: 0.9rem; }
.hi-section .hi-no-result        { text-align: center; padding: 40px; color: var(--hi-muted); }

/* ── Toast ── */
.hi-toast-front {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(14px);
    background: #0f172a; color: #fff;
    padding: 9px 20px; border-radius: 50px;
    font-size: .83rem; font-weight: 500;
    box-shadow: 0 6px 24px rgba(0,0,0,.2);
    z-index: 9999; opacity: 0;
    transition: all .3s; pointer-events: none; white-space: nowrap;
}
.hi-toast-front.hi-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════
   DETAY SAYFASI (E-TİCARET ÜRÜN TASARIMI)
   ════════════════════════ */
.hi-detay-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    max-width: 1100px;
    margin: 0 auto 80px auto;
}

/* Breadcrumb (detay) */
.hi-detay-wrap .hi-breadcrumb {
    padding: 10px 0;
    margin-bottom: 10px;
    background: transparent;
}
.hi-detay-wrap .hi-breadcrumb-inner {
    display: flex; align-items: center; gap: 6px;
    font-size: .85rem; color: #64748b;
}
.hi-detay-wrap .hi-breadcrumb a { color: #64748b; text-decoration: none; }
.hi-detay-wrap .hi-breadcrumb a:hover { color: #ea580c; }
.hi-detay-wrap .hi-breadcrumb-current { color: #1e293b; font-weight: 600; }

.hid-product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #eaedf1;
}

/* Sol Kısım: Resim */
.hid-product-image-wrap {
    flex: 0 0 400px;
    position: relative;
    border: 1px solid #f0f2f5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfa;
    min-height: 380px;
}
.hid-product-badge-orange, .hid-product-badge-gray {
    position: absolute;
    top: 20px;
    left: -10px;
    background: #ea580c;
    color: #fff;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(234,88,12,0.3);
}
.hid-product-badge-gray {
    background: #9ca3af;
    box-shadow: 0 2px 8px rgba(156,163,175,0.3);
}
.hid-product-img-box {
    width: 100%;
    text-align: center;
}
.hid-product-img-box img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}
.hid-logo-avatar {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    font-size: 4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Sağ Kısım: Bilgiler */
.hid-product-info {
    flex: 1;
    min-width: 320px;
}
.hid-product-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 15px;
    line-height: 1.25;
}
.hid-product-meta {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}
.hid-meta-item strong {
    color: #1e293b;
}

.hid-product-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.hid-brand-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}
.hid-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff8f1;
    border: 1px solid #fed7aa;
    padding: 6px 12px;
    border-radius: 50px;
    color: #ea580c;
}
.hid-brand-icon {
    font-size: 1.1rem;
}
.hid-brand-name {
    font-weight: 800;
    font-size: 0.95rem;
}
.hid-brand-verified {
    background: #10b981;
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    margin-left: 4px;
    letter-spacing: 0.02em;
}

.hid-product-highlights {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #0284c7;
    font-weight: 600;
    flex-wrap: wrap;
}

.hid-product-coupon-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 12px 18px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #0369a1;
}
.hid-kupon-reveal-wrap {
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #e0f2fe;
}
.hid-kupon-mask {
    letter-spacing: 3px;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
}
.hid-kupon-real {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0369a1;
}
.hid-kupon-action-btn {
    background: #0ea5e9;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s;
}
.hid-kupon-action-btn:hover { background: #0284c7; }
.hid-kupon-action-btn.is-copy { background: #10b981; }
.hid-kupon-action-btn.is-copy:hover { background: #059669; }

/* Fiyat */
.hid-product-price-section {
    margin-bottom: 25px;
    display: flex;
    align-items:baseline;
}
.hid-price-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.3rem;
    margin-right: 15px;
}
.hid-price-current {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ea580c;
}

/* Açıklama ve Özellikler */
.hid-product-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
}
.hid-product-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.hid-product-features-list li {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hid-product-features-list .check {
    color: #ea580c;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Aksiyon */
.hid-product-action-row {
    margin-bottom: 25px;
}
.hid-btn-orange {
    display: inline-block;
    background: #ea580c;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 30px;
    border-radius: 6px;
    text-decoration: none !important;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 14px rgba(234,88,12,0.25);
}
.hid-btn-orange:hover {
    background: #c2410c;
    color: #fff;
    transform: translateY(-2px);
}
.hid-btn-disabled {
    display: inline-block;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 30px;
    border-radius: 6px;
    width: 100%;
    max-width: 350px;
    border: none;
    cursor: not-allowed;
    text-align: center;
}
.hid-product-payments {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 20px;
}
.hid-payment-badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.pay-badge {
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 4px;
    background: #f8fafc;
    font-weight: 500;
}
.hid-timer-alert {
    margin-top: 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #b45309;
}

/* Sekmeler */
.hid-product-tabs {
    margin-top: 40px;
    background: #fff;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #eaedf1;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.hid-tabs-nav {
    display: flex;
    border-bottom: 1px solid #eaedf1;
    background: #f8fafc;
}
.hid-tab-btn {
    background: transparent;
    border: none;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.hid-tab-btn.active {
    color: #ea580c;
    border-bottom-color: #ea580c;
    background: #fff;
}
.hid-tab-content {
    padding: 40px;
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
}
.hid-tab-content p {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 960px) {
    .hi-section .hi-layout-with-sidebar {
        flex-direction: column;
    }
    .hi-section .hi-sidebar {
        flex: 1 1 100%;
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    .hi-section .hi-sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .hi-section .hi-sidebar-menu li {
        margin-bottom: 0;
    }
    .hi-section .hi-sidebar-menu a {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .hid-product-container {
        flex-direction: column;
        padding: 25px;
    }
    .hid-product-image-wrap {
        flex: 1 1 100%;
        min-height: 250px;
    }
    .hid-product-title {
        font-size: 1.8rem;
    }
    .hid-btn-orange {
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .hid-product-container { padding: 15px; }
    .hid-product-image-wrap { padding: 15px; min-height: 200px; }
    .hid-price-current { font-size: 2.2rem; }
    .hid-tab-btn { padding: 15px 20px; font-size: 0.9rem; }
    .hid-tab-content { padding: 20px; }
}
