@font-face {
    font-family:'Noto Sans';
    src:url('/assets/fonts/NotoSans.woff2') format('woff2');
    font-weight:100 900;
    font-style:normal;
    font-display:swap;
}

@font-face {
    font-family:'Noto Sans Telugu';
    src:url('/assets/fonts/NotoSansTelugu.woff2') format('woff2');
    font-weight:100 900;
    font-style:normal;
    font-display:swap;
}

:root {
    --font-sans:'Noto Sans','Noto Sans Telugu',sans-serif;
    --paper:#fcf9f3;
    --ink:#252323;
    --red:#b61622;
    --red-dark:#8c1019;
    --gold:#e6b52c;
    --muted:#6a6462;
    --line:#e6ded5;
    --soft:#f3ede4;
    --radius:6px;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
}

body {
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:var(--font-sans);
    font-size:15px;
    line-height:1.65;
}

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

a:hover {
    text-decoration:underline;
}

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

button,.button {
    border:1px solid transparent;
    background:var(--red);
    color:white;
    padding:13px 22px;
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    cursor:pointer;
    border-radius:3px;
    font-size:13px;
    font-weight:600;
    line-height:1.5;
    min-height:46px;
    text-decoration:none;
}

button:hover,.button:hover {
    background:var(--red-dark);
    text-decoration:none;
}

button:disabled {
    opacity:.5;
    cursor:default;
}

.secondary {
    background:white;
    border:1px solid #cabdb0;
    color:var(--ink);
}

.secondary:hover {
    background:var(--soft);
    color:var(--ink);
}

.text-button {
    background:none;
    color:var(--red);
    border:0;
    padding:8px;
    font-weight:500;
    min-height:42px;
}

.text-button:hover {
    background:#f5e5e0;
}

.text-link {
    font-size:13px;
    color:var(--red);
    padding:12px;
}

.skip-link {
    position:absolute;
    left:-10000px;
    top:0;
    z-index:20;
    padding:10px;
    background:white;
}

.skip-link:focus {
    left:10px;
    top:10px;
}

input,select,textarea {
    border:1px solid #cbbfb3;
    padding:12px;
    background:#fff;
    color:var(--ink);
    border-radius:3px;
    max-width:100%;
    min-height:46px;
}

input[type=number] {
    width:85px;
}

input[type=checkbox] {
    min-height:18px;
    width:18px;
    height:18px;
    accent-color:var(--red);
    flex:none;
}

textarea {
    min-height:130px;
    resize:vertical;
}

h1,h2,h3,p {
    margin-top:0;
}

h1,h2 {
    font-family:var(--font-sans);
    font-weight:400;
    line-height:1.1;
}

h1 {
    font-size:60px;
    margin-bottom:26px;
    letter-spacing:-1.8px;
}

h2 {
    font-size:38px;
    letter-spacing:-.8px;
}

h3 {
    font-size:17px;
    line-height:1.4;
}

.topline {
    background:#242222;
    color:#f3e8ce;
    padding:10px 6%;
    font-size:10px;
    letter-spacing:1.2px;
    display:flex;
    justify-content:space-between;
    gap:20px;
    border-bottom:2px solid var(--gold);
}

header {
    padding:17px 6%;
    display:flex;
    align-items:center;
    gap:30px;
    border-bottom:1px solid var(--line);
    height:118px;
}

.brand img {
    width:150px;
    height:90px;
    object-fit:contain;
}

header .main-navigation {
    display:flex;
    gap:30px;
    margin:auto;
}

header .main-navigation a {
    font-size:13px;
    padding:9px 0;
}

.current {
    color:var(--red);
    border-bottom:2px solid var(--red);
}

.header-tools {
    display:flex;
    align-items:center;
    gap:22px;
    font-size:12px;
}

.basket span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#f4e2de;
    color:var(--red);
    border-radius:50%;
    width:25px;
    height:25px;
    margin-left:6px;
}

.hero {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    padding:65px 6% 70px;
    overflow:hidden;
    max-width:1500px;
    margin:auto;
}

.eyebrow {
    font-size:10px;
    letter-spacing:2px;
    font-weight:700;
    color:var(--red);
    margin-bottom:23px;
}

.hero h1 {
    font-size:80px;
    letter-spacing:-3px;
    max-width:610px;
    color:#282526;
    margin-bottom:24px;
}

.gold-rule {
    width:70px;
    height:3px;
    background:var(--gold);
    margin-bottom:25px;
}

.hero p {
    max-width:410px;
    color:var(--muted);
    margin-bottom:30px;
    line-height:1.8;
}

.hero-note {
    font-size:11px;
    margin-top:32px;
    letter-spacing:.4px;
    display:flex;
    align-items:center;
    gap:12px;
}

.hero-note span {
    color:#a87b13;
    font-size:25px;
}

.hero-art {
    position:relative;
    min-height:485px;
    background:#f1e9df;
    border-radius:48% 48% 5px 5px;
    isolation:isolate;
}

.sun {
    position:absolute;
    top:28px;
    right:36px;
    width:158px;
    height:158px;
    background:var(--gold);
    border-radius:50%;
}

