/*
 * Bookra storefront
 * Public visual layer. Loaded after the legacy stylesheet and scoped to
 * existing templates, links, forms and analytics hooks.
 */

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/bookra/inter-latin-400-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/bookra/inter-latin-ext-400-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/bookra/inter-latin-500-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/bookra/inter-latin-ext-500-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/bookra/inter-latin-600-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 600;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/bookra/inter-latin-ext-600-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 600;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/bookra/inter-latin-700-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/bookra/inter-latin-ext-700-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/bookra/inter-latin-800-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 800;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/bookra/inter-latin-ext-800-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 800;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Lora";
    src: url("/assets/fonts/bookra/lora-latin-400-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Lora";
    src: url("/assets/fonts/bookra/lora-latin-ext-400-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Lora";
    src: url("/assets/fonts/bookra/lora-latin-500-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Lora";
    src: url("/assets/fonts/bookra/lora-latin-ext-500-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Lora";
    src: url("/assets/fonts/bookra/lora-latin-600-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 600;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Lora";
    src: url("/assets/fonts/bookra/lora-latin-ext-600-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 600;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Lora";
    src: url("/assets/fonts/bookra/lora-latin-700-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Lora";
    src: url("/assets/fonts/bookra/lora-latin-ext-700-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --ink: #292721;
    --ink-soft: #3d3931;
    --muted: #6e685d;
    --muted-soft: #948c7e;
    --forest: #275c36;
    --forest-deep: #174527;
    --forest-soft: #dbe8d8;
    --leaf: #718868;
    --sage: #e9efe2;
    --ivory: #fffdf8;
    --cream: #f8f2e8;
    --cream-deep: #efe5d4;
    --sand: #dfd1bd;
    --gold: #c9a45b;
    --gold-soft: #f1dfb6;
    --peach: #f2dcc3;
    --line: #e1d7c8;
    --line-strong: #cab9a4;
    --danger: #a64037;
    --success: var(--forest);

    --primary-color: var(--forest);
    --primary-dark: var(--forest-deep);
    --primary-light: #3e744b;
    --bg-color: var(--ivory);
    --bg-light: #fbf7ef;
    --bg-cream: var(--cream);
    --bg-cream-dark: var(--cream-deep);
    --bg-tan: var(--sand);
    --bg-dark: var(--forest-deep);
    --text-color: var(--ink-soft);
    --text-light: var(--muted);
    --text-muted: var(--muted-soft);
    --border-color: var(--line-strong);
    --border-light: var(--line);
    --error-color: var(--danger);
    --warning-color: var(--gold);
    --success-color: var(--success);

    --radius-sm: 4px;
    --radius: 7px;
    --radius-lg: 8px;
    --shadow-xs: 0 2px 8px rgba(52, 43, 31, 0.05);
    --shadow-sm: 0 8px 22px rgba(52, 43, 31, 0.08);
    --shadow: 0 18px 45px rgba(52, 43, 31, 0.12);
    --shadow-lg: 0 28px 70px rgba(52, 43, 31, 0.16);
}

html {
    scroll-padding-top: 96px;
}

body {
    background:
        radial-gradient(circle at 8% 18%, rgba(198, 171, 121, 0.12), transparent 26%),
        radial-gradient(circle at 95% 6%, rgba(113, 136, 104, 0.12), transparent 24%),
        var(--ivory);
    color: var(--ink-soft);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    letter-spacing: 0;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--forest);
    color: #fff;
}

img {
    max-width: 100%;
}

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

a {
    color: inherit;
    text-underline-offset: 3px;
}

h1,
h2,
h3,
.product-title,
.product-card-title {
    color: var(--ink);
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.98;
}

.container {
    max-width: 1180px;
    padding-inline: 24px;
}

.main-content {
    background: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 14px;
    background: var(--forest-deep);
    color: #fff;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(201, 164, 91, 0.68);
    outline-offset: 3px;
}

.eyebrow,
.product-format,
.product-category,
.library-category,
.product-category-badge,
.filter-group label {
    color: var(--forest);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.eyebrow-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: var(--forest);
    transform: rotate(-8deg);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 72px;
    padding: 0;
    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid rgba(202, 185, 164, 0.72);
    box-shadow: 0 5px 20px rgba(52, 43, 31, 0.05);
    backdrop-filter: blur(14px);
}

.header-container {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 20px;
}

.logo {
    flex: 0 0 auto;
}

.logo-img {
    width: 126px;
    height: auto;
    max-width: none;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    height: 100%;
    padding: 0;
    color: #3f3a32;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--forest);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.header-search {
    position: relative;
    display: flex;
    width: min(280px, 24vw);
    flex: 0 1 280px;
    align-items: center;
    margin-left: 12px;
}

.header-search input {
    width: 100%;
    min-height: 42px;
    padding: 10px 46px 10px 16px;
    background: #fffaf2;
    border: 1px solid #d8cab8;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-search input::placeholder {
    color: #9b9286;
}

.header-search input:focus {
    outline: none;
    background: #fff;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(39, 92, 54, 0.13);
}

.header-search button {
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px;
    display: inline-flex;
    width: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
}

.header-search button:hover {
    color: var(--forest);
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #fffaf2;
    border: 1px solid #d8cab8;
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--forest);
}

.mobile-nav {
    padding: 10px 24px 20px;
    background: var(--ivory);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(52, 43, 31, 0.12);
}

.mobile-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.mobile-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 0 14px;
}

.mobile-search input,
.mobile-search button {
    min-height: 42px;
    border-radius: var(--radius-sm);
}

.mobile-search input {
    min-width: 0;
    padding: 10px 12px;
    background: #fffaf2;
    border: 1px solid #d8cab8;
}

.mobile-search button {
    padding: 0 14px;
    background: var(--forest);
    border: 1px solid var(--forest);
    color: #fff;
    font-weight: 700;
}

.user-menu-toggle {
    min-height: 42px;
    background: #fffaf2;
    border: 1px solid #d8cab8;
    border-radius: var(--radius-sm);
    color: var(--ink);
}

.user-dropdown {
    padding: 6px;
    background: var(--ivory);
    border-color: var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.user-dropdown a {
    border-radius: var(--radius-sm);
}

.profile-avatar,
.user-avatar-placeholder {
    background: var(--forest);
    font-family: "Inter", system-ui, sans-serif;
}

/* Buttons and controls */
.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-hero {
    background: var(--forest);
    color: #fff;
    box-shadow: 0 10px 20px rgba(39, 92, 54, 0.18);
}

.btn-primary:hover,
.btn-hero:hover {
    background: var(--forest-deep);
    color: #fff;
    box-shadow: 0 12px 26px rgba(23, 69, 39, 0.22);
}

.btn-secondary {
    background: rgba(255, 253, 248, 0.62);
    border-color: #c9a45b;
    color: #9a6d22;
}

.btn-secondary:hover {
    background: #fff8e7;
    border-color: #b48836;
    color: #7b5414;
}

.btn-large {
    min-height: 48px;
    padding: 13px 25px;
    font-size: 0.9rem;
}

.btn-sm {
    min-height: 38px;
    padding: 9px 15px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.bookra-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: currentColor;
}

.bookra-icon-book {
    stroke-linecap: round;
}

.form-group label,
.checkout-form label,
.auth-form label,
.contact-form label {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
}

:where(.form-group, .checkout-form, .auth-form, .contact-form) input,
:where(.form-group, .checkout-form, .auth-form, .contact-form) select,
:where(.form-group, .checkout-form, .auth-form, .contact-form) textarea,
.copy-field input {
    min-height: 46px;
    padding: 11px 13px;
    background: #fffdf8;
    border: 1px solid #cdbda8;
    border-radius: var(--radius-sm);
    color: var(--ink);
}

:where(.form-group, .checkout-form, .auth-form, .contact-form) input:focus,
:where(.form-group, .checkout-form, .auth-form, .contact-form) select:focus,
:where(.form-group, .checkout-form, .auth-form, .contact-form) textarea:focus,
.copy-field input:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(39, 92, 54, 0.13);
}

.form-group small,
.checkout-form small,
.auth-form small {
    color: var(--muted);
}

/* Home hero */
.storefront-hero {
    --hero-stage-width: min(100vw, 1180px);
    --hero-stage-height: clamp(450px, 42.875vw, 506px);
    position: relative;
    overflow: hidden;
    min-height: var(--hero-stage-height);
    background:
        linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0 39%, rgba(255, 253, 248, 0.5) 58%, rgba(248, 242, 232, 0.3) 100%),
        var(--cream);
    border-bottom: 1px solid rgba(202, 185, 164, 0.48);
    color: var(--ink);
    isolation: isolate;
}

.storefront-hero::before,
.storefront-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.storefront-hero::before {
    top: 0;
    left: 50%;
    width: var(--hero-stage-width);
    height: var(--hero-stage-height);
    background: url("/assets/images/bookra/hero-stage-bg.webp") center bottom / cover no-repeat;
    opacity: 0.96;
    transform: translateX(-50%);
}

.storefront-hero::after {
    bottom: -28px;
    left: -54px;
    width: 210px;
    height: 330px;
    background: url("/assets/images/bookra/foliage-left.webp") left bottom / contain no-repeat;
    opacity: 0.36;
}

.storefront-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(420px, 0.86fr) minmax(560px, 1.14fr);
    min-height: var(--hero-stage-height);
    align-items: start;
    gap: 38px;
    padding-top: 34px;
    padding-bottom: 0;
}

.storefront-hero-copy {
    position: relative;
    z-index: 4;
    max-width: 540px;
    padding-top: 4px;
    animation: hero-copy-in 560ms ease both;
}

.storefront-hero .eyebrow {
    color: var(--forest);
    font-size: 0.72rem;
}

.storefront-hero h1 {
    max-width: 500px;
    margin: 0 0 16px;
    color: var(--forest);
    font-size: 3.3rem;
    line-height: 0.96;
}

.storefront-lead {
    max-width: 420px;
    margin: 0 0 22px;
    color: #5f584e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.7;
}

.storefront-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.reader-proof {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reader-avatars {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.reader-avatars span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    margin-left: -7px;
    background: var(--sage);
    border: 2px solid var(--ivory);
    border-radius: 50%;
    color: var(--forest);
    font-size: 0.68rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(52, 43, 31, 0.12);
}

.reader-avatars span:first-child {
    margin-left: 0;
}

.reader-avatars span:nth-child(2) {
    background: var(--gold-soft);
    color: #7b5414;
}

.reader-avatars span:nth-child(3) {
    background: var(--peach);
    color: #7b4b27;
}

.reader-proof p {
    max-width: 310px;
    margin: 0 0 2px;
    color: #625b51;
    font-size: 0.82rem;
    line-height: 1.35;
}

.reader-proof strong {
    color: var(--forest);
    font-weight: 800;
}

.stars {
    color: var(--gold);
    font-size: 0.83rem;
    letter-spacing: 0;
    white-space: nowrap;
}

.book-stage {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    isolation: isolate;
    pointer-events: none;
}

.book-stage::before {
    display: none;
}

.hero-seal {
    --seal-size: 84px;
    position: absolute;
    top: 46px;
    right: 176px;
    z-index: 6;
    display: flex;
    width: var(--seal-size);
    height: var(--seal-size);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    box-sizing: border-box;
    padding: 12px 9px 10px;
    overflow: visible;
    background:
        radial-gradient(circle at 36% 28%, rgba(255, 241, 183, 0.98) 0 31%, rgba(246, 210, 119, 0.98) 56%, rgba(220, 169, 78, 0.98) 100%);
    border: 2px solid rgba(211, 163, 72, 0.9);
    border-radius: 50%;
    color: #7a561d;
    text-align: center;
    box-shadow:
        0 8px 22px rgba(124, 88, 24, 0.18),
        inset 0 1px 2px rgba(255, 255, 255, 0.78),
        inset 0 0 0 5px rgba(255, 246, 203, 0.76),
        inset 0 0 0 8px rgba(177, 126, 45, 0.16);
    transform: rotate(-4deg);
}

.hero-seal::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(128, 91, 30, 0.32);
    border-radius: 50%;
    pointer-events: none;
}

.hero-seal-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: #846124;
}

.hero-seal-text {
    display: block;
    max-width: 54px;
    color: #72511d;
    font-family: var(--font-sans);
    font-size: 0.49rem;
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
}

.book-mockup {
    --book-yaw: -7deg;
    --book-roll: 0deg;
    --book-lift: 0px;
    --book-page-width: 12%;
    --book-spine-width: 9%;
    --book-shadow: 14px 22px 24px rgba(52, 43, 31, 0.2);
    position: relative;
    display: block;
    width: var(--book-width, 160px);
    aspect-ratio: 2 / 3;
    flex: 0 0 auto;
    transform: translateY(var(--book-lift));
    transform-style: preserve-3d;
    transition: transform 220ms ease, filter 220ms ease;
    filter: drop-shadow(var(--book-shadow));
}

.book-mockup::before,
.book-mockup::after {
    content: "";
    position: absolute;
    top: 2.1%;
    bottom: 2.1%;
    pointer-events: none;
}

.book-mockup::before {
    left: calc(var(--book-spine-width) * -0.62);
    z-index: 1;
    width: var(--book-spine-width);
    background:
        linear-gradient(90deg, rgba(31, 27, 20, 0.28), rgba(255, 255, 255, 0.08) 68%, rgba(0, 0, 0, 0.18)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.1));
    border-radius: 3px 0 0 3px;
    transform: skewY(-1.2deg);
    opacity: 0.78;
}

