/* ===========
    Home Page CSS  
    ==========*/
*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
:root{
    --gray: rgb(196, 196, 196);
    --peach: rgb(255, 122, 92);
    --dark-gray: rgb(149, 173, 190);
    --beige: rgb(245, 244, 240);
    --light-black: rgb(26, 26, 26);
    --medium-gray: rgb(63,63,63);
    --roboto: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}
@font-face {
    font-family: "lora";
    src: url(Lora/Lora-VariableFont_wght.ttf) format("truetype");
}
/* ======
   header 
======= */
/* CHANGED: was "1fr auto 1fr auto" (4 columns) — now a clean 1:2:1 grid with the
   title centered in the middle column, per the requested layout. */
header{
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    margin-top: 3%;
    /* gap: 1%; */
}
#header-socialmediaicons{
    display: flex;
    justify-content: space-between;
    /* gap: 2%; */
    justify-content: center;
    align-items: center;
}
.icon-divs{
    height: 40px;
    width: 40px;
    border: 1px solid var(--gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.icon-divs a img{
    height: 20px;
}
.orange-text{
    color: var(--peach);
}
/* CHANGED: center column content (logo/title) so it sits in the true middle of its grid cell */
#website-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#website-title h1{
    font-family: lora;
    font-size: 25px;
}
#website-title-h2{
    font-size: 14px;
    color: var(--gray);
    letter-spacing: 3.6px;
    padding-left: 2px;
    font-family: lora;
}
/* NEW: wraps the search bar + cart button so they sit together, centered,
   in the left grid column (previously these were two separate top-level
   grid columns pinned to the far right). */
#header-search-cart{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
#header-searchbar{
    display: flex;
    align-items: stretch;
}
/* BEGIN: Book Search & Cart Feature - functional header search input */
#header-search-form{
    display: flex;
}
/* CHANGED: fixed height (was percentage padding, which made the input shorter
   than the search-icon button) so the input + icon button line up into one
   seamless rounded pill. */
#header-search-input{
    background-color: white;
    border: 2px solid gainsboro;
    height: 40px;
    padding: 0 16px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-family: var(--roboto);
    width: 200px;
    box-sizing: border-box;
    margin-bottom: 0;
}
#header-search-input:focus{
    outline: 2px solid var(--dark-gray);
}
/* CHANGED: same fixed 40px height as the input, and a fixed square width so
   the icon side is proportional to the text side, together forming one
   complete rounded rectangle. */
#header-magnifying-glass{
    background-color: var(--dark-gray);
    height: 40px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    box-sizing: border-box;
}
#header-search-button{
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}
/* ====
   header cart icon
   ==== */
#header-cart{
    display: flex;
    align-items: center;
}
/* CHANGED: label text removed (icon-only now), so padding/size were adjusted
   to keep the button a comfortable tap target instead of shrinking to the emoji. */
#cart-icon{
    position: relative;
    background-color: var(--beige);
    border: 1px solid var(--gray);
    border-radius: 50%;
    height: 40px;
    width: 40px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#cart-count-badge{
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--peach);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* END: Book Search & Cart Feature - functional header search input */
/* NEW: was missing entirely from the merged stylesheet — the Login/My Orders/
   Admin Panel buttons were rendering with no background/border before this. */
#login-register{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#header-greeting{
    font-family: var(--roboto);
    font-size: 14px;
    color: var(--medium-gray);
    margin-right: 4px;
}
/* NEW: also missing from the merged stylesheet (only #blue-button existed). */
#white-button{
    background-color: gainsboro;
    color: black;
}
/* =====
    navbar
    ====*/
#navbar{
    margin-top: 3%;
    border-top: 1px solid var(--gray);
    display: flex;
    justify-content: center;
    align-items: center;
}
#tabs{
    cursor: pointer;
    width: 40%;
    display: flex;
    justify-content: center;
    margin: 1.3% 0% 
}
#tabs a{
    color: black;                                                                                                           
    text-decoration: none;
    margin: 0% 5%;
    font-family: lora;
}
#tabs .active-tab-hover:hover{
    color: var(--dark-gray);

}
/* ================
   img-under-navbar section
================ */
#img-under-navbar{
  background-image: url("images/woman-reading.png");
  min-height: 100vh;
  background-attachment: fixed;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
#img-under-navbar-div{
    padding: 10% 0% 0% 12%;
    animation: rise_up 0.7s ease forwards;
}
#img-under-navbar #img-under-navbar-div h2{
    font-size: 50px;
    font-family: lora;
    font-weight: 500;
}
#img-under-navbar #img-under-navbar-div p{
    font-size: 16px;
    font-family: var(--roboto);
    color: var(--light-black);
}
.button{
    padding: 1%;
    border-radius: 5px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    font-family: var(--roboto);
    text-decoration: none;
}
#login-register a{
    padding: 2.5% 6%;
}
#blue-button{
    background-color: var(--dark-gray);
    color: white;
}
#logout-form button{
    width: 100px;
    height: 35px;
}
@keyframes rise_up {
    from{
        transform: translateY(30px);
    }
    to{
        transform: translateY(0px);
    }
}
/* =========
   genres section
========== */
#genres{
    display: flex;
    justify-content: center;
    margin-bottom: 7%;
}
#genre-parent{
    width: 80%;
    display: flex;
    justify-content: center;
    text-align: center;
}
.genre-cards{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.genre-cards h2{
    margin: -18% 0% 5% 0%;
    font-family: lora;
    font-weight: 500;
}
.genre-logos{
    height: 120px;
    width: 120px;
    border-radius: 50%;
    background-color: var(--beige);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: translateY(-60px); 
    z-index: 2;
}
.genre-logos img{
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background-color: var(--beige);

}
.genre-text{
    padding: 3%;
    color: gray;
    font-family: var(--roboto);
}
/* =====
   counter
======= */
#counter-section{
    background-color: var(--beige);
    display: flex;
    justify-content: center;
    align-items: center;
}
#counter-parent{
    width: 80%;
    margin: 5% 0%;
    display: flex;
    justify-content: space-around;
}
.counter-div{
    text-align: center;
}
.counter{
    font-size: 40px;
    font-family: lora;
    font-weight: 300;
}
.counter-text{
    color: gray;
    font-family: var(--roboto);
}
.reveal {
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
    transform: translateY(0);
}
/* ====
   author
====== */
#authors{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5% 0%;
}
#author-parent{
    width: 80%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