.orbit {
    position:absolute;
    border:1px solid #c9b99d;
    border-radius:50%;
    width:95%;
    height:330px;
    left:0;
    top:100px;
    transform:rotate(-28deg);
    z-index:-1;
}

.hero-book {
    position:absolute;
    width:205px;
    height:310px;
    box-shadow:14px 22px 25px #37241e29;
    border-left:7px solid #ffffff25;
    padding:23px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    border-radius:1px 4px 4px 1px;
}

.hero-book small {
    font-size:9px;
    letter-spacing:2px;
    line-height:1.7;
}

.hero-book strong {
    font-family:var(--font-sans);
    font-weight:400;
    font-size:38px;
    line-height:1.14;
    letter-spacing:-1px;
}

.hero-book span {
    font-size:7px;
    letter-spacing:1px;
}

.hb1 {
    background:var(--red);
    color:#fff2d4;
    left:8%;
    top:80px;
    transform:rotate(-12deg);
    z-index:2;
}

.hb2 {
    background:#2e2b2b;
    color:#f3d990;
    right:7%;
    top:145px;
    transform:rotate(12deg);
}

.hb2 strong {
    font-style:italic;
}

.star {
    position:absolute;
    right:12px;
    top:42px;
    font-size:82px;
    color:#262323;
    text-shadow:0 0 0 #222;
}

.art-caption {
    position:absolute;
    bottom:20px;
    width:100%;
    text-align:center;
    font-size:8px;
    letter-spacing:3px;
    color:#6e5944;
}

.promise {
    display:flex;
    justify-content:space-around;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    padding:20px 5%;
    font-size:11px;
    letter-spacing:.3px;
    background:#f6f0e7;
}

.promise span:before {
    content:'✦';
    margin-right:13px;
    color:#99700a;
}

.section {
    padding:60px 6%;
    max-width:1500px;
    margin:auto;
}

.section-head .eyebrow {
    margin-bottom:12px;
}

.heading-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.heading-row a {
    font-size:12px;
    color:var(--red);
}

.grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:28px;
}

.cover-wrap {
    background:#f0eae2;
    padding:25px;
    display:flex;
    justify-content:center;
    align-items:center;
    aspect-ratio:.85;
    position:relative;
    border-radius:4px;
}

