/* =========================================
   EREZ DİJİTAL E-KATALOG (FLIP-BOOK) STYLES
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- WRAPPER --- */
.catalog-container-wrapper {
    width: 100%;
    min-height: calc(100vh - 120px);
    background: radial-gradient(circle at center, #2c241e 0%, #171310 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 15px 95px 15px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* --- KİTAP (FLIP BOOK) --- */
.flip-book {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    background: #1b1612;
    margin: 0 auto !important;
}

.st-wrapper, .st-wrapper canvas, .flip-book > div {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- SAYFA YAPISI --- */
.page {
    background-color: #faf7f2;
    background-image: radial-gradient(rgba(141, 110, 99, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.page.cover {
    background-color: #1a1410;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.catalog-page-inner {
    height: 100%;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 18px 20px;
    overflow: hidden;
}

/* --- SAYFA ÜST BAŞLIĞI --- */
.catalog-page-header {
    flex-shrink: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.catalog-page-cat {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #3E2723;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.catalog-page-divider {
    height: 1px;
    background: rgba(141, 110, 99, 0.25);
    flex-grow: 1;
}

/* --- ÜRÜN IZGARASI (2 KOLON x 3 SATIR = 6 ÜRÜN) --- */
.catalog-product-grid {
    flex: 1 1 0;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* ÜRÜN KARTI */
.cat-prod-card {
    border: 1px solid rgba(141, 110, 99, 0.16);
    border-radius: 6px;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-prod-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(62, 39, 35, 0.12);
    border-color: #8D6E63;
}

.cat-prod-img-wrap {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf7f4;
    border-radius: 4px;
    overflow: hidden;
    padding: 4px;
}

.cat-prod-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.cat-prod-card:hover .cat-prod-img-wrap img {
    transform: scale(1.06);
}

.cat-prod-info {
    flex-shrink: 0;
    padding-top: 6px;
    text-align: center;
}

.cat-prod-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #2C1A0E;
    margin: 0 0 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.cat-prod-badge {
    display: inline-block;
    font-size: 0.62rem;
    color: #8D6E63;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* --- SAYFA ALTI NUMARASI --- */
.catalog-page-footer {
    flex-shrink: 0;
    margin-top: 10px;
    text-align: center;
    font-size: 0.68rem;
    color: #8D6E63;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- KATEGORİ GİRİŞ / KAPAK SAYFASI (SOL SAYFA) --- */
.cat-intro-page {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 35px 25px;
    box-sizing: border-box;
    color: #fff;
}

.cat-intro-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 17, 12, 0.94) 0%, rgba(26, 17, 12, 0.5) 50%, rgba(26, 17, 12, 0.2) 100%);
    z-index: 1;
}

.cat-intro-top {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cat-intro-brand {
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: #c5a880;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(197, 168, 128, 0.3);
    padding-bottom: 4px;
    display: inline-block;
}

.cat-intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cat-intro-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    color: #c5a880;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.cat-intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.cat-intro-line {
    width: 45px;
    height: 2px;
    background: #c5a880;
    margin: 10px auto;
}

.cat-intro-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    line-height: 1.5;
    margin: 0 0 15px 0;
    max-height: 70px;
    overflow: hidden;
}

.cat-intro-count {
    display: inline-block;
    background: rgba(197, 168, 128, 0.2);
    border: 1px solid rgba(197, 168, 128, 0.4);
    color: #f5f0eb;
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- HAKKIMIZDA SAYFASI (1. SAYFA) --- */
.about-page-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 35px 30px;
    box-sizing: border-box;
}

.about-header {
    text-align: center;
    margin-bottom: 15px;
}

.about-header-tag {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #8D6E63;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.about-header h2 {
    font-family: 'Playfair Display', serif;
    color: #2C1A0E;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.about-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin: 14px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-body {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #4a3e37;
    text-align: justify;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
}

.about-signature {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(141, 110, 99, 0.2);
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #8D6E63;
    font-size: 0.85rem;
}

/* --- ÖN VE ARKA KAPAK --- */
.front-cover, .back-cover {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 50px 30px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1c140f 0%, #2e221b 50%, #150f0c 100%);
    border: 3px double rgba(197, 168, 128, 0.4);
}

.cover-badge {
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: #c5a880;
    text-transform: uppercase;
    font-weight: 700;
}

.cover-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin: 15px 0 6px 0;
    text-transform: uppercase;
}

.cover-subtitle {
    font-size: 0.9rem;
    color: #c5a880;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
}

.cover-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    max-width: 320px;
    line-height: 1.6;
}

.cover-footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

/* Arka Kapak Detayları */
.back-cover-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.back-cover-info i {
    color: #c5a880;
    width: 20px;
}

/* --- ALT KONTROL ÇUBUĞU (TOOLBAR) --- */
.catalog-toolbar-bottom {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: auto;
}

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    background: rgba(30, 24, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 22px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(197, 168, 128, 0.35);
}

.c-btn {
    background: #3E2723;
    color: #f5f0eb;
    border: 1px solid rgba(197, 168, 128, 0.3);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.c-btn:hover {
    background: #c5a880;
    color: #1b1612;
    border-color: #c5a880;
    transform: scale(1.08);
}

.c-btn.small {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
}

.divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

#pageInfo {
    font-weight: 600;
    color: #c5a880;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    min-width: 80px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* =========================================
   MOBİL VE TABLET UYUMLULUĞU (RESPONSIVE)
   ========================================= */
@media (max-width: 991.98px) {
    .catalog-container-wrapper {
        min-height: calc(100vh - 100px);
        padding: 16px 8px 75px 8px;
    }
}

@media (max-width: 767.98px) {
    .catalog-container-wrapper {
        padding: 12px 6px 70px 6px !important;
    }
    .catalog-page-inner {
        padding: 10px 8px 6px 8px !important;
    }
    .catalog-page-header {
        margin-bottom: 6px !important;
        gap: 8px !important;
    }
    .catalog-page-cat {
        font-size: 0.88rem !important;
        letter-spacing: 0.5px !important;
    }
    .catalog-product-grid {
        gap: 6px !important;
    }
    .cat-prod-card {
        padding: 4px !important;
        border-radius: 4px !important;
    }
    .cat-prod-title {
        font-size: 0.65rem !important;
        margin-bottom: 1px !important;
    }
    .cat-prod-badge {
        font-size: 0.52rem !important;
        letter-spacing: 0.4px !important;
    }
    .catalog-page-footer {
        margin-top: 4px !important;
        font-size: 0.6rem !important;
    }

    /* Kategori ve Hakkımızda Sayfaları */
    .cat-intro-page {
        padding: 22px 14px !important;
    }
    .cat-intro-title {
        font-size: 1.35rem !important;
        margin-bottom: 6px !important;
    }
    .cat-intro-desc {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        max-height: 55px !important;
        margin-bottom: 10px !important;
    }
    .cat-intro-count {
        font-size: 0.62rem !important;
        padding: 3px 10px !important;
    }
    .front-cover, .back-cover {
        padding: 28px 16px !important;
    }
    .cover-main-title {
        font-size: 1.7rem !important;
        margin: 10px 0 4px 0 !important;
    }
    .cover-subtitle {
        font-size: 0.75rem !important;
    }
    .cover-desc {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    .about-page-wrap {
        padding: 18px 14px !important;
    }
    .about-header h2 {
        font-size: 1.25rem !important;
    }
    .about-img {
        height: 110px !important;
        margin: 8px 0 !important;
    }
    .about-body {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
    }

    /* Toolbar Kontrolleri */
    .catalog-toolbar-bottom {
        bottom: 12px !important;
    }
    .controls {
        padding: 5px 12px !important;
        gap: 8px !important;
    }
    .c-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
    .c-btn.small {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.7rem !important;
    }
    #pageInfo {
        font-size: 0.8rem !important;
        min-width: 65px !important;
    }
}