.book-mockup::after {
    right: calc(var(--book-page-width) * -0.62);
    z-index: 0;
    width: var(--book-page-width);
    background:
        repeating-linear-gradient(180deg, #f7f0e6 0 2px, #dfd4c4 2px 3px),
        linear-gradient(90deg, #fef9ef, #dac9b4);
    border: 1px solid rgba(196, 178, 151, 0.68);
    border-left: 0;
    border-radius: 0 7px 7px 0;
    transform: skewY(1.1deg);
}

.book-mockup img {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 2px 7px 7px 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 32%, rgba(0, 0, 0, 0.06));
    box-shadow:
        inset 8px 0 10px rgba(0, 0, 0, 0.12),
        inset -7px 0 12px rgba(255, 255, 255, 0.1);
    transform: perspective(760px) rotateY(var(--book-yaw)) rotateZ(var(--book-roll));
    transform-origin: left center;
    transition: transform 240ms ease, filter 240ms ease;
}

.book-mockup--hero {
    width: 100%;
    --book-page-width: 14px;
    --book-spine-width: 8px;
    --book-shadow: 18px 26px 24px rgba(52, 43, 31, 0.24);
}

.hero-book .book-mockup--hero {
    --hero-book-yaw: -5deg;
    --hero-book-roll: 0deg;
    --hero-book-skew: 0deg;
    filter: drop-shadow(18px 24px 18px rgba(47, 38, 27, 0.24));
    transform: perspective(980px) rotateY(var(--hero-book-yaw)) rotateZ(var(--hero-book-roll)) skewY(var(--hero-book-skew));
    transform-origin: center bottom;
    transition: none;
}

.hero-book .book-mockup--hero::before {
    top: 1.6%;
    bottom: 1.8%;
    left: -7px;
    width: 9px;
    background:
        linear-gradient(90deg, rgba(28, 24, 18, 0.42), rgba(255, 255, 255, 0.08) 64%, rgba(0, 0, 0, 0.2)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.08));
    border-radius: 3px 0 0 3px;
    transform: skewY(-1.4deg);
    opacity: 0.82;
}