.cover {
    width:100%;
    height:100%;
    max-height:300px;
    object-fit:contain;
    filter:drop-shadow(6px 8px 5px #0002);
}

.generated-cover {
    background:#b61622;
    color:#fff0d5;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:22px;
    aspect-ratio:.66;
    font-family:var(--font-sans);
    border-left:5px solid #ffffff20;
}

.generated-cover small {
    font:8px var(--font-sans);
    letter-spacing:2px;
}

.generated-cover strong {
    font-size:28px;
    line-height:1.15;
    font-weight:400;
}

.generated-cover span {
    font-size:11px;
}

.book-card:nth-child(2) .generated-cover {
    background:#2c2929;
    color:#f3d895;
}

.book-card:nth-child(3) .generated-cover {
    background:#ddbe69;
    color:#392d25;
}

.book-card:nth-child(4) .generated-cover {
    background:#834639;
}

.cover-badge {
    position:absolute;
    top:10px;
    left:10px;
    font-size:9px;
    letter-spacing:.4px;
    background:#fff9ea;
    color:#654d37;
    padding:5px 8px;
    border-radius:2px;
}

.book-meta {
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:1px;
    color:var(--muted);
    margin:18px 0 8px;
}

.book-card h3 {
    margin-bottom:6px;
    font-size:17px;
}

.book-card p {
    font-size:12px;
    color:var(--muted);
    margin-bottom:12px;
}

.card-bottom {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.card-bottom b {
    font-size:14px;
}

.card-bottom span {
    color:var(--red);
    font-size:20px;
}

.book-card>a:hover {
    text-decoration:none;
}

.book-card>a:hover h3 {
    text-decoration:underline;
}

.editorial {
    margin:10px 6% 65px;
    background:#2b2727;
    color:#fff1da;
    padding:50px;
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:15px 60px;
    border-top:3px solid var(--gold);
}

.editorial .eyebrow {
    grid-column:1/-1;
    color:#e8c76b;
    margin:0;
}

.editorial h2 {
    font-size:53px;
    margin:0;
}

.editorial p {
    color:#e1d6c6;
    max-width:390px;
    font-size:14px;
}

.editorial a {
    font-size:12px;
    border-bottom:1px solid #bca26c;
    padding-bottom:8px;
}

footer {
    border-top:1px solid var(--line);
    padding:45px 6% 20px;
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr 1fr;
    gap:30px;
    background:#f0e9de;
}

footer img {
    width:135px;
    height:90px;
    object-fit:contain;
}

footer p {
    font-size:12px;
    color:#605752;
}

footer h3 {
    font-size:11px;
    margin:20px 0;
    letter-spacing:.5px;
}

footer a {
    display:block;
    font-size:12px;
    margin-bottom:9px;
}

.footer-note span {
    font-size:55px;
    color:#a77912;
}

.footer-note p {
    font-family:var(--font-sans);
    font-size:22px;
    color:#4b3330;
    line-height:1.3;
}

.copyright {
    grid-column:1/-1;
    border-top:1px solid #d8cbba;
    padding-top:20px;
    font-size:10px;
    color:#655d54;
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:center;
    gap:12px 24px;
}

.copyright a {
    font-size:10px;
}

.notice,.error {
    padding:15px 20px;
    margin:20px 6%;
    border-radius:4px;
    background:#edf1e3;
    color:#405127;
    border-left:3px solid #83934c;
}

.error {
    background:#fbe5df;
    color:#8c291d;
    border-color:#bc4734;
}

.notice-inline,.error-inline {
    padding:15px;
    background:#f7efd9;
    color:#69521a;
    border-radius:4px;
    font-size:13px;
}

.error-inline {
    background:#fbe5df;
    color:#8c291d;
}

.empty {
    padding:50px 20px;
    background:var(--soft);
    text-align:center;
    border-radius:4px;
}

.filters {
    display:flex;
    gap:12px;
    margin:30px 0;
    align-items:end;
    flex-wrap:wrap;
}

.filters>input:not([type=hidden]) {
    flex:1;
    min-width:180px;
}

.filters select {
    max-width:200px;
}

.results-line {
    display:flex;
    justify-content:space-between;
    color:var(--muted);
    font-size:12px;
    margin-bottom:25px;
}

.results-line a {
    color:var(--red);
}

.muted {
    color:var(--muted);
    font-size:12px;
}

.narrow {
    max-width:850px;
    margin:auto;
}

.form {
    display:grid;
    gap:18px;
}

.form label {
    display:grid;
    gap:7px;
    font-size:12px;
    color:#544b43;
}

.form label.check-label,.check-label {
    display:flex;
    align-items:center;
    gap:10px;
}

.form label.check-label span {
    line-height:1.5;
}

.form p a,.prose a {
    color:var(--red);
    text-decoration:underline;
}

.product {
    display:grid;
    grid-template-columns:.8fr 1.2fr;
    gap:75px;
    margin-top:30px;
}

.product .book-card {
    max-width:330px;
    margin:auto;
}

.product form {
    display:flex;
    gap:20px;
    align-items:end;
    margin-top:25px;
}

.product label {
    display:grid;
    font-size:12px;
}

.product-price {
    font-family:var(--font-sans);
    font-size:26px;
    letter-spacing:0;
    margin-bottom:28px;
}

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

.book-details {
    border-top:1px solid var(--line);
    margin-top:30px;
    font-size:12px;
    padding-top:15px;
}

.book-details>div {
    display:flex;
    gap:20px;
    padding:6px 0;
}

.book-details dt {
    width:80px;
    color:var(--muted);
}

.book-details dd {
    margin:0;
}

.checkout-grid {
    display:grid;
    grid-template-columns:1.5fr 1fr;
    gap:55px;
    align-items:start;
}

.cart-row {
    padding:23px 0;
    border-bottom:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    align-items:start;
    gap:20px;
}

.cart-row p {
    font-size:12px;
}

.cart-row form {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.summary {
    padding:28px;
    background:var(--soft);
    margin:0 0 25px;
    border-radius:5px;
}

.summary h2 {
    font-size:30px;
}

.summary small {
    display:block;
    font-size:11px;
    margin-top:15px;
}

.summary .button {
    width:100%;
    margin-top:20px;
}

.sum-row {
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:8px 0;
    font-size:14px;
}

.total {
    border-top:1px solid #d6c9ba;
    margin-top:10px;
    padding-top:17px;
}

.prose {
    line-height:1.85;
    overflow-wrap:anywhere;
}

.spaced {
    margin-top:30px;
}

.back-link {
    display:inline-block;
    color:var(--red);
    font-size:12px;
    margin-bottom:22px;
}

.table-wrap {
    overflow:auto;
}

table {
    width:100%;
    border-collapse:collapse;
    margin:15px 0;
}

td,th {
    text-align:left;
    padding:14px 12px;
    border-bottom:1px solid var(--line);
    font-size:12px;
}

th {
    color:#766a5e;
    font-size:10px;
    letter-spacing:.5px;
    text-transform:uppercase;
    font-weight:600;
}

td small {
    display:block;
    color:var(--muted);
    margin-top:3px;
    font-size:10px;
}

td a {
    color:var(--red);
}

.pagination {
    display:flex;
    gap:25px;
    justify-content:center;
    align-items:center;
    margin-top:30px;
    font-size:12px;
}

.pagination a {
    padding:10px;
    color:var(--red);
}

.status {
    display:inline-flex;
    align-items:center;
    border-radius:30px;
    background:#eee8df;
    color:#5d5143;
    padding:5px 10px;
    font-size:10px;
    font-weight:600;
    line-height:1.5;
    white-space:nowrap;
}

.status-paid,.status-delivered,.status-configured,.status-in_stock {
    background:#e4ecd9;
    color:#355122;
}

.status-shipped,.status-partially_refunded {
    background:#e0e9f3;
    color:#2d4a6d;
}

.status-payment_review,.status-payment_unknown,.status-low_stock,.status-failed {
    background:#f6ddd5;
    color:#913422;
}

.status-pending,.status-preparing,.status-requested,.status-unknown {
    background:#f7eac2;
    color:#75551b;
}

.timeline {
    list-style:none;
    margin:25px 0;
    padding:0 0 0 22px;
    border-left:1px solid #ddcfc2;
}

.timeline li {
    position:relative;
    padding-bottom:20px;
}

.timeline li:before {
    content:'';
    position:absolute;
    left:-27px;
    top:5px;
    border-radius:50%;
    width:9px;
    height:9px;
    background:var(--red);
}

.timeline small {
    font-size:11px;
    color:var(--muted);
}

.timeline p {
    margin:5px 0 0;
    font-size:13px;
}

.account-tabs {
    display:flex;
    gap:30px;
    margin-bottom:30px;
    font-size:13px;
}

.account-order {
    display:flex;
    gap:20px;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
    border-bottom:1px solid var(--line);
    font-size:13px;
}

.account-order small {
    display:block;
    color:var(--muted);
    font-size:11px;
}

.receipt {
    background:white;
    max-width:900px;
    margin:40px auto;
    padding:45px;
}

.receipt h1 {
    font-size:42px;
    margin-top:30px;
}

.receipt-totals {
    max-width:330px;
    margin:20px 0 20px auto;
}

.receipt img {
    height:100px;
    object-fit:contain;
}

.admin-page {
    background:#f7f3ed;
}

.admin-page header {
    background:var(--paper);
}

.admin-login {
    max-width:760px;
}

.admin-login h1 {
    font-size:52px;
}

.admin-login .form {
    max-width:410px;
    margin-top:30px;
}

.admin-shell {
    display:grid;
    grid-template-columns:235px minmax(0,1fr);
    max-width:1600px;
    margin:auto;
    min-height:650px;
}

.admin-sidebar {
    background:#2b2727;
    color:#f5ebda;
    padding:32px 24px;
}

.admin-sidebar .eyebrow {
    color:#dfbb63;
    font-size:8px;
}

.admin-sidebar h2 {
    font-size:25px;
}

.admin-sidebar nav {
    display:grid;
    gap:8px;
}

.admin-sidebar nav a {
    padding:10px 12px;
    font-size:12px;
    border-radius:4px;
}

.admin-sidebar nav a:hover {
    background:#3c3432;
    text-decoration:none;
}

.admin-sidebar nav a.selected {
    background:#b61622;
    color:white;
}

.sidebar-footer {
    border-top:1px solid #504442;
    margin-top:35px;
    padding-top:20px;
    font-size:12px;
}

.sidebar-footer .text-button {
    color:#ebc5b5;
    padding:12px 0;
}

.admin-content {
    padding:35px;
    min-width:0;
}

.admin-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-bottom:25px;
}

.admin-heading h1 {
    font-size:38px;
    margin:0;
}

.admin-heading .eyebrow {
    font-size:8px;
    margin-bottom:12px;
}

.stats-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:15px;
    margin:20px 0 30px;
}

.stat {
    padding:22px 18px;
    background:white;
    border:1px solid var(--line);
    border-radius:5px;
}

.stat span {
    font-size:11px;
    color:var(--muted);
    display:block;
}

.stat strong {
    font-size:28px;
    display:block;
    line-height:1.4;
    margin:8px 0;
    letter-spacing:-1px;
}

.stat small {
    font-size:10px;
    color:var(--muted);
    display:block;
}

.admin-columns {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
}

.panel {
    background:white;
    padding:28px;
    border:1px solid var(--line);
    border-radius:6px;
    margin-bottom:25px;
    min-width:0;
}

.panel h2 {
    font-size:26px;
    margin-bottom:22px;
}

.panel p {
    font-size:13px;
}

.panel small {
    font-size:11px;
    color:var(--muted);
}

.checklist {
    padding-left:18px;
    font-size:12px;
    color:#725f47;
}

.checklist li {
    padding:6px 0;
}

.quick-link {
    display:flex;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    padding:16px 0;
    font-size:13px;
}

.quick-link span {
    color:var(--red);
}

.toolbar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
    margin:25px 0;
}