#author-image{
    width: 50%;
    text-align: center;
}
#author-image img{
    width: 70%;
}
#author-content{
    width: 50%;
    padding: 7% 14% 7% 0%;
    animation: rise_up 0.7s ease forwards;
}
#author-content p{
    font-family: var(--roboto);
    font-size: 14px;
}
#author-content h2{
    font-size: 40px;
    font-family: lora;
    font-weight: 500;
}
.author-text{
    font-size: 18px;
    color: gray;
    line-height: 22px;
}
#author-content button{
    margin-top: 3%;
    background: var(--dark-gray);
    color: white;
    border: none;
    padding: 2%;
    font-size: 16px;
}
/* ============
   new release section
    ============ */
#new-release{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0% 0% 5% 0%;
}
#release-parent{
    display: flex;
    width: 98%;
    justify-content: center;
    flex-direction: column;
}
.release-row{
    display: flex;
    justify-content: space-between; 
    margin: 1% 0%;
}
#release-row-1{
    margin-top: 4%;
}
.book{
    display: flex;
    justify-content: center;
    width: 32%;
    text-decoration: none; /* BEGIN/END: Book Search & Cart Feature - .book is now an <a> */
    color: inherit;
}
#release-heading{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#release-heading p{
    font-family: var(--roboto);
}
.book-card{
    width: 50%;
    display: flex;
    align-items: center;
}
.book-content{
    width: 50%;
    padding: 4%;
    display: flex;
    flex-direction: column;
    background-color: var(--beige);
}
.book-content:hover{
    background-color: var(--dark-gray);
    transition: color 0.3s ease;
    cursor: pointer;
}
.book-content:hover > h3, 
.book-content:hover p:nth-of-type(1), 
.book-content:hover p:nth-of-type(2){
    color: white;
    transition: color 0.3s ease;

}
.book-content >*{
    margin-bottom: 10%;
    font-family: lora;
}
.book-card img{
    width: 100%;
    aspect-ratio: 7/8;
}
#release-heading h2{
    font-size: 40px;
    font-weight: lighter;
    font-family: lora;
    margin: 1% 0%;
}
.book-content h3{
    font-size: 23px;
    font-weight: 500;
}
.book-content p:nth-of-type(2){
    color: gray;
}
/* =============
    Testimonials Section 
    =============*/
#testimonials{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0% 0% 5% 0%; 
}
#testimonials-heading{
    width: 100%;
    background-color: var(--dark-gray);
    background-image: url(images/carousel-3.jfif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#testimonials-heading p{
    color: white;
    margin: 5% 0% 2% 0%; 
    font-family: var(--roboto);
}
#testimonials-heading h2{
    color: red;
    margin-bottom: 10% ;
    font-family: lora;
    font-weight: 500;
    font-size: 40px;
}
#testimonials-slider{
    width: 70%;
    transform: translateY(-50%  ); 
    z-index: 2;
    font-family: var(--roboto);
    background: transparent;
}
.slider {
    overflow: hidden;
    width: 100%;
}
.slider-row {
    display: flex;
    gap: 20px;
    transition: transform 1.2s ease-in-out;
}
.card {
    min-width: calc(33.333% - 14px);
    background-color: #fff;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}
.card-text p{
    padding: 8% 5%;
    color: gray;
    line-height: 18px;
}
.card-div{
    display: flex;
    justify-content: center;
    gap: 5%;
    margin: 2%;
    width: 70%;
}
.card-div-img img{
    width: 100%;
    border-radius: 50% ;
    aspect-ratio: 1/1;
}
.card-div-img{
    width: 35%;
}
.card-div-author{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column; 

}
/*=====
   footer 
======*/
footer {
    background-color: var(--light-black);
    border: 1px solid black;
    display: flex;
    justify-content: center;
    color: white;
}
.footer-parent{
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3%;
}
.footer-div{
    margin: 5% 0%;
    flex: 1;
}
.footer-div h2{
    font-size: 20px;
    margin-bottom: 10%;
}
.footer-div ul li{
    list-style: none;
    margin: 0% 0% 3% 5%;
}
.footer-div a{
    color: white;
    text-decoration: none;
}
.footer-icons  a img{
    width: 100%;
}
#connect-logos{
    display: flex;
    justify-content: center;
    gap: 3%;
    margin: 5% 0% 0% 0%;
}
.footer-icons{

    width: 20%;
}

/* ===========
    About Page CSS
    Welcom Section
    ========== */

