:root {
    --paper: #f7f2e8;
    --paper-deep: #eee5d5;
    --ink: #25211d;
    --muted: #71695f;
    --red: #8b2f35;
    --red-dark: #6f2228;
    --mustard: #c89b45;
    --line: #ded5c6;
    --white: #fffdf8;
    --green: #305c4a;
}

html { scroll-behavior: smooth; }
body {
    color: var(--ink);
    background: var(--white);
    font-family: "Noto Sans Bengali", system-ui, sans-serif;
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, .brand-lockup strong { font-family: "Noto Serif Bengali", Georgia, serif; }
img { max-width: 100%; height: auto; }

.top-strip { background: var(--ink); color: #f5ecdd; font-size: .82rem; padding: .4rem 0; }
.site-header { background: rgba(255, 253, 248, .97); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(37, 33, 29, .08); }
.brand-lockup { display: inline-flex; align-items: center; gap: .75rem; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: white; font: 700 1.7rem/1 "Noto Serif Bengali", serif; }
.brand-lockup strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.brand-lockup small { display: block; color: var(--muted); font-size: .72rem; margin-top: .18rem; }
.navbar .nav-link { color: var(--ink); font-weight: 600; padding-inline: .75rem !important; }
.navbar .nav-link:hover { color: var(--red); }
.icon-link-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; }
.cart-link { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--ink); border-radius: 999px; padding: .48rem .8rem; font-weight: 700; }
.cart-count { width: 24px; height: 24px; display: grid; place-items: center; background: var(--red); color: white; border-radius: 50%; font-size: .75rem; }
.search-band { border-top: 1px solid rgba(222, 213, 198, .75); padding: .55rem 0; }
.search-form { display: flex; max-width: 820px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search-form input { flex: 1; min-width: 0; padding: .72rem 1.1rem; background: transparent; border: 0; outline: 0; }
.search-form button { border: 0; background: var(--red); color: white; padding: .65rem 1.35rem; font-weight: 700; }

.hero-section { background: radial-gradient(circle at 75% 35%, rgba(200,155,69,.28), transparent 30%), linear-gradient(120deg, var(--paper) 0%, #f9f5ed 60%, #eee1cb 100%); overflow: hidden; }
.py-lg-6 { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }
.eyebrow { color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .75rem; }
.eyebrow.light { color: #f1c979; }
.hero-section h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 1.05; margin-bottom: .3rem; max-width: 760px; }
.hero-author { color: var(--red); font-size: 1.15rem; font-weight: 600; }
.hero-copy { color: #514b44; font-size: 1.12rem; max-width: 650px; margin: 1.3rem 0 1.8rem; }
.hero-price { font-size: 1.6rem; font-weight: 800; }
.hero-book-stage { position: relative; display: inline-block; padding: 1rem; }
.hero-book-stage::before { content: ""; position: absolute; width: 78%; height: 88%; left: 11%; bottom: 0; border-radius: 50%; background: rgba(139,47,53,.16); filter: blur(30px); }
.hero-book-stage img { position: relative; width: min(330px, 75vw); aspect-ratio: 2 / 2.82; object-fit: cover; box-shadow: 20px 26px 50px rgba(48,35,20,.26), -6px 5px 0 rgba(255,255,255,.5); transform: rotate(2deg); }
.btn-primary-literary, .btn-light-literary { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: .82rem 1.45rem; font-weight: 800; transition: .2s ease; }
.btn-primary-literary { background: var(--red); color: white; }
.btn-primary-literary:hover { background: var(--red-dark); color: white; transform: translateY(-1px); }
.btn-light-literary { background: white; color: var(--ink); }
.btn-light-literary:hover { background: var(--paper); color: var(--ink); }
.text-link { color: var(--red); font-weight: 800; }

.section-space { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.section-heading { margin-bottom: 2.2rem; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.category-card { position: relative; min-height: 210px; padding: 1.6rem; background: var(--paper); border: 1px solid var(--line); transition: .25s ease; overflow: hidden; }
.category-card:nth-child(even) { background: #f3ead9; }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 18px 35px rgba(44,35,24,.09); border-color: #c8bba8; }
.category-index { color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.category-card h3 { font-size: 1.75rem; margin: 2.1rem 0 .5rem; }
.category-card p { color: var(--muted); margin: 0; max-width: 80%; }
.category-arrow { position: absolute; right: 1.5rem; bottom: 1.2rem; font-size: 1.65rem; color: var(--red); }

.product-card { display: flex; flex-direction: column; background: white; }
.product-cover-wrap { position: relative; display: block; background: var(--paper); padding: 1.15rem; overflow: hidden; }
.product-cover { width: 100%; aspect-ratio: 2 / 2.82; object-fit: cover; box-shadow: 0 12px 24px rgba(41,34,25,.14); transition: transform .3s ease; }
.product-card:hover .product-cover { transform: scale(1.025); }
.discount-badge, .new-badge { position: absolute; top: 1.6rem; border-radius: 999px; padding: .28rem .58rem; font-size: .72rem; font-weight: 800; }
.discount-badge { left: 1.55rem; background: var(--red); color: white; }
.new-badge { right: 1.55rem; background: var(--mustard); color: var(--ink); }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem .15rem 0; }
.product-meta { color: var(--muted); font-size: .82rem; margin-bottom: .25rem; }
.product-card h3 { font-size: 1.15rem; line-height: 1.35; min-height: 3.05rem; margin-bottom: .55rem; }
.product-card h3 a:hover { color: var(--red); }
.price-row { display: flex; align-items: center; gap: .55rem; margin-bottom: .85rem; }
.price-row strong { font-size: 1.08rem; }
.price-row del { color: #978d81; font-size: .9rem; }
.btn-add-cart { width: 100%; border: 1px solid var(--ink); background: transparent; border-radius: 999px; padding: .62rem .9rem; font-weight: 800; transition: .2s ease; }
.btn-add-cart:hover:not(:disabled) { background: var(--ink); color: white; }
.btn-add-cart:disabled { border-color: var(--line); color: #999; }

.magazine-feature { background: var(--green); color: white; }
.magazine-feature h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.magazine-feature p:not(.eyebrow) { color: #dce9e2; font-size: 1.08rem; max-width: 720px; }
.magazine-cover { width: min(300px, 75vw); aspect-ratio: 2 / 2.82; object-fit: cover; transform: rotate(-2deg); box-shadow: 18px 24px 40px rgba(0,0,0,.28); }
.about-band { background: var(--paper); }
.narrow-content { max-width: 820px; }
.about-band h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); }
.about-band p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.page-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0; }
.filter-panel { background: var(--paper); border: 1px solid var(--line); padding: 1.4rem; position: sticky; top: 150px; }
.filter-link { display: block; padding: .65rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.filter-link:last-child { border-bottom: 0; }
.filter-link.active, .filter-link:hover { color: var(--red); font-weight: 800; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.empty-state { text-align: center; background: var(--paper); padding: 5rem 1.5rem; border: 1px solid var(--line); }
.empty-state h2 { font-size: 2rem; }

.product-details h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.12; }
.detail-cover-stage { background: var(--paper); padding: 2rem; }
.detail-cover-stage img { width: min(390px, 90%); aspect-ratio: 2 / 2.82; object-fit: cover; box-shadow: 16px 22px 35px rgba(38,29,20,.18); }
.breadcrumb-small { color: var(--muted); font-size: .86rem; }
.breadcrumb-small a:hover { color: var(--red); }
.inline-label { display: inline-block; background: var(--mustard); border-radius: 999px; padding: .3rem .7rem; font-size: .76rem; font-weight: 800; margin-bottom: .8rem; }
.english-title { color: var(--muted); font-size: 1.1rem; }
.detail-author { color: var(--red); font-weight: 700; font-size: 1.15rem; }
.detail-price { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0; }
.detail-price strong { font-size: 2rem; }
.detail-price del { color: #988e82; }
.detail-price span { color: var(--green); font-weight: 800; }
.detail-description { color: var(--muted); font-size: 1.08rem; }
.buy-box { display: flex; gap: .8rem; margin: 1.5rem 0 .5rem; }
.quantity-control { display: flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .65rem .25rem 1rem; }
.quantity-control label { font-size: .84rem; color: var(--muted); }
.quantity-control input { width: 54px; border: 0; outline: 0; background: transparent; text-align: center; }
.stock-note { color: var(--muted); font-size: .86rem; }
.book-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 1.8rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.book-facts > div { padding: .9rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book-facts span { display: block; color: var(--muted); font-size: .78rem; }
.book-facts strong { display: block; margin-top: .18rem; }
.description-panel { max-width: 900px; padding: 2.2rem; background: var(--paper); border-left: 4px solid var(--red); }
.description-panel h2 { font-size: 1.8rem; }

.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 1.2rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 90px; aspect-ratio: 2 / 2.82; object-fit: cover; box-shadow: 0 7px 16px rgba(0,0,0,.12); }
.cart-item h2 { font-size: 1.3rem; }
.cart-item h2 a:hover { color: var(--red); }
.cart-item-info p { color: var(--muted); }
.cart-qty { width: 78px; }
.cart-line-total { font-size: 1.1rem; }
.order-summary, .checkout-panel, .contact-card, .login-card, .confirmation-card { background: var(--paper); border: 1px solid var(--line); padding: 1.7rem; }
.order-summary { top: 155px; }
.order-summary h2, .checkout-panel h2 { font-size: 1.5rem; margin-bottom: 1.3rem; }
.order-summary > div, .checkout-item { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.summary-total { font-size: 1.15rem; margin: .5rem 0 1.2rem; padding-top: 1rem !important; }
.continue-shopping { display: block; text-align: center; margin-top: 1rem; color: var(--red); font-weight: 700; }
.checkout-panel .form-control, .checkout-panel .form-select, .login-card .form-control { border-color: var(--line); background: #fffdf9; padding: .75rem .85rem; }
.payment-option { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid var(--line); background: white; padding: 1rem; margin-bottom: .8rem; cursor: pointer; }
.payment-option input { margin-top: .35rem; }
.payment-option strong, .payment-option small { display: block; }
.payment-option small { color: var(--muted); }
.secure-note { color: var(--muted); font-size: .78rem; text-align: center; margin: .9rem 0 0; }
.confirmation-card { max-width: 720px; padding: 3.5rem 2rem; }
.confirmation-icon { width: 72px; height: 72px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-size: 2rem; }
.confirmation-card h1 { font-size: 2.6rem; }
.confirmation-total { margin: 1.5rem 0; font-size: 1.2rem; }
.prose-content { font-size: 1.06rem; }
.prose-content h2 { margin-top: 2rem; }
.prose-content blockquote { border-left: 4px solid var(--red); background: var(--paper); padding: 1.2rem 1.5rem; font-family: "Noto Serif Bengali", serif; font-size: 1.35rem; }
.contact-card { height: 100%; }
.contact-card h2 { font-size: 1.35rem; }
.login-card { max-width: 480px; }
.login-card h1 { margin-bottom: 1.5rem; }

.site-footer { background: var(--ink); color: #e9dfcf; }
.footer-brand .brand-mark { background: var(--mustard); color: var(--ink); }
.footer-brand strong { color: white; }
.footer-brand small { color: #c7baaa; }
.site-footer h6 { color: white; font-weight: 800; margin-bottom: 1rem; }
.site-footer a:not(.btn) { display: block; color: #cfc4b4; margin-bottom: .5rem; }
.site-footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); color: #a99e90; font-size: .85rem; }

/* Admin */
.admin-body { background: #f3f4f6; font-family: system-ui, sans-serif; }
.admin-body h1, .admin-body h2, .admin-body h3 { font-family: system-ui, sans-serif; }
.admin-header { background: #111827; color: white; }
.admin-brand { color: white; font-weight: 800; font-size: 1.2rem; }
.admin-nav a, .admin-nav button { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #e5e7eb; border-radius: .45rem; padding: .45rem .7rem; font-size: .88rem; }
.admin-nav form { display: inline; }
.admin-nav a:hover, .admin-nav button:hover { background: rgba(255,255,255,.1); color: white; }
.admin-stat, .admin-panel { background: white; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1.25rem; box-shadow: 0 2px 10px rgba(17,24,39,.035); }
.admin-stat span { display: block; color: #6b7280; font-size: .85rem; }
.admin-stat strong { display: block; font-size: 2rem; margin-top: .45rem; }
.admin-thumb { width: 44px; height: 62px; object-fit: cover; }
.admin-cover-preview { display: block; width: 150px; aspect-ratio: 2 / 2.82; object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,.12); }

@media (max-width: 991.98px) {
    .search-band { display: none; }
    .site-header { position: static !important; }
    .navbar-collapse { padding-top: 1rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-panel { position: static; }
    .order-summary { position: static !important; }
}

@media (max-width: 767.98px) {
    .py-lg-6 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .hero-section h1 { font-size: 3rem; }
    .section-space { padding-top: 4rem; padding-bottom: 4rem; }
    .category-grid { grid-template-columns: 1fr; }
    .category-card { min-height: 175px; }
    .product-cover-wrap { padding: .7rem; }
    .discount-badge, .new-badge { top: 1rem; }
    .discount-badge { left: 1rem; }
    .new-badge { right: 1rem; }
    .product-card h3 { font-size: 1rem; min-height: 2.7rem; }
    .buy-box { flex-direction: column; }
    .quantity-control { justify-content: center; }
    .book-facts { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 72px 1fr; align-items: start; }
    .cart-item img { width: 72px; }
    .cart-line-total { grid-column: 2; }
    .catalog-toolbar { align-items: flex-start; flex-direction: column; }
}

/* Antareep brand logo */
.brand-logo {
    display: block;
    width: 144px;
    max-width: 38vw;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}
.footer-logo {
    width: 170px;
    max-width: 100%;
    height: 68px;
    padding: .4rem .65rem;
    border-radius: .55rem;
    background: #fffdf8;
}
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}
.admin-brand small {
    display: block;
    color: #9ca3af;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.admin-logo-wrap {
    display: grid;
    place-items: center;
    width: 116px;
    min-height: 46px;
    padding: .25rem .45rem;
    border-radius: .45rem;
    background: #fff;
}
.admin-logo-wrap img {
    display: block;
    width: 100%;
    max-height: 38px;
    object-fit: contain;
}
@media (max-width: 575.98px) {
    .brand-logo { width: 116px; height: 48px; }
    .admin-logo-wrap { width: 96px; }
    .admin-brand > span:last-child { display: none; }
}