.inline-form {
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.inline-form input {
    max-width:250px;
}

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

.admin-form input[type=number] {
    width:100%;
}

.full-width {
    grid-column:1/-1;
}

.admin-cover {
    width:90px;
    height:130px;
    object-fit:contain;
}

.refund-row {
    border-top:1px solid var(--line);
    padding-top:15px;
    margin-top:20px;
}

.refund-row small {
    display:block;
    margin-top:10px;
}

label input, label textarea, label select {
    width:100%;
}

label input[type=checkbox] {
    width:18px;
}

input[type=hidden] {
    display:none;
}

:focus-visible {
    outline:3px solid #ca991b;
    outline-offset:3px;
}

@media(min-width:1600px) {
    .editorial {
        max-width:1320px;
        margin-left:auto;
        margin-right:auto;
    }

}

@media(max-width:1100px) {
    header {
        gap:18px;
        padding:17px 4%;
    }

    header .main-navigation {
        gap:20px;
    }

    .hero {
        gap:25px;
    }

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

    .hero-book {
        width:175px;
        height:285px;
        padding:20px;
    }

    .hero-book strong {
        font-size:33px;
    }

    .hero-art {
        min-height:450px;
    }

    .admin-shell {
        grid-template-columns:200px minmax(0,1fr);
    }

    .admin-content {
        padding:25px;
    }

    .stats-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

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

    .toolbar {
        align-items:start;
    }

}

@media(max-width:800px) {
    .hero h1 {
        font-size:54px;
    }

    .hero-book {
        width:155px;
        height:250px;
        padding:16px;
    }

    .hero-book strong {
        font-size:29px;
    }

    .hb1 {
        left:3%;
    }

    .hb2 {
        right:1%;
    }

    .hero-art {
        min-height:410px;
    }

    .sun {
        width:120px;
        height:120px;
    }

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

    .promise {
        flex-wrap:wrap;
        gap:16px;
    }

    .product {
        gap:30px;
    }

    .editorial {
        padding:35px;
        gap:30px;
    }

    .editorial h2 {
        font-size:43px;
    }

    .header-tools {
        gap:10px;
    }

    .account-link {
        display:none;
    }

    .checkout-grid {
        gap:25px;
        grid-template-columns:1.3fr 1fr;
    }

    .admin-shell {
        grid-template-columns:1fr;
    }

    .admin-sidebar {
        padding:22px;
    }

    .admin-sidebar nav {
        display:flex;
        flex-wrap:wrap;
        gap:5px;
    }

    .admin-sidebar h2,.admin-sidebar .eyebrow {
        display:none;
    }

    .sidebar-footer {
        display:flex;
        align-items:center;
        gap:25px;
        border:0;
        padding:0;
        margin:10px 0 0;
    }

    .admin-content {
        padding:25px;
    }

    .cart-row {
        display:block;
    }

    .cart-row form {
        margin-top:15px;
    }

}

@media(max-width:600px) {
    .topline {
        font-size:8px;
        padding:9px 5%;
    }

    .topline span:nth-child(2) {
        display:none;
    }

    header {
        height:auto;
        flex-wrap:wrap;
        padding:10px 5%;
        gap:5px;
    }

    .brand img {
        width:110px;
        height:72px;
    }

    .header-tools {
        margin-left:auto;
    }

    .account-link {
        display:block;
    }

    header .main-navigation {
        order:3;
        justify-content:space-between;
        width:100%;
        padding:6px 0;
        margin:0;
        gap:12px;
    }

    header .main-navigation a {
        font-size:12px;
    }

    .hero {
        grid-template-columns:1fr;
        padding:35px 6%;
        gap:35px;
    }

    .hero h1 {
        font-size:58px;
        letter-spacing:-2px;
    }

    .hero-art {
        min-height:380px;
        max-width:400px;
        width:100%;
        margin:auto;
    }

    .hero-book {
        width:160px;
        height:255px;
    }

    .hb1 {
        left:12%;
        top:50px;
    }

    .hb2 {
        right:10%;
        top:100px;
    }

    .star {
        right:30px;
        top:22px;
    }

    .hero-note {
        margin-top:24px;
    }

    .promise {
        font-size:9px;
        justify-content:flex-start;
        padding:17px 6%;
        gap:15px;
    }

    .promise span {
        width:46%;
    }

    .promise span:before {
        margin-right:7px;
    }

    .section {
        padding:38px 6%;
    }

    h1 {
        font-size:42px;
        letter-spacing:-1px;
    }

    h2 {
        font-size:31px;
    }

    .grid {
        gap:20px 16px;
    }

    .cover-wrap {
        padding:13px;
    }

    .generated-cover {
        padding:12px;
    }

    .generated-cover strong {
        font-size:22px;
    }

    .generated-cover small {
        font-size:6px;
    }

    .cover-badge {
        font-size:8px;
        top:5px;
        left:5px;
        padding:3px 5px;
    }

    .book-card h3 {
        font-size:14px;
    }

    .book-meta {
        font-size:8px;
        letter-spacing:.5px;
    }

    .editorial {
        grid-template-columns:1fr;
        padding:28px;
        margin-bottom:40px;
    }

    .editorial h2 {
        font-size:43px;
    }

    footer {
        grid-template-columns:1fr 1fr;
        padding:30px 6% 15px;
        gap:25px;
    }

    .footer-brand {
        grid-column:1/-1;
        display:flex;
        align-items:center;
        gap:30px;
    }

    .footer-note {
        display:none;
    }

    .filters {
        gap:10px;
        margin:24px 0;
    }

    .filters>input:not([type=hidden]) {
        min-width:100%;
    }

    .filters select {
        max-width:100%;
        flex:1;
        font-size:12px;
    }

    .filters button {
        width:100%;
    }

    .product,.checkout-grid {
        grid-template-columns:1fr;
        gap:30px;
    }

    .product .book-card {
        max-width:270px;
    }

    .summary {
        padding:25px;
    }

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

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

    .heading-row {
        gap:12px;
        align-items:start;
    }

    .heading-row a {
        white-space:nowrap;
    }

    .admin-heading {
        align-items:start;
    }

    .admin-heading h1 {
        font-size:30px;
    }

    .admin-content {
        padding:25px 15px;
    }

    .admin-sidebar nav a {
        font-size:10px;
        padding:8px;
    }

    .stats-grid {
        gap:10px;
    }

    .stat {
        padding:15px;
    }

    .stat strong {
        font-size:24px;
    }

    .panel {
        padding:20px;
    }

    .toolbar .inline-form {
        width:100%;
    }

    .toolbar .inline-form input {
        min-width:0;
        flex:1;
    }

    .toolbar>div {
        display:flex;
        align-items:center;
    }

    .receipt {
        margin:0;
        padding:25px;
    }

    .receipt h1 {
        font-size:34px;
    }

    .receipt .admin-columns {
        grid-template-columns:1fr;
    }

    .receipt .heading-row img {
        width:110px;
    }

    .receipt .heading-row button {
        font-size:11px;
        padding:10px;
    }

    .account-order {
        flex-wrap:wrap;
    }

}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto;
    }

}

