* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1240px, calc(100% - 40px));
    margin: auto;
}


/* =========================
   TOP BAR
========================= */

.top-bar {
    background: #111827;
    color: #fff;
    font-size: 13px;
}

.top-bar-inner {
    min-height: 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a:hover {
    color: #d4a84f;
}


/* =========================
   MAIN HEADER
========================= */

.main-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    min-height: 78px;

    display: flex;
    align-items: center;

    gap: 28px;
}


/* LOGO */

.logo,
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}

.logo-mark {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #172033;
    color: #d4a84f;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 800;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}


/* =========================
   SEARCH
========================= */

.search-form {
    flex: 1;

    display: flex;

    max-width: 700px;
    margin: auto;
}

.search-form input {
    width: 100%;
    height: 44px;

    border: 1px solid #cfd4dc;
    border-right: 0;

    border-radius: 7px 0 0 7px;

    padding: 0 15px;

    font-size: 14px;

    outline: none;
}

.search-form input:focus {
    border-color: #d4a84f;
}

.search-form button {
    width: 52px;

    border: 0;

    border-radius: 0 7px 7px 0;

    background: #d4a84f;

    cursor: pointer;

    font-size: 17px;
}


/* =========================
   HEADER ACTIONS
========================= */

.header-actions {
    display: flex;
    align-items: center;

    gap: 22px;
}

.header-actions a {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 2px;

    font-size: 12px;
}

.header-icon {
    font-size: 20px;
}

.header-actions a:hover {
    color: #172033;
}

.cart-count {
    position: absolute;

    top: -7px;
    right: -8px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #c62828;
    color: #fff;

    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;
}


/* =========================
   NAVIGATION
========================= */

.main-nav {
    background: #172033;
    color: #fff;
}

.nav-inner {
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 32px;
}

.nav-inner a {
    font-size: 14px;
    font-weight: 600;
}

.nav-inner a:hover {
    color: #d4a84f;
}


/* =========================
   MAIN
========================= */

.site-main {
    min-height: 55vh;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 70px;

    background: #0f1728;
    color: #fff;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 50px;

    padding: 60px 0;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-brand p {
    max-width: 320px;

    color: #aeb5c2;

    font-size: 14px;

    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.footer-column h3 {
    margin: 0 0 8px;

    font-size: 15px;
}

.footer-column a {
    color: #aeb5c2;

    font-size: 14px;
}

.footer-column a:hover {
    color: #d4a84f;
}


/* =========================
   FOOTER BOTTOM
========================= */

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom-inner {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #9fa7b5;

    font-size: 13px;
}

.footer-bottom-inner div {
    display: flex;
    gap: 20px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .header-inner {
        flex-wrap: wrap;

        padding: 15px 0;
    }

    .search-form {
        order: 3;

        flex-basis: 100%;

        max-width: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .nav-inner {
        overflow-x: auto;

        white-space: nowrap;

        gap: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 550px) {

    .container {
        width: calc(100% - 24px);
    }

    .top-links {
        display: none;
    }

    .logo-text {
        font-size: 17px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions a span:last-child {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-inner {
        flex-direction: column;

        justify-content: center;

        gap: 8px;

        padding: 15px 0;
    }

}









/* ========================================
   HOMEPAGE / STORE CONTENT
======================================== */

/* HERO */

.store-hero {
    background: #f5f7fa !important;
    padding: 90px 0;
}

.hero-content {
    max-width: 760px;
}

.hero-label,
.section-label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c79224;
}

.store-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    color: #111827;
}

.store-hero h1 span {
    color: #c79224;
}

.store-hero p {
    max-width: 650px;
    margin: 0 0 30px;
    font-size: 18px;
    line-height: 1.7;
    color: #5b6472;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary {
    background: #c79224;
    color: #ffffff;
}

.btn-primary:hover {
    background: #a87816;
}

.btn-secondary {
    background: #111827;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #1f2937;
}


/* BOOK SECTIONS */

.book-section {
    padding: 80px 0;
    background: #ffffff;
}

.book-section-alt {
    background: #f7f8fa;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.section-heading h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.15;
    color: #111827;
}

.view-all {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.view-all:hover {
    color: #c79224;
}


/* BOOK GRID */

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.book-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.book-cover {
    display: block;
    aspect-ratio: 2 / 3;
    background: #eef0f3;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 18px;
}

.book-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.book-info h3 a:hover {
    color: #c79224;
}

.book-subtitle {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.book-price {
    font-size: 16px;
    font-weight: 700;
    color: #c79224;
}


/* EMPTY STATE */

.empty-books {
    padding: 50px 20px;
    text-align: center;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #fafafa;
}

.empty-books p {
    margin: 0;
    color: #6b7280;
}


/* CTA */

.store-cta {
    padding: 90px 0;
    background: #111827;
    color: #ffffff;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.store-cta .section-label {
    color: #c79224;
}

.store-cta h2 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 56px);
}

.store-cta p {
    margin: 0 auto 28px;
    max-width: 600px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.7;
}


/* RESPONSIVE */

@media (max-width: 1000px) {
    .books-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .container {
        width: min(100% - 30px, 1280px);
    }

    .store-hero {
        padding: 60px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .book-info {
        padding: 14px;
    }

    .book-info h3 {
        font-size: 16px;
    }
}

@media (max-width: 450px) {

    .books-grid {
        grid-template-columns: 1fr;
    }

    .store-hero h1 {
        font-size: 40px;
    }
}