#welcome{
  display: flex;
  justify-content: center;
}
#welcome-div{
  width: 55%;
  margin: 5% 0%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#orange-welcome-text{
  margin-bottom: 2%;
  font-family: var(--roboto);
}
.welcome-heading{
  font-family: lora;
  font-weight: 300;
  font-size: 40px;
  margin-bottom: 5%;
}
.welcome-text{
  font-family: var(--roboto);
  color: gray;
  margin-bottom: 3%;
  line-height: 24px;
}
#welcome-div blockquote{
  font-family: lora;
  font-weight: 200;
  font-size: 28px;
  color: var(--medium-gray);
  margin-bottom: 3%;
  padding: 0% 5%;
}
/* =====
    Writers 
    ===== */
#writers{
    display: flex;
    justify-content: center;
    background-color: var(--beige);
    padding: 5% 0%;
}
#writers-parent{
    width: 65%;
}
#writers-heading{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#writers-heading p{
    font-family: var(--roboto);
    margin-bottom: 2%;
}
#writers-cards-div{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.writers-row{
    display: flex;
    justify-content: center;
    gap: 3%;
    margin-bottom: 3%;
}
.writers-card{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px; 
    background-color: white;
}
.writer-img img{
    width: 100%;
    aspect-ratio: 7/8;
}
.writers-info{
    padding: 8%;
    text-align: center;
}
.writers-info h2{
    font-family: lora;
    font-weight: 300;
    margin-bottom: 5%;
}
.writers-info p{
    font-family: var(--roboto);
    color: gray;
    font-size: 15px;
    margin-bottom: 8%;
}
.writers-info button{
    margin-top: 3%;
    background: var(--dark-gray);
    color: white;
    border: none;
    padding: 5%;
    cursor: pointer;
}
.writers-card:hover .writers-info h2{
    color: var(--dark-gray);
    transition: color 0.3s ease;
}
.writers-card:hover {
    transform: scale(1.02) translateY(-5px);
    transition: transform 0.4s ease;  
}
/* =======
  Top Sellers
  ======= */
#top-sellers{
  display: flex;
  justify-content: center;
  margin-bottom: 3%;
}
#seller-parent{
  width: 65%;
}
#seller-heading{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#seller-heading p{
  font-family: var(--roboto);
  margin: 5% 0% 2% 0%;
}
#seller-book-card{
  display: flex;
  justify-content: center;
  align-self: center;
  flex-direction: column;
}
.seller-rows{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3%;
  margin-bottom: 5%;
}
.seller-book{
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--beige);
}
.seller-book-img{
  margin-bottom: -2%;
}
.seller-book-img img{
  width: 100%;
  aspect-ratio: 4/5;
}
.seller-book-info{
  background-color: var(--beige);
  width: 100%;
  padding: 3% 5%;
  font: lora;
}
.seller-book-info h2{
  line-height: 28px;
}
.seller-book-info p:nth-of-type(2){
  color: gray;
}
.seller-book-info > *{
  margin-bottom: 5%;
}
#seller-genre{
  flex: 1;
  color: var(--medium-gray);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
#seller-genre ul li{
  list-style: none;
  border-bottom: 1px solid gainsboro;
  padding: 5% 0%;
  cursor: pointer;
}
.seller-book-info:hover{
    background-color: var(--dark-gray);
    transition: color 0.3s ease;
    cursor: pointer;
}
.seller-book-info:hover > h2, 
.seller-book-info:hover p:nth-of-type(1), 
.seller-book-info:hover p:nth-of-type(2){
    color: white;
    transition: color 0.3s ease;
}
/*===========
    Contact Us CSS
   contact-img section
   ============= */
#contact-img{
  background-image: url("images/about-1.jpeg");
  min-height: 30vh;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
   gap: 1rem;
}
#contact-content{
    margin: 5%;
    text-align: center;
}
#contact-content p{
    font-family: var(--roboto);
    color: gray;
    font-size: 12px;
}
#contact-content h1{
    font-size: 40px;
}

/* Logos Section + Contact form styling now lives entirely in the
   "REFINEMENTS" block near the end of this file — having two separate rule
   sets for #logo-section/#form-parent/etc. was fighting itself and causing
   the background/whitespace bugs on the contact page. */
input,
textarea {
    border-bottom: 1px solid gainsboro;
    border-top: none;
    border-left: none;
    border-right: none;
    margin-bottom: 8%;
    padding: 8% 2%;
    width: 100%;
}
#form-button {
    padding: 4%;
    cursor: pointer;
    color: white;
    background-color: var(--dark-gray);
    border: none;
    font-size: 14px;
}
.error{
    color: red;
}


/* =========
    FAQs Section
   ========= */
#faqs{
    margin: 5% 0%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#accordion{
    margin-top: 3%;
    width: 60%;
}
/*=====
   footer 
======*/
footer {
    background-color: var(--light-black);
    border: 1px solid black;
    display: flex;
    justify-content: center;
    color: white;
}
.footer-parent{
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3%;
}
.footer-div{
    margin: 5% 0%;
    flex: 1;
}
.footer-div h2{
    font-size: 20px;
    margin-bottom: 10%;
}
.footer-div ul li{
    list-style: none;
    margin: 0% 0% 3% 5%;
}
.footer-div a{
    color: white;
    text-decoration: none;
}
.footer-icons  a img{
    width: 100%;
}
#connect-logos{
    display: flex;
    justify-content: flex-start;
    gap: 3%;
    margin: 5% 0% 0% 0%;
}
.footer-icons{
    width: 20%;
}

/* ===========================================================
    BEGIN: Book Search & Cart Feature CSS
    (catalog overlay, cart drawer, book details, checkout)
   =========================================================== */

/* -----
   Catalog search/sort overlay (index.html)
   ----- */
