:root {
    --bg: #f8f6f1;
    --surface: #ffffff;
    --surface-2: #f1eee7;
    --text: #151515;
    --muted: #6e6b65;
    --border: #e3dfd6;
    --accent: #b84b35;
    --accent-dark: #963c2a;
    --gold: #c99b4a;
    --dark: #171717;
    --shadow: 0 20px 60px rgba(0, 0, 0, .08);
    --radius: 18px;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body.dark {
    --bg: #111111;
    --surface: #1b1b1b;
    --surface-2: #242424;
    --text: #f5f2eb;
    --muted: #aaa59c;
    --border: #353535;
    --dark: #f5f2eb;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* ANNOUNCEMENT */

.announcement {
    background: var(--dark);
    color: #fff;
    font-size: 12px;
    letter-spacing: .04em;
}

.announcement-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}


/* HEADER */

.site-header {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
}

.header-main {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 205px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: var(--accent);
    color: white;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 800;
    border-radius: 8px 4px 8px 4px;
}

.logo strong {
    display: block;
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.1;
}

.logo small {
    display: block;
    font-size: 7px;
    letter-spacing: .16em;
    color: var(--muted);
    margin-top: 3px;
}

.header-search {
    flex: 1;
    max-width: 560px;
    margin: auto;
    position: relative;
    display: flex;
    background: var(--surface-2);
    border-radius: 100px;
    border: 1px solid transparent;
}

.header-search:focus-within {
    border-color: var(--accent);
}

.header-search input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 13px 20px;
    color: var(--text);
}

.header-search button {
    width: 50px;
    border: 0;
    background: transparent;
    font-size: 17px;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 14px;
    overflow: hidden;
    z-index: 100;
}

.suggestion {
    display: flex;
    padding: 12px 15px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.suggestion:hover {
    background: var(--surface-2);
}

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

.icon-btn {
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 18px;
    color: var(--text);
    position: relative;
}

.icon-btn:hover {
    background: var(--surface-2);
}

.count-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: #fff;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: 9px;
    display: grid;
    place-items: center;
}

.main-nav {
    border-top: 1px solid var(--border);
}

.nav-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.category-menu-btn {
    border: 0;
    background: transparent;
    font-weight: 700;
    color: var(--text);
}

.category-menu {
    position: absolute;
    top: 130px;
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow);
    z-index: 100;
}

.category-menu.open {
    display: grid;
}

.category-menu button {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 16px;
    color: var(--text);
    border-radius: 7px;
}

.category-menu button:hover {
    background: var(--surface-2);
}

.nav-links {
    display: flex;
    gap: 25px;
    font-size: 13px;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-deal {
    margin-left: auto;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
}

.mobile-search-close,
.search-mobile-btn {
    display: none;
}


/* HERO */

.hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(184, 75, 53, .12), transparent 30%),
        var(--bg);
    padding: 90px 0 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 70px;
}

.eyebrow,
.section-label {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: .16em;
    font-weight: 800;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
}

