/* ============================================================
   BİRKAN PRODUCT SHOWCASE & MARKETPLACE POPUP STYLES V4 (FINAL REFINED)
   ============================================================ */

.birkan-product-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.birkan-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

/* ÜRÜN KARTI (SİMETRİK & TIKLANABİLİR) */
.birkan-product-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef0f2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.025);
    cursor: pointer;
    box-sizing: border-box;
    height: 100%;
}

.birkan-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.07);
    border-color: #dbe2e8;
}

/* Sol Üst İndirim Rozeti (Eğer Varsa) */
.birkan-card-top-left {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
}

.birkan-badge-discount {
    background-color: #0f392b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    display: inline-block;
}

/* HAFİF SARI HACİM / LİTRE ROZETİ (BELİRGİN VE ŞIK) */
.birkan-badge-soft-yellow {
    background-color: #fff9db;
    color: #855d00;
    border: 1px solid #ffe066;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 0.2px;
}

/* ÜRÜN GÖRSELİ (TAM ORTALANMIŞ VE EŞİT YÜKSEKLİK) */
.birkan-product-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 12px 0;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
}

.birkan-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.birkan-product-card:hover .birkan-product-image img {
    transform: scale(1.04);
}

/* ÜRÜN BİLGİ ALANI */
.birkan-product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-end;
}

.birkan-product-category {
    font-size: 11px;
    color: #8c96a3;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
    font-weight: 700;
}

.birkan-product-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
    line-height: 1.35;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.birkan-product-card:hover .birkan-product-title {
    color: #1b4332;
}

/* FİYAT & LİTRE ALANI (SİMETRİK VE EŞİT BOŞLUKLU) */
.birkan-product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-top: 10px;
    border-top: 1px dashed #edf0f2;
}

.birkan-meta-left {
    display: flex;
    align-items: center;
}

.birkan-product-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.birkan-curr-price {
    font-size: 16.5px;
    font-weight: 800;
    color: #0f392b;
}

.birkan-old-price {
    font-size: 12.5px;
    color: #a0aec0;
    text-decoration: line-through;
}

/* İNCELE BUTONU (BOYUTU VE PADDINGİ DÜZENLENEBİLİR) */
.birkan-btn-inspect {
    width: 100%;
    background-color: #1b4332;
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.birkan-btn-inspect:hover {
    background-color: #2d6a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
}

.birkan-arrow-icon {
    transition: transform 0.2s ease;
}

.birkan-btn-inspect:hover .birkan-arrow-icon {
    transform: translateX(4px);
}

/* ============================================================
   POPUP MODAL & SİMETRİK İÇ YAPI
   ============================================================ */
.birkan-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.birkan-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.birkan-modal-box {
    background: #ffffff;
    width: 1020px;
    max-width: 95vw;
    max-height: 92vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
    animation: birkanModalScale 0.3s ease forwards;
}

@keyframes birkanModalScale {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.birkan-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f1f3f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    z-index: 10;
    transition: all 0.2s ease;
}

.birkan-modal-close:hover {
    background: #e03131;
    color: #ffffff;
    transform: rotate(90deg);
}

.birkan-modal-body {
    display: flex;
    flex-wrap: wrap;
    padding: 34px;
    gap: 32px;
}

/* Sol Kolon: Galeri */
.birkan-modal-gallery-col {
    flex: 1 1 430px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.birkan-main-image-wrap {
    width: 100%;
    height: 420px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 15px;
    box-sizing: border-box;
}

.birkan-main-image-wrap img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.birkan-slider-navs {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    box-sizing: border-box;
    pointer-events: none;
}

.birkan-slider-navs button {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.birkan-slider-navs button:hover {
    background: #1b4332;
    color: #ffffff;
    border-color: #1b4332;
}

.birkan-thumbnails-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.birkan-thumb-item {
    width: 68px;
    height: 68px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 4px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.birkan-thumb-item.active,
.birkan-thumb-item:hover {
    border-color: #1b4332;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

.birkan-thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Sağ Kolon: Detaylar */
.birkan-modal-info-col {
    flex: 1 1 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.birkan-modal-header-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.birkan-badge-category {
    background: #e6fcf5;
    color: #0ca678;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.birkan-modal-title {
    font-size: 25px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px 0;
    line-height: 1.25;
}

.birkan-modal-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 18px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 18px;
    border-left: 4px solid #1b4332;
}

.birkan-modal-curr-price {
    font-size: 26px;
    font-weight: 800;
    color: #0f392b;
}

.birkan-modal-old-price {
    font-size: 15px;
    color: #94a3b8;
    text-decoration: line-through;
}

.birkan-modal-desc-box h4,
.birkan-modal-features-box h4 {
    font-size: 12.5px;
    font-weight: 800;
    color: #334155;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.birkan-modal-desc-box p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.birkan-modal-features-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.birkan-modal-features-box li {
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    position: relative;
    padding-left: 18px;
}

.birkan-modal-features-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 800;
    font-size: 13px;
}

/* ============================================================
   SOFT VE ŞIK PAZARYERİ BUTONLARI (GÖZ YORMAYAN TONLAR)
   ============================================================ */
.birkan-marketplace-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: auto;
}

.birkan-marketplace-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.birkan-marketplace-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.birkan-grid-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    text-align: center;
    border: none;
    cursor: pointer;
}

.birkan-grid-btn .btn-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.birkan-grid-btn:hover .btn-arrow {
    transform: translate(2px, -2px);
}

/* Trendyol Soft */
.btn-trendyol-soft {
    background-color: #f38b36;
    color: #ffffff !important;
}
.btn-trendyol-soft:hover:not(.is-disabled) {
    background-color: #e07925;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(243, 139, 54, 0.25);
}

/* Hepsiburada Soft */
.btn-hepsiburada-soft {
    background-color: #ff7324;
    color: #ffffff !important;
}
.btn-hepsiburada-soft:hover:not(.is-disabled) {
    background-color: #e66014;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 115, 36, 0.25);
}

/* PttAVM Soft */
.btn-pttavm-soft {
    background-color: #f5a623;
    color: #ffffff !important;
}
.btn-pttavm-soft:hover:not(.is-disabled) {
    background-color: #de9214;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(245, 166, 35, 0.25);
}

/* LİNK OLMADIĞINDA PASİF (GRİ) BUTON */
.birkan-grid-btn.is-disabled {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none;
    opacity: 0.8;
}

.birkan-grid-btn.is-disabled .btn-arrow {
    stroke: #94a3b8 !important;
}

/* BOT & SPAM TOAST */
.birkan-spam-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #f8fafc;
    padding: 13px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    font-size: 13px;
    font-weight: 600;
    z-index: 1000000;
    display: none;
    border-left: 4px solid #f59e0b;
    animation: birkanToastIn 0.3s ease forwards;
}

@keyframes birkanToastIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .birkan-product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 850px) {
    .birkan-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .birkan-modal-body {
        padding: 24px;
        gap: 20px;
    }
    .birkan-main-image-wrap {
        height: 320px;
    }
}

@media (max-width: 580px) {
    .birkan-product-grid {
        grid-template-columns: 1fr !important;
    }
    .birkan-modal-gallery-col {
        flex: 1 1 100%;
    }
    .birkan-main-image-wrap {
        height: 260px;
    }
    .birkan-modal-title {
        font-size: 20px;
    }
    .birkan-modal-curr-price {
        font-size: 22px;
    }
    .birkan-marketplace-grid-3 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
