:root {
    --ag-blue: #071B3A;
    --ag-orange: #F28C28;
    --ag-cream: #F8F2E8;
    --ag-dark: #111827;
    --ag-muted: #6B7280;
    --ag-white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ag-dark);
    background: var(--ag-white);
}

h1, h2, h3, h4, .ag-serif {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
}

/* NAVBAR */
.ag-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(7, 27, 58, 0.08);
    padding: 14px 0;
}

.ag-logo img {
    height: 54px;
}

.ag-menu .nav-link {
    color: var(--ag-blue);
    font-weight: 700;
    margin: 0 8px;
}

.ag-menu .nav-link:hover {
    color: var(--ag-orange);
}

.ag-btn-orange {
    background: var(--ag-orange);
    color: #fff;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 800;
    border: none;
}

.ag-btn-orange:hover {
    background: var(--ag-blue);
    color: #fff;
}

/* HERO */
.home-hero {
    position: relative;
    background:
        linear-gradient(90deg, rgba(3, 18, 40, .98), rgba(3, 18, 40, .90)),
        url('../images/baobab-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 0;
    color: #fff;
    overflow: hidden;
}

.heroSwiper,
.heroSwiper .swiper-slide {
    min-height: 690px;
}

.heroSwiper .swiper-slide {
    display: flex;
    align-items: center;
    padding: 80px 0 90px;
}

.hero-book-img {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,.45));
}

.section-label {
    color: var(--ag-orange);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 800;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 7vw, 88px);
    line-height: .95;
    margin-top: 20px;
    color: #fff;
}

.orange-line {
    width: 58px;
    height: 3px;
    background: var(--ag-orange);
    margin: 32px 0;
}

.hero-quote {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    max-width: 540px;
    color: rgba(255,255,255,.9);
}

.btn-orange {
    background: var(--ag-orange);
    color: #fff;
    padding: 16px 32px;
    border-radius: 2px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .7px;
}

.btn-orange:hover {
    background: #fff;
    color: var(--ag-blue);
}

.btn-outline-light-custom {
    border: 1px solid rgba(255,255,255,.8);
    color: #fff;
    padding: 16px 32px;
    border-radius: 2px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .7px;
}

.btn-outline-light-custom:hover {
    background: #fff;
    color: var(--ag-blue);
}

.hero-pagination {
    position: absolute;
    right: 55px !important;
    top: 50% !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%);
    width: auto !important;
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 20;
}

.hero-pagination .swiper-pagination-bullet {
    width: auto;
    height: auto;
    background: transparent;
    color: rgba(255,255,255,.65);
    opacity: 1;
    border-radius: 0;
    font-weight: 700;
    font-size: 15px;
    position: relative;
}

.hero-pagination .swiper-pagination-bullet-active {
    color: #fff;
}

.hero-pagination .swiper-pagination-bullet-active::after {
    content: "";
    width: 24px;
    height: 1px;
    background: #fff;
    position: absolute;
    left: 32px;
    top: 50%;
}

/* =========================
   NOUVEAUTÉS - VERSION CAPTURE
========================= */

.latest-section {
    background: #fbf8f3;
    padding: 70px 0 75px;
    overflow: hidden;
}

.latest-grid {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 55px;
    align-items: start;
}

.latest-intro {
    padding-top: 35px;
}

.latest-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    line-height: .95;
    color: var(--ag-blue);
    margin: 16px 0 46px;
}

.latest-slider-zone {
    position: relative;
    min-width: 0;
    padding-right: 30px;
}

.latestBooksSwiper {
    width: 100%;
    overflow: hidden;
}

.latestBooksSwiper .swiper-slide {
    width: auto;
}

.latest-book-card {
    width: 100%;
}

.latest-cover {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.latest-cover img {
    height: 285px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 18px rgba(0,0,0,.18));
}

.latest-book-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--ag-blue);
    margin: 18px 0 4px;
}

.latest-book-card p {
    font-size: 14px;
    color: #374151;
    margin-bottom: 16px;
}

.latest-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.latest-price-row span {
    color: var(--ag-orange);
    font-size: 16px;
    font-weight: 900;
}

.latest-cart {
    width: 42px;
    height: 42px;
    background: #fff;
    color: var(--ag-blue);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.13);
}

.latest-books-next {
    position: absolute;
    right: 0;
    top: 130px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--ag-blue);
    display: grid;
    place-items: center;
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
    z-index: 20;
}

.latest-books-next:hover {
    background: var(--ag-orange);
    color: #fff;
}

@media (max-width: 991px) {
    .latest-grid {
        grid-template-columns: 1fr;
    }

    .latest-intro {
        padding-top: 0;
    }

    .latest-slider-zone {
        padding-right: 0;
    }

    .latest-books-next {
        right: 10px;
    }
}