#catalog-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.85);
    z-index: 100;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
}
#catalog-overlay.open{
    display: flex;
}
#catalog-panel{
    background-color: white;
    width: 85%;
    max-width: 1100px;
    margin: 4% auto;
    padding: 3%;
    border-radius: 10px;
}
#catalog-panel-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3%;
}
#catalog-panel-header h2{
    font-family: lora;
    font-weight: 500;
}
#catalog-close{
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
#catalog-controls{
    display: flex;
    gap: 3%;
    margin-bottom: 3%;
}
#catalog-search-input,
#catalog-sort-select{
    padding: 2%;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-family: var(--roboto);
}
#catalog-search-input{
    flex: 2;
}
#catalog-sort-select{
    flex: 1;
}
#catalog-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 4%;
}
.catalog-card{
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--beige);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.catalog-card:hover{
    transform: translateY(-5px);
}
.catalog-card-img img{
    width: 100%;
    aspect-ratio: 7/8;
    object-fit: cover;
}
.catalog-card-info{
    padding: 8%;
    font-family: lora;
}
.catalog-card-info p{
    font-family: var(--roboto);
    color: gray;
    font-size: 14px;
}
#catalog-no-results{
    grid-column: 1 / -1;
    text-align: center;
    color: gray;
    padding: 5% 0%;
}

/* -----
   Cart drawer (all pages)
   ----- */
#cart-drawer-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.5);
    z-index: 199;
}
#cart-drawer-overlay.open{
    display: block;
}
#cart-drawer{
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    max-width: 90%;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
}
#cart-drawer.open{
    right: 0;
}
#cart-drawer-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5%;
    border-bottom: 1px solid var(--gray);
}
#cart-drawer-header h2{
    font-family: lora;
    font-weight: 500;
}
#cart-drawer-close{
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
}
#cart-drawer-items{
    flex: 1;
    overflow-y: auto;
    padding: 5%;
}
#cart-empty-message{
    color: gray;
    text-align: center;
    margin-top: 20%;
    font-family: var(--roboto);
}
.cart-item{
    display: flex;
    align-items: center;
    gap: 4%;
    margin-bottom: 6%;
    padding-bottom: 6%;
    border-bottom: 1px solid var(--beige);
}
.cart-item img{
    width: 55px;
    aspect-ratio: 7/8;
    object-fit: cover;
}
.cart-item-info{
    flex: 1;
}
.cart-item-info h4{
    font-family: lora;
    font-size: 15px;
}
.cart-item-info p{
    color: gray;
    font-size: 13px;
}
.cart-item-qty{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4%;
}
.cart-item-qty button{
    border: 1px solid var(--gray);
    background: white;
    width: 22px;
    height: 22px;
    cursor: pointer;
    border-radius: 3px;
}
.cart-item-remove{
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: gray;
}
#cart-drawer-footer{
    padding: 5%;
    border-top: 1px solid var(--gray);
}
#cart-drawer-total{
    font-family: lora;
    font-size: 18px;
    margin-bottom: 4%;
}
#cart-drawer-checkout{
    width: 100%;
    background-color: var(--dark-gray);
    color: white;
    padding: 4%;
}
#cart-drawer-checkout:disabled{
    background-color: var(--gray);
    cursor: not-allowed;
}

/* -----
   Book details page
   ----- */
#book-details{
    display: flex;
    justify-content: center;
    margin: 5% 0%;
}
#book-details-parent{
    width: 70%;
    display: flex;
    gap: 6%;
}
#book-details-image{
    width: 35%;
}
#book-details-image img{
    width: 100%;
    aspect-ratio: 7/8;
    object-fit: cover;
    border-radius: 5px;
}
#book-details-info{
    width: 65%;
}
#book-details-info h1{
    font-family: lora;
    font-weight: 500;
    font-size: 36px;
    margin: 2% 0%;
}
#book-details-author{
    color: gray;
    margin-bottom: 4%;
    font-family: var(--roboto);
}
#book-details-popularity{
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 4%;
    font-family: var(--roboto);
}
#book-details-description{
    line-height: 24px;
    color: var(--medium-gray);
    margin-bottom: 6%;
    font-family: var(--roboto);
}
#book-details-qty{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5%;
}
#book-details-qty label{
    font-family: var(--roboto);
    margin-right: 5px;
}
#book-details-qty button{
    border: 1px solid var(--gray);
    background: white;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 3px;
}
#book-quantity{
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid var(--gray);
}
#add-to-cart-button{
    background-color: var(--dark-gray);
    color: white;
    padding: 3% 6%;
}
#book-not-found{
    text-align: center;
    width: 100%;
    padding: 5% 0%;
}
#book-not-found h2{
    font-family: lora;
    margin-bottom: 2%;
}
#book-not-found p{
    color: gray;
    margin-bottom: 4%;
    font-family: var(--roboto);
}

/* -----
   Checkout page
   ----- */