.hero-book .book-mockup--hero::after {
    top: 2.1%;
    right: -13px;
    bottom: 2%;
    width: var(--book-page-width);
    background:
        linear-gradient(90deg, #fffaf1 0%, #e7dac8 82%, #cdbda7 100%),
        repeating-linear-gradient(180deg, rgba(124, 105, 82, 0.2) 0 1px, transparent 1px 3px);
    border-color: rgba(184, 162, 132, 0.68);
    border-radius: 0 5px 5px 0;
    transform: skewY(1.6deg);
}

.hero-book .book-mockup--hero img {
    border-color: rgba(255, 255, 255, 0.9);
    border-radius: 2px 5px 5px 2px;
    box-shadow:
        inset 9px 0 12px rgba(0, 0, 0, 0.16),
        inset -7px 0 10px rgba(255, 255, 255, 0.12),
        1px 0 0 rgba(255, 255, 255, 0.7);
    transform: none;
    transition: none;
}

.book-mockup--card {
    width: 144px;
    max-width: 82%;
    --book-yaw: -6deg;
    --book-page-width: 11%;
    --book-shadow: 10px 15px 15px rgba(52, 43, 31, 0.2);
}

.book-mockup--detail {
    width: 330px;
    max-width: 84%;
    --book-yaw: -7deg;
    --book-page-width: 11%;
    --book-spine-width: 8%;
    --book-shadow: 18px 28px 25px rgba(52, 43, 31, 0.23);
}

.book-mockup--summary {
    width: 70px;
    --book-yaw: -6deg;
    --book-shadow: 7px 10px 9px rgba(52, 43, 31, 0.16);
}

.book-mockup--library {
    width: 170px;
    max-width: 72%;
    --book-yaw: -6deg;
    --book-shadow: 10px 14px 13px rgba(52, 43, 31, 0.18);
}

.book-cover-flat {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    flex: 1 1 auto;
    border-radius: 6px;
}

.book-cover-flat img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.book-cover-flat--hero {
    aspect-ratio: 2 / 3;
    height: auto;
}

.book-cover-flat--card {
    border-radius: 7px;
}

.book-cover-flat--detail {
    min-height: inherit;
    border-radius: 8px;
}

.book-cover-flat--summary {
    width: 70px;
    height: 105px;
    flex: 0 0 70px;
    border-radius: 5px;
}

.book-cover-flat--library {
    border-radius: 0;
}

.book-cover-flat--offer {
    width: 150px;
    height: 225px;
    flex: 0 0 auto;
    border-radius: var(--radius);
}

.book-mockup--offer {
    width: 150px;
}

.book-mockup--offer {
    --book-yaw: -6deg;
    --book-shadow: 8px 12px 12px rgba(52, 43, 31, 0.16);
}

.hero-book {
    position: absolute;
    z-index: 2;
    display: block;
    width: 160px;
    color: var(--ink);
    pointer-events: auto;
    text-decoration: none;
    transform-origin: bottom center;
    transform: translateX(-50%);
    transition: none;
}

.hero-book-info {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hero-book-1 {
    bottom: 126px;
    left: calc(44% + 40px);
    z-index: 3;
    width: 150px;
    --hero-book-yaw: -7deg;
    --hero-book-roll: -0.8deg;
}

.hero-book-2 {
    bottom: 66px;
    left: calc(55% + 40px);
    z-index: 5;
    width: 164px;
    --book-page-width: 16px;
    --hero-book-yaw: -3deg;
    --hero-book-roll: 0.8deg;
}

.hero-book-3 {
    bottom: 186px;
    left: calc(68.2% + 40px);
    z-index: 2;
    width: 178px;
    --hero-book-yaw: 3deg;
    --hero-book-roll: -0.4deg;
}

.hero-book-4 {
    bottom: 92px;
    left: calc(82.5% + 58px);
    z-index: 4;
    width: 150px;
    --hero-book-yaw: 5deg;
    --hero-book-roll: 0.3deg;
}

.book-stage-count-1 .hero-book-1 {
    left: 55%;
    bottom: 56px;
    width: 190px;
}

.book-stage-count-2 .hero-book-1 {
    left: 43%;
    bottom: 112px;
    width: 158px;
}

.book-stage-count-2 .hero-book-2 {
    left: 68%;
    right: auto;
    bottom: 106px;
    width: 176px;
}

.book-stage-count-3 .hero-book-1 {
    left: 44%;
}

.book-stage-count-3 .hero-book-2 {
    left: 56%;
}

.book-stage-count-3 .hero-book-3 {
    left: 73%;
    right: auto;
}

.hero-book:hover,
.hero-book:focus-visible {
    z-index: 8;
}

.hero-book:focus-visible {
    outline: 2px solid rgba(39, 92, 54, 0.72);
    outline-offset: 8px;
}

.hero-book:hover .book-mockup img,
.hero-book:focus-visible .book-mockup img {
    transform: none;
}

@keyframes hero-copy-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-books-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Catalog */
.shop-section {
    position: relative;
    padding: 0 0 70px;
    background:
        linear-gradient(180deg, #fffdf8 0, #fffaf2 42%, #fffdf8 100%);
}

.shop-filters {
    position: relative;
    top: -34px;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(150px, 0.86fr) minmax(150px, 0.86fr) minmax(170px, 0.9fr) minmax(230px, 1.2fr) auto;
    gap: 18px;
    align-items: end;
    margin: 0 auto -12px;
    padding: 18px 22px;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid rgba(222, 211, 197, 0.95);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(65, 51, 34, 0.11);
    backdrop-filter: blur(10px);
}

.shop-filters .filter-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.shop-filters .filter-group label {
    width: 100%;
    align-self: flex-start;
    color: #8b8073;
    text-align: left;
    text-transform: none;
}

.shop-filters .filter-group select,
.search-input-wrap input[type="search"],
.search-input-wrap input[type="text"] {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 9px 39px 9px 12px;
    background: #fffaf2;
    border: 1px solid #d7c9b8;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.78rem;
}

.shop-filters .filter-group select:focus,
.search-input-wrap input[type="search"]:focus,
.search-input-wrap input[type="text"]:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(39, 92, 54, 0.13);
}

.filter-search {
    width: 100%;
    min-width: 0;
}

.search-form,
.search-input-wrap {
    position: relative;
    width: 100%;
}

.search-btn,
.search-clear {
    position: absolute;
    top: 3px;
    bottom: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}

.search-btn {
    right: 3px;
    width: 34px;
    padding: 0;
    background: transparent;
    color: var(--ink);
}

.search-btn:hover {
    color: var(--forest);
}

.search-clear {
    right: 40px;
    width: 26px;
    background: transparent;
    color: var(--muted);
}

.filter-results {
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 150px;
    margin: 0;
    color: #8b8073;
    font-size: 0.76rem;
    font-weight: 600;
    text-align: right;
}

.filter-results-icon {
    width: 22px;
    height: 22px;
    color: #988c7c;
}

.catalog-heading,
.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.catalog-heading {
    margin: 10px 0 22px;
}

.catalog-heading h2,
.section-heading-row h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.82rem;
    line-height: 1.05;
}

.catalog-heading h2::after,
.section-heading-row h2::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 8px;
    background: var(--gold);
    border-radius: 99px;
}