/* STORY */
.story-section {
    display: grid;
    grid-template-columns: 38% 62%;
    min-height: 360px;
}

.story-text {
    background: var(--ag-blue);
    color: #fff;
    padding: 70px 55px;
}

.story-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    line-height: 1.05;
    margin: 18px 0 45px;
}

.story-image {
    background: url('../images/library.jpg') center/cover no-repeat;
}

.link-arrow.light {
    color: #fff;
}

/* STATS */
.stats-section {
    background: #fbf8f3;
    padding: 55px 0;
}

.stat-box {
    border-right: 1px solid rgba(7, 27, 58, .15);
}

.stat-box:last-child {
    border-right: none;
}

.stat-box i {
    font-size: 36px;
    color: var(--ag-orange);
}

.stat-box h3 {
    font-family: 'Playfair Display', serif;
    color: var(--ag-orange);
    font-size: 38px;
    margin: 10px 0 4px;
}

.stat-box p {
    color: var(--ag-blue);
    font-weight: 600;
    margin: 0;
}

/* FOOTER */
.ag-footer {
    background: var(--ag-blue);
    color: #fff;
    padding: 80px 0 30px;
}

.ag-footer-logo {
    height: 64px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 16px;
}

.ag-footer p {
    color: rgba(255,255,255,.65);
}

.ag-footer h5 {
    margin-bottom: 24px;
    font-weight: 800;
}

.ag-footer a {
    display: block;
    color: rgba(255,255,255,.72);
    margin-bottom: 12px;
}

.ag-footer a:hover {
    color: var(--ag-orange);
}

.ag-socials {
    display: flex;
    gap: 18px;
    font-size: 24px;
}

.ag-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.18);
    margin-top: 50px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,.55);
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .home-hero {
        text-align: center;
    }

    .heroSwiper,
    .heroSwiper .swiper-slide {
        min-height: auto;
    }

    .heroSwiper .swiper-slide {
        padding: 60px 0;
    }

    .orange-line {
        margin: 25px auto;
    }

    .latest-title {
        font-size: 44px;
    }

    .latest-books-navigation {
        justify-content: center;
    }

    .story-section {
        grid-template-columns: 1fr;
    }

    .story-image {
        min-height: 300px;
    }

    .stat-box {
        border-right: none;
        margin-bottom: 30px;
    }

    .ag-footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .ag-logo img {
        height: 46px;
    }

    .latest-book-cover {
        height: 330px;
    }

    .latest-book-cover img {
        height: 310px;
    }
}


.books-hero {
    background:
        linear-gradient(90deg, rgba(7,27,58,.95), rgba(7,27,58,.75)),
        url('../images/library.jpg') center/cover no-repeat;
    padding: 120px 0;
    color: #fff;
}

.books-hero h1 {
    font-size: clamp(54px, 8vw, 96px);
    font-weight: 800;
    line-height: .95;
    margin: 18px 0;
}

.books-hero p {
    font-size: 19px;
    color: rgba(255,255,255,.75);
}

.books-page-section {
    background: #fbf8f3;
    padding: 90px 0;
}

.books-filter {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 55px;
}

.filter-btn {
    padding: 13px 24px;
    border-radius: 50px;
    background: #fff;
    color: var(--ag-blue);
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--ag-orange);
    color: #fff;
}

.book-card-premium {
    height: 100%;
    transition: .35s ease;
}

.book-card-premium:hover {
    transform: translateY(-8px);
}

.book-cover-premium {
    height: 360px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.book-cover-premium img {
    height: 340px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 28px rgba(0,0,0,.22));
}

.book-info-premium {
    margin-top: 25px;
}

.book-info-premium span {
    color: var(--ag-orange);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
}

.book-info-premium h3 {
    color: var(--ag-blue);
    font-size: 24px;
    font-weight: 800;
    margin: 10px 0 6px;
}

.book-info-premium p {
    color: #6b7280;
    margin-bottom: 18px;
}

.book-bottom-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-bottom-premium strong {
    color: var(--ag-orange);
    font-size: 18px;
}

.book-bottom-premium a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--ag-blue);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.book-detail-hero {
    background:
        linear-gradient(90deg, rgba(7,27,58,.96), rgba(7,27,58,.82)),
        url('../images/baobab-bg.jpg') center/cover no-repeat;
    padding: 110px 0;
    color: #fff;
}

.detail-book-cover {
    max-height: 620px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 35px 55px rgba(0,0,0,.45));
}

.book-detail-hero h1 {
    font-size: clamp(48px, 7vw, 86px);
    line-height: .95;
    margin: 20px 0;
}