#checkout-section{
    display: flex;
    justify-content: center;
    margin: 5% 0%;
}
#checkout-parent{
    width: 70%;
}
#checkout-parent > h1{
    font-family: lora;
    font-weight: 500;
    margin-bottom: 1%;
}
#checkout-demo-notice{
    color: var(--peach);
    font-family: var(--roboto);
    font-size: 14px;
    margin-bottom: 4%;
}
#checkout-layout{
    display: flex;
    gap: 6%;
}
#checkout-summary{
    width: 35%;
    background-color: var(--beige);
    padding: 5%;
    height: fit-content;
}
#checkout-summary h2{
    font-family: lora;
    font-weight: 500;
    margin-bottom: 5%;
}
.checkout-summary-item{
    display: flex;
    justify-content: space-between;
    font-family: var(--roboto);
    margin-bottom: 3%;
}
#checkout-summary-total{
    font-family: lora;
    font-size: 18px;
    margin-top: 5%;
    border-top: 1px solid var(--gray);
    padding-top: 5%;
}
#checkout-empty-message{
    font-family: var(--roboto);
    color: gray;
}
#checkout-form{
    width: 65%;
}
#checkout-form h2{
    font-family: lora;
    font-weight: 500;
    margin: 4% 0% 2% 0%;
}
#checkout-form input{
    border: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    padding: 3%;
    margin-bottom: 4%;
    width: 100%;
    font-family: var(--roboto);
}
#checkout-card-row{
    display: flex;
    gap: 4%;
}
#checkout-card-row input{
    flex: 1;
}
#checkout-place-order{
    background-color: var(--dark-gray);
    color: white;
    padding: 3% 6%;
    margin-top: 2%;
}
#checkout-place-order:disabled{
    background-color: var(--gray);
    cursor: not-allowed;
}
#checkout-confirmation{
    text-align: center;
    padding: 8% 0%;
}
#checkout-confirmation h2{
    font-family: lora;
    margin-bottom: 2%;
}
#checkout-confirmation p{
    color: gray;
    margin-bottom: 5%;
    font-family: var(--roboto);
}

@media (max-width: 900px){
    #book-details-parent{
        flex-direction: column;
    }
    #book-details-image, #book-details-info{
        width: 100%;
    }
    #checkout-layout{
        flex-direction: column;
    }
    #checkout-summary, #checkout-form{
        width: 100%;
    }
}

/* ===========================================================
    END: Book Search & Cart Feature CSS
   =========================================================== */

/* ===== Merged from branch1: Auth Pages (Login/Register) ===== */
/* ===========
    Auth Pages (Login / Register)
    =========== */
#auth-section{
    display: flex;
    justify-content: center;
    padding: 4% 0% 6% 0%;
    background-color: var(--beige);
}
#auth-parent{
    background-color: white;
    width: 40%;
    min-width: 320px;
    padding: 4% 5%;
}
#auth-parent h2, #auth-parent p{
    text-align: center;
}
#auth-parent h2{
    font-family: lora;
    font-weight: 300;
    font-size: 30px;
    margin-bottom: 3%;
}
#auth-parent p.auth-subtext{
    font-family: var(--roboto);
    color: gray;
    margin-bottom: 8%;
}
#auth-parent label{
    display: block;
    font-family: var(--roboto);
    font-size: 13px;
    color: var(--medium-gray);
    margin-bottom: 2%;
}
#auth-message{
    font-family: var(--roboto);
    font-size: 14px;
    margin-bottom: 4%;
    display: none;
    padding: 3% 4%;
    border-radius: 3px;
}
#auth-message.error{
    display: block;
    color: #a12626;
    background-color: #fdeaea;
}
#auth-message.success{
    display: block;
    color: #1c6b3c;
    background-color: #e9f7ee;
}
#auth-parent .button{
    width: 100%;
    padding: 3%;
    margin-top: 2%;
}
#auth-switch{
    margin-top: 6%;
    font-family: var(--roboto);
    font-size: 14px;
    color: gray;
    text-align: center;
}
#auth-switch a{
    color: var(--dark-gray);
    font-weight: bold;
    text-decoration: none;
}

/* Checkout payment-method selector (EasyPaisa/JazzCash/Cash) */
.pay-opt { display: block; margin: 6px 0; cursor: pointer; }
.pay-info { background: #f1f5f9; border-radius: 6px; padding: 10px 12px; margin: 8px 0; font-size: 14px; }

/* ============================================================
   PREMIUM THEME LAYER — "Publishing House"
   Appended last so it retones the storefront to match the admin:
   deep emerald + warm brass on ivory/ink, Lora serif display.
   Retones via :root then polishes high-visibility components.
   ============================================================ */

:root {
    --gray: #e4dac8;
    --peach: #b0894c;          /* accent → brass */
    --dark-gray: #1f4d3a;      /* primary buttons → emerald */
    --beige: #f3eee4;          /* app background → warm ivory */
    --light-black: #201e1a;    /* dark sections/footer → warm ink */
    --medium-gray: #4b463d;

    --emerald: #1f4d3a;
    --emerald-deep: #17392b;
    --brass: #b0894c;
    --brass-bright: #c39c58;
    --ivory: #f3eee4;
    --surface: #fffdf8;
    --ink: #201e1a;
    --muted: #8c8474;
    --line: #e4dac8;
    --p-shadow: 0 14px 40px -18px rgba(23, 57, 43, 0.30), 0 3px 10px -6px rgba(32, 30, 26, 0.12);
}

body {
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--roboto);
    -webkit-font-smoothing: antialiased;
}

/* ---- Buttons ---- */
.button, #blue-button, #white-button, #form-button, .cart-checkout-btn {
    border-radius: 999px !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 13px 28px !important;
    font-size: 15px !important;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}
#blue-button, #form-button {
    background: var(--emerald) !important;
    color: #fdfaf2 !important;
    border: none !important;
    box-shadow: 0 10px 24px -12px rgba(31, 77, 58, 0.8);
}
#blue-button:hover, #form-button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -14px rgba(31, 77, 58, 0.85);
}
/* Secondary header button (Login / Admin Panel) sits on the LIGHT header,
   so it must read as emerald outline — not white text. */
#white-button {
    background: transparent !important;
    color: var(--emerald) !important;
    border: 1.5px solid var(--emerald) !important;
}
#white-button:hover { background: var(--emerald) !important; color: #fdfaf2 !important; }