.catalog-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--forest-deep);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.catalog-view-all span {
    font-size: 1.4rem;
    line-height: 1;
}

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

.product-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(65, 51, 34, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover,
.product-card-featured:hover {
    border-color: rgba(201, 164, 91, 0.58);
    box-shadow: 0 16px 38px rgba(65, 51, 34, 0.13);
    transform: translateY(-4px);
}

.product-card .product-link {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 10px 10px 0;
    color: inherit;
    text-decoration: none;
}

.product-card .product-cover {
    position: relative;
    display: grid;
    height: 266px;
    min-height: 0;
    place-items: center;
    margin: 0 0 12px;
    padding: 14px;
    overflow: hidden;
    aspect-ratio: auto;
    background:
        radial-gradient(circle at 50% 55%, rgba(201, 164, 91, 0.11), transparent 42%),
        linear-gradient(145deg, #fbf6ec, #f4eadb);
    border: 0;
    border-radius: 7px;
}

.product-card:nth-child(4n + 2) .product-cover {
    background:
        radial-gradient(circle at 50% 50%, rgba(113, 136, 104, 0.13), transparent 42%),
        linear-gradient(145deg, #f5f8ee, #e8efe0);
}

.product-card:nth-child(4n + 3) .product-cover {
    background:
        radial-gradient(circle at 54% 52%, rgba(201, 164, 91, 0.15), transparent 42%),
        linear-gradient(145deg, #fff7e8, #f1dfb6);
}

.product-card:nth-child(4n + 4) .product-cover {
    background:
        radial-gradient(circle at 52% 52%, rgba(39, 92, 54, 0.08), transparent 40%),
        linear-gradient(145deg, #f8f3ec, #eadccc);
}

.product-card .product-cover::after {
    content: "";
    position: absolute;
    right: 18%;
    bottom: 17px;
    left: 18%;
    height: 14px;
    background: radial-gradient(ellipse, rgba(52, 43, 31, 0.17), transparent 68%);
    filter: blur(3px);
}

.product-card .product-cover:has(.book-cover-flat) {
    display: block;
    padding: 0;
    background: transparent;
}

.product-card .product-cover:has(.book-cover-flat) .book-cover-flat {
    width: 100%;
    max-width: none;
    height: 100%;
}

.product-card .product-cover:has(.book-cover-flat)::after {
    content: none;
}

.product-card .book-mockup {
    position: relative;
    z-index: 1;
}

.product-card:hover .book-mockup--card {
    --book-lift: -5px;
    --book-yaw: -3deg;
}

.cover-placeholder {
    display: grid;
    width: 120px;
    height: 170px;
    place-items: center;
    background: var(--forest);
    border-radius: 2px 6px 6px 2px;
    color: #fff;
    font-size: 2rem;
    box-shadow: 9px 13px 12px rgba(52, 43, 31, 0.18);
}

.product-card .product-category {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 5px;
    margin: 0 5px 8px;
    padding: 4px 9px;
    background: #dfead9;
    border-radius: 999px;
    color: #526b48;
    font-size: 0.58rem;
    line-height: 1.2;
}

.product-card .product-category::before {
    content: "";
    width: 7px;
    height: 7px;
    border: 1px solid currentColor;
    border-radius: 2px;
}

.product-card .product-title {
    min-height: 2.12em;
    margin: 0 5px 8px;
    color: var(--ink);
    font-size: 1.14rem;
    line-height: 1.06;
}

.product-card .product-excerpt {
    display: -webkit-box;
    min-height: 3.55em;
    margin: 0 5px;
    overflow: hidden;
    color: #5f584e;
    font-size: 0.78rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-card .product-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin-top: auto;
    padding: 12px 14px 14px;
    background: transparent;
    border-top: 0;
}

.product-price-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.product-format {
    display: none;
}

.product-card .product-price,
.price-free {
    color: var(--ink);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
}

.price-free {
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: var(--forest);
    font-family: "Lora", Georgia, serif;
    font-size: 1.18rem;
    text-transform: uppercase;
}

.product-card .product-footer .btn {
    width: 100%;
    min-height: 32px;
    padding: 8px 12px;
    justify-content: center;
    font-size: 0.72rem;
}

.product-card .product-footer .btn span {
    margin-left: auto;
}

.featured-badge {
    top: 12px;
    left: 12px;
    z-index: 3;
    width: auto;
    height: 24px;
    padding: 0 9px;
    background: var(--gold);
    border-radius: 999px;
    color: #6e4c14;
    font-size: 0;
    line-height: 24px;
    box-shadow: none;
}

.featured-badge::after {
    content: "Destaque";
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.coming-soon-ribbon {
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 6px 9px;
    background: var(--forest-deep);
    border-radius: 999px;
    box-shadow: none;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0;
    transform: none;
}

.product-card-coming-soon {
    opacity: 0.76;
}

.pagination {
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    background: var(--ivory);
    border-color: var(--line);
    border-radius: var(--radius-sm);
    color: var(--forest);
    text-align: center;
}

.pagination .active {
    background: var(--forest);
    border-color: var(--forest);
    color: #fff;
}

.empty-state,
.empty-library {
    padding: 52px 24px;
    background: rgba(255, 253, 248, 0.94);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    text-align: center;
}

/* Home supporting sections */
.collections-section {
    margin-top: 18px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.collection-card {
    position: relative;
    display: flex;
    min-height: 132px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    padding: 22px 18px;
    background: #edf3e5;
    border: 1px solid rgba(202, 185, 164, 0.64);
    border-radius: 8px;
    color: var(--forest-deep);
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    isolation: isolate;
}

.collection-card::before,
.collection-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.collection-card::before {
    background: url("/assets/images/bookra/collection-health.webp") center / cover no-repeat;
}

.collection-card::after {
    z-index: -1;
    background: linear-gradient(90deg, rgba(255, 253, 248, 0.72), rgba(255, 253, 248, 0.14) 68%);
}

.collection-card-2 {
    color: #87621e;
}

.collection-card-2::before {
    background-image: url("/assets/images/bookra/collection-finance.webp");
}

.collection-card-3::before {
    background-image: url("/assets/images/bookra/collection-growth.webp");
}

.collection-card-4 {
    color: #6c4424;
}

.collection-card-4::before {
    background-image: url("/assets/images/bookra/collection-adventure.webp");
}

.collection-card strong {
    display: block;
    max-width: 170px;
    color: currentColor;
    font-family: "Lora", Georgia, serif;
    font-size: 1.55rem;
    line-height: 0.95;
}

.collection-card small {
    display: block;
    max-width: 160px;
    margin-top: 10px;
    color: currentColor;
    font-size: 0.78rem;
    line-height: 1.35;
}

.collection-card i {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-style: normal;
    line-height: 1;
    opacity: 0.78;
}

.assurance-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 16px;
    padding: 0;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-xs);
}

.assurance-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 17px 18px;
}

.assurance-item + .assurance-item {
    border-left: 1px solid var(--line);
}

.assurance-item > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--gold);
    font-size: 1.32rem;
}

.assurance-item:nth-child(2) > span,
.assurance-item:nth-child(3) > span {
    color: var(--forest);
}

.assurance-item strong,
.assurance-item small {
    display: block;
}

.assurance-item strong {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.86rem;
    line-height: 1.2;
}

.assurance-item small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.35;
}

.home-testimonials {
    margin-top: 26px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.reader-testimonial {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    padding: 18px;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-xs);
}

.testimonial-avatar {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #e9efe2, #f1dfb6);
    border: 3px solid #fffaf2;
    border-radius: 50%;
    color: var(--forest);
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(52, 43, 31, 0.12);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reader-testimonial blockquote {
    margin: 3px 0 9px;
    color: #514b43;
    font-size: 0.78rem;
    line-height: 1.42;
}

.reader-testimonial cite {
    display: block;
    color: var(--ink);
    font-style: normal;
    font-size: 0.72rem;
    line-height: 1.35;
}

.reader-testimonial cite strong,
.reader-testimonial cite span {
    display: block;
}

.reader-testimonial cite span {
    color: var(--muted);
}

/* Product pages */
.breadcrumb-section {
    padding: 14px 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.76rem;
}

.breadcrumb a {
    color: var(--forest);
    text-decoration: none;
}

.product-detail-section {
    padding: 56px 0 78px;
    background:
        radial-gradient(circle at 12% 10%, rgba(201, 164, 91, 0.13), transparent 24%),
        var(--ivory);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
}

.product-detail-image {
    position: sticky;
    top: 104px;
    display: grid;
    min-height: 520px;
    place-items: center;
    padding: 38px;
    background:
        radial-gradient(circle at 50% 60%, rgba(201, 164, 91, 0.13), transparent 42%),
        linear-gradient(145deg, #fbf6ec, #eee2d0);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.product-detail-image:has(.book-cover-flat) {
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.product-detail-image:has(.book-cover-flat) .book-cover-flat {
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    height: 100%;
}

.product-cover-large {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 2px 7px 7px 2px;
    filter: none;
}

.cover-placeholder-large {
    display: grid;
    width: 260px;
    height: 380px;
    place-items: center;
    background: var(--forest);
    border-radius: 2px 7px 7px 2px;
    color: #fff;
    box-shadow: 16px 24px 22px rgba(52, 43, 31, 0.18);
}

.product-detail-info {
    max-width: 690px;
    padding-top: 10px;
}

.product-category-badge {
    display: inline-flex;
    padding: 6px 10px;
    background: #dfead9;
    border-radius: 999px;
    color: #526b48;
    font-size: 0.62rem;
}

.product-detail-info h1 {
    margin: 12px 0 16px;
    color: var(--forest);
    font-size: 3.72rem;
}

.product-subtitle {
    max-width: 620px;
    margin-bottom: 28px;
    color: #5f584e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.04rem;
    line-height: 1.72;
}

.product-price-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 4px 24px;
    margin: 0 0 22px;
    padding: 20px 0;
    background: transparent;
    border: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    text-align: left;
}

.product-price-box .price-label,
.product-price-box .price-method {
    color: var(--muted);
    font-size: 0.75rem;
}

.product-price-box .price-value {
    grid-row: 1 / span 2;
    grid-column: 2;
    margin: 0;
    color: var(--forest);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 2.08rem;
    font-weight: 800;
}

.product-price-box-free {
    background: transparent;
    border-color: var(--line);
}

.product-detail-info > .btn-block {
    min-height: 54px;
}

.product-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 22px;
    border: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
}

.product-benefits .benefit {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 14px 10px;
    background: transparent;
    border-radius: 0;
}

.product-benefits .benefit + .benefit {
    border-left: 1px solid var(--line);
}

.product-benefits .benefit-icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--gold);
    font-size: 1rem;
}