.detail-author {
    font-size: 18px;
    color: rgba(255,255,255,.8);
}

.detail-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.detail-meta span {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    padding: 10px 16px;
    border-radius: 50px;
    color: rgba(255,255,255,.85);
}

.detail-excerpt {
    font-size: 20px;
    max-width: 650px;
    color: rgba(255,255,255,.82);
}

.detail-price {
    font-size: 36px;
    font-weight: 900;
    color: var(--ag-orange);
    margin-top: 25px;
}

.book-summary-section,
.order-section,
.related-books-section {
    background: #fbf8f3;
    padding: 80px 0;
}

.summary-card,
.order-card {
    background: #fff;
    border-radius: 34px;
    padding: 55px;
    box-shadow: 0 25px 80px rgba(0,0,0,.08);
}

.summary-card h2,
.order-card h2,
.related-books-section h2 {
    color: var(--ag-blue);
    font-size: 46px;
    margin: 15px 0 30px;
}

.summary-content {
    font-size: 18px;
    line-height: 1.9;
    color: #374151;
}

.order-card .form-control {
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 14px 18px;
}

@media(max-width: 768px) {
    .summary-card,
    .order-card {
        padding: 30px;
        border-radius: 24px;
    }
}

.ag-header-actions{
    display:flex;
    align-items:center;
    gap:22px;
}

.ag-header-icon{
    position:relative;
    color:#071B3A;
    font-size:24px;
    transition:.3s;
}

.ag-header-icon:hover{
    color:#F28C28;
}

.ag-cart-count{
    position:absolute;
    top:-8px;
    right:-10px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#F28C28;
    color:#fff;
    font-size:11px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
}

.books-catalog-hero {
    padding:50px 0;
    min-height: 460px;
    background:
        linear-gradient(90deg, rgba(3,18,40,.96) 0%, rgba(3,18,40,.72) 42%, rgba(3,18,40,.15) 100%),
        url('../images/livres-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}

.books-catalog-hero-content {
    max-width: 520px;
}

.books-catalog-hero h1 {
    font-size: clamp(48px, 6vw, 76px);
    line-height: .96;
    margin: 18px 0;
}

.books-catalog-hero p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,.82);
}

.books-tabs-section {
    background: #fbf8f3;
    border-bottom: 1px solid rgba(7,27,58,.1);
    padding: 28px 0;
}

.books-tabs {
    display: flex;
    justify-content: center;
    gap: 45px;
    flex-wrap: wrap;
}

.books-tabs a {
    color: var(--ag-blue);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.books-tabs a i {
    display: block;
    font-size: 27px;
    margin-bottom: 8px;
}

.books-tabs a.active,
.books-tabs a:hover {
    color: var(--ag-orange);
}

.books-catalog-section {
    background: #fbf8f3;
    padding: 55px 0 85px;
}

.books-sidebar {
    border-right: 1px solid rgba(7,27,58,.12);
    padding-right: 35px;
    position: sticky;
    top: 110px;
}

.books-search {
    position: relative;
    margin-bottom: 35px;
}

.books-search input {
    width: 100%;
    height: 54px;
    border: 1px solid rgba(7,27,58,.15);
    background: transparent;
    padding: 0 48px 0 18px;
    font-size: 14px;
}

.books-search i {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ag-blue);
    font-size: 22px;
}

.books-filter-block {
    border-bottom: 1px solid rgba(7,27,58,.12);
    padding: 28px 0;
}

.books-filter-block h5 {
    color: var(--ag-orange);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .8px;
    font-weight: 800;
    margin-bottom: 22px;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    margin-bottom: 15px;
    font-size: 14px;
}

.filter-radio span {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1px solid #a1a1aa;
}

.filter-radio.active span {
    border: 5px solid var(--ag-orange);
}

.price-line {
    height: 4px;
    background: var(--ag-orange);
    border-radius: 30px;
    margin: 26px 0 14px;
}

.price-values {
    display: flex;
    justify-content: space-between;
    color: var(--ag-blue);
    font-size: 13px;
    font-weight: 800;
}

.filter-check {
    display: flex;
    gap: 10px;
    color: #374151;
    margin-bottom: 12px;
}

.reset-filter {
    margin-top: 35px;
    border: 1px solid var(--ag-blue);
    background: transparent;
    color: var(--ag-blue);
    height: 48px;
    padding: 0 25px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}

.catalog-count {
    margin-bottom: 25px;
    color: #374151;
}

.catalog-count strong {
    color: var(--ag-orange);
}

.catalog-book-card {
    background: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    height: 100%;
    transition: .3s;
}

.catalog-book-card:hover {
    transform: translateY(-8px);
}