/* ---- Header ---- */
#header-socialmediaicons { background: var(--emerald-deep); }
#website-title, #website-title * { font-family: lora; letter-spacing: 0.5px; }
#header-search-button { background: var(--emerald) !important; border-radius: 0 10px 10px 0 !important; }
#header-search-input { border-radius: 10px 0 0 10px !important; }
#cart-count-badge { background: var(--brass) !important; }
#navbar { border-top: 1px solid var(--line); }
#tabs a {
    position: relative;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.18s ease;
}
#tabs a:hover { color: var(--emerald); }

/* ---- Hero: emerald wash over the photo + editorial type ---- */
#img-under-navbar {
    position: relative;
    background-attachment: scroll;
}
#img-under-navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 40, 32, 0.86) 0%, rgba(23, 57, 43, 0.66) 45%, rgba(32, 30, 26, 0.42) 100%);
}
#img-under-navbar-div { position: relative; z-index: 1; color: #fdfaf2; max-width: 640px; }
#img-under-navbar-div h2 {
    font-family: lora;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.5px;
    color: #fdfaf2;
}
#img-under-navbar-div h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 22px 0 6px;
    background: linear-gradient(90deg, var(--brass-bright), transparent);
}
#img-under-navbar-div p { color: rgba(253, 250, 242, 0.86); font-size: 17px; line-height: 1.7; }

/* ---- Section headings: refined serif ---- */
#release-heading, #seller-heading, #writers-heading, #testimonials-heading,
.welcome-heading, #genres h2, #authors h2, #contact-content h2 {
    font-family: lora;
    letter-spacing: -0.3px;
}
.orange-text, #orange-welcome-text, .blue-text { color: var(--brass) !important; }

/* ---- Cards: surface, hairline, soft lift, serif titles, brass price ---- */
.genre-cards, .book-card, .card, .writers-card, .seller-book, .catalog-card, .card-div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--p-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.genre-cards:hover, .book-card:hover, .writers-card:hover, .seller-book:hover, .catalog-card:hover, .card:hover {
    transform: translateY(-4px);
    border-color: var(--brass);
    box-shadow: 0 22px 48px -20px rgba(23, 57, 43, 0.38);
}
.book-content h2, .book-content h3, .card-div h2, .card-div h3,
.writers-info h2, .seller-book-info h2, .catalog-card-info h2, .genre-cards h2 {
    font-family: lora;
    letter-spacing: -0.2px;
}

/* ---- Footer ---- */
footer {
    background: linear-gradient(180deg, var(--emerald-deep), #0f2820) !important;
    border: none !important;
    color: #e9e3d4 !important;
}
footer h2, footer h3 { font-family: lora; color: #fdfaf2; }
.footer-icons { transition: transform 0.15s ease; }
.footer-icons:hover { transform: translateY(-2px); }

/* ---- Forms: refined inputs, emerald focus ---- */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], textarea, select {
    font-family: var(--roboto);
}
#checkout-form input, #form-section input, .form-div input, textarea,
#login-form input, #register-form input {
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#checkout-form input:focus, textarea:focus, .form-div input:focus,
input[type="email"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: var(--emerald) !important;
    box-shadow: 0 0 0 3px rgba(31, 77, 58, 0.12) !important;
}

/* ---- Checkout payment selector polish (from earlier task) ---- */
.pay-opt { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color 0.15s ease; }
.pay-opt:hover { border-color: var(--brass); }
.pay-info { background: #eef2ee; border: 1px solid #d5e0d8; border-left: 3px solid var(--emerald); }

/* ---- Catalog overlay + cart drawer surfaces ---- */
#catalog-panel, #cart-drawer { background: var(--surface); }
#catalog-panel-header, #cart-drawer-header { border-bottom: 1px solid var(--line); }
#catalog-search-input, #catalog-sort-select { border: 1px solid var(--line); border-radius: 10px; }
.catalog-card { border-radius: 12px; }

/* ============================================================
   BOOKS (shop) PAGE
   ============================================================ */
#books-page { max-width: 1200px; margin: 0 auto; padding: 56px 24px 80px; }

#books-hero { text-align: center; margin-bottom: 40px; }
.books-eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: var(--brass); margin-bottom: 12px;
}
#books-hero h1 {
    font-family: lora; font-size: clamp(38px, 5vw, 56px); font-weight: 600;
    letter-spacing: -0.5px; color: var(--ink); line-height: 1.05;
}
#books-hero h1::after {
    content: ""; display: block; width: 64px; height: 3px; margin: 20px auto 0;
    background: linear-gradient(90deg, var(--brass-bright), var(--emerald));
}
.books-sub { max-width: 560px; margin: 18px auto 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

#books-toolbar {
    display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
    margin-bottom: 40px;
}
#books-toolbar input, #books-toolbar select {
    padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px;
    font-family: var(--roboto); font-size: 14px; background: var(--surface); color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#books-toolbar input { min-width: 260px; }
#books-toolbar input:focus, #books-toolbar select:focus {
    outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(31, 77, 58, 0.12);
}

#books-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px;
}