.product-benefits .benefit span:last-child {
    color: #4f5f49;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.guarantee-box,
.already-owns-box {
    background: #edf3e8;
    border: 1px solid #bacdaf;
    border-radius: 8px;
}

.guarantee-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    background: var(--forest);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
}

.guarantee-box strong,
.guarantee-box p {
    color: var(--forest-deep);
}

.product-description-full,
.product-preview-section,
.pub-carousel {
    margin-top: 58px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.product-description-full h2,
.product-preview-section h2,
.pub-carousel-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 2.05rem;
}

.product-description-full .description-content {
    max-width: 820px;
    color: #403b34;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.04rem;
    line-height: 1.86;
}

.product-description-full .description-content p {
    text-align: left;
}

.product-preview-iframe embed {
    border-color: var(--line);
    border-radius: var(--radius-sm);
}

.pub-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.pub-carousel-btn {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--forest);
}

.testimonial-card,
.author-card {
    padding: 22px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-xs);
}

.testimonial-card blockquote {
    color: var(--ink-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.author-photo {
    border-color: var(--line);
}

.cta-section {
    padding: 56px 0;
    background: var(--forest);
}

.cta-section h2 {
    color: #fff;
    font-size: 2.35rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
}

.cta-section .btn {
    background: #fffdf8;
    color: var(--forest);
}

/* Checkout, auth and account */
.checkout-section,
.thankyou-section,
.auth-section,
.library-section,
.profile-section,
.error-section {
    padding: 58px 0 78px;
    background:
        radial-gradient(circle at 12% 12%, rgba(201, 164, 91, 0.13), transparent 24%),
        var(--cream);
}

.checkout-form-container {
    max-width: 1080px;
    margin: 0 auto;
}

.checkout-form-container > h1,
.checkout-success > h1 {
    margin-bottom: 26px;
    color: var(--forest);
    font-size: 3rem;
    text-align: left;
}

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

.checkout-form-box,
.checkout-summary,
.pix-container,
.thankyou-box,
.auth-box,
.profile-card,
.library-card,
.error-box {
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.checkout-form-box {
    padding: 32px;
}

.checkout-summary {
    position: sticky;
    top: 104px;
    padding: 24px;
}

.checkout-summary h2 {
    margin-bottom: 18px;
    color: var(--ink);
    font-size: 1.65rem;
}

.summary-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.summary-cover {
    width: 100%;
    height: 100%;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 2px 5px 5px 2px;
    filter: none;
}

.summary-icon {
    display: grid;
    width: 64px;
    height: 82px;
    flex: 0 0 auto;
    place-items: center;
    background: var(--forest);
    color: #fff;
    font-size: 0.72rem;
}

.summary-details h3 {
    margin: 0 0 5px;
    color: var(--ink);
    font-family: "Lora", Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.02;
}

.summary-details p,
.summary-payment span:last-child {
    color: var(--muted);
    font-size: 0.78rem;
}

.summary-total {
    border-top-color: var(--line);
}

.summary-total strong {
    color: var(--forest);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1.35rem;
}

.pix-badge {
    background: #dff3e7;
    color: var(--forest);
    font-family: "Inter", system-ui, sans-serif;
}

.guest-checkout-notice,
.guest-pix-notice,
.set-password-banner,
.library-info-box,
.order-summary,
.order-details,
.tips-box {
    background: #fff7e8;
    border: 1px solid #e8d2a8;
    border-radius: 8px;
}

.guest-checkout-notice {
    max-width: none;
    margin-bottom: 22px;
    padding: 14px 18px;
    border-left: 3px solid var(--forest);
}

.guest-checkout-icon {
    display: none;
}

.guest-checkout-notice p {
    margin: 0;
}

.guest-checkout-notice .guest-checkout-login-hint {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8rem;
}

.security-badges {
    color: #526b48;
    font-size: 0.74rem;
}

.checkout-success {
    max-width: 720px;
    text-align: left;
}

.pix-container {
    padding: 32px;
}

.qr-code-box {
    text-align: center;
}

.pix-instructions {
    padding: 18px 22px;
    background: var(--sage);
    border-radius: 8px;
}

.pix-instructions h2 {
    margin-bottom: 10px;
    font-size: 1.45rem;
}

.copy-field {
    display: flex;
    gap: 8px;
}

.timer-progress {
    background: var(--forest);
}

.spinner {
    border-top-color: var(--forest);
}

.auth-section {
    display: block;
    min-height: 0;
}

.auth-section .container {
    max-width: 520px;
}

.auth-box {
    position: relative;
    overflow: hidden;
    padding: 38px;
}

.auth-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--forest);
}

.auth-box h1 {
    margin-bottom: 24px;
    color: var(--forest);
    font-size: 2.7rem;
    text-align: left;
}

.social-login {
    gap: 10px;
}

.btn-social,
.btn-oauth {
    min-height: 46px;
    background: #fffdf8;
    border-color: var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
}

.divider::before,
.divider::after,
.auth-divider::before,
.auth-divider::after {
    background: var(--line);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.auth-footer a,
.forgot-link {
    color: var(--forest);
    font-weight: 800;
}

.library-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.library-header h1 {
    color: var(--forest);
    font-size: 3rem;
}

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

.library-card {
    overflow: hidden;
}

.library-cover {
    display: grid;
    aspect-ratio: 4 / 5;
    place-items: center;
    padding: 20px;
    background: linear-gradient(145deg, #fbf6ec, #eee2d0);
}

.library-cover:has(.book-cover-flat) {
    padding: 0;
    background: transparent;
}

.library-cover:has(.book-cover-flat) .book-cover-flat {
    width: 100%;
    max-width: none;
    height: 100%;
}

.library-cover .book-mockup {
    justify-self: center;
}

.library-cover .book-cover-flat {
    justify-self: center;
}

.library-info h3 {
    color: var(--ink);
    font-size: 1.35rem;
}

.profile-container {
    max-width: 720px;
}

.profile-card {
    padding: 28px;
}

.profile-stat-value {
    color: var(--forest);
    font-family: "Inter", system-ui, sans-serif;
}

.thankyou-box,
.error-box {
    max-width: 680px;
    padding: 40px;
    text-align: left;
}

.success-icon,
.error-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 20px;
    border-radius: 50%;
    font-size: 1.5rem;
}

.thankyou-box h1,
.error-box h1 {
    color: var(--forest);
    font-size: 2.65rem;
}

/* Editorial and legal content */
.legal-section {
    padding: 64px 0 88px;
    background:
        radial-gradient(circle at 10% 12%, rgba(201, 164, 91, 0.12), transparent 24%),
        var(--ivory);
}

.legal-content {
    max-width: 860px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--ink-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.04rem;
}

.legal-content h1 {
    margin-bottom: 10px;
    color: var(--forest);
    font-size: 3.25rem;
}

.legal-content .last-update {
    margin-bottom: 36px;
    padding-bottom: 20px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.78rem;
}

.legal-content h2 {
    margin: 36px 0 12px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--ink);
    font-size: 1.78rem;
}

.legal-content h3 {
    color: var(--ink);
}

.legal-content p,
.legal-content ul {
    color: #403b34;
    line-height: 1.82;
}

.legal-content p {
    text-align: left;
}

.legal-content li {
    margin: 0;
    padding: 8px 0 8px 22px;
    background: transparent;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.legal-content li::before {
    left: 2px;
    top: 18px;
    background: var(--forest);
}

.legal-content a {
    color: var(--forest);
    border-bottom-color: rgba(39, 92, 54, 0.35);
}

.contact-form {
    margin-top: 28px;
    padding: 30px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.contact-channels h2 {
    color: var(--ink);
}

.contact-link {
    border-radius: var(--radius-sm);
}

/* Alerts */
.alert {
    border-radius: 8px;
}

.alert-error {
    background: #f8e9e4;
    border-color: #c78476;
    color: #702d29;
}

.alert-success {
    background: #e6f0e5;
    border-color: #94ad8d;
    color: var(--forest-deep);
}

/* Footer and floating notices */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 26px 0 0;
    background: #f7f0e4;
    border-top: 1px solid var(--line);
}

.footer-leaf {
    position: absolute;
    bottom: -10px;
    left: -54px;
    width: 190px;
    height: 295px;
    opacity: 0.32;
    background: url("/assets/images/bookra/foliage-left.webp") left bottom / contain no-repeat;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(190px, 1.1fr) minmax(130px, 0.62fr) minmax(160px, 0.78fr) minmax(230px, 1.2fr) minmax(170px, 0.82fr);
    gap: 34px;
    align-items: start;
    padding-top: 0;
    padding-bottom: 22px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 8px;
}

.footer-logo img {
    width: 132px;
    height: auto;
    filter: none;
}

.footer-brand p,
.footer-assurance p {
    max-width: 260px;
    margin: 0;
    color: #5d584f;
    font-size: 0.72rem;
    line-height: 1.45;
    text-align: left;
}

.footer-nav,
.footer-assurance,
.footer-payments {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 8px;
}

.footer-nav strong,
.footer-assurance > strong,
.footer-payments > strong {
    margin-bottom: 2px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.88rem;
    line-height: 1.2;
}

.footer-nav a,
.footer-register-link {
    color: #514b43;
    font-size: 0.72rem;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-register-link:hover {
    color: var(--forest);
}

.footer-register-link {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
    padding: 7px 14px;
    background: var(--forest);
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 800;
}

.footer-register-link:hover {
    background: var(--forest-deep);
    color: #fff;
}

.footer-social {
    display: flex;
    justify-content: flex-start;
    gap: 7px;
    margin: 10px 0 0;
}

.footer-social .social-link {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(39, 92, 54, 0.22);
    border-radius: 50%;
    color: var(--forest);
}

.footer-social .social-link svg {
    width: 14px;
    height: 14px;
}

.payment-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}

.payment-marks span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 8px;
    background: rgba(255, 253, 248, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--forest);
    font-size: 0.72rem;
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 5px;
    padding-bottom: 5px;
    background: var(--forest);
}

.site-footer .footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.68rem;
    text-align: center;
}

