/* ---------------------------------
  All Quiz
  -----------------------------------*/
#shop_all { }
#shop_all h1 { font-size: 1.6em; margin: 0 0 1em 1em; border-bottom: 2px solid #ccc; padding-bottom: .5em; }
#shop_all .content-sec { display: flex; flex-wrap: wrap; padding: 1em; align-items: flex-start; }
#shop_all .content-sec .item { background: #fefefe; width: 300px; display: block; margin: 0 2em 2em 0; border: 1px solid #ddd; }
#shop_all .content-sec .item a:hover { text-decoration: none; }
#shop_all .content-sec .item .text { padding: 1em; line-height: 1.4em; }
#shop_all .content-sec .item img { display: block; width: 100%; }
#shop_all .content-sec .item em { display: block; font-size: 1.2em; text-align: center; color: #444; margin-bottom: .8em; }
#shop_all .content-sec .item span { display: block; font-size: .85em; text-align: center; text-align: center; border-radius: 15px; }
#shop_all .content-sec .item span.subtitle { color: #888; }
#shop_all .content-sec .item span.price { color: #d31a1a; font-size: 1.1em; display: block; margin-top: .3em; }
#shop_all .content-sec .item span.price.free { color: #28a745; }
/* --- Shop Category Navigation --- */
#shop_all .category-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 40px 0; padding: 0 15px; }
/* The Base Pill Style */
#shop_all .category-nav .custom-btn { display: inline-block; padding: 10px 22px; background-color: #f4f4f4; color: #444; text-decoration: none; font-size: 0.95rem; font-weight: 600; border-radius: 50px; border: 1px solid #ddd; transition: all 0.3s ease; white-space: nowrap; }
/* The Hover State */
#shop_all .category-nav .custom-btn:hover { background-color: #e9e9e9; border-color: #bbb; color: #111; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
/* The ACTIVE State (The winner) */
#shop_all .category-nav .custom-btn.active { background-color: #28a745; color: #ffffff; border-color: #218838; box-shadow: 0 4px 12px rgba(40,167,69,0.2); }
/* Mobile Tweak: Ensure they don't look cramped on small screens */
@media (max-width: 600px) {
  #shop_all .category-nav {
    gap:8px;
    margin-bottom:25px;
  }
  #shop_all .category-nav .custom-btn {
    padding:8px 16px;
    font-size:0.85rem;
  }
}
/* ---------------------------------
 Book Item
  -----------------------------------*/