.catalog-cover {
    height: 315px;
    background: #f8f6f1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.catalog-cover img {
    height: 300px;
    max-width: 100%;
    object-fit: contain;
}

.catalog-book-body {
    padding: 18px;
}

.catalog-book-body h4 {
    color: var(--ag-blue);
    font-size: 24px;
    line-height: 1.05;
    margin-bottom: 7px;
}

.catalog-book-body p {
    color: #374151;
    font-size: 14px;
    margin-bottom: 10px;
}

.catalog-book-body small {
    display: block;
    color: var(--ag-blue);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 12px;
}

.catalog-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.catalog-price-row span {
    color: var(--ag-orange);
    font-weight: 900;
}

.catalog-price-row a {
    width: 42px;
    height: 42px;
    background: #fff;
    color: var(--ag-blue);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.13);
}

@media(max-width: 991px) {
    .books-sidebar {
        position: relative;
        top: 0;
        border-right: none;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .books-tabs {
        gap: 25px;
    }
}

.book-premium-hero {
    background:
        radial-gradient(circle at 20% 30%, rgba(242,140,40,.18), transparent 32%),
        linear-gradient(90deg, rgba(3,18,40,.98), rgba(3,18,40,.88)),
        url('../images/baobab-bg.jpg') center/cover no-repeat;
    padding: 110px 0;
    color: #fff;
    overflow: hidden;
}

.book-premium-cover {
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    filter: drop-shadow(0 40px 60px rgba(0,0,0,.5));
}

.book-premium-hero h1 {
    font-size: clamp(52px, 7vw, 92px);
    line-height: .92;
    margin: 20px 0;
}

.book-premium-author {
    font-size: 19px;
    color: rgba(255,255,255,.75);
}

.book-premium-excerpt {
    font-size: 21px;
    line-height: 1.7;
    color: rgba(255,255,255,.84);
    max-width: 720px;
    margin: 32px 0;
}

.book-premium-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.book-premium-meta span {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.86);
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 700;
}

.book-premium-meta i {
    color: var(--ag-orange);
    margin-right: 6px;
}

.book-premium-price {
    color: var(--ag-orange);
    font-size: 40px;
    font-weight: 900;
}

.book-premium-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.book-premium-summary,
.book-order-premium,
.related-premium-books {
    background: #fbf8f3;
    padding: 85px 0;
}

.summary-premium-card,
.order-premium-card {
    background: #fff;
    border-radius: 36px;
    padding: 60px;
    box-shadow: 0 28px 90px rgba(0,0,0,.08);
}

.summary-premium-card h2,
.order-premium-card h2,
.section-head-premium h2 {
    color: var(--ag-blue);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1;
    margin: 18px 0 32px;
}

.summary-premium-content {
    font-size: 18px;
    line-height: 1.9;
    color: #374151;
}

.order-premium-card p {
    color: #6b7280;
    font-size: 17px;
    line-height: 1.8;
}

.order-premium-card .form-control {
    min-height: 58px;
    border: 1px solid rgba(7,27,58,.13);
    border-radius: 18px;
    padding: 15px 18px;
    font-weight: 600;
}

.order-premium-card textarea.form-control {
    min-height: 135px;
}

.section-head-premium {
    margin-bottom: 50px;
}

@media(max-width: 768px) {
    .book-premium-hero {
        padding: 70px 0;
        text-align: center;
    }

    .book-premium-meta,
    .book-premium-actions {
        justify-content: center;
    }

    .summary-premium-card,
    .order-premium-card {
        padding: 30px;
        border-radius: 26px;
    }
}