.lgpd-banner {
    right: 16px;
    bottom: 16px;
    left: auto;
    width: min(390px, calc(100vw - 32px));
    padding: 0;
    background: var(--forest-deep);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    transform: translateY(calc(100% + 48px));
}

.lgpd-banner__content {
    padding: 13px 14px;
    gap: 12px;
}

.lgpd-banner__text {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.72rem;
    line-height: 1.45;
}

.lgpd-banner__link {
    color: #fff;
}

.lgpd-banner__btn {
    min-height: 34px;
    padding: 8px 13px;
    background: #fffdf8;
    border-radius: var(--radius-sm);
    color: var(--forest);
    font-weight: 800;
}

.pwa-banner {
    background: #fffdf8;
    border-top-color: var(--forest);
}

.pwa-banner__btn {
    border-radius: var(--radius-sm);
}

.pwa-banner__btn--install {
    background: var(--forest);
}

.dev-banner {
    background: var(--gold-soft);
    color: var(--ink);
}

/* Responsive */
@media (max-width: 1130px) {
    .main-nav {
        gap: 20px;
    }

    .header-search {
        width: min(230px, 22vw);
        flex-basis: 230px;
    }

    .storefront-hero-grid {
        grid-template-columns: minmax(380px, 0.86fr) minmax(480px, 1.14fr);
        gap: 24px;
    }

    .storefront-hero h1 {
        font-size: 3.18rem;
    }

    .hero-book-1 {
        bottom: 108px;
        left: 44%;
        width: 144px;
    }

    .hero-book-2 {
        bottom: 72px;
        left: 55%;
        width: 158px;
    }

    .hero-book-3 {
        bottom: 116px;
        left: 68.2%;
        width: 170px;
    }

    .hero-book-4 {
        bottom: 108px;
        width: 144px;
    }

    .hero-seal {
        --seal-size: 78px;
        top: 44px;
        right: 12%;
    }

    .shop-filters {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .filter-search {
        grid-column: span 2;
    }

    .products-grid,
    .collections-grid,
    .assurance-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .assurance-item:nth-child(4) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.9fr;
    }
}