@media print {
    body {
        background:white;
        font-size:11px;
    }

    .no-print {
        display:none!important;
    }

    .receipt {
        padding:0;
        margin:0;
        max-width:none;
    }

    .receipt h1 {
        font-size:28px;
    }

    .receipt img {
        width:110px;
        height:75px;
    }

    .receipt .admin-columns {
        grid-template-columns:1fr 1fr;
    }

    table {
        font-size:10px;
    }

    tr {
        break-inside:avoid;
    }

    td,th {
        padding:8px;
    }

    .receipt .muted {
        font-size:9px;
    }

    a {
        text-decoration:none;
    }

    .table-wrap {
        overflow:visible;
    }

}

.language-switch {
    display:flex;
    gap:8px;
    align-items:center;
    white-space:nowrap;
    font-size:12px;
}

.language-switch a {
    padding:6px 3px;
}

.language-switch [aria-current] {
    color:var(--red);
    border-bottom:2px solid var(--red);
}

h1,h2,.hero-book strong,.generated-cover strong {
    font-weight:600;
}

:lang(te) {
    font-family:'Noto Sans Telugu','Noto Sans',sans-serif;
    letter-spacing:0!important;
}

html:lang(te) body {
    line-height:1.9;
}

html:lang(te) h1,html:lang(te) h2 {
    line-height:1.55;
    letter-spacing:0;
}