.authors-hero {
    padding:50px 0;
    min-height: 410px;
    background:
        linear-gradient(90deg, rgba(3,18,40,.92), rgba(3,18,40,.55), rgba(3,18,40,.2)),
        url('../images/authors-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}

.about-hero {
    padding:50px 0;
    min-height: 410px;
    background:
        linear-gradient(90deg, rgba(3,18,40,.92), rgba(3,18,40,.55), rgba(3,18,40,.2)),
        url('../images/about-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}

.authors-hero-content {
    max-width: 560px;
}

.authors-hero h1 {
    font-size: clamp(56px, 7vw, 86px);
    line-height: .95;
    margin-bottom: 25px;
}

.authors-hero h1 span {
    color: var(--ag-orange);
}

.authors-hero p {
    color: rgba(255,255,255,.86);
    font-size: 18px;
    line-height: 1.8;
}

.authors-section {
    background: #fbf8f3;
    padding: 60px 0 80px;
}

.authors-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 45px;
    gap: 20px;
}

.authors-filter {
    display: flex;
    align-items: center;
    gap: 18px;
}

.authors-filter span {
    color: var(--ag-orange);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .8px;
}

.authors-filter select,
.authors-search input {
    height: 52px;
    border: 1px solid rgba(7,27,58,.15);
    background: transparent;
    padding: 0 18px;
    min-width: 190px;
}

.authors-search {
    position: relative;
    width: 330px;
}

.authors-search input {
    width: 100%;
    padding-right: 48px;
}

.authors-search i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--ag-blue);
}

.author-card-premium {
    background: #fff;
    height: 100%;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    transition: .35s;
}

.author-card-premium:hover {
    transform: translateY(-8px);
}

.author-photo {
    display: block;
    height: 300px;
    overflow: hidden;
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: .4s;
}

.author-card-premium:hover .author-photo img {
    filter: grayscale(0);
    transform: scale(1.04);
}

.author-body {
    padding: 25px;
}

.author-body h3 {
    color: var(--ag-blue);
    font-size: 28px;
    margin-bottom: 8px;
}

.author-body span {
    color: var(--ag-orange);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .8px;
}

.author-body p {
    color: #4b5563;
    margin: 18px 0 22px;
    line-height: 1.7;
}

.author-link {
    color: var(--ag-blue);
    font-size: 14px;
    font-weight: 900;
}

.author-link i {
    color: var(--ag-orange);
    margin-left: 12px;
}

.manuscript-section {
    background:
        linear-gradient(90deg, rgba(3,18,40,.98), rgba(3,18,40,.92)),
        url('../images/baobab-bg.jpg') center/cover no-repeat;
    padding: 55px 0;
    color: #fff;
}

.manuscript-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.manuscript-content span {
    color: var(--ag-orange);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
}

.manuscript-content h2 {
    font-size: 36px;
    margin: 10px 0;
}

.manuscript-content p {
    color: rgba(255,255,255,.75);
    margin: 0;
}

.manuscript-content a {
    border: 1px solid var(--ag-orange);
    color: #fff;
    padding: 18px 34px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .7px;
}

.manuscript-content a:hover {
    background: var(--ag-orange);
}

@media(max-width: 991px) {
    .authors-toolbar,
    .manuscript-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .authors-search {
        width: 100%;
    }
}

.authors-search button {
    position: absolute;
    right: 0;
    top: 0;
    height: 52px;
    width: 52px;
    border: none;
    background: transparent;
    color: var(--ag-blue);
    font-size: 22px;
}

.books-search button {
    position: absolute;
    right: 0;
    top: 0;
    height: 54px;
    width: 54px;
    border: none;
    background: transparent;
    color: var(--ag-blue);
    font-size: 20px;
}

.filter-radio input {
    display: none;
}

.filter-radio {
    cursor: pointer;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.price-inputs input {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(7,27,58,.15);
    background: transparent;
    padding: 0 12px;
}

.filter-apply {
    width: 100%;
    height: 44px;
    margin-top: 14px;
    border: none;
    background: var(--ag-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.filter-check input {
    margin-right: 8px;
}

.reset-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


.author-detail-hero {
    background: #06172f;
    color: #fff;
}

.author-hero-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 560px;
    align-items: center;
}

.author-hero-text {
    padding: 70px 60px 70px 0;
}

.author-hero-text h1 {
    font-size: clamp(58px, 8vw, 98px);
    line-height: .92;
    margin: 18px 0;
}

.author-hero-text p {
    max-width: 520px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,.82);
}

.author-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.author-hero-photo {
    height: 560px;
    overflow: hidden;
}

.author-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.author-tabs {
    background: #fbf8f3;
    border-bottom: 1px solid rgba(7,27,58,.12);
}

.author-tabs .container-fluid {
    display: flex;
    justify-content: space-around;
    gap: 25px;
    flex-wrap: wrap;
}

.author-tabs a {
    padding: 24px 10px;
    color: var(--ag-blue);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 3px solid transparent;
}

.author-tabs a i {
    color: var(--ag-orange);
    margin-right: 8px;
    font-size: 20px;
}

.author-tabs a.active,
.author-tabs a:hover {
    color: var(--ag-orange);
    border-color: var(--ag-orange);
}

.author-universe {
    background: #fbf8f3;
    padding: 80px 0;
}

.author-universe h2,
.author-biography h2 {
    color: var(--ag-blue);
    font-size: 46px;
    line-height: 1.05;
}

.author-universe p {
    color: #374151;
    line-height: 1.9;
}

.outline-dark-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 25px;
    border: 1px solid var(--ag-blue);
    color: var(--ag-blue);
    padding: 16px 26px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}

.author-books-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.author-books-head h3 {
    color: var(--ag-blue);
    font-size: 32px;
}

.author-books-head a {
    color: var(--ag-orange);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}

.author-book-mini img {
    height: 250px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 22px rgba(0,0,0,.18));
}