@media (max-width: 980px) {
    .storefront-hero {
        min-height: 0;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav.show {
        display: flex !important;
    }

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

    .storefront-hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 44px;
    }

    .storefront-hero::before {
        display: none;
    }

    .storefront-hero-copy {
        max-width: 680px;
    }

    .storefront-hero h1 {
        max-width: 650px;
        font-size: 3.9rem;
    }

    .book-stage {
        position: relative;
        inset: auto;
        z-index: 2;
        width: min(720px, 100%);
        height: clamp(340px, 50vw, 410px);
        margin: 0 auto;
        overflow: hidden;
        pointer-events: none;
    }

    .book-stage::before {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 0;
        background: url("/assets/images/bookra/hero-stage-bg.webp") center bottom / cover no-repeat;
        opacity: 0.96;
    }

    .hero-book {
        width: 124px;
    }

    .hero-book-1 {
        bottom: 22.5%;
        left: 22%;
        width: 118px;
    }

    .hero-book-2 {
        bottom: 9.5%;
        left: 45.5%;
        width: 136px;
    }

    .hero-book-3 {
        bottom: 24%;
        left: 68%;
        width: 142px;
    }

    .hero-book-4 {
        right: auto;
        bottom: 23%;
        left: 87%;
        width: 116px;
    }

    .hero-seal {
        --seal-size: 72px;
        top: 4%;
        right: 17%;
        padding: 10px 8px 9px;
    }

    .hero-seal-icon {
        width: 15px;
        height: 15px;
    }

    .hero-seal-text {
        max-width: 48px;
        font-size: 0.43rem;
    }

    .product-detail-grid {
        grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
        gap: 36px;
    }

    .product-detail-image {
        min-height: 430px;
        padding: 24px;
    }

    .product-detail-info h1 {
        font-size: 3rem;
    }

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

    .checkout-summary {
        position: static;
    }

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

@media (max-width: 767px) {
    .container {
        padding-inline: 18px;
    }

    .site-header,
    .header-container {
        min-height: 66px;
    }

    .logo-img {
        width: 106px;
    }

    .header-search {
        display: none;
    }

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

    .header-actions .btn-primary {
        display: none;
    }

    .storefront-hero {
        min-height: 0;
    }

    .storefront-hero-grid {
        gap: 22px;
        padding-top: 38px;
        padding-bottom: 52px;
    }

    .storefront-hero h1 {
        font-size: 3.15rem;
    }

    .storefront-lead {
        font-size: 0.96rem;
    }

    .storefront-actions {
        gap: 10px;
    }

    .storefront-actions .btn {
        flex: 1 1 155px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .storefront-actions .btn:first-child {
        white-space: nowrap;
    }

    .reader-proof {
        align-items: flex-start;
    }

    .book-stage {
        width: min(100%, 640px);
        height: clamp(300px, 66vw, 360px);
    }

    .book-stage::before {
        background-position: center bottom;
    }

    .hero-book {
        width: 102px;
    }

    .hero-book-1 {
        bottom: 22%;
        left: 13%;
        width: 96px;
    }

    .hero-book-2 {
        bottom: 9%;
        left: 39%;
        width: 112px;
    }

    .hero-book-3 {
        right: auto;
        bottom: 23%;
        left: 65%;
        width: 112px;
    }

    .hero-book-4 {
        right: auto;
        bottom: 22%;
        left: 86%;
        width: 94px;
    }

    .hero-seal {
        --seal-size: 64px;
        padding: 9px 7px 8px;
        right: 12%;
    }

    .hero-seal::before {
        inset: 5px;
    }

    .hero-seal-icon {
        width: 13px;
        height: 13px;
    }

    .hero-seal-text {
        max-width: 44px;
        font-size: 0.38rem;
        line-height: 1.02;
    }

    .shop-section {
        padding-bottom: 54px;
    }

    .shop-filters {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        top: -34px;
        margin-bottom: -14px;
        padding: 14px;
        border-radius: 10px;
    }

    .shop-filters .filter-group {
        width: auto;
    }

    .filter-search,
    .filter-results {
        grid-column: 1 / -1;
    }

    .filter-results {
        justify-content: space-between;
        min-width: 0;
        text-align: left;
    }

    .catalog-heading,
    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .catalog-heading h2,
    .section-heading-row h2 {
        font-size: 1.75rem;
    }

    .products-grid,
    .collections-grid,
    .assurance-strip,
    .library-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .product-card .product-cover {
        height: 224px;
    }

    .product-card .book-mockup--card {
        width: 118px;
        max-width: 82%;
    }

    .product-card .product-title {
        font-size: 1.04rem;
    }

    .assurance-item {
        padding: 14px;
    }

    .assurance-item:nth-child(3) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .assurance-item:nth-child(4) {
        border-left: 1px solid var(--line);
    }

    .product-detail-section,
    .checkout-section,
    .thankyou-section,
    .auth-section,
    .library-section,
    .profile-section,
    .legal-section,
    .error-section {
        padding: 40px 0 58px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-detail-image {
        position: relative;
        top: auto;
        min-height: 380px;
    }

    .product-detail-info h1,
    .checkout-form-container > h1,
    .checkout-success > h1,
    .legal-content h1,
    .library-header h1 {
        font-size: 2.65rem;
    }

    .product-price-box {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .product-price-box .price-value {
        grid-row: auto;
        grid-column: auto;
        justify-self: start;
        font-size: 1.95rem;
    }

    .product-benefits {
        grid-template-columns: 1fr;
    }

    .product-benefits .benefit + .benefit {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .checkout-form-box,
    .pix-container,
    .auth-box,
    .contact-form,
    .profile-card,
    .thankyou-box,
    .error-box {
        padding: 24px;
    }

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

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

@media (max-width: 520px) {
    .storefront-hero h1 {
        font-size: 2.75rem;
    }

    .book-stage {
        width: calc(100% + 24px);
        height: clamp(286px, 84vw, 330px);
        margin-right: -12px;
        margin-left: -12px;
    }

    .hero-book {
        width: 82px;
    }

    .hero-book-1 {
        left: 13%;
        width: 78px;
    }

    .hero-book-2 {
        left: 39%;
        width: 92px;
    }

    .hero-book-3 {
        left: 66%;
        width: 92px;
    }

    .hero-book-4 {
        left: 87%;
        width: 76px;
    }

    .hero-seal {
        --seal-size: 56px;
        top: 5%;
        right: 10%;
        padding: 8px 6px 7px;
    }

    .hero-seal::before {
        inset: 4px;
    }

    .hero-seal-icon {
        width: 12px;
        height: 12px;
    }

    .hero-seal-text {
        max-width: 38px;
        font-size: 0.33rem;
    }

    .shop-filters,
    .products-grid,
    .collections-grid,
    .assurance-strip,
    .library-grid {
        grid-template-columns: 1fr;
    }

    .assurance-item + .assurance-item,
    .assurance-item:nth-child(4) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .product-card .product-cover {
        height: 266px;
    }

    .product-card .book-mockup--card {
        width: 142px;
        max-width: 82%;
    }

    .reader-testimonial {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }

    .copy-field {
        flex-direction: column;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