.books-card {
    display: flex; flex-direction: column; overflow: hidden; padding: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--p-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.books-card:hover { transform: translateY(-5px); border-color: var(--brass); box-shadow: 0 24px 50px -22px rgba(23, 57, 43, 0.4); }

.books-card-cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #efe8db; }
.books-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.books-card:hover .books-card-cover img { transform: scale(1.05); }

.books-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.books-card-genre {
    align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--emerald); background: rgba(31, 77, 58, 0.08); padding: 3px 9px; border-radius: 999px;
}
.books-card-body h3 { font-family: lora; font-size: 18px; font-weight: 600; line-height: 1.25; margin: 2px 0 0; }
.books-card-body h3 a { color: var(--ink); text-decoration: none; }
.books-card-body h3 a:hover { color: var(--emerald); }
.books-card-author { color: var(--muted); font-size: 13.5px; }
.books-card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.books-card-price { font-family: lora; font-size: 18px; font-weight: 600; color: var(--brass); }
.books-add-btn {
    border: none; cursor: pointer; font-family: var(--roboto); font-size: 12.5px; font-weight: 600;
    padding: 9px 14px; border-radius: 999px; background: var(--emerald); color: #fdfaf2;
    transition: background 0.18s ease, transform 0.08s ease;
}
.books-add-btn:hover { background: var(--emerald-deep); }
.books-add-btn:active { transform: translateY(1px); }
.books-add-btn.added { background: var(--brass); }

#books-empty, #books-no-results { text-align: center; color: var(--muted); font-style: italic; padding: 40px 0; grid-column: 1 / -1; }

@media (max-width: 600px) {
    #books-toolbar input { min-width: 0; flex: 1 1 100%; }
    #books-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
}

/* Hero "View all books" — now a link to /books, styled like the primary button */
#hero-view-all {
    display: inline-block; text-decoration: none;
    border-radius: 999px; font-weight: 600; letter-spacing: 0.3px;
    padding: 13px 28px; font-size: 15px;
    background: var(--emerald); color: #fdfaf2; border: none;
    box-shadow: 0 10px 24px -12px rgba(31, 77, 58, 0.8);
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#hero-view-all:hover { transform: translateY(-2px); background: var(--emerald-deep); box-shadow: 0 16px 32px -14px rgba(31, 77, 58, 0.85); }

/* ---- Header account buttons: keep them compact so the row never overflows ---- */
#login-register {
    justify-content: flex-end !important;
    flex-wrap: wrap;
    gap: 8px;
}
#login-register .button,
#login-register #blue-button,
#login-register #white-button {
    padding: 8px 15px !important;
    font-size: 13px !important;
}
#login-register #logout-form { margin: 0; display: inline-flex; }
#header-greeting { white-space: nowrap; }

/* ============================================================
   REFINEMENTS — headings, orders, contact, testimonials,
   author cards, qty stepper, payment methods, smooth scroll
   ============================================================ */
html { scroll-behavior: smooth; }

/* ---- Shared page heading (Books-page style, no image) ---- */
.page-hero { text-align: center; padding: 64px 24px 8px; max-width: 1200px; margin: 0 auto; }
.page-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.page-hero h1 { font-family: lora; font-size: clamp(36px, 5vw, 54px); font-weight: 600; letter-spacing: -0.5px; color: var(--ink); line-height: 1.05; }
.page-hero h1::after { content: ""; display: block; width: 64px; height: 3px; margin: 20px auto 0; background: linear-gradient(90deg, var(--brass-bright), var(--emerald)); }

