/* Outdoor Books - Main Stylesheet */

/************ TABLE OF CONTENTS ***************
1. Fonts
2. Global Settings
3. Top section (green bar + nav)
4. Featured section
5. Category section
6. Menu section
7. Footer section
8. Carousel (Owl)
9. Book Detail
10. Search
11. Filter / Modal
12. Badges
13. Animations
14. Responsive
**********************************************/


/***
====================================================================
1. Fonts
====================================================================
***/

@font-face {
    font-family: "Avenir Next LT W02 Regular";
    src: url("../fonts/be9a43357e0fe07642191e4b32995385.eot");
    src: url("../fonts/be9a43357e0fe07642191e4b32995385.eot?#iefix") format("embedded-opentype"),
         url("../fonts/be9a43357e0fe07642191e4b32995385.woff2") format("woff2"),
         url("../fonts/be9a43357e0fe07642191e4b32995385.woff") format("woff"),
         url("../fonts/be9a43357e0fe07642191e4b32995385.ttf") format("truetype"),
         url("../fonts/be9a43357e0fe07642191e4b32995385.svg#Avenir Next LT W02 Regular") format("svg");
}


/***
====================================================================
2. Global Settings
====================================================================
***/

body, h1, h2, h3, h4, h5, h6 {
    font-family: "Avenir Next LT W02 Regular", "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #000;
}

p { margin-bottom: 0; }

a { color: #000; }
a:hover, a:focus, a:visited { text-decoration: none; outline: none; }
* a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; }

.wrapper { padding-top: 150px; }

.d-none { display: none !important; }


/***
====================================================================
3. Top Section (Green Bar + Navigation)
====================================================================
***/

.top-bar {
    background-color: #6dbb0c;
    text-align: center;
    color: #fff;
    padding: 0.8rem;
    display: inherit;
    position: fixed;
    width: 100%;
    height: 50px;
    top: 0;
    z-index: 9999;
}

.top-bar p {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.navigation-primary__bar-wrapper {
    align-items: center;
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
    z-index: 10;
}

.menu-bar {
    background-color: #544c49;
    padding: 15px 4%;
    height: 100px;
    z-index: 9999;
    position: fixed;
    margin: 50px 0 0 0;
    width: 100%;
}

.mobile_menu svg:not(.colored) * {
    fill: #fff !important;
}

a.navigation-primary__logo {
    order: 2;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    margin-top: 28px;
}

.navigation-primary__logo {
    top: 0;
    text-align: left;
    width: 509px;
}

.visually-hidden {
    clip: rect(0,0,0,0) !important;
    border: 0 !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

.top-bar-right ul.menu li figure { margin: 0; }

.top-bar-right ul.menu > li > a {
    display: block;
    padding: 0;
    line-height: 1;
    font-weight: 600;
    margin: 0 0 0 30px;
}

.top-bar-left ul.menu > li { margin: 0 40px 0 0; }

.top-bar-left .menu > li > a {
    display: block;
    padding: 0;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
}

.top-bar-left .menu > li > a:hover {
    text-decoration: underline;
    text-underline-offset: 8px;
}

.navigation-primary__icon svg:not(.colored) * {
    fill: #fff !important;
}


/***
====================================================================
4. Featured Section
====================================================================
***/

.featured_section {
    padding: 0;
    margin-top: 50px;
}

.featured_section .grid-container {
    max-width: 100%;
}

.featured_section .grid-padding-x .grid-padding-x {
    margin-right: 0;
    margin-left: 0;
}

.featured_section .grid-padding-x > .cell {
    padding-right: 8px;
    padding-left: 8px;
}

.featured_section .thumbnail {
    display: inline-block;
    width: 100%;
    margin-bottom: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: inherit;
    line-height: 0;
    background-color: #f5f5f5;
}

.featured_gray h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 14px;
    margin-left: 10px;
}

.featured_gray h3 a { color: #000; }
.featured_gray h3 a:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }

.featured_gray p {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 3px;
    margin-left: 10px;
}

.featured_gray .author-name {
    font-size: 13px;
    color: #666;
    margin-left: 10px;
    margin-top: 2px;
}

.featured_section h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 30px;
    margin-left: 3.6444%;
    padding-left: 8px;
}