html:lang(te) h1 {
    font-size:44px;
}

html:lang(te) .hero h1 {
    font-size:57px;
}

html:lang(te) .hero-book strong {
    font-size:28px;
    line-height:1.6;
}

html:lang(te) .editorial h2 {
    font-size:38px;
}

html:lang(te) .generated-cover strong {
    line-height:1.7;
    font-size:23px;
}

html:lang(te) .hero-book span {
    font-size:8px;
}

html:lang(te) .topline {
    font-size:11px;
}

html:lang(te) header .main-navigation {
    gap:18px;
}

header {
    height:auto;
    min-height:118px;
    flex-wrap:wrap;
}

.header-tools {
    gap:15px;
}

@media(max-width:900px) {
    header .main-navigation {
        gap:16px;
    }

    .language-switch {
        font-size:11px;
    }

    .header-tools {
        gap:12px;
    }

    html:lang(te) .hero h1 {
        font-size:43px;
    }

}

@media(max-width:600px) {
    header {
        gap:12px;
    }

    .header-tools {
        flex-wrap:wrap;
        justify-content:flex-end;
    }

    .language-switch {
        order:-1;
    }

    .hero {
        gap:30px;
    }

    html:lang(te) h1 {
        font-size:30px;
    }

    html:lang(te) .hero h1 {
        font-size:38px;
    }

    html:lang(te) .editorial h2 {
        font-size:29px;
    }

    html:lang(te) .promise {
        line-height:1.9;
    }

    html:lang(te) .hero-book strong {
        font-size:22px;
    }

    html:lang(te) .generated-cover strong {
        font-size:20px;
    }

    .topline {
        flex-wrap:wrap;
    }

    .heading-row {
        flex-wrap:wrap;
    }

}

.header-tools .language-switch {
    margin:0;
    width:auto;
    justify-content:flex-start;
    gap:10px;
}

.header-tools .language-switch a {
    font-size:12px;
}

/* Shared interaction and accessibility states */
:where(a,button,input,select,textarea):focus-visible {
    outline:3px solid var(--red);
    outline-offset:4px;
}

button:disabled,button:disabled:hover {
    background:var(--red);
    cursor:not-allowed;
}

.product-cover {
    max-width:360px;
    width:100%;
    margin:0 auto;
}

.product-cover .cover {
    max-height:440px;
}

.product-cover .generated-cover {
    min-height:300px;
}

.main-navigation a,.language-switch a,.header-tools>a {
    min-height:44px;
    display:inline-flex;
    align-items:center;
}

.account-tabs a,.pagination a {
    min-height:44px;
    display:inline-flex;
    align-items:center;
}

.header-tools {
    margin-left:auto;
}

.language-switch {
    flex-shrink:0;
}

.admin-form input,.admin-form textarea {
    width:100%;
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto;
    }

    *,*::before,*::after {
        animation:none!important;
        transition:none!important;
    }

}

@media(max-width:600px) {
    .product-cover {
        max-width:300px;
    }

    .product-cover .generated-cover {
        min-height:250px;
    }

}

