/* ============================================================
   SMAY KOZMETİK — B2B KATALOG (DEFTER) STİLLERİ
   Dosya: assets/css/b2b-flipbook.css
   ============================================================ */

.b2b-catalog-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
.b2b-catalog-header { text-align: center; padding: 24px 0 16px; }
.b2b-catalog-header h1 { font-size: 30px; font-weight: 800; color: #000; margin: 0 0 8px; }
.b2b-catalog-header p { color: #374151; font-size: 15px; margin: 0; line-height: 1.6; }

/* DEFTER ALANI + YAN BUTONLAR */
.b2b-flipbook-wrapper {
    position: relative;
    background: #f3f4f6;
    border-radius: 14px;
    padding: 30px 70px;
    margin: 16px 0;
    min-height: 660px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
#b2bFlipbook {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-flipbook-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #15803d;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(21,128,61,.4);
    transition: background .2s, transform .2s;
    z-index: 10;
}
.b2b-flipbook-nav:hover { background: #166534; transform: translateY(-50%) scale(1.08); }
.b2b-flipbook-nav:active { transform: translateY(-50%) scale(.96); }
.b2b-flipbook-nav:disabled { opacity: .35; cursor: not-allowed; }
.b2b-flipbook-nav--prev { left: 14px; }
.b2b-flipbook-nav--next { right: 14px; }

.b2b-page-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.72);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .5px;
    z-index: 10;
}

.b2b-catalog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 12px 0 20px;
}
.b2b-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: .2s;
    font-family: inherit;
}
.b2b-catalog-btn-primary { background: #15803d; color: #fff; }
.b2b-catalog-btn-primary:hover { background: #166534; }
.b2b-catalog-btn-secondary { background: #fff; color: #15803d; border: 2px solid #15803d; }
.b2b-catalog-btn-secondary:hover { background: #f0fdf4; }

/* SAYFA İÇERİĞİ */
.b2b-page {
    background: #fff;
    padding: 26px;
    height: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #000;
    overflow: hidden;
}

/* KAPAK */
.b2b-page-cover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
}
.b2b-page-cover .logo-area {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.b2b-page-cover .logo-area img {
    max-width: 200px;
    max-height: 110px;
    object-fit: contain;
    background: #fff;
    padding: 10px 16px;
    border-radius: 10px;
}
.b2b-page-cover .logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 6px;
    color: #fff;
}
.b2b-page-cover .logo-sub {
    font-size: 12px;
    opacity: .8;
    letter-spacing: 2px;
    margin-bottom: 26px;
}
.b2b-page-cover h1 { font-size: 30px; margin: 12px 0; font-weight: 800; color: #fff; line-height: 1.2; }
.b2b-page-cover .subtitle { font-size: 15px; opacity: .95; margin-bottom: 20px; }
.b2b-page-cover .year { font-size: 13px; opacity: .8; margin-top: 20px; word-break: break-all; }

/* ÜRÜN SAYFASI */
.b2b-page-product { display: flex; flex-direction: column; gap: 8px; }
.b2b-page-product .prod-img {
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
    padding: 10px;
    flex-shrink: 0;
}
.b2b-page-product .prod-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.b2b-page-product h3 { font-size: 19px; margin: 4px 0; color: #000; font-weight: 700; line-height: 1.3; }
.b2b-page-product .prod-meta { font-size: 12.5px; color: #4b5563; }
.b2b-page-product .prod-desc { font-size: 13px; color: #1f2937; line-height: 1.55; margin-top: 4px; flex: 1; overflow: hidden; }
.b2b-page-product .prod-price-note {
    background: #f0fdf4;
    border: 2px dashed #15803d;
    padding: 8px 12px;
    border-radius: 8px;
    color: #166534;
    font-weight: 700;
    font-size: 12.5px;
    text-align: center;
    margin-top: 6px;
}
.b2b-page-product .prod-min-order {
    background: #f3f4f6;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #374151;
}

/* ARKA KAPAK */
.b2b-page-back {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 30px;
}
.b2b-page-back h2 { font-size: 22px; margin: 0 0 16px; color: #fff; border-bottom: 2px solid rgba(255,255,255,.35); padding-bottom: 8px; }
.b2b-page-back p { font-size: 13.5px; margin: 6px 0; line-height: 1.5; display: flex; gap: 8px; }
.b2b-page-back .contact-block {
    background: rgba(255,255,255,.12);
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 10px;
    flex: 1;
    overflow: hidden;
}
.b2b-page-back .contact-block i { width: 18px; opacity: .9; flex-shrink: 0; margin-top: 3px; }
.b2b-page-back .contact-block strong { color: #fff; }

/* MOBİL */
@media (max-width: 900px) {
    .b2b-flipbook-wrapper { padding: 24px 60px; min-height: 540px; }
    .b2b-flipbook-nav { width: 44px; height: 44px; font-size: 17px; }
    .b2b-flipbook-nav--prev { left: 8px; }
    .b2b-flipbook-nav--next { right: 8px; }
}
@media (max-width: 600px) {
    .b2b-catalog-wrap { padding: 12px; }
    .b2b-catalog-header h1 { font-size: 22px; }
    .b2b-catalog-header p { font-size: 13px; }
    .b2b-flipbook-wrapper { padding: 16px 48px; min-height: 480px; border-radius: 10px; }
    .b2b-flipbook-nav { width: 40px; height: 40px; font-size: 15px; }
    .b2b-flipbook-nav--prev { left: 4px; }
    .b2b-flipbook-nav--next { right: 4px; }
    .b2b-page { padding: 18px; }
    .b2b-page-cover h1 { font-size: 22px; }
    .b2b-page-cover .logo-area img { max-width: 150px; max-height: 80px; }
    .b2b-page-cover .logo-text { font-size: 18px; letter-spacing: 2px; }
    .b2b-page-cover .subtitle { font-size: 12px; }
    .b2b-page-product .prod-img { height: 220px; }
    .b2b-page-product h3 { font-size: 15px; }
    .b2b-page-product .prod-desc { font-size: 11.5px; }
    .b2b-page-back h2 { font-size: 17px; }
    .b2b-page-back p { font-size: 11.5px; }
    .b2b-page-indicator { font-size: 11px; padding: 4px 10px; bottom: 6px; }
    .b2b-catalog-btn { padding: 9px 14px; font-size: 12.5px; }
}
@media (max-width: 380px) {
    .b2b-flipbook-wrapper { padding: 12px 42px; min-height: 440px; }
    .b2b-flipbook-nav { width: 34px; height: 34px; font-size: 13px; }
    .b2b-page { padding: 14px; }
    .b2b-page-product .prod-img { height: 190px; }
}

/* ============================================================
   PRINT — Yeni pencere için (JS ile çağrılır)
   Ana sayfada print butonuna basıldığında @media print devreye girmez,
   JS ile yeni pencere açılır ve orada render edilir.
   ============================================================ */

/* Ekranda hiçbir etki yok, sadece print butonu JS'i devraldı */
@media print {
    header, footer, nav, .b2b-catalog-actions, .no-print,
    .b2b-flipbook-nav, .b2b-page-indicator { display: none !important; }
    body { background: #fff !important; margin: 0; padding: 0; }
    .b2b-catalog-wrap { max-width: 100%; padding: 0; }
    .b2b-flipbook-wrapper { background: #fff !important; padding: 0 !important; min-height: auto !important; display: block !important; box-shadow: none !important; border-radius: 0 !important; }
    #b2bFlipbook { display: block !important; max-width: 100% !important; }
    .b2b-page { page-break-after: always; page-break-inside: avoid; width: 100% !important; height: auto !important; padding: 10mm !important; box-shadow: none !important; border-radius: 0 !important; display: block !important; }
    @page { size: A4; margin: 0; }
}