/***
====================================================================
5. Category Section
====================================================================
***/

.category_section {
    padding: 0;
    margin-top: 50px;
    position: relative;
}

.category_section .featured_gray {
    margin-bottom: 40px;
}

.category_section .position_left {
    left: 0;
    position: absolute;
    min-height: 100%;
    top: 0;
    width: 330px;
    transform: translateX(0);
}

.category_section .position_left ~ .off-canvas-content {
    margin-left: 340px;
}

.off-canvas-content {
    min-height: 100%;
    background: #fefefe;
    transition: transform .5s ease;
    backface-visibility: hidden;
}

.category_section .grid-container {
    padding-right: 24px;
    padding-left: 24px;
    max-width: 100%;
}

.category_section .grid-padding-x > .cell {
    padding-right: 8px;
    padding-left: 8px;
}

.category_section .thumbnail {
    display: inline-block;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: inherit;
    line-height: 0;
    background-color: #f5f5f5;
}

.category_section .position_left {
    padding-right: 24px;
    padding-left: 0;
    max-width: 100%;
}


/* Product tile image containers */
.product-tile__image-wrap {
    background-color: #f5f5f5;
    border-radius: 8px;
    mask-image: radial-gradient(#fff, #000);
    overflow: hidden;
    padding-top: 120.48%;
    position: relative;
}

.product-tile__image-container {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.product-tile__image.active {
    opacity: 1;
    visibility: visible;
}

.product-tile__image {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    left: 0;
    opacity: 0;
    position: absolute;
    text-align: center;
    top: 0;
    transform: translateZ(0);
    visibility: hidden;
    width: 100%;
}

.product-tile__image img {
    max-height: 100%;
    max-width: 90%;
    object-fit: contain;
}

/* Placeholder cover for books without images */
.product-tile__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    line-height: 1.4;
}

/* Sidebar */
.sitebar_fixed {
    position: sticky;
    padding: 0;
    color: #fff;
    top: 9.5em;
    bottom: auto;
}

ul.categoryitems {
    margin: 0 0 30px 24px;
    list-style: none;
}

ul.categoryitems li {
    padding: 0 0 8px 0;
}

ul.categoryitems li a {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

ul.categoryitems li a:hover,
ul.categoryitems li a.active {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.categoryitems {
    margin: 5px 9px 0 0;
}

/* Sort */
.sort_by {
    padding: 0 8px;
    margin: 0 0 10px 0;
}

.items {
    font-size: 16px;
    font-weight: 600;
    margin: 7px 0 0 0;
}

.items p { margin: 0; }

.sort_by_drop {
    display: flex;
    justify-content: flex-end;
}

.sort_by_drop_in {
    display: flex;
    justify-content: flex-end;
}

.sort_by_drop select {
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    font-family: "Avenir Next LT W02 Regular", sans-serif;
    border: 0;
    color: #000;
    margin: 0;
    appearance: inherit;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M169.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 274.7 54.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"/></svg>');
    background-size: 10px;
}

.sort_by_drop select:focus { box-shadow: inherit; }
.sort_by_drop label { display: none !important; }

.off-canvas { border-right: 0; }


/***
====================================================================
6. Menu Section (Off-Canvas & Overlays)
====================================================================
***/

.overlay {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    background-color: rgba(255,255,255, 1);
    height: 100vh;
    overflow: auto;
}

.overlay-content {
    position: relative;
    top: 11%;
    width: 100%;
    text-align: center;
    margin-top: 3px;
}

.overlay a {
    padding: 8px 8px 16px 8px;
    text-decoration: none;
    font-size: 20px;
    color: #000;
    display: block;
    transition: 0.3s;
    text-align: left;
    margin: 0 0 0 24px;
    font-weight: 600;
}

.overlay a:hover, .overlay a:focus { color: #000; }
.overlay a:hover { text-decoration: underline; text-underline-offset: 8px; }

.overlay .closebtn {
    position: absolute;
    top: -2px;
    right: 9px;
    font-size: 40px;
    font-weight: normal;
}

.overlay .closebtn:hover { text-decoration: none; }


/***
====================================================================
7. Footer
====================================================================
***/

.footer_up {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    color: #fff;
    padding: 15px 4%;
    height: 160px;
    position: relative;
}

.footer_up .grid-container {
    padding-right: 0;
    padding-left: 0;
    max-width: 100%;
    width: auto;
    margin: 0;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.join_box { width: 100%; }
.join_box p { font-size: 30px; margin: 0; }

.input-group {
    margin-bottom: 0;
    width: 320px;
    text-align: right;
    float: right;
}

[type="text"] {
    border: 0;
    box-shadow: inherit;
    transition: inherit;
    font-size: 14px;
}

[type="text"]:focus {
    box-shadow: inherit;
    transition: inherit;
    color: gray;
    border: 0;
}

.input-group .input-group-label {
    background: #299be2;
    border: 1px solid #299be2;
    color: #fff;
    font-size: 14px;
    margin: 0 0 0 20px;
    cursor: pointer;
}

::placeholder { color: gray; opacity: 1; }

.footer {
    background: #544c49;
    color: #fff;
    padding: 15px 4%;
    font-size: 10px;
    line-height: 13px;
}

.footer .grid-container {
    padding-right: 0;
    padding-left: 0;
    max-width: 100%;
}

.footer p { margin-top: 5px; }
.footer p span.copy_bold { font-weight: 600; }
.footer p a { color: #fff; }

ul.footer_nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

ul.footer_nav li:first-child { padding: 0 8px 0 0; }

ul.footer_nav li {
    padding: 0 8px;
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    display: inline;
    color: #FFF;
    letter-spacing: 0.2px;
}

ul.footer_nav li a {
    color: #FFF;
    text-decoration: none;
}

ul.footer_nav li a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.follow_us {
    padding: 0;
    text-align: right;
    margin-top: 5px;
}

.follow_us a {
    display: inline;
    margin: 0 0 0 20px;
    color: #fff;
}

.follow_us a:first-child { margin-left: 0; }

.follow_us a i {
    font-size: 18px;
    color: #fff;
}


/***
====================================================================
8. Owl Carousel Overrides
====================================================================
***/

* { outline: none; }

.banner #demo {
    width: 100%;
    padding: 150px 0 0 0;
    height: auto;
    background-color: inherit;
}

.owl-carousel .owl-item { height: 400px; }
.featured_section .owl-carousel .owl-item { height: auto; }
.ob-books-owl .owl-item { height: auto !important; }

.featured_section .owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0,0,0);
    padding: 0 3.6444%;
}

.featured_section .owl-theme .owl-nav { margin-top: 0; }

.featured_section .owl-carousel .owl-nav button.owl-next,
.featured_section .owl-carousel .owl-nav button.owl-prev {
    background: 0 0;
    position: absolute;
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 60px;
    justify-content: center;
    transition: transform .2s cubic-bezier(.235,0,.05,.95);
    width: 60px;
    background-color: #fff;
    box-shadow: 0 6px 8px 0 rgba(0,0,0,0.2);
    cursor: pointer;
    top: 30%;
}

.featured_section .owl-carousel .owl-nav button.owl-prev { left: 20px; }
.featured_section .owl-carousel .owl-nav button.owl-next { right: 20px; }

.featured_section .owl-carousel button.owl-dot { display: none; }
.featured_section .owl-nav button span { display: none; }

.featured_section .owl-theme .owl-nav .disabled {
    opacity: 1;
    cursor: default;
    display: none !important;
}

.owl-prev:before, .owl-next:before {
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    right: 0;
    top: 0;
    font-family: 'Font Awesome 6 Free';
    font-size: 16px;
    font-weight: 900;
    font-style: normal;
    color: #000;
}

.featured_section .owl-prev:before, .featured_section .owl-next:before {
    position: initial;
    font-family: 'Font Awesome 6 Free';
    font-size: 16px;
    font-weight: 900;
}

.owl-prev:before { content: '\f053'; }
.owl-next:before { content: '\f054'; }

.banner .owl-carousel .owl-item img {
    display: block;
    width: 100%;
    object-fit: cover;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.banner .owl-theme .owl-nav.disabled + .owl-dots {
    margin-top: -38px;
    z-index: 999;
    position: relative;
}

.banner .owl-theme .owl-dots .owl-dot span {
    width: 15px;
    height: 15px;
}

.banner .owl-theme .owl-dots .owl-dot.active span,
.banner .owl-theme .owl-dots .owl-dot:hover span {
    background: #fff;
}


/***
====================================================================
9. Book Detail Page
====================================================================
***/

.book-detail {
    padding: 40px 0 60px 0;
}

.book-detail__cover {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-detail__cover img {
    max-height: 500px;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.book-detail__info {
    padding-left: 40px;
}

.book-detail__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.book-detail__author {
    font-size: 18px;
    color: #666;
    margin-bottom: 5px;
}

.book-detail__publisher {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}

.book-detail__description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #333;
}

.book-detail__review {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #6dbb0c;
}

.book-detail__review h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-amazon {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s cubic-bezier(.235,0,.05,.95), background-color .2s;
    border: none;
    cursor: pointer;
}

.btn-amazon:hover {
    transform: scale(1.044);
    background-color: #262626;
    color: #fff;
    text-decoration: none;
}

.btn-amazon:visited { color: #fff; }

.btn-amazon i { margin-right: 8px; }

/* Breadcrumb */
.breadcrumb-nav {
    padding: 20px 0;
}

.breadcrumb-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-nav ul li {
    display: inline;
    font-size: 14px;
    font-weight: 600;
    color: #999;
}

.breadcrumb-nav ul li a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-nav ul li a:hover {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb-nav ul li + li::before {
    content: '>';
    margin: 0 8px;
    font-size: 14px;
    color: #999;
}

/* Related Books */
.related-books {
    padding: 50px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.related-books h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}


/***
====================================================================
9b. Book Detail — Mobile Overrides
====================================================================
***/

@media (max-width: 639px) {
    /* Cover: reduce height from 140% to 105% */
    .ob-book-cover-large {
        padding-top: 105% !important;
        margin-bottom: 20px !important;
    }

    /* Title: reduce from 30px inline to 24px */
    .ob-book-detail h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    /* Meta info: stack vertically instead of inline wrapping */
    .ob-book-meta {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        line-height: 1.5 !important;
    }
    .ob-book-meta > span {
        margin-right: 0 !important;
    }

    /* Amazon button: full width on mobile */
    .ob-buy-button {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }

    /* Spacing between stacked cover and details */
    .ob-book-details {
        margin-top: 10px !important;
    }
    .ob-book-detail {
        padding: 20px 0 40px !important;
    }

    /* Related/Author book covers: less tall */
    .ob-author-books .ob-book-cover,
    .ob-related-books .ob-book-cover {
        padding-top: 115% !important;
    }
    .ob-author-books,
    .ob-related-books {
        margin-top: 40px !important;
        padding-top: 30px !important;
    }
    .ob-author-books h2,
    .ob-related-books h2 {
        font-size: 19px !important;
    }

    /* Breadcrumb: smaller text */
    .ob-breadcrumb {
        margin-bottom: 20px !important;
    }
    .ob-breadcrumb ol {
        font-size: 12px !important;
    }

    /* Format pills: smaller on mobile */
    .ob-format-selector .ob-format-pill {
        padding: 8px 18px !important;
        font-size: 13px !important;
    }

    /* Related section header: stack title and "browse all" link */
    .ob-related-books > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

/* Tablet tweaks (640px-1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
    .ob-book-detail h1 {
        font-size: 26px !important;
    }
    .ob-buy-button {
        padding: 16px 32px !important;
    }
}


/***
====================================================================
10. Search
====================================================================
***/

.search-section {
    padding: 40px 0;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box input[type="search"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-family: "Avenir Next LT W02 Regular", sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input[type="search"]:focus {
    border-color: #6dbb0c;
}

.search-results-count {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}


/***
====================================================================
11. Static Pages
====================================================================
***/

.page-content {
    padding: 40px 0 60px;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

.page-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.page-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}


/***
====================================================================
12. Badges
====================================================================
***/

.badge {
    border-radius: 4px;
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    line-height: 24px;
    padding: 0 .8rem;
    vertical-align: middle;
    color: #fff;
}

.featured_gray .badge {
    background-color: #fff;
    color: #000;
    left: 10px;
    pointer-events: none;
    position: absolute;
    right: auto;
    top: 10px;
    border-radius: .4rem;
    padding: 0 .6rem;
}


/***
====================================================================
13. Off-Canvas Desktop Menus
====================================================================
***/

.off-canvas-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px 0 0 63px;
}

.off-canvas {
    top: 150px;
    overflow-x: hidden;
    box-shadow: inherit;
    background-clip: padding-box;
    background-color: #fff;
    border-right: 0;
    bottom: 0;
    box-shadow: rgba(0,0,0,.2) 0 8px 10px -5px, rgba(0,0,0,.14) 0 16px 24px 2px, rgba(0,0,0,.12) 0 6px 30px 5px;
    display: flex;
    flex-direction: column;
    left: 0;
    max-width: 100%;
    outline: 0;
    position: fixed;
    transform: translateX(-100%);
    transition: transform .3s ease-in-out;
    width: 400px;
    z-index: 1050;
}

.off-canvas.show { transform: none; }

.icon-close, .icon-close-tab {
    height: 32px;
    opacity: 1;
    position: absolute;
    right: 40px;
    top: 25px;
    width: 32px;
    cursor: pointer;
}

.icon-close-tab { background: #fff; }

.icon-close:before, .icon-close:after,
.icon-close-tab:before, .icon-close-tab:after {
    background-color: #000;
    border-radius: 4px;
    content: " ";
    height: 20px;
    left: 15px;
    position: absolute;
    width: 4px;
}

.icon-close:before, .icon-close-tab:before { transform: rotate(45deg); }
.icon-close:after, .icon-close-tab:after { transform: rotate(-45deg); }

.off-canvas-backdrop {
    background-color: #000;
    height: 100vh;
    left: 0;
    opacity: .5;
    position: fixed;
    top: 0;
    transition: opacity .15s linear;
    width: 100vw;
    z-index: 1040;
}

.off-canvas-nav {
    display: flex;
    margin: 30px 0 0 0;
}

.off-canvas-nav .tab ul {
    margin: 0;
    list-style-type: none;
}

.off-canvas-nav .tab ul li {
    margin: 0 0 20px 0;
    list-style-type: none;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    color: #000;
}

.off-canvas-nav .tab ul li a { color: #000; }

.off-canvas-nav .tab ul li a:hover {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.off-canvas-nav .tab ul li a.active {
    color: #000;
    font-weight: 600;
}


/***
====================================================================
14. Filter Modal (Mobile)
====================================================================
***/

.filter_modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    overflow-x: hidden;
    transition: opacity .25s cubic-bezier(.38,.41,.27,1);
}

.modal-content {
    position: fixed;
    top: 0;
    bottom: 0;
    background-color: #000;
    width: 100%;
    animation: slideIn 0.4s;
    padding: 0 20px;
    overflow-y: auto;
}

.modal-menu-content {
    position: fixed;
    top: 0;
    bottom: 0;
    background-color: #fff;
    width: 100%;
    padding: 0 20px;
    overflow-y: auto;
}

.modal-menu-content ul.categoryitems {
    list-style-type: none;
    margin: 0 0 10px 12px;
    padding: 3px 0 10px;
    text-align: left;
}

.modal-menu-content ul.categoryitems li a {
    color: #000;
    display: block;
    padding: 2px 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
}

.modal-menu-content ul.categoryitems li a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    color: white;
    height: 70px;
    margin-top: 5px;
}

.modal-menu-content .close {
    color: #000;
    font-size: 40px;
    font-weight: normal;
    z-index: 9;
    position: relative;
    left: 19px;
    top: -6px;
}

.modal-menu-content .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 16px 0 0 0;
    list-style: none;
    background-color: inherit;
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
}

.modal-menu-content .breadcrumb ul {
    padding: 0;
    margin: 6px 0 0 0;
    text-align: center;
}

.modal-menu-content .breadcrumb ul li {
    font-size: 20px;
    font-weight: 600;
    display: inline;
    color: #000;
}

.modal-menu-content .arrow_icon svg {
    width: 10px;
    margin: 3px 0 0 0;
    position: absolute;
    left: 18px;
    cursor: pointer;
}

.filter {
    position: relative;
    display: none;
}

.float {
    position: fixed;
    bottom: 40px;
    background-color: #000;
    color: #FFF;
    border-radius: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    width: 200px;
    height: 60px;
    padding: 0;
    z-index: 999;
    text-align: center;
    line-height: 60px;
    font-size: 16px;
    font-weight: 700;
}

.filter a { color: #fff; }

.filter svg {
    fill: #000 !important;
    stroke: #fff;
}

.filter figure {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.filter_modal .accordion_text {
    color: #fff;
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: 0.4s;
    border-top: 1px solid #222;
    padding: 20px 20px 20px 10px;
    font-weight: 600;
    font-size: 18px;
    background: transparent;
}

.filter_modal .accordion_text:after {
    content: '\f107';
    color: #fff;
    font-weight: 500;
    float: right;
    margin-left: 5px;
    font-family: 'Font Awesome 6 Free';
    font-size: 20px;
    font-weight: 900;
}

.filter_modal .active:after {
    content: "\f106";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.panel {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    color: #fff;
    position: relative;
    top: -5px;
}

.panel ul.categoryitems {
    list-style-type: none;
    margin: 0 0 10px 10px;
    padding: 10px 0;
    text-align: left;
}

.panel ul.categoryitems li a {
    color: #fff;
    display: block;
    padding: 2px 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.close_filter {
    position: fixed;
    bottom: 40px;
    background-color: #fff;
    color: #000;
    border-radius: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    width: 200px;
    height: 60px;
    padding: 0;
    z-index: 999;
    text-align: center;
    line-height: 60px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}


/***
====================================================================
15. Modal (Mobile Menu)
====================================================================
***/

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: inherit;
}

.modal-content2 {
    max-height: 100%;
    overflow: auto;
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    animation: animatetop 0.4s;
}

@keyframes slideIn {
    from { bottom: -300px; opacity: 0; }
    to { bottom: 0; opacity: 1; }
}

@keyframes animatetop {
    from { bottom: -300px; opacity: 0; }
    to { bottom: 0; opacity: 1; }
}


/***
====================================================================
16. Hero Banners
====================================================================
***/

.hero-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner__content {
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 20px;
}

.hero-banner__content h1 {
    font-size: 42px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.hero-banner__content p {
    font-size: 18px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-banner__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}


/***
====================================================================
17. Category Cards (Homepage)
====================================================================
***/

.category-cards {
    padding: 50px 0;
}

.category-cards h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.category-card {
    display: block;
    padding: 24px;
    background: #f5f5f5;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 16px;
    text-decoration: none;
    color: #000;
    transition: transform .2s, box-shadow .2s;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    color: #000;
    text-decoration: none;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.category-card:visited { color: #000; }


/***
====================================================================
18. No Books Placeholder
====================================================================
***/

.no-books-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-books-message h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-books-message p {
    font-size: 16px;
}


/***
====================================================================
19. Animations
====================================================================
***/

@keyframes fadeInUp {
    from { transform: translate3d(0, 40px, 0); }
    to { transform: translate3d(0, 0, 0); opacity: 1; }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animatedFadeInUp { opacity: 0; }

.fadeInUp {
    opacity: 0;
    animation-name: fadeInUp;
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fadeInDown { animation-name: fadeInDown; }


/***
====================================================================
20. Responsive
====================================================================
***/

/***
====================================================================
21. Category Featured Carousel
====================================================================
***/

.ob-cat-featured .owl-carousel .owl-nav button.owl-next,
.ob-cat-featured .owl-carousel .owl-nav button.owl-prev {
    background: 0 0;
    position: absolute;
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 44px;
    justify-content: center;
    transition: transform .2s cubic-bezier(.235,0,.05,.95);
    width: 44px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    top: 30%;
}

.ob-cat-featured .owl-carousel .owl-nav button.owl-prev { left: -8px; }
.ob-cat-featured .owl-carousel .owl-nav button.owl-next { right: -8px; }

.ob-cat-featured .owl-nav button span { display: none; }

.ob-cat-featured .owl-theme .owl-nav .disabled {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

.ob-cat-featured .owl-prev:before,
.ob-cat-featured .owl-next:before {
    position: initial;
    font-family: 'Font Awesome 6 Free';
    font-size: 14px;
    font-weight: 900;
    color: #333;
}

/***
====================================================================
22. Book Card Hover & Interaction
====================================================================
***/

/* Homepage Books Owl Carousel Nav */
.ob-books-owl .owl-nav button.owl-next,
.ob-books-owl .owl-nav button.owl-prev {
    background: 0 0;
    position: absolute;
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 50px;
    justify-content: center;
    transition: transform .2s cubic-bezier(.235,0,.05,.95);
    width: 50px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    top: 35%;
}

.ob-books-owl .owl-nav button.owl-prev { left: -10px; }
.ob-books-owl .owl-nav button.owl-next { right: -10px; }

.ob-books-owl .owl-nav button span { display: none; }

.ob-books-owl .owl-theme .owl-nav .disabled,
.ob-books-owl .owl-nav .disabled {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

.ob-books-owl .owl-prev:before,
.ob-books-owl .owl-next:before {
    position: initial;
    font-family: 'Font Awesome 6 Free';
    font-size: 14px;
    font-weight: 900;
    color: #333;
}

/* New In Featured Owl Carousel Nav */
.ob-newin-featured-owl .owl-item { height: auto !important; }

.ob-newin-featured-owl .owl-nav button.owl-next,
.ob-newin-featured-owl .owl-nav button.owl-prev {
    background: 0 0;
    position: absolute;
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 50px;
    justify-content: center;
    transition: transform .2s cubic-bezier(.235,0,.05,.95);
    width: 50px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    top: 35%;
}

.ob-newin-featured-owl .owl-nav button.owl-prev { left: -10px; }
.ob-newin-featured-owl .owl-nav button.owl-next { right: -10px; }

.ob-newin-featured-owl .owl-nav button span { display: none; }

.ob-newin-featured-owl .owl-theme .owl-nav .disabled,
.ob-newin-featured-owl .owl-nav .disabled {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

.ob-newin-featured-owl .owl-prev:before,
.ob-newin-featured-owl .owl-next:before {
    position: initial;
    font-family: 'Font Awesome 6 Free';
    font-size: 14px;
    font-weight: 900;
    color: #333;
}

/* ── Carousel nav: shared styles for all Owl Carousel sections ── */
.ob-newin-audio-owl .owl-item,
.ob-author-owl .owl-item,
.ob-author-audio-owl .owl-item,
.ob-related-owl .owl-item { height: auto !important; }

.ob-newin-audio-owl .owl-nav button.owl-next,
.ob-newin-audio-owl .owl-nav button.owl-prev,
.ob-author-owl .owl-nav button.owl-next,
.ob-author-owl .owl-nav button.owl-prev,
.ob-author-audio-owl .owl-nav button.owl-next,
.ob-author-audio-owl .owl-nav button.owl-prev,
.ob-related-owl .owl-nav button.owl-next,
.ob-related-owl .owl-nav button.owl-prev {
    background: 0 0;
    position: absolute;
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 50px;
    justify-content: center;
    transition: transform .2s cubic-bezier(.235,0,.05,.95);
    width: 50px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    top: 35%;
}

.ob-newin-audio-owl .owl-nav button.owl-prev,
.ob-author-owl .owl-nav button.owl-prev,
.ob-author-audio-owl .owl-nav button.owl-prev,
.ob-related-owl .owl-nav button.owl-prev { left: -10px; }

.ob-newin-audio-owl .owl-nav button.owl-next,
.ob-author-owl .owl-nav button.owl-next,
.ob-author-audio-owl .owl-nav button.owl-next,
.ob-related-owl .owl-nav button.owl-next { right: -10px; }

.ob-newin-audio-owl .owl-nav button span,
.ob-author-owl .owl-nav button span,
.ob-author-audio-owl .owl-nav button span,
.ob-related-owl .owl-nav button span { display: none; }

.ob-newin-audio-owl .owl-nav .disabled,
.ob-author-owl .owl-nav .disabled,
.ob-author-audio-owl .owl-nav .disabled,
.ob-related-owl .owl-nav .disabled {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

/* ── Guide sections (interspersed in category grid) ── */
html { scroll-behavior: smooth; }
.ob-guide-section {
    margin: 30px 0;
    padding: 28px 24px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
    scroll-margin-top: 120px;
}
.ob-guide-section .ob-book-card { transition: transform 0.2s ease; }
.ob-guide-section .ob-book-card:hover { transform: translateY(-3px); }
.ob-guide-section a[style*="border:1px solid #6dbb0c"]:hover,
.ob-guide-section a[style*="border: 1px solid"]:hover {
    background: #6dbb0c !important;
    color: #fff !important;
}
@media (max-width: 639px) {
    .ob-guide-section { padding: 20px 16px; margin: 20px 0; }
}

/* ── Toast notifications ── */
.ob-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}
.ob-toast {
    pointer-events: auto;
    background: #333;
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Avenir Next LT W02 Regular', sans-serif;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}
.ob-toast--visible { opacity: 1; transform: translateY(0); }
.ob-toast--success { border-left: 4px solid #6dbb0c; }
.ob-toast--warning { border-left: 4px solid #ff9500; }
.ob-toast--error { border-left: 4px solid #e74c3c; }
.ob-toast__close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    margin-left: auto;
    flex-shrink: 0;
}
.ob-toast__close:hover { color: #fff; }
.ob-toast a { color: #6dbb0c; font-weight: 600; text-decoration: underline; }

.ob-book-card {
    transition: transform 0.2s ease;
}

.ob-book-card:hover {
    transform: translateY(-4px);
}

.ob-book-card:hover .ob-book-cover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ob-book-cover {
    transition: box-shadow 0.2s ease;
}

/* Category card icons - stronger visibility */
.ob-category-card i.fa-solid {
    color: rgba(109, 187, 12, 0.3) !important;
}
.ob-category-card:hover i.fa-solid {
    color: rgba(109, 187, 12, 0.45) !important;
}

/* Footer layout */
.ob-social-icons {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    align-items: center;
}

.ob-footer-social-cell {
    text-align: right;
}

@media (max-width: 639px) {
    .ob-footer-row {
        text-align: center;
    }
    .ob-footer-nav-cell {
        margin-bottom: 20px;
    }
    .ob-footer-nav ul {
        justify-content: center !important;
    }
    .ob-footer-social-cell {
        text-align: center;
    }
    .ob-social-icons {
        justify-content: center !important;
    }

    /* Hero adjustments for mobile */
    .ob-hero {
        min-height: 340px !important;
    }
    .ob-hero h1 {
        font-size: 28px !important;
    }
    .ob-hero p {
        font-size: 15px !important;
    }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 7680px) {
    html { -webkit-text-size-adjust: none; }
    .m_hide { display: inherit; }
    .d_hide { display: none; }
}

@media (max-width: 991px) {
    .m_hide { display: none; }
    .d_hide { display: inherit; }
    .navigation-primary__logo { width: 14rem; }
    a.navigation-primary__logo { margin-top: 37px; }
    .top-bar-right ul.menu > li > a { margin: 0 0 0 15px; }
    .category_section .position_left { display: none; }
    .category_section .position_left ~ .off-canvas-content { margin-left: 0; }
    .owl-carousel .owl-item { height: 300px; }
    .filter { display: inherit; }
    .featured_section h2 { font-size: 1.6rem; margin-bottom: 10px; }
    .follow_us { text-align: center; margin: 0 0 10px 0; }
    .footer p { text-align: center; margin-top: 0; }
    .join_box p { font-size: 18px; text-align: center; }
    .input-group { width: 320px; float: none; margin: 20px auto 0 auto; }
    .featured_section .owl-nav { display: none; }
    .ob-books-owl .owl-nav { display: none; }
    .ob-newin-featured-owl .owl-nav { display: none; }
    .ob-newin-audio-owl .owl-nav { display: none; }
    .ob-author-owl .owl-nav { display: none; }
    .ob-author-audio-owl .owl-nav { display: none; }
    .ob-related-owl .owl-nav { display: none; }
    .follow_us a:first-child { margin: 0; }
    .book-detail__info { padding-left: 0; margin-top: 30px; }
    .book-detail__title { font-size: 24px; }
    .hero-banner__content h1 { font-size: 28px; }
}

@media (max-width: 639px) {
    .wrapper { padding-top: 140px; }
    .menu-bar { height: 90px; }
    .hero-banner { height: 300px; }
    .page-content { padding: 20px; }
    .book-detail { padding: 20px 0; }
}

@media screen and (max-height: 450px) {
    .overlay a { font-size: 20px; }
    .overlay .closebtn { font-size: 40px; top: 15px; right: 35px; }
}