/* Generated preview covers must fit at every catalogue width. */
.cover-wrap {
    container-type: inline-size;
}
.generated-cover {
    overflow: hidden;
    gap: 8px;
    padding: clamp(10px, 8cqw, 22px);
}
.generated-cover strong {
    font-size: clamp(13px, 12cqw, 28px);
    line-height: 1.25;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}
.generated-cover small {
    font-size: clamp(6px, 4cqw, 8px);
    letter-spacing: 1px;
}
.generated-cover span {
    font-size: clamp(8px, 4cqw, 11px);
}
html:lang(te) .generated-cover strong {
    font-size: clamp(13px, 11cqw, 23px);
    line-height: 1.5;
}
.product-price {
    font-weight: 650;
    line-height: 1.4;
}
.admin-sidebar :where(a, button):focus-visible {
    outline-color: var(--gold);
}
@media(max-width:600px) {
    header {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
    }
    .brand img {
        width: 100px;
        height: 70px;
    }
    header .main-navigation {
        grid-column: 1 / -1;
        width: 100%;
    }
    .header-tools {
        margin-left: 0;
        justify-content: flex-end;
        gap: 10px;
    }
    .header-tools .language-switch {
        flex-basis: 100%;
        justify-content: flex-end;
    }
}
/* Store navigation: search-first desktop bar and accessible mobile disclosure. */
.site-header {
    display: block;
    padding: 0 6%;
    min-height: 0;
    height: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.header-main {
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 16px 0;
    max-width: 1320px;
    margin: auto;
}
.site-header .brand {
    flex-shrink: 0;
}
.site-header .brand img {
    display: block;
    width: 128px;
    height: 76px;
}
.header-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 590px;
    margin: 0 auto;
    padding-left: 16px;
    border: 1px solid #d8cfc3;
    border-radius: 6px;
    background: white;
    gap: 10px;
}
.header-search:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 2px #b6162210;
}
.header-search svg,.header-action svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    flex-shrink: 0;
}
.header-search svg {
    color: var(--muted);
}
.header-search input {
    flex: 1;
    width: 0;
    min-width: 0;
    border: 0;
    padding: 12px 0;
    min-height: 48px;
    background: transparent;
    font-size: 13px;
}
.header-search button {
    width: 46px;
    min-height: 48px;
    border-radius: 0 5px 5px 0;
    padding: 0;
    justify-content: center;
    font-size: 22px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}
.header-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 13px;
    white-space: nowrap;
}
.header-action:hover,.header-action.is-current {
    color: var(--red);
    text-decoration: none;
}
.bag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 0 5px;
    color: var(--red);
    background: #f5e5df;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 650;
}
.header-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--line);
    max-width: 1320px;
    margin: auto;
}
.site-header .main-navigation {
    order: 0;
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    width: auto;
}
.site-header .main-navigation a {
    position: relative;
    min-height: 52px;
    padding: 0;
    font-size: 13px;
    font-weight: 550;
    text-decoration: none;
    border: 0;
}
.site-header .main-navigation a:hover,.site-header .main-navigation .is-current {
    color: var(--red);
}
.site-header .main-navigation .is-current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    border-radius: 3px 3px 0 0;
}
.site-header .language-switch {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 3px;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 6px;
}
.site-header .language-switch a {
    min-height: 32px;
    padding: 5px 12px;
    border: 0;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
}
.site-header .language-switch [aria-current] {
    background: white;
    color: var(--red);
    box-shadow: 0 1px 3px #25232312;
}
.header-admin-label {
    font-size: 11px;
    color: var(--muted);
}
.menu-toggle,.nav-arrow {
    display: none;
}
@media(max-width:900px) {
    .site-header {
        padding: 0 5%;
    }
    .header-main {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 12px 0 16px;
    }
    .site-header .brand img {
        width: 105px;
        height: 65px;
    }
    .header-actions {
        grid-column: 2;
        grid-row: 1;
        gap: 8px;
    }
    .header-action {
        width: 44px;
        justify-content: center;
        position: relative;
    }
    .action-label {
        display: none;
    }
    .bag-count {
        position: absolute;
        right: -2px;
        top: 0;
        min-width: 19px;
        height: 19px;
        font-size: 10px;
    }
    .menu-toggle:not([hidden]) {
        display: inline-flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        background: transparent;
        border: 1px solid var(--line);
        color: var(--ink);
        min-height: 44px;
    }
    .menu-toggle:hover {
        background: var(--soft);
    }
    .menu-lines,.menu-lines::before,.menu-lines::after {
        display: block;
        width: 18px;
        height: 2px;
        background: currentColor;
        position: relative;
    }
    .menu-lines::before,.menu-lines::after {
        content: '';
        position: absolute;
        left: 0;
    }
    .menu-lines::before { top: -6px; }
    .menu-lines::after { top: 6px; }
    .menu-open .menu-lines { background: transparent; }
    .menu-open .menu-lines::before { top: 0; transform: rotate(45deg); }
    .menu-open .menu-lines::after { top: 0; transform: rotate(-45deg); }
    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: none;
    }
    .site-header .header-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 14px 0 22px;
    }
    .site-header.is-enhanced:not(.menu-open) .header-panel {
        display: none;
    }
    .site-header .main-navigation {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    .site-header .main-navigation a {
        padding: 0 12px;
        min-height: 50px;
        justify-content: space-between;
        border-radius: 5px;
        font-size: 14px;
    }
    .site-header .main-navigation .is-current {
        background: #f5e5df;
    }
    .site-header .main-navigation .is-current::after {
        display: none;
    }
    .nav-arrow {
        display: inline;
        color: var(--muted);
    }
    .site-header .language-switch {
        align-self: flex-start;
    }
    .site-header .language-switch a {
        min-height: 40px;
        padding: 7px 18px;
    }
}
@media print {
    .site-header { display: none; }
}
/* Equal control boxes keep English and Telugu labels aligned. */
.site-header .language-switch {
    align-items: center;
}
.site-header .language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    line-height: 1.5;
}
.filters {
    align-items: center;
}
.filters > input:not([type=hidden]),
.filters > select,
.filters > button {
    height: 52px;
    min-height: 52px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}