.author-book-mini h4 {
    font-family: 'Inter', sans-serif;
    color: var(--ag-blue);
    font-size: 16px;
    margin-top: 18px;
    font-weight: 800;
}

.author-book-mini span {
    color: #6b7280;
    font-size: 13px;
}

.author-themes {
    background: #fff;
    padding: 80px 0;
}

.author-themes h2 {
    color: var(--ag-blue);
    font-size: 40px;
    margin-bottom: 35px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.theme-item i {
    width: 38px;
    height: 38px;
    background: var(--ag-orange);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
}

.theme-item h4 {
    color: var(--ag-blue);
    font-size: 21px;
}

.theme-item p {
    color: #374151;
    line-height: 1.7;
}

.author-quote-card {
    background:
        linear-gradient(90deg, rgba(3,18,40,.96), rgba(3,18,40,.82)),
        url('../images/authors-hero.jpg') center/cover no-repeat;
    min-height: 380px;
    padding: 60px;
    color: #fff;
}

.author-quote-card i {
    color: var(--ag-orange);
    font-size: 44px;
}

.author-quote-card p {
    font-size: 29px;
    line-height: 1.25;
    margin: 25px 0;
}

.author-quote-card span {
    color: var(--ag-orange);
    font-weight: 800;
}

.author-biography {
    background: #fbf8f3;
    padding: 80px 0;
}

.author-bio-card {
    background: #fff;
    border-radius: 34px;
    padding: 55px;
    box-shadow: 0 25px 80px rgba(0,0,0,.08);
}

.author-bio-card div {
    font-size: 18px;
    line-height: 1.9;
    color: #374151;
}

.author-newsletter {
    background: #fbf8f3;
    border-top: 1px solid rgba(7,27,58,.1);
    padding: 30px 0;
}

.newsletter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.newsletter-row > div {
    display: flex;
    align-items: center;
    gap: 20px;
}

.newsletter-row i {
    font-size: 40px;
    color: var(--ag-orange);
}

.newsletter-row h3 {
    color: var(--ag-blue);
    font-size: 25px;
    margin: 0;
}

.newsletter-row p {
    margin: 0;
    color: #6b7280;
}

.newsletter-row form {
    display: flex;
}

.newsletter-row input {
    height: 54px;
    width: 300px;
    border: 1px solid rgba(7,27,58,.15);
    padding: 0 18px;
}

.newsletter-row button {
    height: 54px;
    border: none;
    background: var(--ag-orange);
    color: #fff;
    padding: 0 30px;
    font-weight: 900;
    text-transform: uppercase;
}

@media(max-width: 991px) {
    .author-hero-grid {
        grid-template-columns: 1fr;
    }

    .author-hero-text {
        padding: 60px 0;
    }

    .author-books-head,
    .newsletter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-grid {
        grid-template-columns: 1fr;
    }
}

.about-hero {
    min-height: 520px;
    background:
        linear-gradient(90deg, rgba(3,18,40,.96), rgba(3,18,40,.72), rgba(3,18,40,.25)),
        url('../images/authors-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}

.about-hero-content {
    max-width: 720px;
}

.about-hero h1 {
    font-size: clamp(52px, 7vw, 88px);
    line-height: .95;
    margin: 18px 0;
}

.about-hero p {
    max-width: 640px;
    color: rgba(255,255,255,.82);
    font-size: 19px;
    line-height: 1.8;
}

.about-story-section,
.about-values-section,
.about-mission-section {
    background: #fbf8f3;
    padding: 90px 0;
}

.about-story-section h2,
.section-head-premium h2,
.mission-card h2,
.about-cta h2 {
    color: var(--ag-blue);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
    margin: 18px 0 30px;
}

.about-story-section p,
.mission-card p,
.about-cta p {
    color: #374151;
    font-size: 18px;
    line-height: 1.9;
}

.about-image-card {
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(0,0,0,.12);
}

.about-image-card img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.section-head-premium {
    margin-bottom: 50px;
}

.value-card {
    background: #fff;
    padding: 38px;
    border-radius: 28px;
    height: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.06);
    transition: .35s ease;
}

.value-card:hover {
    transform: translateY(-8px);
}

.value-card i {
    width: 52px;
    height: 52px;
    background: var(--ag-orange);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.value-card h3 {
    color: var(--ag-blue);
    font-size: 25px;
    margin-bottom: 14px;
}

.value-card p {
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

.mission-card {
    background:
        linear-gradient(90deg, rgba(3,18,40,.98), rgba(3,18,40,.88)),
        url('../images/baobab-bg.jpg') center/cover no-repeat;
    color: #fff;
    border-radius: 38px;
    padding: 70px;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 50px;
    align-items: center;
}

.mission-card h2 {
    color: #fff;
}

.mission-card p {
    color: rgba(255,255,255,.82);
    margin: 0;
}

.about-cta-section {
    background: #06172f;
    color: #fff;
    padding: 55px 0;
}

.about-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.about-cta span {
    color: var(--ag-orange);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
}

.about-cta h2 {
    color: #fff;
    margin: 8px 0;
}

.about-cta p {
    color: rgba(255,255,255,.72);
    margin: 0;
}

.about-cta a {
    border: 1px solid var(--ag-orange);
    color: #fff;
    padding: 18px 34px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
}

.about-cta a:hover {
    background: var(--ag-orange);
}

@media(max-width: 991px) {
    .mission-card,
    .about-cta {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .mission-card {
        padding: 38px;
    }

    .about-image-card img {
        height: 360px;
    }
}

.ag-cart-icon{
    position: relative;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ag-blue);
    background: #fff;
    transition: .3s;
}

.ag-cart-icon:hover{
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,.12);
}

.ag-cart-icon i{
    font-size: 22px;
}

.ag-cart-count{
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ag-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-premium-page {
    background: #fbf8f3;
    padding: 90px 0;
}

.cart-premium-header {
    margin-bottom: 50px;
}

.cart-premium-header h1 {
    color: var(--ag-blue);
    font-size: clamp(52px, 7vw, 86px);
    line-height: .95;
    margin: 14px 0;
}

.cart-premium-header p {
    color: #6b7280;
    font-size: 18px;
}

.cart-list-card,
.cart-summary-premium,
.empty-cart-premium {
    background: #fff;
    border-radius: 34px;
    box-shadow: 0 25px 80px rgba(0,0,0,.08);
}

.cart-list-card {
    padding: 28px;
}

.cart-premium-item {
    display: grid;
    grid-template-columns: 110px 1fr 150px 48px;
    gap: 22px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(7,27,58,.1);
}

.cart-premium-item:last-child {
    border-bottom: none;
}

.cart-book-cover {
    width: 110px;
    height: 145px;
    background: #f8f6f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

.cart-book-cover img {
    max-width: 90px;
    max-height: 125px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,.2));
}

.cart-book-info h3 {
    color: var(--ag-blue);
    font-size: 27px;
    line-height: 1.05;
    margin-bottom: 8px;
}

.cart-book-info p {
    color: var(--ag-orange);
    font-weight: 900;
    margin-bottom: 14px;
}

.cart-qty-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart-qty-form input {
    width: 80px;
    height: 44px;
    border: 1px solid rgba(7,27,58,.15);
    border-radius: 12px;
    padding: 0 12px;
}

.cart-qty-form button {
    height: 44px;
    border: none;
    border-radius: 12px;
    padding: 0 18px;
    background: var(--ag-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cart-item-total {
    color: var(--ag-blue);
    font-weight: 900;
    text-align: right;
}

.cart-remove {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: grid;
    place-items: center;
}

.cart-summary-premium {
    padding: 34px;
    position: sticky;
    top: 110px;
}

.cart-summary-premium h2 {
    color: var(--ag-blue);
    font-size: 38px;
    margin-bottom: 28px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fbf8f3;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.summary-line span {
    color: #6b7280;
    font-weight: 700;
}

.summary-line strong {
    color: var(--ag-orange);
    font-size: 20px;
}

.order-form-premium input,
.order-form-premium textarea {
    width: 100%;
    border: 1px solid rgba(7,27,58,.13);
    border-radius: 16px;
    margin-bottom: 14px;
    padding: 15px 18px;
    font-weight: 600;
}

.order-form-premium input {
    height: 54px;
}

.order-form-premium textarea {
    min-height: 100px;
}

.order-form-premium button {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 999px;
    background: var(--ag-orange);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 8px;
}

.empty-cart-premium {
    text-align: center;
    padding: 70px 30px;
}

.empty-cart-premium i {
    font-size: 60px;
    color: var(--ag-orange);
}

.empty-cart-premium h2 {
    color: var(--ag-blue);
    font-size: 42px;
    margin: 18px 0 10px;
}

.empty-cart-premium p {
    color: #6b7280;
    margin-bottom: 28px;
}

@media(max-width: 991px) {
    .cart-premium-item {
        grid-template-columns: 90px 1fr;
    }

    .cart-item-total,
    .cart-remove {
        grid-column: 2;
        text-align: left;
    }

    .cart-summary-premium {
        position: relative;
        top: 0;
    }
}

.ag-toast {
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,.15) !important;
}

.contact-hero{
    padding:50px 0;
    background:
        linear-gradient(90deg, rgba(3,18,40,.92), rgba(3,18,40,.55), rgba(3,18,40,.2)),
        url('../images/contact-hero.jpg') center/cover no-repeat;
    position:relative;
}
.contact-hero-content{
    position:relative;
    z-index:2;
    max-width:700px;
}

.contact-hero-content h1{
    color:#fff;
    font-size:72px;
    line-height:1.05;
    font-weight:800;
    margin:20px 0;
}

.contact-hero-content p{
    color:#dbe4ef;
    font-size:18px;
    max-width:560px;
}

.contact-section{
    padding:100px 0;
}

.contact-info-card,
.contact-form-card{
    background:#fff;
    border-radius:30px;
    padding:45px;
    box-shadow:0 15px 50px rgba(15,23,42,.08);
}

.contact-info-card h2,
.contact-form-card h2{
    color:var(--blue);
    font-size:38px;
    font-weight:800;
    margin:15px 0 25px;
}

.contact-info-list{
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-top:30px;
}

.contact-info-item{
    display:flex;
    align-items:center;
    gap:18px;
    padding:18px;
    background:#f8fafc;
    border-radius:18px;
}

.contact-info-item i{
    width:55px;
    height:55px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:rgba(242,140,40,.12);
    color:var(--orange);
    font-size:22px;
}

.contact-info-item strong{
    display:block;
    color:var(--blue);
}

.contact-info-item span{
    color:#64748b;
}

.contact-form-card label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
    color:var(--blue);
}

.contact-form-card .form-control{
    height:56px;
    border-radius:16px;
    border:1px solid #e2e8f0;
}

.contact-form-card textarea.form-control{
    height:auto;
}

.btn-contact-submit{
    border:none;
    background:var(--orange);
    color:#fff;
    padding:16px 28px;
    border-radius:16px;
    font-weight:800;
    display:inline-flex;
    align-items:center;
    gap:10px;
    transition:.3s;
}

.btn-contact-submit:hover{
    transform:translateY(-2px);
}.mobile-header-actions {    display: flex;    align-items: center;    gap: 12px;    margin-left: auto;}.mobile-header-actions .navbar-toggler {    border: none;    box-shadow: none;    padding: 0;    width: 46px;    height: 46px;    border-radius: 50%;    background: #fff;}.mobile-header-actions .navbar-toggler:focus {    box-shadow: none;}@media (max-width: 991px){    .ag-navbar .container{        display:flex;        align-items:center;        justify-content:space-between;        flex-wrap:wrap;    }    .mobile-header-actions{        display:flex;        align-items:center;        gap:12px;    }    .mobile-header-actions .navbar-toggler{        border:none;        box-shadow:none;        padding:0;        margin:0;    }    .mobile-header-actions .navbar-toggler:focus{        box-shadow:none;    }    .ag-cart-icon{        position:relative;        display:flex;        align-items:center;        justify-content:center;    }    .ag-cart-icon i{        font-size:22px;    }    .navbar-collapse{        width:100%;    }}@media (max-width: 991px){    .ag-navbar .container{        display:flex !important;        justify-content:space-between !important;        align-items:center !important;        flex-wrap:nowrap !important;    }    .ag-logo{        margin:0;    }    .mobile-header-actions{        display:flex !important;        align-items:center !important;        gap:12px;        margin-left:auto;    }    .navbar-toggler{        margin:0 !important;    }    #mainNavbar{        width:100%;    }}@media (max-width: 991px) {    .ag-navbar .container {        display: flex !important;        align-items: center !important;        justify-content: space-between !important;        flex-wrap: wrap !important;    }    .ag-logo {        margin: 0 !important;        flex: 0 0 auto;    }    .mobile-header-actions {        display: flex !important;        align-items: center !important;        gap: 10px;        margin-left: auto;        flex: 0 0 auto;    }    .navbar-toggler {        border: none !important;        box-shadow: none !important;        padding: 0 !important;        width: 44px;        height: 44px;    }    .navbar-toggler:focus {        box-shadow: none !important;    }    #mainNavbar {        flex-basis: 100% !important;        width: 100% !important;        margin-top: 18px;        background: #fff;        border-radius: 22px;        padding: 18px 22px;        box-shadow: 0 18px 45px rgba(7, 27, 58, .12);    }    #mainNavbar .navbar-nav {        align-items: flex-start !important;    }    #mainNavbar .nav-item {        width: 100%;    }    #mainNavbar .nav-link {        padding: 13px 0;        border-bottom: 1px solid rgba(7, 27, 58, .08);        color: var(--ag-blue);        font-weight: 800;    }    #mainNavbar .nav-item:last-child .nav-link {        border-bottom: none;    }}