#product-item { background: #fff; padding: 1em; }
#product-item .top-sec { display: flex; }
#product-item .top-sec .left { max-width: 300px; width: 100%; margin-right: 2em; }
#product-item .top-sec .left img { width: 100%; }
#product-item .top-sec .right h1 { font-size: 2.2em; color: #444; margin-bottom: 1em; max-width: 500px; }
#product-item .top-sec .right h4 { font-size: 1.3em; color: #555; max-width: 450px; line-height: 1.5em; }
#product-item .top-sec .right span.price { font-size: 1.8em; display: block; margin-bottom: 1em; }
#product-item .top-sec .right span.price.free { color: #28a745; }
#product-item a.price_btn { display: block; color: #fff; text-align: center; border-radius: 5px; font-weight: bold; font-family: "Montserrat", sans-serif; }
#product-item a.price_btn { width: 320px; background: #ca780d; padding: 1em .3em; font-size: 16px; text-transform: uppercase; }
#product-item a.price_btn:hover { text-decoration: none; background: #f39923; }
#product-item a.price_btn.direct_download { margin-bottom: 1.3em; background: #cf0b0b; }
#product-item a.price_btn.direct_download:hover { background: #d32c2c; }
#product-item a.price_btn.direct_download span { font-size: 14px; color: #ccc; }
#product-item .book-description { border: 1px solid #ddd; background: #f9f9f9; margin: 1em 0; padding: 2em; font-size: 1.1em; color: #444; }
#product-item .book-description { line-height: 1.6em; }
#product-item .book-description h6 { font-weight: bold; }
#product-item .book-description p { margin-bottom: 1em; }
#product-item .book-description ul { list-style: disc; margin-left: 2em; }
#product-item .book-description ul li { margin-bottom: .5em; }
#product-item .book-description h3 { font-size: 1.7em; line-height: 1.3em; font-weight: bold; }
#product-item .book-description h4 { font-size: 1.5em; line-height: 1.3em; font-weight: bold; }
#product-item .book-description h6 { font-size: 1.2em; font-weight: bold; margin-bottom: 1em; }
#product-item .book-description .inner { margin: 0 auto; width: 100%; max-width: 700px; }
#product-item .img-sec { width: 100%; max-width: 400px; margin: 0 auto; }
#product-item .img-sec.max { max-width: 900px; }
#product-item .img-sec.full { max-width: 600px; }
#product-item .img-sec.full small { font-size: .9em; text-align: center; display: block; color: #888; }
#product-item .img-sec img { width: 100%; }
#product-item .book-description strong { font-weight: bold; }
#product-item .buy-prompt { max-width: 380px; width: 100%; margin: 1em auto 0 auto; border-bottom: 1px solid #ccc; padding-bottom: 1em; }
#product-item .buy-prompt .title { font-size: 1.2em; display: block; margin-bottom: 1em; text-align: center; text-transform: capitalize; font-family: "Montserrat", sans-serif; }
#product-item .buy-prompt a.amazon_link { margin: 0 auto; }
#product-item ul.tick { list-style: none; font-size: 1em; }
#product-item ul.tick li:before { content: "\22713"; color: rgb(75, 202, 75); display: inline-block; width: 1.5em; margin-left: -1em; }
#product-item .book-description .youtube-embed { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; }
#product-item .book-description .youtube-embed iframe, #product-item .book-description .youtube-embed object, #product-item .book-description .youtube-embed embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/* Related Items */
#product-item #shop_all .content-sec a.item { width: 200px; }
#product-item #shop_all .content-sec .item em { font-size: 1.2em; margin-bottom: .3em; }
#product-item #shop_all .content-sec a.item { border: none; }
/*#books_all .content-sec .item span { padding: .5em .9em; background: #555; margin: 0 auto; width: 90px; color: #fff; margin-bottom: 1em;} */
/*--------------------------------------------------------
  			Small Screen
---------------------------------------------------------*/
@media screen and (max-width: 835px) {
  /* #jp_quiz a.view-all-quiz {  max-width: 200px; } */
}
@media screen and (max-width: 700px) {
  /* news highlight */
  /* #jp_quiz .top-news-highlight { }
#jp_quiz .top-news-highlight .main-display {  }
#jp_quiz .top-news-highlight .right { margin-top: 1em;  height: 250px;}

*/
  #shop_all .content-sec .item {
    width: 45%;
    margin-right: 1em;
  }
}
@media screen and (max-width: 600px) {
  #product-item #books_all .content-sec .item {
    width: 45%;
  }
  /* news highlight */
  /* #jp_quiz .top-news-highlight .main-display { display: block; } */
  #product-item .top-sec {
    display: block;
  }
  #product-item .top-sec .left {
    max-width: 320px;
    margin: 0 auto;
  }
  #product-item .top-sec .left img {
    width: 100%;
  }
  #product-item .top-sec .right h1 {
    font-size: 2em;
    margin: 1em 0;
    max-width: 500px;
    text-align: center;
  }
  #product-item .top-sec .right h4 {
    font-size: 1.1em;
    max-width: 400px;
    text-align: center;
  }
  #product-item .top-sec .right span.price {
    font-size: 1.4em;
    display: block;
    margin-bottom: 1em;
    display: block;
    text-align: center;
  }
  #product-item a.price_btn {
    margin: 0 auto;
  }
  #product-item .book-description {
    margin-top: 2em;
  }
}
@media screen and (max-width: 500px) {
  /* news highlight */
/* #jp_quiz .top-news-highlight .main-display { display: block; } */
}