@media(max-width:900px) {
    .site-header .language-switch a {
        height: 44px;
        min-height: 44px;
        padding: 0 18px;
    }
}
/* Content and grid tracks must shrink without pushing the page sideways. */
.header-main {
    grid-template-columns: minmax(0, 1fr) auto;
}
.header-main > *, .product > *, .checkout-grid > *, .admin-columns > *, .admin-form > * {
    min-width: 0;
}
h1,h2,h3,.prose,.cart-row,.account-order,.summary,.panel {
    overflow-wrap: anywhere;
}
.product form {
    flex-wrap: wrap;
}
.hb2 strong {
    font-size: clamp(18px, 1.65vw, 24px);
    line-height: 1.3;
}
html:lang(te) .hb2 strong {
    font-size: 22px;
    line-height: 1.65;
}
@media(max-width:900px) {
    .header-search input,.form input,.form select,.form textarea,.admin-form input,.admin-form select,.admin-form textarea {
        font-size: 16px;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}
@media(max-width:600px) {
    .hero-book {
        width: 132px;
        height: 230px;
        padding: 14px;
    }
    .hero-book strong {
        font-size: 25px;
    }
    .hb2 strong {
        font-size: 18px;
    }
    html:lang(te) .hero-book strong {
        font-size: 21px;
        line-height: 1.6;
    }
    .hero-art {
        min-height: 350px;
    }
    .admin-sidebar nav a {
        font-size: 12px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .admin-heading,.receipt .heading-row,.toolbar > div {
        flex-wrap: wrap;
        gap: 12px;
    }
    .filters > input:not([type=hidden]),.filters > select {
        font-size: 16px;
    }
    .filters > select {
        min-width: 0;
    }
}
@media(max-width:360px) {
    .site-header .brand img {
        width: 85px;
        height: 58px;
    }
    .menu-label {
        display: none;
    }
    .menu-toggle:not([hidden]) {
        width: 44px;
        padding: 10px;
    }
    .header-actions {
        gap: 6px;
    }
    .hero h1 {
        font-size: 44px;
    }
    html:lang(te) .hero h1 {
        font-size: 32px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .book-card {
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
    }
    .filters {
        display: grid;
        grid-template-columns: 1fr;
    }
    .filters > input:not([type=hidden]),.filters > select,.filters > button {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    .footer-brand {
        flex-wrap: wrap;
        gap: 16px;
    }
}

.table-wrap:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.copyright-owner, .website-credit { overflow-wrap: anywhere; }
.copyright .website-credit a { display:inline; font-size:inherit; }
.cf-turnstile { width: 100%; min-width: 0; }

.quantity-stepper { display:inline-flex; align-items:stretch; max-width:100%; gap:0; }
.quantity-stepper input { width:72px !important; min-width:0; text-align:center; border-radius:0; margin:0; }
.quantity-stepper button { width:44px; min-height:44px; padding:0; border:1px solid #d8cbba; background:#f5eee4; color:#231f20; flex-shrink:0; }
.quantity-stepper button:disabled { opacity:.4; }
.quantity-stepper button:first-child { border-radius:4px 0 0 4px; }
.quantity-stepper button:last-child { border-radius:0 4px 4px 0; }
.bundle-editor-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:16px; align-items:end; margin-bottom:16px; }
.bundle-editor-row label { min-width:0; }
.bundle-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.bundle-grid .panel { min-width:0; }
.offer-label { color:var(--red); font-weight:700; }
.book-price del { color:#756b61; font-size:.8em; }
.book-price small { display:block; font-size:12px; }
@media(max-width:800px) { .bundle-editor-row,.bundle-grid { grid-template-columns:1fr; } }

.quantity-stepper button { display:inline-flex; align-items:center; justify-content:center; text-align:center; font-size:20px; }
.bundle-editor-row button:disabled { opacity:.4; }

.back-cover-preview{margin-top:1rem}.back-cover-preview summary,#book-entry-guide summary{cursor:pointer;padding:.5rem 0}.back-cover-preview img{display:block;width:100%;height:auto;margin-top:1rem}#book-entry-guide li{margin:.65rem 0;line-height:1.7}