.eyebrow span {
    width: 25px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(48px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -.04em;
    max-width: 680px;
}

.hero h1 em {
    color: var(--accent);
    font-style: normal;
}

.hero-content > p {
    max-width: 560px;
    color: var(--muted);
    margin: 28px 0;
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    border: 0;
    border-radius: 100px;
    padding: 14px 23px;
    font-weight: 700;
    transition: .2s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

.hero-trust {
    display: flex;
    gap: 35px;
    margin-top: 50px;
}

.hero-trust div {
    display: grid;
}

.hero-trust strong {
    font-family: var(--serif);
    font-size: 22px;
}

.hero-trust span {
    font-size: 11px;
    color: var(--muted);
}

.hero-books {
    height: 510px;
    position: relative;
}

.book-hero-card {
    position: absolute;
    filter: drop-shadow(0 25px 25px rgba(0,0,0,.2));
    transition: transform .3s;
}

.book-hero-card:hover {
    transform: translateY(-10px) rotate(0deg);
}

.book-hero-one {
    left: 0;
    top: 80px;
    transform: rotate(-12deg);
    z-index: 1;
}

.book-hero-two {
    left: 31%;
    top: 10px;
    transform: rotate(4deg);
    z-index: 3;
}

.book-hero-three {
    right: 0;
    top: 110px;
    transform: rotate(13deg);
    z-index: 2;
}

.book-cover {
    width: 190px;
    height: 285px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    border-radius: 3px;
    box-shadow: inset -12px 0 20px rgba(0,0,0,.12);
}

.book-cover span {
    font-family: var(--serif);
    font-size: 27px;
    line-height: 1.05;
    font-weight: 800;
}

.book-cover small {
    font-size: 8px;
    letter-spacing: .12em;
}

.cover-blue {
    background: linear-gradient(145deg, #24496b, #12283e);
}

.cover-red {
    background: linear-gradient(145deg, #b64c3a, #6d2015);
}

.cover-green {
    background: linear-gradient(145deg, #466a52, #1f3c29);
}

.floating-note {
    position: absolute;
    right: 5%;
    bottom: 55px;
    background: var(--surface);
    padding: 14px 18px;
    border-radius: 100px;
    box-shadow: var(--shadow);
    font-size: 12px;
    z-index: 5;
}

.floating-note span {
    color: var(--gold);
}


/* TRUST */

.trust-bar {
    background: var(--surface);
    border-block: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
    padding: 23px 18px;
    display: flex;
    gap: 13px;
    align-items: center;
    border-right: 1px solid var(--border);
}

.trust-grid > div:last-child {
    border-right: 0;
}

.trust-grid span {
    font-size: 22px;
}

.trust-grid strong,
.trust-grid small {
    display: block;
}

.trust-grid strong {
    font-size: 13px;
}

.trust-grid small {
    color: var(--muted);
    font-size: 10px;
}


/* SECTIONS */

.section {
    padding: 95px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 38px;
}

.section-heading h2 {
    font-family: var(--serif);
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.05;
    margin-top: 8px;
    letter-spacing: -.03em;
}

.section-heading > p {
    max-width: 420px;
    color: var(--muted);
}


/* CATEGORIES */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.category-card {
    min-height: 230px;
    padding: 25px;
    border: 0;
    text-align: left;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    color: #fff;
    transition: .25s;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-fiction {
    background: linear-gradient(145deg, #263d55, #182737);
}

.category-business {
    background: linear-gradient(145deg, #7b3d2e, #4b2119);
}

.category-tech {
    background: linear-gradient(145deg, #314d43, #1c302a);
}

.category-growth {
    background: linear-gradient(145deg, #846a35, #4f3f20);
}

.category-icon {
    font-size: 30px;
    margin-bottom: auto;
}

.category-card strong {
    font-family: var(--serif);
    font-size: 25px;
}

.category-card small {
    opacity: .7;
    font-size: 11px;
}

.category-arrow {
    position: absolute;
    right: 22px;
    bottom: 22px;
    font-size: 20px;
}


/* BOOKS */

.books-section {
    background: var(--surface);
}

.sort-area {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.sort-area select {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 100px;
    padding: 10px 14px;
    outline: 0;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 9px 17px;
    color: var(--muted);
    font-size: 12px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--bg);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 27px 18px;
}

.book-card {
    position: relative;
    min-width: 0;
}

.book-card-cover {
    height: 320px;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    cursor: pointer;
    transition: .25s;
}

.book-card:hover .book-card-cover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(0,0,0,.15);
}

.book-card-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 45%, rgba(0,0,0,.65));
}

.cover-content {
    position: relative;
    z-index: 2;
}

.cover-content .cover-title {
    display: block;
    font-family: var(--serif);
    font-size: 27px;
    line-height: 1.05;
    font-weight: 800;
}

.cover-content .cover-author {
    display: block;
    font-size: 9px;
    letter-spacing: .12em;
    margin-top: 12px;
}

.book-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 0;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    font-size: 19px;
}

.book-wishlist.active {
    color: var(--accent);
}

.book-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    background: var(--accent);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    padding: 6px 9px;
    border-radius: 100px;
    letter-spacing: .06em;
}

.book-info {
    padding: 15px 2px;
}

.book-category {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.book-info h3 {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.2;
    margin: 5px 0;
}

.book-author {
    color: var(--muted);
    font-size: 11px;
}

.rating {
    margin-top: 8px;
    font-size: 11px;
}

.stars {
    color: var(--gold);
    letter-spacing: 1px;
}

.book-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 11px;
}

.price {
    font-weight: 800;
    font-size: 16px;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 11px;
    margin-left: 5px;
}

.add-cart-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 100px;
    padding: 8px 13px;
    font-size: 11px;
    font-weight: 700;
}

.add-cart-btn:hover {
    background: var(--dark);
    color: var(--bg);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results > div {
    font-size: 45px;
}

.no-results h3 {
    font-family: var(--serif);
    font-size: 30px;
}

.hidden {
    display: none !important;
}


/* NEWSLETTER */

.newsletter {
    background: var(--dark);
    color: #fff;
    padding: 85px 0;
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.newsletter h2 {
    font-family: var(--serif);
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1;
    margin: 12px 0 20px;
}

.newsletter p {
    color: #aaa;
    max-width: 470px;
}

.newsletter-form label {
    display: block;
    font-size: 11px;
    margin-bottom: 8px;
    color: #bbb;
}

.newsletter-form > div {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    border-radius: 100px;
    border: 1px solid #444;
    background: #222;
    color: white;
    outline: 0;
}

.newsletter-form small {
    display: block;
    color: #777;
    margin-top: 10px;
}


/* ABOUT */

.about-section {
    background: var(--surface-2);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.about-art {
    height: 470px;
    position: relative;
    display: grid;
    place-items: center;
}

.about-circle {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.about-book {
    position: absolute;
    width: 220px;
    height: 320px;
    background: linear-gradient(145deg, #9c4734, #572218);
    color: white;
    box-shadow: 30px 30px 60px rgba(0,0,0,.2);
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: rotate(-6deg);
}

.about-book span {
    font-size: 12px;
    letter-spacing: .2em;
}

.about-book strong {
    font-family: var(--serif);
    font-size: 52px;
    line-height: .9;
    margin: 12px 0;
}

.about-book small {
    font-size: 8px;
    letter-spacing: .12em;
}

.about-content h2 {
    font-family: var(--serif);
    font-size: clamp(35px, 4vw, 53px);
    line-height: 1.05;
    margin: 10px 0 25px;
}

.about-content p {
    color: var(--muted);
    margin: 12px 0;
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent);
    font-weight: 700;
}


/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 60px;
}

.contact-form {
    background: var(--surface);
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin: 15px 0 7px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 9px;
    padding: 13px 15px;
    outline: 0;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form .btn {
    margin-top: 22px;
}

.contact-info {
    display: grid;
    gap: 13px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    gap: 15px;
}

.contact-card > span {
    font-size: 22px;
}

.contact-card strong,
.contact-card p,
.contact-card a {
    display: block;
}

.contact-card strong {
    font-family: var(--serif);
    font-size: 18px;
}

.contact-card p,
.contact-card a {
    color: var(--muted);
    font-size: 12px;
}

.contact-card a:hover {
    color: var(--accent);
}


/* FOOTER */

.footer {
    background: #121212;
    color: #fff;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 50px;
    padding-bottom: 60px;
}

.footer .logo strong {
    color: white;
}

.footer-brand p {
    color: #888;
    max-width: 300px;
    font-size: 13px;
    margin: 20px 0;
}

.socials {
    display: flex;
    gap: 8px;
}

.socials a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #333;
    border-radius: 50%;
    color: #aaa;
}

.socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 13px;
}

.footer-column a {
    display: block;
    color: #888;
    font-size: 12px;
    margin: 10px 0;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #292929;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 10px;
}


/* DRAWERS */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: .25s;
    z-index: 80;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    z-index: 90;
    right: 0;
    top: 0;
    height: 100vh;
    width: min(440px, 100%);
    background: var(--surface);
    transform: translateX(100%);
    transition: .3s;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,.15);
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.drawer-header h3 {
    font-family: var(--serif);
    font-size: 27px;
}

.close-btn {
    width: 38px;
    height: 38px;
    border: 0;
    background: var(--surface-2);
    color: var(--text);
    border-radius: 50%;
    font-size: 22px;
}

.cart-items,
.wishlist-items {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.cart-mini-cover {
    height: 90px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: white;
    padding: 8px;
    text-align: center;
    font-family: var(--serif);
    font-size: 12px;
    font-weight: 800;
}

.cart-item h4 {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.2;
}

.cart-item p {
    font-size: 10px;
    color: var(--muted);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-control button {
    width: 25px;
    height: 25px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 50%;
}

.remove-item {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 12px;
    color: var(--muted);
}

.total-row {
    border-top: 1px solid var(--border);
    padding-top: 13px;
    color: var(--text);
    font-size: 17px;
}

.checkout-btn {
    width: 100%;
    margin-top: 15px;
}

.secure-note {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 9px;
    margin-top: 10px;
}

.empty-state {
    flex: 1;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    padding: 30px;
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-family: var(--serif);
    font-size: 25px;
}

.empty-state p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 18px;
}

.wishlist-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.wishlist-item h4 {
    font-family: var(--serif);
    font-size: 16px;
}

.wishlist-item p {
    color: var(--muted);
    font-size: 11px;
}

.wishlist-item button {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 11px;
}


/* MODAL */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 200;
    display: none;
    place-items: center;
    padding: 20px;
}

.modal-overlay.open {
    display: grid;
}

.book-modal {
    width: min(800px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 20px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.1);
    color: var(--text);
    font-size: 22px;
    z-index: 5;
}

.modal-book-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
}

.modal-cover {
    min-height: 460px;
    padding: 45px;
    color: white;
    display: flex;
    align-items: flex-end;
}

.modal-cover h2 {
    font-family: var(--serif);
    font-size: 42px;
    line-height: 1;
}

.modal-details {
    padding: 50px 40px;
}

.modal-details .section-label {
    display: block;
    margin-bottom: 8px;
}

.modal-details h2 {
    font-family: var(--serif);
    font-size: 40px;
    line-height: 1;
}

.modal-details .modal-author {
    color: var(--muted);
    margin: 8px 0 22px;
}

.modal-details p {
    color: var(--muted);
    font-size: 14px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    font-size: 12px;
}

.modal-price {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 15px;
}


/* TOAST */

.toast {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform: translate(-50%, 100px);
    background: var(--dark);
    color: var(--bg);
    padding: 13px 20px;
    border-radius: 100px;
    font-size: 12px;
    z-index: 300;
    opacity: 0;
    transition: .3s;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .nav-links {
        display: none;
    }

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

    .hero-books {
        max-width: 600px;
        width: 100%;
        margin: auto;
    }

    .category-grid,
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .newsletter-inner,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

}

@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .announcement-hide {
        display: none;
    }

    .header-main {
        min-height: 68px;
        gap: 8px;
    }

    .logo {
        min-width: auto;
        margin-right: auto;
    }

    .logo strong {
        font-size: 16px;
    }

    .logo small {
        font-size: 6px;
    }

    .header-search {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 76px;
        max-width: none;
        z-index: 100;
        display: none;
        box-shadow: var(--shadow);
    }

    .header-search.mobile-open {
        display: flex;
    }

    .search-mobile-btn {
        display: block;
    }

    .mobile-search-close {
        display: block;
        width: 40px !important;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding: 65px 0;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-books {
        height: 370px;
        transform: scale(.78);
        transform-origin: top center;
        margin-bottom: -70px;
    }

    .book-cover {
        width: 155px;
        height: 235px;
    }

    .hero-trust {
        gap: 20px;
    }

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

    .trust-grid > div {
        border-bottom: 1px solid var(--border);
    }

    .category-grid,
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-card-cover {
        height: 250px;
    }

    .section {
        padding: 65px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 15px;
    }

    .sort-area {
        margin-top: 20px;
    }

    .newsletter-inner {
        gap: 40px;
    }

    .newsletter-form > div {
        display: block;
    }

    .newsletter-form input {
        width: 100%;
        margin-bottom: 8px;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    .about-art {
        height: 350px;
    }

    .about-circle {
        width: 280px;
        height: 280px;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin: 5px 0;
    }

    .modal-book-layout {
        grid-template-columns: 1fr;
    }

    .modal-cover {
        min-height: 280px;
    }

}

@media (max-width: 450px) {

    .category-grid,
    .books-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .book-card-cover {
        height: 220px;
        padding: 15px;
    }

    .cover-content .cover-title {
        font-size: 20px;
    }

    .book-info h3 {
        font-size: 16px;
    }

    .add-cart-btn {
        padding: 7px 9px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

}