/* ---- My Orders (professional order cards + items table) ---- */
.orders-section { max-width: 1000px; margin: 0 auto; padding: 30px 24px 80px; }
.orders-empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 16px; }
.orders-empty a { color: var(--emerald); font-weight: 600; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--p-shadow); margin-bottom: 24px; overflow: hidden; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; background: var(--surface-2, #faf6ee); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.order-card-meta { display: flex; align-items: baseline; gap: 14px; }
.order-id { font-family: lora; font-size: 18px; font-weight: 600; color: var(--ink); }
.order-date { font-size: 13px; color: var(--muted); }
.order-items-scroll { overflow-x: auto; }
.order-items { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.order-items th { text-align: left; padding: 12px 22px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.order-items td { padding: 12px 22px; border-bottom: 1px solid var(--line); color: var(--ink-soft, #4b463d); vertical-align: middle; }
.order-thumb { width: 40px; height: 56px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); }
.order-item-title { font-weight: 600; color: var(--ink); }
.order-items tfoot td { border-bottom: none; font-weight: 700; padding-top: 14px; }
.order-total-label { text-align: right; color: var(--ink); }
.order-total-value { color: var(--brass); font-family: lora; font-size: 16px; }

/* ---- Contact page (icons + full-length form) ---- */
/* CHANGED: section background is now the site's warm ivory/wheat tone (was
   plain white, which was nearly indistinguishable from the cards sitting on
   it and made the section look flat/broken against the rest of the site). */
#logo-section { padding: 46px 24px; background: var(--beige); }
/* CHANGED: wider (was max-width:1100px) — was looking compressed */
#logo-parent { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; max-width: 1280px; margin: 0 auto; width: auto; }
/* CHANGED: literal white now (was var(--surface), an off-white that barely
   contrasted against the section background) */
.logo-div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 18px; box-shadow: var(--p-shadow); }
.logo-div a { width: 56px; height: 56px; border-radius: 50%; background: rgba(31,77,58,0.08); display: flex; align-items: center; justify-content: center; }
.logo-div img { width: 26px; height: 26px; object-fit: contain; }
.logo-div p { font-size: 14px; color: var(--ink-soft, #4b463d); }
.blue-text { color: var(--brass) !important; font-weight: 600; }
/* CHANGED: same wheatish tone as #logo-section, and no stray background on
   #form-parent behind it (that leftover white was showing through the grid
   gap between the map and the form, which is what read as a "whitespace
   gap breaking the layout" between the two cards) */
#form-section { padding: 20px 24px 70px; background: var(--beige); }
/* CHANGED: narrower (was max-width:1280px, felt too wide) and this is now
   the ONE card itself — background/border/radius/shadow moved here from
   the two children below, so the map and form sit inside a single unified
   shape split exactly in half, with no gap between them. */
#form-parent { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1000px; margin: 0 auto; align-items: stretch; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--p-shadow); overflow: hidden; }

#maps { width: 100%; min-height: 500px; }
#maps iframe { width: 100%; height: 100%; min-height: 440px; display: block; }

.form-div { background: transparent; border: none; border-left: 1px solid var(--line); border-radius: 0; padding: 30px; box-shadow: none; width: auto; }
.form-div h2 { font-family: lora; font-size: 24px; margin-bottom: 8px; color: var(--ink); }
.form-div form label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 14px 0 6px; }
.form-div form input, .form-div form textarea { width: 100% !important; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--roboto); font-size: 15px; background: #fff; box-sizing: border-box; margin: 0; }
.form-div form input:focus, .form-div form textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(31,77,58,0.12); }
.form-div label.error { display: block; color: #c0392b; font-size: 12px; text-transform: none; letter-spacing: 0; margin-top: 4px; }
#form-button { margin-top: 18px; }
/* CHANGED: on narrow screens the two halves stack, so the divider needs to
   move from the left edge to the top edge */
@media (max-width: 800px) { #form-parent { grid-template-columns: 1fr; } .form-div { border-left: none; border-top: 1px solid var(--line); } }

/* ---- Testimonials (professional grid) ---- */
#testimonials { max-width: 1200px; margin: 0 auto; padding: 60px 24px 80px; }
#testimonials-heading { text-align: center; margin-bottom: 40px; }
#testimonials-heading p { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
#testimonials-heading h2 { font-family: lora; font-size: clamp(28px, 4vw, 40px); color: var(--ink); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.tcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px 24px; box-shadow: var(--p-shadow); display: flex; flex-direction: column; gap: 16px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tcard:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -20px rgba(23,57,43,0.34); }
.tcard-quote { position: absolute; top: 6px; right: 22px; font-family: Georgia, serif; font-size: 64px; line-height: 1; color: rgba(176,137,76,0.22); }
.tcard-text { font-size: 15px; line-height: 1.7; color: var(--ink-soft, #4b463d); font-style: italic; border: none; margin: 0; padding: 0; }
.tcard-author { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 8px; }
.tcard-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.tcard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tcard-initials { display: flex; align-items: center; justify-content: center; background: var(--emerald); color: #fdfaf2; font-family: lora; font-size: 20px; font-weight: 700; }
.tcard-meta { display: flex; flex-direction: column; }
.tcard-meta strong { font-size: 15px; color: var(--ink); }
.tcard-meta small { font-size: 13px; color: var(--brass); }
.testimonials-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---- Book details quantity stepper ---- */
#book-details-qty { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
#book-details-qty label { font-weight: 600; color: var(--ink); }
#book-details-qty .qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 44px; }
#book-details-qty .qty-stepper button { width: 44px; height: 44px; border: none; background: var(--surface-2, #faf6ee); color: var(--ink); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; }
#book-details-qty .qty-stepper button:hover { background: rgba(31,77,58,0.10); color: var(--emerald); }
#book-details-qty .qty-stepper input { width: 56px; height: 44px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; font-size: 16px; font-family: var(--roboto); -moz-appearance: textfield; background: #fff; margin: 0; padding: 0; }
#book-details-qty .qty-stepper input::-webkit-outer-spin-button, #book-details-qty .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Author profile cards (about page) ---- */
#writers-cards-div { display: flex; flex-direction: column; gap: 26px; }
.writers-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; width: 100%; }
.writers-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--p-shadow); overflow: hidden; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.writers-card:hover { transform: translateY(-4px); border-color: var(--brass); box-shadow: 0 22px 48px -20px rgba(23,57,43,0.34); }
.writer-img { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #efe8db; }
.writer-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.writers-info { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.writers-info h2 { font-family: lora; font-size: 19px; color: var(--ink); }
.writers-info p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.writers-info button { margin-top: auto; align-self: center; border: 1px solid var(--emerald); background: transparent; color: var(--emerald); font-weight: 600; font-size: 13px; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: all 0.18s ease; font-family: var(--roboto); }
.writers-info button:hover { background: var(--emerald); color: #fdfaf2; }

/* ---- Book cards on author page / top sellers (like books page) ---- */
#seller-book-card { max-width: 1200px; margin: 0 auto; }
.seller-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; }
.seller-book { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--p-shadow); overflow: hidden; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.seller-book:hover { transform: translateY(-4px); border-color: var(--brass); box-shadow: 0 22px 48px -20px rgba(23,57,43,0.34); }
.seller-book-img { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #efe8db; }
.seller-book-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seller-book-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.seller-book-info h2 { font-family: lora; font-size: 17px; color: var(--ink); line-height: 1.25; }
.seller-book-info p { font-size: 13.5px; color: var(--muted); }
.seller-book-info .orange-text { color: var(--brass) !important; font-family: lora; font-size: 17px; font-weight: 600; }

/* ---- Checkout payment methods (radio right + logos, professional) ---- */
.pay-methods { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 14px; }
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; margin: 0; }
.pay-opt:hover { border-color: var(--brass); }
.pay-opt:has(input:checked) { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(31,77,58,0.10); background: rgba(31,77,58,0.03); }
.pay-logo { width: 58px; height: 36px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.pay-cod { display: flex; align-items: center; justify-content: center; background: var(--emerald); color: #fdfaf2; font-weight: 800; font-size: 13px; letter-spacing: 0.5px; }
.pay-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.pay-opt input[type="radio"] { margin-left: auto; width: 20px; height: 20px; accent-color: var(--emerald); cursor: pointer; }
