:root {
    --bg: #f8efe7;
    --card: #fffaf6;
    --ink: #433126;
    --accent: #d07d57;
    --accent-dark: #8b4d34;
    --line: #e4ccbb;
    --soft-pink: #f5d7d8;
    --soft-yellow: #f8ebbe;
}

/* Temporary V1 migration workspace */
.migration-module-card { border-color: #b9905f; }
.migration-panel { display: grid; gap: 16px; }
.migration-panel input[type="file"] { padding: 14px; border: 1px dashed #b9aaa0; border-radius: 12px; background: #fff; }
.migration-actions { margin-top: 4px; }
.migration-report { margin-top: 28px; display: grid; gap: 18px; }
.migration-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.migration-summary > div { padding: 18px; border: 1px solid #eadfd7; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px #4331260d; }
.migration-summary span { display: block; color: #756b65; font-size: .86rem; }
.migration-summary strong { display: block; margin-top: 5px; color: #433126; font-size: 1.65rem; }
.migration-ready { color: #26734d; font-weight: 700; }
.migration-blocked { color: #a13d32; font-weight: 700; }
.migration-table-wrap { overflow-x: auto; }
.migration-issues { width: 100%; border-collapse: collapse; min-width: 680px; }
.migration-issues th, .migration-issues td { padding: 12px; border-bottom: 1px solid #eadfd7; text-align: left; vertical-align: top; }
.migration-severity { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.migration-severity.warning { color: #7b5413; background: #fff1c9; }
.migration-severity.error { color: #8d2f28; background: #ffe0dc; }

/* Seller dashboard */
body[data-public-page="vendedor"] {
    background: #fbf7f4;
    color: #433d3a;
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

body[data-public-page="vendedor"] .site-header,
body[data-public-page="vendedor"] .site-footer {
    background: #fff;
}

body[data-public-page="vendedor"] .site-header a,
body[data-public-page="vendedor"] .site-header button,
body[data-public-page="vendedor"] .site-footer,
body[data-public-page="vendedor"] button,
body[data-public-page="vendedor"] input {
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

.seller-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 8%, rgba(255, 255, 255, .55) 0 5%, transparent 5.2%),
        linear-gradient(120deg, #f7dfdf 0%, #f3d7d5 52%, #eccbc8 100%);
}

.seller-hero::before,
.seller-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.seller-hero::before {
    width: 370px;
    height: 370px;
    right: -110px;
    bottom: -210px;
    border: 1px solid rgba(139, 77, 52, .13);
}

.seller-hero::after {
    width: 220px;
    height: 220px;
    right: 8%;
    top: -155px;
    background: rgba(255, 255, 255, .2);
}

.seller-hero-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: center;
    gap: clamp(36px, 7vw, 96px);
    min-height: 390px;
    padding-block: clamp(58px, 8vw, 94px);
}

.seller-kicker {
    margin: 0 0 8px;
    color: #8b4d58;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.seller-hero-copy h1 {
    max-width: 650px;
    margin: 0 0 18px;
    color: #493b39;
    font-size: clamp(2.75rem, 6vw, 5.2rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: .98;
}

.seller-hero-copy > p:not(.seller-kicker) {
    max-width: 620px;
    margin: 0;
    color: #695856;
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 1.65;
}

.seller-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 27px;
}

.seller-hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(103, 70, 65, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    color: #66504d;
    font-size: .84rem;
    font-weight: 500;
}

.seller-hero-pills span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a65f6b;
}

.seller-hero-art {
    position: relative;
    min-height: 240px;
}

.seller-art-card {
    position: absolute;
    border: 1px solid rgba(113, 74, 70, .12);
    box-shadow: 0 24px 55px rgba(107, 67, 65, .15);
}

.seller-art-card-main {
    inset: 5% 5% 5% 8%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 250, 247, .7));
    transform: rotate(2.5deg);
}

.seller-art-card-main::before {
    content: "";
    position: absolute;
    top: 26px;
    right: 26px;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #e9c6c5 0 4px, transparent 5px 12px);
    opacity: .55;
}

.seller-art-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: #8b4d58;
    color: #fff;
    font-size: 1.5rem;
}

.seller-art-card-main small {
    margin-bottom: 5px;
    color: #947874;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.seller-art-card-main strong {
    max-width: 260px;
    color: #4f4140;
    font-size: 1.35rem;
    line-height: 1.25;
}

.seller-art-card-float {
    right: -2%;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    border-radius: 16px;
    background: #8b4d58;
    color: #fff;
    transform: rotate(-4deg);
}

.seller-workspace {
    padding: clamp(42px, 7vw, 76px) 0 clamp(72px, 9vw, 120px);
}

.seller-workspace-wrap {
    width: min(1180px, calc(100% - 32px));
}

.seller-workspace-heading,
.seller-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.seller-workspace-heading {
    margin-bottom: 26px;
}

.seller-workspace-heading h2,
.seller-section-heading h3 {
    margin: 0;
    color: #433d3a;
    line-height: 1.1;
}

.seller-workspace-heading h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.seller-session-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.seller-primary-action,
.seller-secondary-action,
.seller-text-action {
    min-height: 46px;
    border-radius: 12px;
    padding: 10px 19px;
    font-size: .92rem;
    font-weight: 600;
}

.seller-primary-action {
    border: 1px solid #8b4d58;
    background: #8b4d58;
    color: #fff;
}

.seller-primary-action:hover {
    border-color: #743f49;
    background: #743f49;
}

.seller-secondary-action {
    border: 1px solid #b99691;
    background: #fff;
    color: #694f4c;
}

.seller-secondary-action:hover {
    background: #fff8f5;
}

.seller-text-action {
    border: 0;
    background: transparent;
    color: #775f5b;
    box-shadow: none;
}

.seller-auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr);
    overflow: hidden;
    border: 1px solid #e2d4cf;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(73, 57, 52, .08);
}

.seller-auth-form {
    padding: clamp(26px, 5vw, 48px);
}

.seller-panel-heading,
.seller-link-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.seller-panel-heading {
    margin-bottom: 27px;
}

.seller-panel-heading h2,
.seller-link-heading h3 {
    margin: 0 0 6px;
    color: #463f3c;
}

.seller-panel-heading p,
.seller-link-heading p {
    margin: 0;
    color: #786f6b;
    line-height: 1.5;
}

.seller-panel-icon,
.seller-link-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f8e8e7;
    color: #8b4d58;
    font-size: 1.15rem;
}

body[data-public-page="vendedor"] label {
    display: block;
    margin: 0 0 7px;
    color: #5b5350;
    font-size: .88rem;
    font-weight: 600;
}

body[data-public-page="vendedor"] input[type="email"],
body[data-public-page="vendedor"] input[type="password"],
body[data-public-page="vendedor"] input[type="text"] {
    width: 100%;
    min-height: 50px;
    margin: 0 0 18px;
    padding: 0 16px;
    border: 1px solid #d4c7c2;
    border-radius: 12px;
    background: #fffdfc;
    color: #443d3a;
    font-size: .96rem;
}

body[data-public-page="vendedor"] input:focus {
    border-color: #8b4d58;
    outline: 3px solid rgba(139, 77, 88, .13);
}

.seller-auth-form .seller-primary-action {
    width: 100%;
    margin-top: 2px;
}

.seller-auth-form .result,
.seller-link-card .result {
    min-height: 0;
    margin-top: 14px;
    color: #746965;
    font-size: .84rem;
}

.seller-auth-guide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 50px);
    background: linear-gradient(145deg, #8b4d58, #6e4149);
    color: #fff;
}

.seller-guide-label {
    margin: 0 0 23px;
    color: #f1d6d8;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.seller-guide-list {
    display: grid;
    gap: 23px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seller-guide-list li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.seller-guide-list li > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    font-weight: 700;
}

.seller-guide-list strong,
.seller-guide-list small {
    display: block;
}

.seller-guide-list strong {
    margin-bottom: 3px;
    font-size: 1rem;
}

.seller-guide-list small {
    color: rgba(255, 255, 255, .72);
    font-size: .84rem;
    line-height: 1.48;
}

.seller-dashboard {
    display: grid;
    gap: 48px;
    animation: account-panel-in .22s ease-out;
}

.seller-dashboard-top {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: 18px;
}

.seller-profile-card,
.seller-link-card {
    min-width: 0;
    padding: 25px;
    border: 1px solid #e0d3ce;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(73, 57, 52, .06);
}

.seller-profile-card {
    display: flex;
    align-items: center;
    gap: 17px;
}

.seller-profile-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #f2d9da;
    color: #8b4d58;
    font-size: 1.55rem;
    font-weight: 700;
}

.seller-profile-copy {
    min-width: 0;
}

.seller-profile-label {
    margin: 0 0 3px;
    color: #8b4d58;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.seller-profile-copy h3 {
    margin: 0 0 2px;
    overflow: hidden;
    color: #453d3a;
    font-size: 1.25rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-profile-copy > p:not(.seller-profile-label) {
    margin: 0;
    overflow: hidden;
    color: #7a706c;
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.seller-profile-meta span {
    padding: 5px 9px;
    border-radius: 8px;
    background: #f8f2ef;
    color: #766660;
    font-size: .75rem;
}

.seller-link-heading {
    margin-bottom: 18px;
}

.seller-link-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.seller-link-control input[type="text"] {
    margin: 0;
    background: #f9f5f2;
    color: #685e5a;
}

.seller-section-heading {
    margin-bottom: 20px;
}

.seller-section-heading h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.seller-section-heading > p {
    max-width: 440px;
    margin: 0;
    color: #817773;
    font-size: .88rem;
    line-height: 1.5;
    text-align: right;
}

.seller-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.seller-summary-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-height: 152px;
    padding: 21px;
    border: 1px solid #e1d6d1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(73, 57, 52, .05);
}

.seller-summary-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f6e8e6;
    color: #8b4d58;
    font-size: .85rem;
    font-weight: 700;
}

.seller-summary-card div > span,
.seller-summary-card strong,
.seller-summary-card small {
    display: block;
}

.seller-summary-card div > span {
    margin: 2px 0 8px;
    color: #716763;
    font-size: .82rem;
}

.seller-summary-card strong {
    color: #403936;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    line-height: 1.15;
}

.seller-summary-card small {
    margin-top: 6px;
    color: #9a908c;
    font-size: .72rem;
}

.seller-summary-confirmed .seller-summary-icon {
    background: #e6f2e8;
    color: #4f7d59;
}

.seller-summary-pending .seller-summary-icon {
    background: #fff0d9;
    color: #a06a26;
}

.seller-sales-layout {
    display: grid;
    grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
}

.seller-orders {
    display: grid;
    gap: 11px;
}

.seller-order-card {
    padding: 19px;
    border: 1px solid #dfd3ce;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(73, 57, 52, .04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.seller-order-card:hover,
.seller-order-card:focus-visible,
.seller-order-card.active {
    border-color: #b88487;
    outline: 0;
    box-shadow: 0 12px 28px rgba(83, 55, 53, .09);
    transform: translateY(-1px);
}

.seller-order-card.active {
    background: #fffafa;
}

.seller-order-card-head,
.seller-order-card-foot,
.seller-order-detail-head,
.seller-order-values,
.seller-detail-totals,
.seller-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.seller-order-label {
    display: block;
    margin-bottom: 3px;
    color: #9a8c87;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.seller-order-card-head strong {
    color: #443d3a;
    font-size: 1rem;
}

.seller-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f2ece9;
    color: #6d625e;
    font-size: .7rem;
    font-weight: 600;
    text-align: center;
}

.seller-status-paid {
    background: #e4f1e7;
    color: #487653;
}

.seller-status-pending {
    background: #fff0d9;
    color: #986523;
}

.seller-status-failed {
    background: #f7e2e1;
    color: #9a4e4b;
}

.seller-order-date {
    margin: 10px 0 15px;
    color: #897e7a;
    font-size: .76rem;
}

.seller-order-values {
    align-items: flex-start;
    padding: 13px 0;
    border-top: 1px solid #eee5e1;
    border-bottom: 1px solid #eee5e1;
}

.seller-order-values span:last-child {
    text-align: right;
}

.seller-order-values small,
.seller-detail-totals small {
    display: block;
    margin-bottom: 3px;
    color: #958a86;
    font-size: .7rem;
}

.seller-order-values strong {
    color: #4b423f;
    font-size: .9rem;
}

.seller-order-card-foot {
    align-items: baseline;
    margin-top: 13px;
    color: #7e716d;
    font-size: .72rem;
}

.seller-order-card-foot > span:last-child {
    color: #8b4d58;
    font-weight: 600;
}

.seller-order-detail {
    position: sticky;
    top: 88px;
    min-width: 0;
    padding: clamp(22px, 4vw, 30px);
    border: 1px solid #dfd3ce;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(73, 57, 52, .06);
}

.seller-order-detail-head {
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #ede3df;
}

.seller-order-detail-head h3 {
    margin: 0 0 5px;
    color: #443d3a;
    font-size: 1.45rem;
}

.seller-order-detail-head p {
    margin: 0;
    color: #8d817d;
    font-size: .8rem;
}

.seller-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 22px 0;
}

.seller-detail-grid div {
    min-width: 0;
}

.seller-detail-grid span,
.seller-detail-grid strong {
    display: block;
}

.seller-detail-grid span {
    margin-bottom: 4px;
    color: #958a86;
    font-size: .72rem;
}

.seller-detail-grid strong {
    color: #514844;
    font-size: .88rem;
}

.seller-detail-totals {
    align-items: stretch;
    padding: 16px;
    border-radius: 15px;
    background: #f8f3f0;
}

.seller-detail-totals span {
    flex: 1;
}

.seller-detail-totals strong {
    color: #493f3c;
    font-size: .95rem;
}

.seller-detail-commission {
    padding-left: 15px;
    border-left: 1px solid #dacbc5;
}

.seller-detail-commission strong {
    color: #8b4d58;
}

.seller-products {
    margin-top: 24px;
}

.seller-products h4 {
    margin: 0 0 10px;
    color: #49413e;
    font-size: .94rem;
}

.seller-product-row {
    padding: 12px 0;
    border-top: 1px solid #eee5e1;
}

.seller-product-row div {
    min-width: 0;
}

.seller-product-row strong,
.seller-product-row span {
    display: block;
}

.seller-product-row div strong {
    overflow: hidden;
    color: #554b47;
    font-size: .84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-product-row span {
    margin-top: 2px;
    color: #958a86;
    font-size: .72rem;
}

.seller-product-row > strong {
    flex: 0 0 auto;
    color: #4d4441;
    font-size: .84rem;
}

.seller-orders.empty,
.seller-order-detail.empty {
    display: grid;
    place-items: center;
    min-height: 230px;
    color: #8b817d;
    text-align: center;
}

.seller-empty-state span,
.seller-empty-state strong,
.seller-empty-state p {
    display: block;
}

.seller-empty-state span {
    margin-bottom: 10px;
    color: #bd8c91;
    font-size: 2rem;
}

.seller-empty-state strong {
    color: #5b504d;
}

.seller-empty-state p {
    margin: 6px 0 0;
    font-size: .84rem;
}

@media (max-width: 960px) {
    .seller-hero-wrap {
        grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    }

    .seller-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seller-sales-layout {
        grid-template-columns: minmax(290px, .8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 760px) {
    .seller-hero-wrap {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .seller-hero-art {
        display: none;
    }

    .seller-auth-card,
    .seller-dashboard-top,
    .seller-sales-layout {
        grid-template-columns: 1fr;
    }

    .seller-order-detail {
        position: static;
    }
}

@media (max-width: 560px) {
    .seller-hero-wrap {
        padding-block: 48px;
    }

    .seller-hero-copy h1 {
        font-size: 2.65rem;
    }

    .seller-workspace-heading,
    .seller-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .seller-section-heading > p {
        text-align: left;
    }

    .seller-session-actions {
        width: 100%;
    }

    .seller-session-actions button {
        flex: 1;
    }

    .seller-auth-card {
        border-radius: 22px;
    }

    .seller-auth-guide {
        padding: 30px 24px;
    }

    .seller-link-control {
        grid-template-columns: 1fr;
    }

    .seller-summary {
        grid-template-columns: 1fr;
    }

    .seller-summary-card {
        min-height: 0;
    }

    .seller-detail-grid {
        grid-template-columns: 1fr;
    }

    .seller-detail-totals {
        align-items: flex-start;
        flex-direction: column;
    }

    .seller-detail-commission {
        width: 100%;
        padding: 12px 0 0;
        border-top: 1px solid #dacbc5;
        border-left: 0;
    }
}

.book-cover-badge-anchor { position: relative; }
.book-release-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #e7bb72;
    border-radius: 5px;
    background: #ffe3b0;
    color: #6d421c;
    font: 600 12px/1.2 "Fredoka", sans-serif;
    box-shadow: 0 2px 5px #43312618;
    white-space: nowrap;
    pointer-events: none;
}
.book-release-tag.in-flow { position: static; }
.book-release-tag.compact { top: auto; bottom: 0; left: 0; right: 0; padding: 3px 1px; font-size: 8px; letter-spacing: -.15px; }
.book-sold-out-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #8f3030;
    border-radius: 5px;
    background: #a63838;
    color: #fff;
    font: 700 12px/1.2 "Fredoka", sans-serif;
    box-shadow: 0 2px 5px #43312624;
    white-space: nowrap;
    pointer-events: none;
}
.book-sold-out-tag.in-flow { position: static; }
.book-sold-out-tag.compact { top: 0; right: 0; padding: 3px 4px; font-size: 8px; }
.site-mini-cart-art {
    display: block;
    width: 56px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(107, 58, 32, .1);
    background: white;
}
.site-mini-cart-art.image-frame-portrait { aspect-ratio: 3 / 4; }
.site-mini-cart-art.image-frame-square { aspect-ratio: 1; }
.site-mini-cart-art.image-frame-landscape { aspect-ratio: 4 / 3; }
.site-mini-cart-art.image-frame-banner { aspect-ratio: 16 / 9; }
.site-mini-cart-art.image-frame-wide-banner { aspect-ratio: 3 / 1; }
.cart-item-visual .book-release-tag { padding: 4px 6px; font-size: 10px; }
.book-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: inherit; gap: 3px 6px; }
.book-price-from { font-size: .8em; font-weight: 400; color: var(--ink); white-space: nowrap; }
.book-price-from s { text-decoration-thickness: 1.5px; }
.book-price-current { color: #b45f74; white-space: nowrap; }

.admin-collection-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 14px;
}

.admin-collection-row span { font-size: 13px; font-weight: 400; }

.admin-product-collection-field {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
}

.admin-product-collection-field > label { font-weight: 700; }
.admin-product-collection-field > p { margin: 0 0 12px; font-size: 14px; }

.admin-cover-color-field {
    min-width: 0;
    margin: 12px 0 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.admin-cover-color-field legend { padding: 0 6px; font-weight: 700; }
.admin-cover-color-combobox { position: relative; margin-bottom: 12px; }
.admin-cover-color-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.admin-cover-color-combobox-trigger {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 8px 12px;
    text-align: left;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.admin-cover-color-combobox-trigger:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 2px; }
.admin-cover-color-option-swatch {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: var(--palette-color, #fff);
    border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.admin-cover-color-option-copy { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.admin-cover-color-option-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-cover-color-option-hex { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.admin-cover-color-combobox-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.admin-cover-color-combobox-trigger[aria-expanded="true"] .admin-cover-color-combobox-chevron { transform: translateY(2px) rotate(225deg); }
.admin-cover-color-options {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 288px;
    margin: 0;
    padding: 5px;
    overflow-y: auto;
    list-style: none;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(54, 37, 24, .16);
}
.admin-cover-color-options[hidden] { display: none; }
.admin-cover-color-option {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 7px 9px;
    border-radius: 7px;
    cursor: pointer;
}
.admin-cover-color-option:hover,
.admin-cover-color-option.is-active { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.admin-cover-color-option[aria-selected="true"] { font-weight: 700; background: color-mix(in srgb, var(--accent) 16%, var(--card)); }
.admin-cover-color-option[aria-selected="true"]::after { content: "\2713"; grid-column: 3; grid-row: 1; }
.admin-cover-color-option[aria-selected="true"] .admin-cover-color-option-hex { padding-right: 22px; }
.admin-cover-color-option.is-custom .admin-cover-color-option-swatch {
    background: linear-gradient(135deg, var(--palette-color) 0 50%, transparent 50% 100%);
}
.admin-cover-color-input { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-cover-color-input input { min-width: 0; margin: 0; font-family: Consolas, monospace; }
.admin-cover-color-swatch { width: 38px; height: 38px; flex: 0 0 38px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.admin-cover-color-field p { font-size: 13px; line-height: 1.5; margin: 0; }
#adminProductCoverPreview .admin-cover-color-media {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    padding: 18px;
    background: var(--cover-background, #fff);
}
#adminProductCoverPreview .admin-cover-color-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.image-upload-preview.image-frame-banner,
.admin-catalog-thumb.image-frame-banner {
    aspect-ratio: 3 / 1;
    height: auto;
}

.image-upload-preview.image-frame-wide-banner,
.admin-catalog-thumb.image-frame-wide-banner {
    aspect-ratio: 6 / 1;
    height: auto;
}

.image-upload-preview.image-frame-wide-banner img,
.admin-catalog-thumb.image-frame-wide-banner img {
    width: 100%;
    height: 100%;
    aspect-ratio: 6 / 1;
    object-fit: contain;
}

.image-upload-preview.image-frame-banner img,
.admin-catalog-thumb.image-frame-banner img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 1;
    object-fit: contain;
}

@font-face {
    font-family: "VeryBerry";
    src: url("/fonts/very-berry.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.9), transparent 26%),
        radial-gradient(circle at bottom right, rgba(246, 219, 194, .45), transparent 24%),
        linear-gradient(180deg, #fbf3eb 0%, #f7ede4 48%, #f3e6d7 100%);
    color: var(--ink);
}

.public-page-shell {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, .94), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(245, 215, 216, .45), transparent 20%),
        linear-gradient(180deg, #fbf3eb 0%, #f7ede4 48%, #f3e6d7 100%);
}

.wrap {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.public-main {
    min-height: 60vh;
}

#publicHeader {
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header {
    position: relative;
    background: rgba(255, 250, 243, .86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(107, 58, 32, .16);
    box-shadow: 0 7px 18px rgba(61, 43, 31, .045);
}

.site-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    min-width: max-content;
}

.site-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-brand span {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--accent-dark);
}

.site-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.site-menu a {
    color: #423d3a;
    text-decoration: none;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: calc(.88rem + 2px);
    font-weight: 500;
    letter-spacing: .03em;
    padding: 4px 8px;
    border-radius: 0;
    border-bottom: 0;
}

.site-menu a:hover,
.site-menu a.active {
    color: #423d3a;
    background: transparent;
    box-shadow: none;
}

.site-menu-group {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-menu-group-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.site-menu-group-chevron {
    width: 8px;
    height: 8px;
    border-right: 1.8px solid #423d3a;
    border-bottom: 1.8px solid #423d3a;
    transform: rotate(45deg) translateY(-1px);
    transform-origin: center;
    display: inline-block;
}

.site-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 6px);
    min-width: 200px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 250, 246, .98);
    border: 1px solid rgba(107, 58, 32, .12);
    box-shadow: 0 22px 48px rgba(61, 43, 31, .14);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 30;
    display: grid;
    gap: 8px;
}

.site-menu-group:hover .site-menu-dropdown,
.site-menu-group:focus-within .site-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.site-menu-dropdown-link {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #423d3a;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: calc(.86rem + 2px);
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(107, 58, 32, .08);
}

.site-menu-dropdown-link:hover,
.site-menu-dropdown-link.active {
    color: #423d3a;
    border-color: rgba(139, 77, 52, .2);
    background: rgba(255, 255, 255, .96);
    box-shadow: none;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-context-link,
.site-context-button,
.site-session-caption {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 14px;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .03em;
}

.site-context-link {
    text-decoration: none;
    color: var(--accent-dark);
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(107, 58, 32, .16);
    box-shadow: 0 10px 26px rgba(61, 43, 31, .06);
}

.site-context-link.admin {
    background: #fff3e8;
}

.site-context-link.seller {
    background: #fff8de;
}

.site-context-link.customer {
    background: #fff2f4;
}

.site-context-button {
    border: 1px solid rgba(107, 58, 32, .18);
    background: transparent;
    color: var(--accent-dark);
    cursor: pointer;
}

.site-session-caption {
    background: rgba(255, 255, 255, .62);
    color: var(--ink);
    border: 1px solid rgba(107, 58, 32, .08);
}

.site-context-icon {
    font-size: 1rem;
    line-height: 1;
}

.site-icon-link,
.site-enter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-icon-link {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(107, 58, 32, .16);
    box-shadow: 0 10px 26px rgba(61, 43, 31, .06);
}

.site-icon-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.site-cart-entry {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-cart-link {
    position: relative;
}

.site-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-size: .72rem;
    font-weight: bold;
    box-shadow: 0 8px 18px rgba(139, 77, 52, .2);
}

.site-mini-cart {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 250, 246, .98);
    border: 1px solid rgba(107, 58, 32, .12);
    box-shadow: 0 22px 48px rgba(61, 43, 31, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 30;
}

.site-cart-entry:hover .site-mini-cart,
.site-cart-entry:focus-within .site-mini-cart,
.site-cart-entry.is-open .site-mini-cart {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-cart-badge.is-updated {
    animation: cart-badge-update .55s ease-out;
}

@keyframes cart-badge-update {
    0% { transform: scale(1); }
    45% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.site-mini-cart-head,
.site-mini-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-mini-cart-head {
    margin-bottom: 14px;
}

.site-mini-cart-head span,
.site-mini-cart-more,
.site-mini-cart-copy span,
.site-mini-cart-footer span {
    color: rgba(67, 49, 38, .76);
    font-size: .92rem;
}

.site-mini-cart-items {
    display: grid;
    gap: 12px;
}

.site-mini-cart-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(107, 58, 32, .08);
}

.site-mini-cart-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.site-mini-cart-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-mini-cart-copy {
    display: grid;
    gap: 5px;
}

.site-mini-cart-copy strong {
    line-height: 1.3;
}

.site-mini-cart-more {
    margin: 6px 0 12px;
}

.site-mini-cart-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(107, 58, 32, .08);
}

.site-mini-cart-footer strong {
    display: block;
    color: var(--accent-dark);
    margin-top: 4px;
}

.site-mini-cart-button {
    padding: 12px 20px;
}

.site-mini-cart-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.site-mini-cart-clear {
    width: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid var(--accent-dark);
    background: transparent;
    color: var(--accent-dark);
}

.site-mini-cart-clear:hover,
.site-mini-cart-clear:focus-visible {
    background: rgba(139, 77, 52, .09);
}

.site-mini-cart-clear svg {
    display: block;
    width: 22px;
    height: 22px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-mini-cart-empty {
    padding: 12px 0 4px;
    color: rgba(67, 49, 38, .76);
}

.site-enter-button {
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 12px 18px;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .03em;
    box-shadow: 0 12px 28px rgba(139, 77, 52, .18);
}

.site-account-entry {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-account-trigger {
    min-height: 38px;
    padding: 6px 12px 6px 6px;
    border-radius: 12px;
    border: 1px solid rgba(107, 58, 32, .16);
    background: rgba(255, 255, 255, .85);
    color: var(--accent-dark);
    box-shadow: 0 10px 26px rgba(61, 43, 31, .06);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-account-avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(208, 125, 87, .14);
    color: var(--accent-dark);
    flex: 0 0 auto;
}

.site-account-avatar svg {
    width: 16px;
    height: 16px;
}

.site-account-trigger-text {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .03em;
}

.site-account-chevron {
    width: 8px;
    height: 8px;
    border-right: 1.8px solid rgba(67, 49, 38, .72);
    border-bottom: 1.8px solid rgba(67, 49, 38, .72);
    transform: rotate(45deg) translateY(-1px);
    transform-origin: center;
    display: inline-block;
}

.site-account-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(270px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 250, 246, .98);
    border: 1px solid rgba(107, 58, 32, .12);
    box-shadow: 0 22px 48px rgba(61, 43, 31, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 30;
}

.site-account-entry:hover .site-account-dropdown,
.site-account-entry:focus-within .site-account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-account-login-button {
    width: 100%;
    margin-bottom: 14px;
}

.site-account-links,
.site-account-actions {
    display: grid;
    gap: 8px;
}

.site-account-link,
.site-account-action {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    border-radius: 16px;
    padding: 12px 14px;
    text-decoration: none;
    color: #27384b;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: .86rem;
    font-weight: 500;
    letter-spacing: .03em;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(107, 58, 32, .08);
}

.site-account-link:hover,
.site-account-action:hover {
    border-color: rgba(139, 77, 52, .2);
    background: rgba(255, 255, 255, .96);
}

.account-role-link {
    color: var(--accent-dark);
    font-weight: 600;
}

.site-account-divider {
    height: 1px;
    background: rgba(107, 58, 32, .1);
    margin: 14px 0;
}

.site-footer {
    padding: 28px 0 42px;
    border-top: 1px solid rgba(107, 58, 32, .12);
    background: rgba(255, 250, 243, .78);
}

.site-footer-content {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.site-footer p {
    margin-bottom: 0;
    max-width: 560px;
}

.site-footer-content-v1 {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
}

.site-footer-line,
.site-footer-links {
    max-width: none;
    font-size: .96rem;
}

.site-footer-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 auto;
}

.site-footer a {
    color: var(--accent-dark);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.policy-banner {
    width: min(100%, calc(100% - 32px));
    max-width: 860px;
    display: block;
    margin: 0 auto;
}

.policy-wrap {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 56px;
}

.policy-card {
    background: rgba(255, 250, 243, .96);
    border: 1px solid rgba(107, 58, 32, .1);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(61, 43, 31, .06);
    margin-top: 0;
}

.policy-card h1 {
    font-family: "VeryBerry", "Dancing Script", "Brush Script MT", cursive;
    font-size: clamp(2.7rem, 5.4vw, 4.35rem);
    font-weight: 400;
    line-height: 1;
    color: #111;
    text-align: center;
    margin-bottom: 16px;
}

.policy-divider {
    width: 100%;
    display: block;
    margin: 0 0 24px;
}

.policy-card p,
.policy-card li {
    font-size: 1rem;
    line-height: 1.75;
}

.policy-card ul {
    margin: 10px 0 18px 20px;
}

.policy-section-title {
    margin: 24px 0 8px;
    color: var(--accent-dark);
    font-weight: 700;
}

.home-hero,
.page-hero {
    padding: 0 0 42px;
}

.home-hero-grid,
.two-column-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 40px;
    align-items: center;
}

.home-hero-copy h1,
.page-hero h1 {
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--accent-dark);
    margin-bottom: 18px;
}

.page-script-title {
    margin: 0;
    width: 100%;
    text-align: center;
    color: #000;
    font-family: "VeryBerry", "Dancing Script", "Brush Script MT", cursive;
    font-size: clamp(4.3rem, 7.2vw, 6.6rem);
    font-weight: 400;
    line-height: 1;
}

.page-hero h1.page-script-title {
    color: #000;
    font-family: "VeryBerry", "Dancing Script", "Brush Script MT", cursive;
    font-size: clamp(4.3rem, 7.2vw, 6.6rem);
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

.home-hero-art {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-hero-art img,
.institutional-illustration img {
    width: min(100%, 440px);
    border-radius: 42px;
    box-shadow: 0 28px 70px rgba(61, 43, 31, .14);
    background: rgba(255, 255, 255, .76);
    padding: 20px;
}

.home-hero-art img {
    animation: homeFloat 4.8s ease-in-out infinite;
}

.home-hero-wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 14px;
}

.home-hero-banner {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
}

.home-hero-banner img {
    width: 100%;
    max-width: 860px;
    height: auto;
    display: block;
}

.home-hero-wordmark .home-script-title {
    margin: 0;
    font-size: clamp(3rem, 5.6vw, 4.95rem);
    text-align: center;
}

@media (min-width: 901px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        text-align: center;
        max-width: 860px;
        margin: 0 auto;
    }

    .home-heart-message,
    .public-cta-row {
        justify-content: center;
    }

    .home-soft-metrics {
        max-width: 920px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-art {
        margin-top: 8px;
    }
}

@keyframes homeFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.home-mini-note {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(139, 77, 52, .12);
    margin-bottom: 18px;
}

.home-heart-message {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0 24px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(107, 58, 32, .1);
    box-shadow: 0 12px 26px rgba(61, 43, 31, .06);
}

.home-heart-message p {
    margin-bottom: 0;
    font-size: 1.05rem;
    color: var(--accent-dark);
}

.heart-bullet {
    font-size: 1.2rem;
    color: var(--accent);
}

.public-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.home-soft-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.home-soft-metrics div {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(139, 77, 52, .09);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 14px 28px rgba(61, 43, 31, .04);
}

.home-soft-metrics strong {
    display: block;
    color: var(--accent-dark);
}

.home-soft-metrics span {
    display: block;
    margin-top: 6px;
    font-size: .95rem;
    line-height: 1.45;
}

.home-story-card {
    background: rgba(255, 250, 243, .95);
    border: 1px solid rgba(107, 58, 32, .09);
    border-radius: 36px;
    box-shadow: 0 20px 50px rgba(61, 43, 31, .08);
    padding: 34px 30px;
}

.home-script-title {
    margin: 0 0 14px;
    color: #111;
    font-family: "VeryBerry", "Dancing Script", "Brush Script MT", cursive;
    font-size: clamp(2.8rem, 5.2vw, 4.8rem);
    font-weight: 400;
    line-height: .98;
    white-space: nowrap;
}

.home-section-script-title {
    margin: 0;
    width: 100%;
    text-align: center;
    color: #111;
    font-family: "VeryBerry", "Dancing Script", "Brush Script MT", cursive;
    font-size: clamp(2.95rem, 5.5vw, 5rem);
    font-weight: 400;
    line-height: 1;
}

.home-intro-copy {
    text-align: left;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.home-release-feature {
    background: rgba(255, 250, 243, .95);
    border: 1px solid rgba(107, 58, 32, .08);
    border-radius: 34px;
    box-shadow: 0 20px 50px rgba(61, 43, 31, .08);
    padding: 28px;
}

.home-release-carousel {
    position: relative;
    display: grid;
    gap: 0;
    padding: 0 52px;
    background: transparent;
    border: 0;
    border-radius: 34px;
    box-shadow: none;
}

.home-release-carousel-track {
    position: relative;
    display: grid;
    align-items: stretch;
    min-height: 0;
}

.home-release-slide {
    display: none;
    gap: 0;
    align-content: stretch;
    justify-items: center;
    place-items: center;
    min-height: 100%;
    padding: 0;
}

.home-release-slide.active {
    display: grid;
}

.home-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: 72px;
    border: 2px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: transparent;
    box-shadow:
        0 10px 24px rgba(61, 43, 31, .10),
        inset 0 0 0 1px rgba(255, 255, 255, .12);
    font-size: 0;
    cursor: pointer;
    z-index: 2;
    display: grid;
    place-items: center;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.home-carousel-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    display: block;
    border-top: 3px solid rgba(255, 255, 255, .94);
    border-right: 3px solid rgba(255, 255, 255, .94);
    box-sizing: border-box;
    margin: 0;
    transform-origin: center;
}

.home-carousel-arrow.prev::before {
    transform: translate(-42%, -50%) rotate(-135deg);
}

.home-carousel-arrow.next::before {
    transform: translate(-58%, -50%) rotate(45deg);
}

.home-carousel-arrow:hover {
    transform: translateY(-50%) scale(1.04);
    box-shadow:
        0 16px 30px rgba(61, 43, 31, .12),
        inset 0 0 0 1px rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .14);
}

.home-carousel-arrow.prev {
    left: 10px;
}

.home-carousel-arrow.next {
    right: 10px;
}

.home-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.home-carousel-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}

.home-carousel-dot.active {
    width: 30px;
    background: rgba(255, 255, 255, .28);
    border-color: rgba(255, 255, 255, .95);
}

.home-book-heading {
    display: grid;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    justify-items: stretch;
}

.home-book-collection {
    margin: 0;
    width: 100%;
    text-align: right;
    font-size: .96rem;
    color: rgba(255, 248, 239, .92);
}

.home-book-category,
.home-book-recommended {
    margin: 0;
    line-height: 1.5;
}

.home-release-title {
    margin: 0;
    text-align: left;
    color: #fffdf7;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: clamp(2.05rem, 3.4vw, 3.15rem);
    font-weight: 600;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .28);
}

.home-release-hero {
    position: relative;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    line-height: 0;
}

.home-release-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    gap: 12px;
    padding: 26px 30px 22px;
    background: linear-gradient(180deg, rgba(17, 12, 9, 0) 0%, rgba(17, 12, 9, .18) 22%, rgba(17, 12, 9, .72) 100%);
}

.home-release-copy {
    display: grid;
    gap: 14px;
    align-content: end;
    justify-items: start;
    text-align: left;
    max-width: 520px;
    margin: 0;
}

.home-release-description,
.home-release-authors {
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 248, 239, .96);
}

.home-supporting-image,
.detail-supporting-image {
    margin: 20px auto 2px;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255,255,255,.62);
    border-radius: 28px;
    padding: 18px;
    border: 1px solid rgba(139, 77, 52, .08);
}

.home-supporting-image img,
.detail-supporting-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 18px;
    border: 0;
    background: white;
    object-fit: contain;
    margin: 0 auto;
}

.home-supporting-image {
    max-width: 860px;
}

.detail-supporting-image {
    max-width: 860px;
}

.home-supporting-image.image-frame-portrait,
.detail-supporting-image.image-frame-portrait {
    max-width: 540px;
    aspect-ratio: 3 / 4;
}

.home-supporting-image.image-frame-landscape,
.detail-supporting-image.image-frame-landscape {
    max-width: 860px;
    aspect-ratio: 4 / 3;
}

.home-supporting-image.image-frame-square,
.detail-supporting-image.image-frame-square {
    max-width: 620px;
    aspect-ratio: 1 / 1;
}

.detail-supporting-carousel {
    position: relative;
    display: grid;
    gap: 18px;
    margin: 20px auto 2px;
    padding: 0 56px;
}

.detail-supporting-carousel-track {
    position: relative;
    display: grid;
    align-items: center;
}

.detail-supporting-carousel-slide {
    display: none;
}

.detail-supporting-carousel-slide.active {
    display: block;
}

.detail-image-list {
    display: grid;
    gap: 16px;
}

.detail-image-list.empty {
    padding: 18px;
    border: 1px dashed rgba(139, 77, 52, .2);
    border-radius: 20px;
    background: rgba(255,255,255,.5);
    color: rgba(67,49,38,.74);
}

.detail-image-card {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(139, 77, 52, .08);
    border-radius: 22px;
    background: rgba(255,250,243,.72);
}

.detail-image-card-copy {
    display: grid;
    gap: 8px;
}

.detail-image-card-copy strong {
    color: var(--accent-dark);
}

.detail-image-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-image-card-actions .ghost[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.detail-image-card-copy label {
    margin-bottom: -2px;
}

.detail-contributors {
    display: grid;
    gap: 28px;
    max-width: 860px;
    margin: 26px auto 0;
}

.detail-contributors-group {
    display: grid;
    gap: 16px;
}

.detail-contributors-title {
    margin: 0;
    color: #111;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    text-shadow: 2px 2px 0 rgba(182, 137, 98, .5);
}

.detail-contributors-grid {
    display: grid;
    gap: 18px;
}

.detail-contributor-card {
    display: grid;
    grid-template-columns: minmax(120px, 170px) 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(139, 77, 52, .08);
    border-radius: 24px;
}

.detail-contributor-photo {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(255,255,255,.7);
    border-radius: 22px;
    border: 1px solid rgba(139, 77, 52, .08);
    padding: 10px;
}

.detail-contributor-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 16px;
    object-fit: cover;
    margin: 0;
}

.detail-contributor-copy {
    display: grid;
    gap: 10px;
    align-content: start;
}

.detail-contributor-copy h4 {
    margin: 0;
    color: #111;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.detail-contributor-role {
    margin: 0;
    color: var(--accent-dark);
    font-weight: 700;
}

.detail-contributor-bio {
    margin: 0;
    line-height: 1.75;
}

.home-release-price {
    margin: 4px 0 0;
    color: #fff6d6;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 600;
    text-shadow: 0 4px 14px rgba(0,0,0,.22);
}

.home-free-shipping-callout {
    display: grid;
    gap: 4px;
    margin-top: 2px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 228, 153, .55), rgba(255, 247, 214, .95));
    border: 1px solid rgba(201, 147, 22, .22);
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(188, 137, 22, .12);
}

.home-free-shipping-callout strong {
    color: #9c5f00;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: 1.05rem;
    letter-spacing: .01em;
}

.home-free-shipping-callout span {
    color: #7b5310;
    line-height: 1.5;
}

.home-release-button {
    justify-self: center;
    padding: 14px 22px;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: 1rem;
}

.home-release-art {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255,255,255,.08);
    border: 0;
    padding: 0;
    margin: 0;
}

.home-release-slide-link {
    position: absolute;
    inset: 0;
    display: block;
}

.home-release-slide-media {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border-radius: 34px;
}

.home-release-slide-fill {
    display: none;
}

.home-release-slide-media::after {
    content: none;
}

.home-release-art > img,
.home-release-slide-link > img,
.home-release-slide-media > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 34px;
    box-shadow: 0 18px 40px rgba(61, 43, 31, .12);
    object-fit: contain;
    background: transparent;
    z-index: 1;
}

.home-release-art.image-frame-portrait {
    max-width: 100%;
    aspect-ratio: 3 / 4;
}

.home-release-art.image-frame-landscape {
    max-width: 100%;
    aspect-ratio: 4 / 3;
}

.home-release-art.image-frame-square {
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.home-books-carousel {
    position: relative;
    padding: 0 56px;
}

.home-books-carousel-viewport {
    overflow: hidden;
}

.home-books-carousel-track {
    display: flex;
    gap: 16px;
    align-items: stretch;
    transition: transform .28s ease;
    will-change: transform;
}

.home-books-card {
    box-sizing: border-box;
    flex: 0 0 calc((100% - 64px) / 5);
    min-width: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 10px;
    align-content: start;
    padding: 12px;
    background: rgba(255, 250, 243, .95);
    border: 1px solid rgba(107, 58, 32, .08);
    border-radius: 28px;
    box-shadow: 0 16px 32px rgba(61, 43, 31, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-books-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 77, 52, .16);
    box-shadow: 0 18px 34px rgba(61, 43, 31, .1);
}

.home-books-card-main {
    display: grid;
    grid-template-rows: 204px 1fr;
    gap: 10px;
    align-content: start;
    align-self: stretch;
    text-decoration: none;
    color: inherit;
}

.home-books-card-art {
    width: 100%;
    display: grid;
    place-items: center;
    min-height: 204px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(139, 77, 52, .08);
}

.home-books-card-art img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 184px;
    border-radius: 22px;
    object-fit: contain;
    box-shadow: 0 14px 28px rgba(61, 43, 31, .12);
}

.home-books-card-copy {
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 6px;
    align-content: start;
    text-align: center;
    min-height: 94px;
}

.home-books-card-title {
    color: #111;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 2px 2px 0 rgba(182, 137, 98, .45);
}

.home-books-card-author,
.home-books-card-benefit {
    line-height: 1.5;
}

.home-books-card-author {
    color: rgba(67, 49, 38, .84);
}

.home-books-card-price {
    color: var(--accent-dark);
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: 1.16rem;
    font-weight: 600;
}

.home-books-card-benefit {
    color: #9c5f00;
    font-weight: 700;
}

.home-books-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 2px;
    align-self: end;
}

.home-books-card-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 12px;
    text-decoration: none;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: .84rem;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.home-books-card-button.primary {
    border: none;
    background: var(--accent-dark);
    color: #fffdf7;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(139, 77, 52, .16);
}

.home-books-card-button:hover {
    transform: translateY(-1px);
}

.home-feature-card {
    background: rgba(255, 250, 243, .95);
    border: 1px solid rgba(107, 58, 32, .08);
    border-radius: 34px;
    box-shadow: 0 20px 50px rgba(61, 43, 31, .08);
    padding: 28px;
}

.home-feature-card + .home-feature-card {
    margin-top: 24px;
}

.home-feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 20px;
    align-items: center;
}

.home-feature-layout.reverse {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

.home-feature-layout.reverse .home-feature-copy {
    order: 2;
}

.home-feature-layout.reverse .home-feature-art {
    order: 1;
}

.home-feature-copy {
    display: grid;
    gap: 14px;
    align-content: start;
    justify-items: stretch;
    text-align: left;
    max-width: 440px;
    margin: 0 auto;
}

.home-feature-title {
    margin: 0;
    text-align: center;
    color: #111;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: clamp(1.95rem, 3.2vw, 2.95rem);
    font-weight: 600;
    text-shadow: 2px 2px 0 rgba(182, 137, 98, .65);
}

.home-feature-description,
.home-feature-authors {
    margin: 0;
    line-height: 1.7;
}

.home-feature-price {
    margin: 4px 0 0;
    color: var(--accent-dark);
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 600;
}

.home-feature-button {
    justify-self: center;
    padding: 14px 22px;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: 1rem;
}

.home-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 14px 22px;
    border-radius: 12px;
    background: var(--accent-dark);
    color: white;
    border: none;
    text-decoration: none;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: 1rem;
    box-shadow: 0 12px 28px rgba(139, 77, 52, .14);
}

.home-secondary-button:hover {
    background: #7d4730;
}

.home-feature-art {
    width: 100%;
    display: flex;
    justify-content: center;
}

.home-feature-art img {
    display: block;
    width: min(100%, 320px);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(61, 43, 31, .12);
    object-fit: cover;
}

.home-story-highlight {
    margin: 18px 0 0;
    color: var(--accent-dark);
    font-size: 1.05rem;
    font-weight: bold;
}

.home-section-copy {
    max-width: 720px;
    margin-bottom: 18px;
}

.site-primary-link,
.site-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
}

.site-primary-link {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 12px 28px rgba(139, 77, 52, .18);
}

.site-secondary-link {
    background: rgba(255, 255, 255, .9);
    color: var(--accent-dark);
    border: 1px solid rgba(107, 58, 32, .18);
}

.institutional-grid,
.three-up-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.institutional-card {
    background: rgba(255, 250, 243, .96);
    border: 1px solid rgba(107, 58, 32, .1);
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 18px 40px rgba(61, 43, 31, .06);
}

.institutional-grid-featured .institutional-card:nth-child(1) {
    background: linear-gradient(180deg, rgba(255,250,246,.95), rgba(255,239,231,.95));
}

.institutional-grid-featured .institutional-card:nth-child(2) {
    background: linear-gradient(180deg, rgba(255,247,232,.95), rgba(248,235,190,.62));
}

.institutional-grid-featured .institutional-card:nth-child(3) {
    background: linear-gradient(180deg, rgba(255,246,248,.95), rgba(245,215,216,.78));
}

.featured-card-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--accent-dark);
    font-weight: bold;
    margin-bottom: 18px;
}

.institutional-card h3 {
    color: var(--accent-dark);
    margin-bottom: 12px;
}

.institutional-card a {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent-dark);
    font-weight: bold;
}

.text-column {
    max-width: 760px;
}

.text-column h2 {
    color: var(--accent-dark);
}

.text-column p {
    font-size: 1.04rem;
    line-height: 1.7;
}

.gota-art img {
    width: min(100%, 300px);
}

.hero {
    padding: 48px 0 36px;
    background: linear-gradient(135deg, #f0ddc8, #dbc0a4);
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent-dark);
    font-size: .8rem;
}

h1, h2, h3, p {
    margin-top: 0;
}

.subtitle {
    max-width: 720px;
    font-size: 1.1rem;
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a,
button {
    border: none;
    border-radius: 12px;
    background: var(--accent-dark);
    color: white;
    padding: 12px 18px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav a.active {
    background: white;
    color: var(--accent-dark);
    border: 1px solid var(--accent-dark);
}

button.ghost {
    background: transparent;
    color: var(--accent-dark);
    border: 1px solid var(--accent-dark);
}

.section {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.section-no-divider {
    border-bottom: 0;
}

.home-divider-section {
    position: relative;
    padding-top: 74px;
    border-bottom: 0;
}

.home-divider-section::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 860px);
    height: 26px;
    background: url("/brand/home-divider-line.png") center / contain no-repeat;
    pointer-events: none;
}

#homeReleaseSection.section {
    padding-top: 0;
    padding-bottom: 0;
}

#homeReleaseSection.home-divider-section {
    padding-top: 0;
}

#homeReleaseSection.home-divider-section::before {
    content: none;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

#homeReleaseSection .section-head,
#homeFeaturedSection .section-head,
#homeUpcomingSection .section-head,
#homeShowcaseSection .section-head {
    justify-content: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

#catalogGrid.grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 20px;
    align-items: stretch;
}

body[data-public-page="livraria"] .catalog-section,
body[data-public-page="lojinha"] .catalog-section {
    padding: 24px 0 64px;
    border-bottom: 0;
}

body[data-public-page="livraria"] .catalog-section .admin-filters,
body[data-public-page="lojinha"] .catalog-section .admin-filters {
    margin-bottom: 28px;
}

.catalog-filters {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    column-gap: 28px;
    align-items: center;
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

.catalog-search-box {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    height: 48px;
}

.catalog-search-box input {
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #d8d1cc;
    border-radius: 12px;
    background: #fff;
    color: #494641;
    font: 500 15px "Fredoka", "Segoe UI", sans-serif;
    box-shadow: none;
}

.catalog-search-box input:focus {
    outline: 0;
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(139, 77, 52, .16);
}

.catalog-search-box input::placeholder {
    color: #b9b2ae;
    opacity: 1;
}

.catalog-search-box input::-webkit-search-cancel-button {
    display: none;
}

.catalog-search-box button {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--accent-dark);
    border-radius: 50%;
    background: var(--accent-dark);
    color: #fff;
    box-shadow: none;
}

.catalog-search-box button:hover {
    border-color: #7d4730;
    background: #7d4730;
    transform: none;
}

.catalog-search-box button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.catalog-sort-field label,
.catalog-sort-field select {
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

.catalog-sort-field {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.catalog-sort-field label {
    margin: 0;
    white-space: nowrap;
}

.catalog-sort-field select {
    width: fit-content;
    min-width: 170px;
    max-width: 100%;
    height: 48px;
    field-sizing: content;
    margin-bottom: 0;
}

.catalog-empty {
    grid-column: 1 / -1;
    margin: 24px 0;
    padding: 28px;
    color: #5f5a57;
    font: 500 1rem/1.5 "Fredoka", "Segoe UI", sans-serif;
    text-align: center;
}

.card,
.detail,
.cart-item,
.checkout-box,
.order-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(61, 43, 31, .08);
}

.checkout-trust-box {
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(252,243,235,.95), rgba(255,250,246,.98));
    border: 1px solid rgba(139, 77, 52, .16);
}

.checkout-trust-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-dark);
    font-size: 1.02rem;
}

.checkout-trust-box p,
.checkout-help-text {
    margin: 0 0 10px;
    color: rgba(67,49,38,.82);
    line-height: 1.55;
}

.checkout-help-text {
    margin-top: -4px;
    margin-bottom: 14px;
    font-size: .94rem;
}

body[data-public-page="checkout"] {
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

.checkout-section {
    padding: 36px 0 72px;
}

.checkout-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.checkout-kicker {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.checkout-heading h1 {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
}

.checkout-heading > div > p:last-child {
    margin: 0;
    color: rgba(67, 49, 38, .74);
    line-height: 1.55;
}

.checkout-back-link,
.checkout-summary-heading a,
.checkout-session-note a,
.checkout-guest-note a {
    color: var(--accent-dark);
    font-weight: 600;
    text-underline-offset: 3px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .7fr);
    gap: 24px;
    align-items: start;
}

.checkout-main {
    display: grid;
    gap: 18px;
}

.checkout-card,
.checkout-summary-card {
    padding: 24px;
    border: 1px solid rgba(107, 58, 32, .12);
    border-radius: 24px;
    background: rgba(255, 250, 246, .97);
    box-shadow: 0 14px 30px rgba(61, 43, 31, .07);
}

.checkout-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.checkout-card-heading h2,
.checkout-summary-heading h2 {
    margin: 0 0 5px;
    color: var(--accent-dark);
    font-size: 1.25rem;
}

.checkout-card-heading p {
    margin: 0;
    color: rgba(67, 49, 38, .72);
    line-height: 1.5;
}

.checkout-step {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft-pink);
    color: var(--accent-dark);
    font-size: .9rem;
    font-weight: 700;
}

.checkout-session-note,
.checkout-guest-note,
.checkout-saved-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(139, 77, 52, .16);
    border-radius: 16px;
    background: #fff8f2;
}

.checkout-session-note > div,
.checkout-guest-note > div {
    display: grid;
    gap: 4px;
}

.checkout-session-note span,
.checkout-guest-note span,
.checkout-saved-address p {
    color: rgba(67, 49, 38, .74);
    line-height: 1.45;
}

.checkout-saved-address {
    display: block;
    background: rgba(245, 215, 216, .22);
}

.checkout-saved-address strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-dark);
}

.checkout-saved-address p {
    margin: 0;
}

.checkout-payment-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.checkout-payment-options legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: var(--ink);
    font-weight: 600;
}

.checkout-payment-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid rgba(107, 58, 32, .14);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.checkout-payment-option:hover,
.checkout-payment-option:focus-within,
.checkout-payment-option.selected {
    border-color: var(--accent-dark);
    background: #fff8f2;
    box-shadow: 0 8px 18px rgba(139, 77, 52, .1);
}

.checkout-payment-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.checkout-payment-option > span:last-child,
.checkout-payment-option strong,
.checkout-payment-option small {
    display: block;
}

.checkout-payment-option strong {
    color: var(--accent-dark);
}

.checkout-payment-option small {
    margin-top: 4px;
    color: rgba(67, 49, 38, .68);
    font-size: .78rem;
    line-height: 1.35;
}

.checkout-payment-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft-pink);
    color: var(--accent-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.checkout-saved-address .checkout-address-missing {
    color: #8a5b19;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checkout-account-state {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .46);
}

.checkout-account-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    background: #f1e6df;
}

.checkout-account-switch-button {
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    padding: 10px 14px;
    background: transparent;
    color: rgba(67, 49, 38, .72);
    font: 600 .94rem/1.2 var(--font-interface);
    box-shadow: none;
}

.checkout-account-switch-button:hover {
    background: rgba(255, 255, 255, .55);
}

.checkout-account-switch-button.active {
    background: #fff;
    color: var(--accent-dark);
    box-shadow: 0 4px 13px rgba(67, 49, 38, .08);
}

.checkout-account-panel {
    padding: clamp(18px, 4vw, 28px);
}

.checkout-account-panel-heading {
    margin-bottom: 20px;
}

.checkout-account-panel-heading h3 {
    margin: 0 0 5px;
    color: var(--accent-dark);
    font-size: 1.18rem;
}

.checkout-account-panel-heading p {
    margin: 0;
    color: rgba(67, 49, 38, .7);
    line-height: 1.5;
}

.checkout-account-primary {
    grid-column: 1 / -1;
    min-height: 48px;
    margin: 2px 0 0;
    border: 1px solid var(--accent-dark);
    border-radius: 12px;
    background: var(--accent-dark);
    color: #fff;
    font-weight: 600;
}

.checkout-account-text-button {
    display: block;
    margin: 14px auto 0;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    font: 500 .86rem/1.4 var(--font-interface);
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none;
}

.checkout-recovery-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.checkout-recovery-form .ghost {
    width: 100%;
    margin-top: 10px;
}

#checkoutLoginResult:empty,
#checkoutRecoveryResult:empty {
    display: none;
}

.checkout-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-field {
    min-width: 0;
}

.checkout-field-wide {
    grid-column: 1 / -1;
}

.checkout-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 600;
}

.checkout-field label span {
    color: rgba(67, 49, 38, .6);
    font-weight: 400;
}

.checkout-field input,
.checkout-field select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    color: var(--ink);
    font: inherit;
    margin-bottom: 0;
}

.checkout-field-help {
    display: block;
    margin-top: 7px;
    color: rgba(67, 49, 38, .68);
    font-size: .82rem;
    line-height: 1.4;
}

.checkout-field input[readonly] {
    background: #f6eee8;
    color: rgba(67, 49, 38, .75);
}

.checkout-inline-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.checkout-inline-field button {
    min-height: 46px;
    margin: 0;
}

.checkout-method-field {
    margin-top: 18px;
}

.checkout-shipping-result:empty {
    display: none;
}

body[data-public-page="checkout"] .cart-shipping-options-shell {
    margin-top: 20px;
}

.checkout-trust-box {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0;
}

.checkout-lock {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-dark);
    color: #fff;
    font-weight: 700;
}

.checkout-sidebar {
    position: sticky;
    top: 104px;
}

.checkout-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(107, 58, 32, .1);
}

.checkout-summary-heading h2 {
    margin: 0;
}

.checkout-summary-items {
    display: grid;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(107, 58, 32, .1);
}

.checkout-summary-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.checkout-summary-item img {
    width: 54px;
    height: 68px;
    object-fit: cover;
    border: 1px solid rgba(107, 58, 32, .12);
    border-radius: 10px;
    background: #fff;
}

.checkout-summary-item-copy {
    min-width: 0;
}

.checkout-summary-item-copy strong,
.checkout-summary-item-copy span {
    display: block;
}

.checkout-summary-item-copy strong {
    color: var(--ink);
    line-height: 1.35;
}

.checkout-summary-item-copy span,
.checkout-summary-loading,
.checkout-submit-help {
    color: rgba(67, 49, 38, .68);
    font-size: .88rem;
}

.checkout-summary-item-price {
    color: var(--accent-dark);
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
}

.checkout-summary-loading {
    margin: 0;
}

.checkout-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 20px;
}

.checkout-submit-help {
    margin: 10px 0 0;
    text-align: center;
    line-height: 1.45;
}

body[data-public-page="checkout"] #checkoutResult:not(:empty) {
    margin-top: 14px;
}

.checkout-payment-instructions {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid rgba(139, 77, 52, .18);
    border-radius: 18px;
    background: #fff8f2;
}

.payment-instructions-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.payment-instructions-heading h3 {
    margin: 0;
    color: var(--accent-dark);
}

.payment-pending-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--soft-yellow);
    color: #76551b;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.payment-pix-qr {
    display: block;
    width: min(220px, 100%);
    aspect-ratio: 1;
    margin: 0 auto 18px;
    border: 10px solid #fff;
    border-radius: 16px;
}

.checkout-payment-instructions label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.checkout-payment-instructions textarea {
    width: 100%;
    min-height: 92px;
    margin-bottom: 10px;
    resize: vertical;
    border: 1px solid #d8d1cc;
    border-radius: 12px;
    padding: 12px;
    color: var(--ink);
    background: #fff;
    font: 500 .82rem/1.45 monospace;
}

.payment-expiration {
    margin: 14px 0 0;
    color: rgba(67, 49, 38, .72);
    font-size: .88rem;
}

.order-payment-instructions {
    margin: 16px 0;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    .checkout-section {
        padding-top: 24px;
    }

    .checkout-heading,
    .checkout-session-note,
    .checkout-guest-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-form-grid,
    .checkout-contact-grid {
        grid-template-columns: 1fr;
    }

    .checkout-payment-options {
        grid-template-columns: 1fr;
    }

    .checkout-payment-option {
        min-height: 72px;
    }

    .checkout-field-wide {
        grid-column: auto;
    }

    .checkout-card,
    .checkout-summary-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .checkout-summary-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .checkout-summary-item img {
        width: 48px;
        height: 62px;
    }

    .checkout-summary-item-price {
        grid-column: 2;
    }
}

.fake-checkout-box {
    max-width: 720px;
    margin: 0 auto;
}

.fake-checkout-actions {
    margin-top: 18px;
}

.card-editorial {
    border-radius: 32px;
    padding: 26px;
    background: linear-gradient(180deg, rgba(255,250,246,.97), rgba(252,243,235,.95));
}

.card-large {
    min-height: 260px;
}

.card-pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(139, 77, 52, .12);
    font-size: .86rem;
    color: var(--accent-dark);
}

.home-shop-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr;
    gap: 20px;
}

.card img,
.detail-product-visual img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    margin-bottom: 14px;
}

.card-product {
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(61, 43, 31, .14);
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: "Fredoka", "Segoe UI", sans-serif;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.card-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(61, 43, 31, .18);
}

.card-product:focus-visible {
    outline: 3px solid rgba(124, 152, 60, .42);
    outline-offset: 4px;
}

.card-product-image-wrap {
    position: relative;
    padding: 0;
}

.card-product-media {
    display: grid;
    place-items: center;
    min-height: 270px;
    padding: 24px;
    border-radius: 14px 14px 0 0;
    background: var(--cover-background, #FFFFFF);
}

.card-product-media img {
    width: auto;
    max-width: 100%;
    margin-bottom: 0;
}

.card-product-media.image-frame-portrait img {
    width: min(100%, 190px);
    max-height: 220px;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    filter: drop-shadow(8px 8px 5px rgba(52, 38, 29, .22));
}

.card-product-media.image-frame-square img {
    width: min(100%, 205px);
    max-height: 220px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(8px 8px 5px rgba(52, 38, 29, .22));
}

.card-product-media.image-frame-landscape img {
    width: min(100%, 230px);
    max-height: 220px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    filter: drop-shadow(8px 8px 5px rgba(52, 38, 29, .22));
}

.card-product-badges,
.detail-product-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.card-product .card-product-badges {
    position: absolute;
    z-index: 1;
    top: 9px;
    left: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}

.card-product .card-product-badges:empty {
    display: none;
}

.card-product .card-product-badges .book-release-tag,
.card-product .card-product-badges .book-sold-out-tag,
.card-product .card-product-badges .card-badge {
    min-height: 0;
    padding: 4px 7px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: .72rem;
    font-weight: 700;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(139, 77, 52, .12);
    font-size: .82rem;
    color: var(--accent-dark);
}

.card-badge.digital {
    background: rgba(216, 231, 198, .7);
}

.card-badge.shipping {
    background: rgba(245, 215, 216, .72);
}

.card-badge.free {
    background: rgba(215, 241, 210, .92);
    color: #2f6c2d;
    border-color: rgba(88, 145, 84, .18);
}

.card-product-body {
    padding: 13px 13px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-product-body h3 {
    min-height: 0;
    margin: 0 0 7px;
    color: #5f5a57;
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-description {
    min-height: 66px;
    color: #5f5a57;
    font-size: .84rem;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.card-product-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 10px 0 0;
    border-top: 1px solid #e8e4e1;
}

.card-product-age {
    color: #5f5a57;
    font-size: .82rem;
}

.card-product-summary .price {
    margin: 0;
    color: #a94bc1;
    font-size: .9rem;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.card-meta-stack {
    display: grid;
    gap: 6px;
    margin: 14px 0 16px;
}

.card-meta-line {
    margin: 0;
    font-size: .95rem;
    color: rgba(67,49,38,.88);
}

.card-product-footer {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.card-product .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.card-product .nav button {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: .84rem;
    font-family: "Fredoka", "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: .01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    line-height: 1.2;
    text-align: center;
}

.card-product .nav button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-product .nav button:first-child {
    background: #fff;
    color: var(--accent-dark);
    border: 1px solid var(--accent-dark);
}

.card-product .nav button:last-child {
    background: var(--accent-dark);
    color: #fff;
    border: 1px solid var(--accent-dark);
}

.card-product .nav button:hover {
    transform: translateY(-1px);
}

.card-product .nav button:first-child:hover {
    background: #fbf3eb;
    color: #7d4730;
    border-color: #7d4730;
}

.card-product .nav button:last-child:hover {
    background: #7d4730;
    border-color: #7d4730;
}

.card-product .nav button[data-state="loading"],
.card-product .nav button[data-state="success"],
.card-product .nav button[data-state="error"] {
    cursor: default;
    transform: none;
    opacity: 1;
}

.card-product .nav button[data-state="success"] {
    background: #536c20;
    border-color: #536c20;
}

.card-product .nav button[data-state="error"] {
    background: #a9473f;
    border-color: #a9473f;
}

.catalog-add-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: catalog-add-spin .7s linear infinite;
}

.catalog-add-check {
    font-size: 1rem;
    line-height: 1;
}

.cart-feedback {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(440px, calc(100vw - 32px));
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 14px;
    background: #536c20;
    color: #fff;
    font: 500 .92rem/1.4 "Fredoka", "Segoe UI", sans-serif;
    box-shadow: 0 14px 34px rgba(45, 57, 21, .25);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.cart-feedback.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cart-feedback-error {
    background: #8e3934;
}

.cart-feedback-icon {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-weight: 700;
}

.cart-feedback a {
    margin: 0 0 0 4px;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

@keyframes catalog-add-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .cart-feedback {
        right: 16px;
        bottom: 16px;
        left: 16px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-feedback {
        transition: none;
    }

    .catalog-add-spinner {
        animation-duration: 1.4s;
    }
}

.card a {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent-dark);
    font-weight: bold;
}

.price {
    font-weight: bold;
    color: var(--accent-dark);
    font-size: 1.18rem;
    margin: 0;
}

.detail.empty,
.cart.empty {
    opacity: .75;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 24px;
    align-items: start;
}

.detail-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.product-detail-gallery { min-width: 0; display: block; }
.product-gallery-stage { position: relative; aspect-ratio: 4 / 3; background: var(--cover-background, #fff); overflow: hidden; cursor: zoom-in; }
.product-gallery-main { display: block; width: 100%; height: 100%; object-fit: contain; padding: 20px; box-sizing: border-box; transform: scale(1); transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%); transition: transform 420ms cubic-bezier(.2, .75, .25, 1); will-change: transform, transform-origin; }
@media (hover: hover) and (pointer: fine) {
    .product-gallery-stage:hover .product-gallery-main { transform: scale(1.65); }
}
.product-gallery-badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.product-gallery-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.product-gallery-thumbnail { min-width: 0; aspect-ratio: 1 / 1; padding: 5px; border: 2px solid transparent; border-radius: 0; background: var(--cover-background, #fff); box-shadow: none; cursor: pointer; }
.product-gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-gallery-thumbnail[aria-pressed="true"] { border-color: #8b4d34; }
.product-gallery-thumbnail:hover { border-color: #bca094; background: var(--cover-background, #fff); transform: none; }
.product-gallery-thumbnail:focus-visible { outline: 3px solid #423d3a; outline-offset: 3px; }
.product-gallery-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
    .product-gallery-main { padding: 12px; }
    .product-gallery-thumbnails { gap: 6px; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .product-gallery-main { transition: none; }
}

.detail-product-visual {
    background: var(--cover-background, #FFFFFF);
    border-radius: 28px;
    padding: 18px;
    border: 1px solid rgba(139, 77, 52, .08);
    display: grid;
    place-items: center;
}

.detail-product-visual img {
    margin-bottom: 0;
}

.detail-product-visual.image-frame-portrait {
    width: min(100%, 320px);
    aspect-ratio: 3 / 4;
}

.detail-product-visual.image-frame-square {
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
}

.detail-product-visual.image-frame-landscape {
    width: min(100%, 420px);
    aspect-ratio: 4 / 3;
}

.detail-product-visual.image-frame-portrait img,
.detail-product-visual.image-frame-square img,
.detail-product-visual.image-frame-landscape img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    aspect-ratio: auto;
}

.detail-product-copy {
    display: grid;
    gap: 18px;
    align-content: start;
}

.detail-product-title {
    margin: 0;
    color: #7d7a78;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    font-weight: 600;
    line-height: 1.02;
    text-shadow: none;
}

.detail-product-collection {
    margin: -6px 0 0;
    text-align: right;
    color: var(--accent-dark);
    font-size: .98rem;
    font-weight: 700;
}

.detail-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}
.detail-lead > :first-child { margin-top: 0; }
.detail-lead > :last-child { margin-bottom: 0; }
.detail-lead h2, .detail-lead h3 { line-height: 1.2; }
.detail-lead blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--accent); }
.detail-lead ul, .detail-lead ol { padding-left: 1.5em; }

.detail-product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin: 0;
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    font-weight: 700;
}

.detail-product-price .book-price { display: contents; }
.detail-product-price .book-price-from { flex-basis: 100%; font-size: .65em; font-weight: 600; color: #7d7a78; }
.detail-product-price .book-price-current { color: #b45bd0; }
.detail-installments { color: #b45bd0; font-size: .58em; white-space: nowrap; }

.detail-quantity { display: grid; justify-items: start; gap: 7px; color: #7d7a78; }
.detail-quantity-control { display: grid; grid-template-columns: 24px 52px 24px; align-items: center; gap: 5px; }
.detail-quantity-control button { min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; color: #b145ca; font-size: 1.2rem; box-shadow: none; }
.detail-quantity-control button:hover { background: transparent; color: #7d2d91; transform: none; }
.detail-quantity-control output { display: grid; place-items: center; min-height: 36px; border: 1px solid #9b9b9b; border-radius: 999px; color: var(--ink); font-variant-numeric: tabular-nums; }

.detail-add-button { justify-self: start; min-width: 260px; margin: 4px 0 0; padding: 13px 24px; border-color: var(--accent-dark); border-radius: 12px; background: var(--accent-dark); text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.detail-add-button:hover { border-color: #7d4730; background: #7d4730; }
.detail-add-button[data-state="loading"],
.detail-add-button[data-state="success"],
.detail-add-button[data-state="error"] { cursor: default; opacity: 1; transform: none; }
.detail-add-button[data-state="success"] { border-color: #536c20; background: #536c20; }
.detail-add-button[data-state="error"] { border-color: #a9473f; background: #a9473f; }

.detail-information { display: grid; gap: 13px; margin-top: 2px; }
.detail-information p { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; margin: 0; line-height: 1.55; }
.detail-information-icon { display: inline-flex; color: #ae27c0; }
.detail-information-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 24px;
    margin: 22px 0;
}

.detail-meta-grid p,
.detail-stock {
    margin-bottom: 0;
}

.detail-meta-grid p {
    margin: 0;
    padding: 6px 0;
    line-height: 1.65;
}

.detail-meta-grid strong {
    display: inline-block;
    min-width: 92px;
    color: var(--accent-dark);
}

.detail-stock {
    margin: 6px 0 0;
    color: var(--accent-dark);
    font-weight: 700;
}

.detail-free-shipping-callout {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(255, 228, 153, .58), rgba(255, 247, 214, .96));
    border: 1px solid rgba(201, 147, 22, .24);
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(188, 137, 22, .12);
}

.detail-free-shipping-callout strong {
    color: #9c5f00;
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.detail-free-shipping-callout span {
    line-height: 1.65;
    color: #7b5310;
}

.cart-list {
    display: grid;
    gap: 14px;
}

body[data-public-page="carrinho"] .cart-section {
    padding: 24px 0 64px;
    border-bottom: 0;
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

body[data-public-page="carrinho"] .section-head h2,
body[data-public-page="carrinho"] .cart-side-head h3,
body[data-public-page="carrinho"] .cart-empty-state h3 {
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
    font-weight: 600;
}

body[data-public-page="carrinho"] .section-head h2 {
    margin: 0;
    color: #5f5a57;
}

body[data-public-page="carrinho"] .cart-item,
body[data-public-page="carrinho"] .cart-side-card {
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(61, 43, 31, .14);
}

body[data-public-page="carrinho"] button,
body[data-public-page="carrinho"] input,
body[data-public-page="carrinho"] .site-primary-link,
body[data-public-page="carrinho"] .site-secondary-link {
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

.cart-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .72fr);
    gap: 24px;
    align-items: start;
}

.cart-page-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 104px;
}

.cart-side-card {
    background: rgba(255, 250, 243, .96);
    border: 1px solid rgba(107, 58, 32, .12);
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 16px 34px rgba(61, 43, 31, .07);
}

.cart-side-head h3 {
    margin-bottom: 8px;
    color: var(--accent-dark);
}

.cart-side-head p {
    margin-bottom: 0;
    color: rgba(67, 49, 38, .78);
    line-height: 1.55;
}

.cart-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.cart-inline-form input {
    margin-bottom: 0;
}

body[data-public-page="carrinho"] .cart-inline-form input,
body[data-public-page="carrinho"] .cart-inline-form button,
body[data-public-page="carrinho"] .cart-actions input,
body[data-public-page="carrinho"] .cart-actions button {
    height: 44px;
    min-height: 44px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.cart-shipping-message {
    margin-top: 16px;
    line-height: 1.55;
}

.cart-shipping-options-shell {
    margin-top: 16px;
    padding: 16px;
    background: #fffaf6;
    border: 1px solid rgba(139, 77, 52, .18);
    border-radius: 14px;
}

.cart-shipping-options {
    display: grid;
    gap: 12px;
}

.cart-shipping-destination {
    color: rgba(67, 49, 38, .82);
    font-size: .96rem;
    line-height: 1.5;
}

.cart-shipping-destination strong {
    color: var(--accent-dark);
}

.cart-shipping-option {
    width: 100%;
    border: 1px solid rgba(107, 58, 32, .14);
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    text-align: left;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(61, 43, 31, .06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cart-shipping-option:hover {
    transform: translateY(-1px);
    border-color: rgba(107, 58, 32, .3);
    box-shadow: 0 10px 18px rgba(61, 43, 31, .08);
}

.cart-shipping-option.selected {
    border-color: var(--accent-dark);
    background: #fff8f2;
    box-shadow: 0 12px 24px rgba(139, 77, 52, .14);
}

.cart-shipping-carrier-logo {
    width: 72px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 1px solid rgba(107, 58, 32, .1);
    border-radius: 10px;
    background: #fff;
}

.cart-shipping-carrier-logo img {
    display: block;
    max-width: 100%;
    max-height: 34px;
    object-fit: contain;
}

.cart-shipping-carrier-logo.fallback {
    color: var(--accent-dark);
    background: #fbf3eb;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-shipping-option-copy,
.cart-shipping-option-summary {
    display: grid;
    gap: 4px;
}

.cart-shipping-option-copy strong {
    color: var(--accent-dark);
    font-size: 1.05rem;
}

.cart-shipping-carrier-name,
.cart-shipping-delivery-time {
    color: rgba(67, 49, 38, .72);
    font-size: .86rem;
}

.cart-shipping-option-summary {
    min-width: 105px;
    justify-items: end;
    align-items: center;
}

.cart-shipping-option-price {
    color: var(--accent-dark);
    font-size: 1.12rem;
    font-weight: 700;
}

.cart-shipping-selection {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(139, 77, 52, .24);
    border-radius: 50%;
    color: transparent;
    background: #fff;
    font-size: .8rem;
}

.cart-shipping-option.selected .cart-shipping-selection {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
}

.cart-shipping-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(107, 58, 32, .1);
    color: var(--accent-dark);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

@media (max-width: 560px) {
    .cart-shipping-option {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .cart-shipping-carrier-logo {
        width: 58px;
        height: 46px;
    }

    .cart-shipping-option-summary {
        grid-column: 2;
        min-width: 0;
        grid-template-columns: 1fr auto;
        justify-items: start;
    }

    .cart-shipping-selection {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

.cart-summary-rows {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.cart-summary-row,
.cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cart-summary-row span {
    color: rgba(67, 49, 38, .76);
}

.cart-summary-row strong,
.cart-summary-total strong {
    color: var(--accent-dark);
}

.cart-summary-shipping-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    text-align: right;
}

.cart-summary-shipping-value img {
    width: 44px;
    height: 28px;
    flex: 0 0 44px;
    object-fit: contain;
    padding: 3px;
    border: 1px solid rgba(107, 58, 32, .1);
    border-radius: 7px;
    background: #fff;
}

.cart-summary-shipping-value span {
    color: var(--accent-dark);
}

.cart-coupon-box {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(107, 58, 32, .1);
}

.cart-coupon-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--accent-dark);
}

.cart-summary-total {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(107, 58, 32, .12);
}

.cart-summary-total span {
    font-size: 1rem;
}

.cart-summary-total strong {
    font-size: 1.35rem;
}

.cart-buy-button {
    width: 100%;
    margin-top: 18px;
    min-height: 54px;
}

.orders {
    display: grid;
    gap: 14px;
}

.order-card {
    cursor: pointer;
}

.order-card:hover {
    border-color: var(--accent);
}

body[data-public-page="pedidos"] {
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

body[data-public-page="pedidos"] .orders-hero {
    padding: 42px 0 34px;
    border-bottom: 1px solid rgba(107, 58, 32, .1);
    background: linear-gradient(135deg, rgba(255, 250, 246, .92), rgba(245, 215, 216, .34));
}

body[data-public-page="pedidos"] .orders-hero h1,
body[data-public-page="pedidos"] .orders-section h2,
body[data-public-page="pedidos"] .order-detail h3,
body[data-public-page="pedidos"] .order-detail h4 {
    margin-top: 0;
    color: var(--accent-dark);
}

body[data-public-page="pedidos"] .orders-hero h1 {
    margin-bottom: 8px;
}

body[data-public-page="pedidos"] .orders-hero .subtitle {
    max-width: 660px;
    margin-bottom: 0;
    color: rgba(67, 49, 38, .78);
    line-height: 1.6;
}

.orders-section {
    padding: 40px 0 72px;
}

.orders-section-head h2 {
    margin-bottom: 0;
}

.orders-kicker {
    margin: 0 0 6px;
    color: #b45f74;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.orders-refresh {
    border-color: var(--accent-dark);
    border-radius: 12px;
    color: var(--accent-dark);
}

.orders-workspace {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.admin-orders-workspace {
    grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
    margin-top: 22px;
}

.admin-orders-list-column {
    min-width: 0;
}

.admin-order-filters {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 250, 246, .78);
}

.admin-order-filters h2 {
    margin: 0 0 13px;
    color: var(--accent-dark);
    font-size: 1rem;
}

.admin-order-filters .admin-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 0;
}

.admin-order-filters .admin-order-search-field {
    grid-column: 1 / -1;
}

.admin-order-filters .admin-filters label {
    margin-bottom: 5px;
    font-size: .78rem;
}

.admin-order-filters input,
.admin-order-filters select {
    min-width: 0;
    padding: 10px 11px;
    font-size: .84rem;
}

.admin-order-results {
    margin: 0 0 10px;
    color: rgba(67, 49, 38, .68);
    font-size: .86rem;
}

.admin-orders-workspace .orders {
    gap: 9px;
}

.admin-orders-workspace .order-card {
    display: grid;
    gap: 8px;
    padding: 13px 14px;
    cursor: pointer;
}

.admin-order-card-heading,
.admin-order-card-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.admin-order-card-heading time,
.admin-order-customer,
.admin-order-card-footer span {
    color: rgba(67, 49, 38, .68);
    font-size: .82rem;
}

.admin-order-customer {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-order-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(180, 95, 116, .12);
    color: #8e4357;
    font-size: .72rem;
    font-weight: 700;
}

.admin-payment-badge {
    background: rgba(107, 58, 32, .1);
    color: var(--accent-dark);
}

.admin-commission-badge {
    background: rgba(74, 120, 92, .12);
    color: #376a4a;
}

.admin-order-card-footer {
    padding-top: 7px;
    border-top: 1px solid rgba(107, 58, 32, .1);
}

.admin-order-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    color: rgba(67, 49, 38, .72);
    font-size: .86rem;
}

.admin-order-pagination button {
    min-height: 38px;
    padding: 8px 13px;
}

.admin-order-pagination button:disabled {
    cursor: default;
    opacity: .45;
}

.admin-orders-workspace .order-card:focus-visible,
.admin-orders-workspace .order-card.active {
    border-color: var(--accent-dark);
    background: #fff;
    box-shadow: 0 10px 25px rgba(91, 53, 37, .12);
    outline: none;
}

.admin-orders-workspace .detail {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 116px);
    overflow: auto;
}

body[data-public-page="pedidos"] .orders {
    gap: 12px;
}

body[data-public-page="pedidos"] .order-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 250, 246, .94);
    box-shadow: 0 7px 20px rgba(61, 43, 31, .06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body[data-public-page="pedidos"] .order-card:hover,
body[data-public-page="pedidos"] .order-card:focus-visible,
body[data-public-page="pedidos"] .order-card.active {
    border-color: var(--accent-dark);
    box-shadow: 0 10px 25px rgba(91, 53, 37, .12);
    outline: none;
    transform: translateY(-1px);
}

body[data-public-page="pedidos"] .order-card.active {
    background: #fff;
}

.order-card-heading,
.order-card-summary,
.order-detail-header,
.order-detail-section-title,
.order-product-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.order-card-number {
    color: var(--accent-dark);
    font-weight: 700;
}

.order-card-date,
.order-detail-header time,
.order-product-item span {
    color: rgba(67, 49, 38, .68);
    font-size: .88rem;
}

.order-card-summary {
    align-items: baseline;
    padding-top: 10px;
    border-top: 1px solid rgba(107, 58, 32, .1);
}

.order-card-summary strong {
    color: var(--accent-dark);
    font-size: 1.08rem;
}

.order-card-payment {
    color: rgba(67, 49, 38, .78);
    font-size: .9rem;
}

.order-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f8ebbe;
    color: #73551f;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.order-status-confirmed,
.order-status-preparing {
    background: #f0dff5;
    color: #71317d;
}

.order-status-shipped {
    background: #dceaf3;
    color: #315d73;
}

.order-status-delivered {
    background: #dfead2;
    color: #486124;
}

.order-status-cancelled,
.order-status-failed {
    background: #f5d7d8;
    color: #8a3939;
}

body[data-public-page="pedidos"] .order-detail {
    min-width: 0;
    padding: 26px;
    border-radius: 24px;
    background: #fffaf6;
}

.order-detail-header {
    margin-bottom: 20px;
}

.order-detail-header h3 {
    margin-bottom: 6px;
    font-size: 1.45rem;
}

.order-detail-notice {
    display: grid;
    gap: 4px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(139, 77, 52, .14);
    border-radius: 14px;
    background: #fcf1e8;
}

.order-detail-notice strong {
    color: var(--accent-dark);
}

.order-detail-notice span {
    color: rgba(67, 49, 38, .76);
    font-size: .9rem;
}

.order-tracking {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(74, 120, 92, .22);
    border-radius: 12px;
    background: rgba(74, 120, 92, .08);
}

.order-tracking span {
    color: rgba(67, 49, 38, .76);
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.order-tracking .site-secondary-link {
    width: fit-content;
}

.order-products {
    margin-bottom: 22px;
}

.order-detail-section-title {
    align-items: baseline;
    margin-bottom: 10px;
}

.order-detail-section-title h4,
.order-info-card h4,
.order-address-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.order-detail-section-title span {
    color: rgba(67, 49, 38, .65);
    font-size: .85rem;
}

.order-product-list {
    overflow: hidden;
    border: 1px solid rgba(107, 58, 32, .12);
    border-radius: 16px;
    background: #fff;
}

.order-product-item {
    padding: 15px 16px;
}

.order-product-item + .order-product-item {
    border-top: 1px solid rgba(107, 58, 32, .1);
}

.order-product-item > div {
    display: grid;
    gap: 5px;
}

.order-product-price {
    flex: 0 0 auto;
    justify-items: end;
    text-align: right;
}

.order-product-price strong {
    color: var(--accent-dark);
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.order-info-card,
.order-address-card {
    padding: 17px;
    border: 1px solid rgba(107, 58, 32, .12);
    border-radius: 16px;
    background: rgba(252, 243, 235, .66);
}

.order-info-card p,
.order-address-card p {
    margin: 5px 0;
    line-height: 1.5;
}

.order-totals p {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.order-totals .order-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(107, 58, 32, .12);
    color: var(--accent-dark);
}

@media (max-width: 820px) {
    .orders-workspace {
        grid-template-columns: 1fr;
    }

    .admin-orders-workspace .detail {
        position: static;
        max-height: none;
        overflow: visible;
    }

    body[data-public-page="pedidos"] .orders {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .admin-order-filters .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-order-filters .admin-order-search-field {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .orders-section-head,
    .order-detail-header,
    .order-product-item {
        align-items: stretch;
        flex-direction: column;
    }

    .orders-refresh {
        width: 100%;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-product-price {
        justify-items: start;
        text-align: left;
    }
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.cart-item-visual img {
    width: 110px;
    height: 150px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(107, 58, 32, .12);
    background: white;
}

.cart-item-visual img.image-frame-square {
    width: 110px;
    height: 110px;
}

.cart-item-visual img.image-frame-landscape {
    width: 140px;
    height: 105px;
}

.cart-item-copy {
    display: grid;
    gap: 18px;
}

.cart-item-copy-top,
.cart-item-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.cart-item-meta {
    margin-top: 6px;
    color: rgba(67, 49, 38, .78);
}

.cart-item-pricing,
.cart-item-subtotal {
    display: grid;
    gap: 4px;
    min-width: 120px;
    text-align: right;
}

.cart-item-pricing span,
.cart-item-subtotal span {
    color: rgba(67, 49, 38, .72);
    font-size: .92rem;
}

.cart-item-pricing strong,
.cart-item-subtotal strong {
    color: var(--accent-dark);
    font-size: 1.05rem;
}

.cart-qty-field {
    display: grid;
    gap: 6px;
    min-width: 130px;
}

.cart-qty-field span {
    color: rgba(67, 49, 38, .78);
    font-size: .92rem;
}

.cart-qty-field input {
    margin-bottom: 0;
}

.cart-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.cart-inline-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(107, 58, 32, .1);
    color: rgba(67, 49, 38, .84);
}

.cart-empty-state {
    padding: 14px 4px;
}

.cart-empty-state h3 {
    color: var(--accent-dark);
}

.cart-empty-state p {
    margin-bottom: 18px;
    line-height: 1.65;
}

input[type="number"],
input[type="text"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: white;
    font: inherit;
    margin-bottom: 12px;
}

textarea {
    resize: vertical;
}

/* Keep the public catalog search aligned with its adjacent sort control.
   The generic form rule above adds a bottom margin to search inputs. */
.catalog-search-box input[type="search"] {
    margin-bottom: 0;
}

select[multiple] {
    min-height: 140px;
    border-radius: 12px;
}

.result {
    margin-top: 16px;
    min-height: 28px;
    border-radius: 14px;
    padding: 0;
    font-weight: 600;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, padding 0.18s ease;
}

.result:empty {
    padding: 0;
    border: 0;
    min-height: 0;
}

.result-success,
.result-error,
.result-warning {
    padding: 14px 16px;
    border: 1px solid transparent;
}

.result-success {
    background: #edf9f0;
    border-color: #9fd3ab;
    color: #1f6a37;
}

.result-error {
    background: #fff1f1;
    border-color: #efb1b1;
    color: #9f2727;
}

.result-warning {
    background: #fff7e8;
    border-color: #e7c58f;
    color: #8a5b12;
}

.admin-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.admin-filters label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.summary-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(61, 43, 31, .08);
}

.summary-card strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--accent-dark);
}

.summary-card span {
    opacity: .8;
}

.admin-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.admin-module-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(61, 43, 31, .08);
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: 10px;
    transition: transform .15s ease, border-color .15s ease;
}

.admin-module-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.admin-module-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.admin-module-icon svg {
    width: 30px;
    height: 30px;
}

.admin-module-card strong {
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--accent-dark);
}

.admin-module-card span:last-child {
    opacity: .8;
    line-height: 1.45;
}

.admin-hidden {
    display: none;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    margin-bottom: 10px;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 20px;
    align-items: start;
}

.admin-product-editor { min-width: 0; padding-top: 0; overflow: visible; }
.admin-product-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 14px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
}
.admin-product-toolbar h3 { margin: 0 0 5px; font-size: 1.15rem; }
.admin-product-toolbar .muted { font-size: .85rem; }
.admin-product-toolbar .nav { margin: 0; }
.admin-product-toolbar .result { flex-basis: 100%; margin: 0; font-size: .9rem; white-space: normal; }
.admin-product-toolbar .result:empty { display: none; }
.admin-product-toolbar .result[data-state="error"] { color: #8e2925; background: #fff0ed; border-left: 3px solid #b43c32; padding: 10px 12px; max-height: 150px; overflow: auto; }
.admin-product-toolbar .result[data-state="success"] { color: #35572a; background: #edf5e7; border-left: 3px solid #67814e; padding: 10px 12px; }
.admin-product-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.admin-product-tabs button { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; border-radius: 12px; padding: 9px 12px; font-size: .85rem; }
.admin-product-tabs button[aria-selected="true"] { background: var(--ink); color: #fffaf6; border-color: var(--ink); }
.admin-product-tabs button.has-errors { border-bottom: 3px solid #b43c32; }
.admin-product-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.admin-product-panel[hidden] { display: none; }
.admin-product-panel > div { min-width: 0; }
.admin-product-panel .admin-product-collection-field,
.admin-product-panel .detail,
#admin-product-panel-images > div,
#admin-product-panel-basic > div:has(textarea),
#admin-product-panel-basic > div:has(.admin-rich-text) { grid-column: 1 / -1; }
.admin-product-panel .admin-product-collection-field { margin: 0; }
.admin-product-panel textarea { min-height: 110px; resize: vertical; }
.admin-rich-text { overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-rich-text-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); background: #f8f5f1; }
.admin-rich-text-toolbar button,
.admin-rich-text-toolbar select { width: auto; min-height: 36px; margin: 0; padding: 7px 9px; border-radius: 8px; font-size: .82rem; }
.admin-rich-text-toolbar button { min-width: 36px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.admin-rich-text-toolbar [data-rich-text-command="justifyLeft"] { text-align: left; }
.admin-rich-text-toolbar [data-rich-text-command="justifyCenter"] { text-align: center; }
.admin-rich-text-toolbar [data-rich-text-command="justifyRight"] { text-align: right; }
.admin-rich-text-color { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .82rem; }
.admin-rich-text-color input { width: 28px; height: 26px; margin: 0; padding: 1px; border: 0; border-radius: 4px; }
.admin-rich-text-content { min-height: 180px; padding: 14px; outline: 0; line-height: 1.6; overflow-wrap: anywhere; }
.admin-rich-text-content:empty::before { content: attr(data-placeholder); color: #777; pointer-events: none; }
.admin-rich-text:focus-within { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(177, 69, 202, .12); }
.admin-product-editor .admin-rich-text[aria-invalid="true"] { border: 2px solid #b43c32; background: #fff6f3; }
.admin-product-editor [aria-invalid="true"] { border: 2px solid #b43c32; background: #fff6f3; }
.admin-field-error { color: #9e3029; font-size: .85rem; margin: 6px 0 0; }
.admin-error-link { display: block; background: transparent; color: inherit; border: 0; box-shadow: none; text-align: left; text-decoration: underline; padding: 4px 0; font-size: inherit; }
.admin-product-secondary-actions { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 26px; }
.admin-catalog-filters input[type="search"] { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: white; }
@media (max-width: 700px) {
    .admin-product-panel { grid-template-columns: minmax(0, 1fr); }
    .admin-product-toolbar { padding: 12px 0; }
    .admin-product-toolbar .nav { width: 100%; }
    .admin-product-toolbar .nav button { flex: 1; }
}

.admin-catalog-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 132px);
    overflow: hidden;
    grid-template-rows: auto auto minmax(0, 1fr);
}

.admin-catalog-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.admin-catalog-sidebar-head h3 {
    margin-bottom: 6px;
}

.admin-catalog-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(139, 77, 52, .12);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: .92rem;
    white-space: nowrap;
}

.admin-catalog-filters {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.admin-catalog-list {
    display: grid;
    gap: 10px;
    min-height: 0;
    max-height: calc(100vh - 360px);
    overflow-y: auto;
    padding: 0 4px 4px 0;
    scroll-padding-bottom: 4px;
}

.admin-catalog-list.empty {
    opacity: .75;
}

.admin-catalog-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(139, 77, 52, .12);
    background: rgba(255, 255, 255, .72);
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-catalog-item:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 77, 52, .35);
    box-shadow: 0 14px 30px rgba(61, 43, 31, .08);
}

.admin-catalog-item.selected {
    border-color: var(--accent);
    background: rgba(255, 247, 239, .98);
    box-shadow: 0 18px 38px rgba(139, 77, 52, .14);
}

.admin-catalog-thumb {
    align-self: start;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(139, 77, 52, .08);
}

.admin-catalog-thumb img {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    object-fit: cover;
    display: block;
}

.admin-catalog-thumb.image-frame-portrait {
    aspect-ratio: 2 / 3;
}

.admin-catalog-thumb.image-frame-landscape {
    aspect-ratio: 4 / 3;
}

.admin-catalog-thumb.image-frame-square {
    aspect-ratio: 1 / 1;
}

.admin-catalog-thumb-placeholder {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 8px;
    color: #8e725c;
    font-size: .8rem;
    text-align: center;
}

.admin-catalog-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
    align-content: start;
}

.admin-catalog-topline,
.admin-catalog-bottomline,
.admin-catalog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-catalog-topline strong {
    min-width: 0;
    font-size: 1rem;
    color: var(--accent-dark);
}

.admin-catalog-price {
    color: #a3451f;
    font-weight: 700;
    white-space: nowrap;
}

.admin-catalog-meta {
    font-size: .84rem;
    color: #7f6652;
}

.admin-catalog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(250, 239, 228, .86);
}

.admin-catalog-slug {
    color: #8e725c;
    font-size: .82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.admin-catalog-home-flags {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-catalog-home-flags small {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(216, 231, 198, .72);
    color: #4c6239;
    font-size: .74rem;
    font-weight: 700;
}

.account-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.muted {
    margin-top: 12px;
    color: #7f6652;
    font-size: 0.95rem;
}

.recaptcha-slot {
    margin-top: 16px;
    margin-bottom: 8px;
    min-height: 78px;
}

.contact-page-hero {
    padding-bottom: 14px;
}

body[data-public-page="contato"] {
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

body[data-public-page="contato"] .site-header a,
body[data-public-page="contato"] .site-header button,
body[data-public-page="contato"] .site-footer {
    font-family: "Fredoka", "Segoe UI", sans-serif;
}


.contact-v1-top { padding: clamp(32px, 5vw, 60px) 0 24px; background: #e8dcd6; }
.contact-v1-section { padding: 12px 0 clamp(40px, 6vw, 72px); background: #e8dcd6; }
.contact-v1-layout { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; width: min(100%, 1000px); margin: 0 auto; }
.contact-v1-message { padding: 24px 0; }
.contact-v1-call { margin: 0; color: #423d3a; font: 500 clamp(1.5rem, 2.6vw, 1.95rem)/1.3 "Fredoka", "Segoe UI", sans-serif; }
.contact-v1-arrow { display: flex; justify-content: center; margin-top: 24px; }
.contact-v1-arrow img { width: min(100%, 118px); object-fit: contain; }
.contact-v1-form { min-width: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid #c8bfba; border-radius: 20px; background: #fffdf9; }
.contact-v1-form .form-group { margin-bottom: 18px; }
.contact-v1-form label { display: block; margin-bottom: 7px; color: #5f5955; font-size: 14px; }
.contact-v1-form input, .contact-v1-form textarea { display: block; width: 100%; margin: 0; padding: 12px 16px; border: 1px solid #c8bfba; border-radius: 12px; background: #fff; color: #45413f; font: inherit; box-shadow: none; }
.contact-v1-form textarea { min-height: 140px; resize: vertical; }
.contact-v1-form input::placeholder, .contact-v1-form textarea::placeholder { color: #726b66; opacity: 1; font-weight: 400; }
.contact-v1-form :is(input, textarea):focus-visible { outline: 3px solid rgba(142, 165, 82, .28); outline-offset: 2px; border-color: #7c983c; }
.contact-v1-recaptcha { display: flex; justify-content: center; margin: 20px 0; }
.contact-v1-submit { display: flex; justify-content: flex-end; margin: 0; }
.contact-v1-send { min-height: 48px; padding: 12px 26px; border: 1px solid #7c983c; border-radius: 12px; background: #7c983c; color: #fff; font: 600 15px "Fredoka", "Segoe UI", sans-serif; cursor: pointer; box-shadow: none; }
.contact-v1-send:hover { background: #69832e; }
.contact-v1-form .result:empty { display: none; }
body[data-public-page="contato"] { background: #fff; color: #494641; }
@media (max-width: 600px) {
    .contact-v1-top .shuu-section-title { grid-template-columns: minmax(20px, 40px) minmax(0, auto) minmax(20px, 40px); gap: 12px; }
    .contact-v1-form { padding: 20px 16px; }
    .contact-v1-send { width: 100%; }
}

.contact-hero-art {
    display: flex;
    justify-content: center;
}

.contact-hero-art img {
    width: min(100%, 460px);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(61, 43, 31, .12);
    background: rgba(255, 255, 255, .7);
    padding: 18px;
}

.contact-section {
    border-bottom: 0;
    padding-top: 10px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.contact-intro-card,
.contact-form-card {
    background: rgba(255, 250, 243, .96);
    border: 1px solid rgba(107, 58, 32, .14);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(61, 43, 31, .06);
}

.contact-intro-card h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
    color: var(--accent-dark);
    margin-bottom: 16px;
}

.contact-intro-card p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-arrow-art {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.contact-arrow-art img {
    width: min(100%, 180px);
    object-fit: contain;
}

.contact-form-card label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-dark);
    font-weight: bold;
}

.contact-recaptcha-block {
    margin: 14px 0 10px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(107, 58, 32, .12);
}

.contact-recaptcha-title {
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-weight: bold;
}

.contact-recaptcha-help {
    margin-top: 8px;
}

.contact-footer-art-section {
    padding: 0 0 34px;
}

.contact-footer-art {
    display: flex;
    justify-content: center;
}

.contact-footer-art img {
    width: min(100%, 860px);
    object-fit: contain;
}

body[data-public-page="conta"] {
    background: #f4ece8;
    color: #494641;
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

body[data-public-page="conta"] .site-header,
body[data-public-page="conta"] .site-footer {
    background: #fff;
}

body[data-public-page="conta"] .site-header a,
body[data-public-page="conta"] .site-header button,
body[data-public-page="conta"] .site-footer {
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

.account-section {
    padding: clamp(42px, 6vw, 76px) 0 clamp(64px, 8vw, 104px);
}

.account-wrap {
    width: min(960px, calc(100% - 32px));
}

.account-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto 30px;
}

.account-kicker {
    margin: 0 0 7px;
    color: #9d5666;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.account-heading h1 {
    margin: 0 0 7px;
    color: #423d3a;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.account-heading p:last-child,
.account-panel-heading p,
.account-welcome p {
    margin: 0;
    color: #6f6965;
    line-height: 1.55;
}

.account-auth-card {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid #d8cbc4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(66, 61, 58, .08);
}

.account-auth-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 30px;
    padding: 5px;
    border-radius: 15px;
    background: #eee5e1;
}

.account-auth-switch-button {
    min-height: 44px;
    border: 0;
    border-radius: 11px;
    padding: 9px 14px;
    background: transparent;
    color: #69615d;
    font: 600 .94rem/1.2 "Fredoka", "Segoe UI", sans-serif;
    box-shadow: none;
}

.account-auth-switch-button:hover {
    background: rgba(255, 255, 255, .58);
}

.account-auth-switch-button.active {
    background: #fff;
    color: #423d3a;
    box-shadow: 0 4px 13px rgba(66, 61, 58, .09);
}

.account-auth-panel,
.customer-manage-panel {
    animation: account-panel-in .2s ease-out;
}

@keyframes account-panel-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.account-panel-heading {
    margin-bottom: 24px;
}

.account-panel-heading h2 {
    margin: 0 0 6px;
    color: #423d3a;
    font-size: clamp(1.35rem, 3vw, 1.72rem);
}

body[data-public-page="conta"] label {
    display: block;
    margin-bottom: 7px;
    color: #59524e;
    font-size: .9rem;
    font-weight: 500;
}

body[data-public-page="conta"] input[type="text"],
body[data-public-page="conta"] input[type="email"],
body[data-public-page="conta"] input[type="tel"],
body[data-public-page="conta"] input[type="password"] {
    width: 100%;
    min-height: 48px;
    margin-bottom: 18px;
    padding: 0 16px;
    border: 1px solid #cbc1bc;
    border-radius: 12px;
    background: #fffdfb;
    color: #45413f;
    font: 400 1rem "Fredoka", "Segoe UI", sans-serif;
}

body[data-public-page="conta"] input:focus {
    border-color: #9d5666;
    outline: 3px solid rgba(157, 86, 102, .14);
}

body[data-public-page="conta"] input[readonly] {
    background: #f3efed;
    color: #746d69;
}

.account-primary-action,
.account-secondary-action,
.account-logout {
    min-height: 48px;
    border-radius: 12px;
    padding: 11px 22px;
    font: 600 .96rem/1.2 "Fredoka", "Segoe UI", sans-serif;
}

.account-primary-action {
    border: 1px solid var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
}

.account-primary-action:hover {
    border-color: #7d4730;
    background: #7d4730;
}

.account-secondary-action,
.account-logout {
    border: 1px solid #ad8475;
    background: transparent;
    color: #634b41;
}

.account-secondary-action:hover,
.account-logout:hover {
    background: #fff8ee;
}

.account-auth-panel .account-primary-action {
    width: 100%;
}

.account-text-action {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 16px 0 0;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #7d5c52;
    font: 500 .86rem/1.45 "Fredoka", "Segoe UI", sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-text-action:hover {
    color: #9d5666;
}

.account-help {
    margin: 14px 0 0;
    color: #746d69;
    font-size: .86rem;
    text-align: center;
}

.account-welcome {
    margin: -8px 0 26px;
}

.account-welcome h2 {
    margin: 0 0 5px;
    color: #423d3a;
    font-size: 1.45rem;
}

.account-manage-layout {
    display: grid;
    grid-template-columns: minmax(180px, 210px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account-manage-nav {
    display: grid;
    gap: 5px;
    position: sticky;
    top: 88px;
    padding: 8px;
    border: 1px solid #d8cbc4;
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
}

.account-manage-link {
    border: 0;
    border-radius: 11px;
    padding: 12px 14px;
    background: transparent;
    color: #635d59;
    font: 500 .92rem/1.2 "Fredoka", "Segoe UI", sans-serif;
    text-align: left;
    box-shadow: none;
}

.account-manage-link:hover,
.account-manage-link:focus-visible {
    background: #f4ece8;
    color: #423d3a;
    outline: none;
}

.account-manage-link.active {
    background: var(--accent-dark);
    color: #fff;
}

.account-manage-panels {
    display: grid;
    gap: 18px;
}

body[data-public-page="conta"] .customer-manage-panel {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid #d8cbc4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(66, 61, 58, .07);
}

.account-security-options {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e3d9d4;
}

.account-disclosure {
    overflow: hidden;
    border: 1px solid #ded3ce;
    border-radius: 14px;
    background: #fffdfb;
}

.account-disclosure summary {
    cursor: pointer;
    padding: 15px 18px;
    color: #5b514c;
    font-weight: 600;
    list-style-position: inside;
}

.account-disclosure[open] summary {
    border-bottom: 1px solid #e3d9d4;
}

.account-disclosure-content {
    padding: 20px;
}

.account-order-detail {
    margin-top: 20px;
}

body[data-public-page="conta"] #customerOrdersContent {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}

body[data-public-page="conta"] .account-order-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    background: #fffaf6;
    box-shadow: 0 7px 20px rgba(61, 43, 31, .06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body[data-public-page="conta"] .account-order-card:hover,
body[data-public-page="conta"] .account-order-card:focus-visible,
body[data-public-page="conta"] .account-order-card.active {
    border-color: var(--accent-dark);
    box-shadow: 0 10px 25px rgba(91, 53, 37, .12);
    outline: none;
    transform: translateY(-1px);
}

body[data-public-page="conta"] .account-order-card.active {
    background: #fff;
}

.account-order-products {
    display: grid;
    gap: 7px;
    padding: 11px 0;
    border-top: 1px solid rgba(107, 58, 32, .1);
    border-bottom: 1px solid rgba(107, 58, 32, .1);
}

.account-order-product {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.account-order-product strong {
    font-size: .92rem;
    font-weight: 600;
}

.account-order-product span,
.account-order-products > span {
    flex: 0 0 auto;
    color: rgba(67, 49, 38, .68);
    font-size: .82rem;
}

body[data-public-page="conta"] .account-order-card .order-card-summary {
    padding-top: 0;
    border-top: 0;
}

body[data-public-page="conta"] .account-order-detail {
    padding: clamp(20px, 4vw, 26px);
    border-radius: 20px;
    background: #fffaf6;
}

@media (max-width: 900px) {
    .account-manage-layout {
        grid-template-columns: 1fr;
    }

    .account-manage-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        padding: 6px;
        scrollbar-width: thin;
    }

    .account-manage-link {
        flex: 0 0 auto;
        white-space: nowrap;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .account-section {
        padding-top: 30px;
    }

    .account-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .account-heading h1 {
        font-size: 2.1rem;
    }

    .account-logout {
        min-height: 42px;
        padding: 9px 16px;
    }

    .account-auth-card {
        padding: 18px;
        border-radius: 20px;
    }

    .account-auth-switch-button {
        padding-inline: 8px;
        font-size: .85rem;
    }

    body[data-public-page="conta"] .customer-manage-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .account-layout {
        grid-template-columns: 1fr;
    }
}

body[data-public-page="admin"] {
    background: #f4ece8;
    color: #494641;
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

body[data-public-page="admin"] .site-header,
body[data-public-page="admin"] .site-footer {
    background: #fff;
}

body[data-public-page="admin"] .site-header a,
body[data-public-page="admin"] .site-header button,
body[data-public-page="admin"] .site-footer {
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

.admin-entry-section {
    padding: clamp(42px, 6vw, 76px) 0 clamp(64px, 8vw, 104px);
}

.admin-entry-wrap {
    width: min(1040px, calc(100% - 32px));
}

.admin-entry-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto 30px;
}

.admin-entry-kicker {
    margin: 0 0 7px;
    color: var(--accent-dark);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-entry-heading h1 {
    margin: 0 0 7px;
    color: #423d3a;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.admin-entry-heading p:last-child,
.admin-panel-heading p {
    margin: 0;
    color: #6f6965;
    line-height: 1.55;
}

.admin-auth-card {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid #d8cbc4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(66, 61, 58, .08);
}

.admin-panel-heading {
    margin-bottom: 24px;
}

.admin-panel-heading h2 {
    margin: 0 0 6px;
    color: #423d3a;
    font-size: clamp(1.35rem, 3vw, 1.72rem);
}

body[data-public-page="admin"] label {
    display: block;
    margin-bottom: 7px;
    color: #59524e;
    font-size: .9rem;
    font-weight: 500;
}

body[data-public-page="admin"] input[type="email"],
body[data-public-page="admin"] input[type="password"] {
    width: 100%;
    min-height: 48px;
    margin-bottom: 18px;
    padding: 0 16px;
    border: 1px solid #cbc1bc;
    border-radius: 12px;
    background: #fffdfb;
    color: #45413f;
    font: 400 1rem "Fredoka", "Segoe UI", sans-serif;
}

body[data-public-page="admin"] input:focus {
    border-color: var(--accent-dark);
    outline: 3px solid rgba(139, 77, 52, .14);
}

.admin-primary-action,
.admin-entry-logout {
    min-height: 48px;
    border-radius: 12px;
    padding: 11px 22px;
    font: 600 .96rem/1.2 "Fredoka", "Segoe UI", sans-serif;
}

.admin-primary-action {
    width: 100%;
    border: 1px solid var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
}

.admin-primary-action:hover {
    border-color: #7d4730;
    background: #7d4730;
}

.admin-entry-logout {
    border: 1px solid #ad8475;
    background: transparent;
    color: #634b41;
}

.admin-entry-logout:hover {
    background: #fff8ee;
}

.admin-dashboard {
    animation: account-panel-in .2s ease-out;
}

.admin-dashboard-heading {
    margin-bottom: 20px;
}

body[data-public-page="admin"] .admin-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

body[data-public-page="admin"] .admin-module-card {
    min-height: 220px;
    padding: 24px;
    border-color: #d8cbc4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(66, 61, 58, .07);
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

body[data-public-page="admin"] .admin-module-card:hover {
    border-color: #ad8475;
    box-shadow: 0 18px 36px rgba(66, 61, 58, .11);
}

body[data-public-page="admin"] .admin-module-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f3e7e1;
    color: var(--accent-dark);
    box-shadow: none;
}

body[data-public-page="admin"] .admin-module-icon svg {
    width: 26px;
    height: 26px;
}

body[data-public-page="admin"] .admin-module-card strong {
    color: #423d3a;
    font-size: 1.12rem;
}

body[data-public-page="admin"] .admin-module-card span:last-child {
    color: #6f6965;
    font-size: .9rem;
}

@media (max-width: 820px) {
    body[data-public-page="admin"] .admin-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .admin-entry-section {
        padding-top: 30px;
    }

    .admin-entry-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .admin-entry-heading h1 {
        font-size: 2.1rem;
    }

    .admin-entry-logout {
        min-height: 42px;
        padding: 9px 16px;
    }

    .admin-auth-card {
        padding: 20px;
        border-radius: 20px;
    }

    body[data-public-page="admin"] .admin-module-grid {
        grid-template-columns: 1fr;
    }

    body[data-public-page="admin"] .admin-module-card {
        min-height: 0;
    }
}

/* Shared shell for the nine administrative workspaces. */
.admin-workspace-page {
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 255, 255, .96), transparent 24%),
        radial-gradient(circle at 92% 10%, rgba(245, 215, 216, .5), transparent 22%),
        linear-gradient(180deg, #fbf3eb 0%, #f7ede4 56%, #f3e6d7 100%);
    color: var(--ink);
    font-family: "Fredoka", "Segoe UI", sans-serif;
}

.admin-workspace-main {
    min-height: 70vh;
}

.admin-workspace-hero {
    padding: clamp(30px, 5vw, 54px) 0 clamp(26px, 4vw, 42px);
    border-bottom: 1px solid rgba(139, 77, 52, .13);
    background:
        linear-gradient(110deg, rgba(255, 250, 246, .92), rgba(245, 215, 216, .42)),
        var(--bg);
}

.admin-workspace-hero h1 {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.05;
}

.admin-workspace-hero p:last-child {
    max-width: 720px;
    margin: 0;
    color: rgba(67, 49, 38, .76);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.55;
}

.admin-section-nav {
    border-bottom: 1px solid rgba(139, 77, 52, .14);
    background: rgba(255, 250, 246, .92);
    box-shadow: 0 8px 24px rgba(61, 43, 31, .045);
}

.admin-section-nav .wrap {
    display: flex;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.admin-section-nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(67, 49, 38, .78);
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.admin-section-nav a:hover,
.admin-section-nav a:focus-visible {
    border-color: var(--line);
    background: #fff;
    color: var(--accent-dark);
}

.admin-section-nav a.active {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
}

.admin-workspace-content {
    width: min(1280px, calc(100% - 32px));
    padding-top: 8px;
    padding-bottom: clamp(64px, 8vw, 96px);
}

.admin-workspace-content > .section {
    padding-top: 30px;
    border-bottom: 0;
}

.admin-workspace-content .section-head {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(139, 77, 52, .16);
}

.admin-workspace-content .section-head h2 {
    margin: 0;
    color: var(--accent-dark);
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.admin-workspace-page .detail,
.admin-workspace-page .summary-card,
.admin-workspace-page .order-card {
    border-color: rgba(139, 77, 52, .18);
    background: rgba(255, 250, 246, .96);
    box-shadow: 0 12px 32px rgba(61, 43, 31, .07);
}

.admin-workspace-page #adminLoginPanel {
    width: min(100%, 620px);
    margin: 22px auto 0;
    padding: clamp(20px, 4vw, 32px);
}

.admin-workspace-page label {
    color: rgba(67, 49, 38, .88);
    font-weight: 600;
}

.admin-workspace-page input[type="email"],
.admin-workspace-page input[type="date"],
.admin-workspace-page input[type="number"],
.admin-workspace-page input[type="text"],
.admin-workspace-page input[type="password"],
.admin-workspace-page input[type="search"],
.admin-workspace-page input[type="file"],
.admin-workspace-page textarea,
.admin-workspace-page select {
    border-color: #d8c8bd;
    background: #fffdfb;
    color: var(--ink);
}

.admin-workspace-page input:focus,
.admin-workspace-page textarea:focus,
.admin-workspace-page select:focus {
    border-color: var(--accent-dark);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(139, 77, 52, .14);
}

.admin-workspace-page button:focus-visible,
.admin-workspace-page a:focus-visible {
    outline: 3px solid rgba(139, 77, 52, .3);
    outline-offset: 3px;
}

.admin-workspace-page .nav button,
.admin-workspace-page .nav a {
    min-height: 42px;
    font-weight: 600;
}

.admin-workspace-page .nav button:hover,
.admin-workspace-page .nav a:hover {
    filter: brightness(.95);
}

body[data-admin-section="vendedores"] .admin-seller-list,
body[data-admin-section="autores"] .admin-seller-list {
    align-content: start;
    gap: 12px;
}

body[data-admin-section="vendedores"] .admin-seller-card,
body[data-admin-section="autores"] .admin-seller-card {
    display: grid;
    gap: 15px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body[data-admin-section="vendedores"] .admin-seller-card:hover,
body[data-admin-section="vendedores"] .admin-seller-card:focus-visible,
body[data-admin-section="vendedores"] .admin-seller-card.active,
body[data-admin-section="autores"] .admin-seller-card:hover,
body[data-admin-section="autores"] .admin-seller-card:focus-visible,
body[data-admin-section="autores"] .admin-seller-card.active {
    border-color: #b78778;
    box-shadow: 0 12px 30px rgba(67, 49, 38, .1);
    outline: 0;
    transform: translateY(-1px);
}

.admin-seller-card-head,
.admin-seller-card-finance {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.admin-seller-card-head strong,
.admin-seller-card-head span,
.admin-seller-card-finance small,
.admin-seller-card-finance strong {
    display: block;
}

.admin-seller-card-head > div > strong {
    margin-bottom: 3px;
    color: #453d39;
    font-size: 1rem;
}

.admin-seller-card-head > div > span {
    color: #8b7f79;
    font-size: .76rem;
}

.admin-seller-status {
    align-self: flex-start;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
}

.admin-seller-status.is-active {
    background: #e5f2e8;
    color: #477652;
}

.admin-seller-status.is-inactive {
    background: #f1e9e6;
    color: #796a64;
}

.admin-seller-card-finance {
    padding: 13px 0;
    border-top: 1px solid #eee4df;
    border-bottom: 1px solid #eee4df;
}

.admin-seller-card-finance > span {
    flex: 1;
    min-width: 0;
}

.admin-seller-card-finance > span:last-child {
    text-align: right;
}

.admin-seller-card-finance small {
    margin-bottom: 4px;
    color: #928681;
    font-size: .68rem;
}

.admin-seller-card-finance strong {
    color: #514641;
    font-size: .84rem;
    line-height: 1.3;
}

.admin-seller-card-finance > span:first-child strong {
    color: var(--accent-dark);
    font-size: 1.05rem;
}

.admin-seller-card-foot {
    color: #8a7d77;
    font-size: .72rem;
}

.admin-seller-finance-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 24px;
}

.admin-seller-finance-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 17px;
    border: 1px solid #e1d5cf;
    border-radius: 16px;
    background: #fffaf7;
}

.admin-seller-finance-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f2e1dc;
    color: var(--accent-dark);
    font-size: .78rem;
    font-weight: 700;
}

.admin-seller-finance-card.is-last-payment .admin-seller-finance-icon {
    background: #e5f1e7;
    color: #4b7654;
}

.admin-seller-finance-card small,
.admin-seller-finance-card strong,
.admin-seller-finance-card p {
    display: block;
}

.admin-seller-finance-card small {
    margin-bottom: 4px;
    color: #877a74;
    font-size: .72rem;
}

.admin-seller-finance-card strong {
    color: #493f3a;
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.25;
}

.admin-seller-finance-card.is-due strong {
    color: var(--accent-dark);
}

.admin-seller-finance-card p {
    margin: 6px 0 0;
    color: #958983;
    font-size: .7rem;
    line-height: 1.4;
}

.admin-seller-finance-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px dashed #d8c8bd;
    border-radius: 14px;
    background: #fffaf7;
    color: #80736d;
    font-size: .84rem;
    text-align: center;
}

.admin-seller-statement {
    margin: 0 0 28px;
    padding: 22px;
    border: 1px solid #dfd2cb;
    border-radius: 18px;
    background: #fffdfb;
}

.admin-seller-statement-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.admin-seller-statement-heading h3 {
    margin: 0;
    color: #493f3a;
}

.admin-seller-statement-heading > p {
    max-width: 330px;
    margin: 0;
    color: #887b75;
    font-size: .78rem;
    line-height: 1.45;
    text-align: right;
}

.admin-seller-statement-meta {
    display: grid;
    grid-template-columns: 1.2fr .7fr 1.1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-seller-statement-meta > span {
    min-width: 0;
    padding: 11px 13px;
    border-radius: 11px;
    background: #f8f1ed;
}

.admin-seller-statement-meta small,
.admin-seller-statement-meta strong {
    display: block;
}

.admin-seller-statement-meta small {
    margin-bottom: 3px;
    color: #94857e;
    font-size: .65rem;
}

.admin-seller-statement-meta strong {
    overflow: hidden;
    color: #514641;
    font-size: .8rem;
    text-overflow: ellipsis;
}

.admin-seller-statement-table {
    overflow: hidden;
    border: 1px solid #e2d7d1;
    border-radius: 13px;
}

.admin-seller-statement-row {
    display: grid;
    grid-template-columns: minmax(135px, 1.2fr) minmax(145px, 1fr) minmax(110px, .8fr) minmax(110px, .8fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-top: 1px solid #eee5e0;
    color: #655952;
    font-size: .76rem;
}

.admin-seller-statement-row:first-child {
    border-top: 0;
}

.admin-seller-statement-header {
    background: #f5ece7;
    color: #766760;
    font-size: .67rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.admin-seller-statement-row span {
    min-width: 0;
}

.admin-seller-statement-row span > strong,
.admin-seller-statement-row span > small {
    display: block;
}

.admin-seller-statement-row span > small {
    margin-top: 3px;
    color: #9a8d87;
    font-size: .66rem;
}

.admin-seller-statement-row span:last-child {
    color: var(--accent-dark);
    text-align: right;
}

.admin-seller-statement-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 17px;
    border-radius: 14px;
    background: #f4e5df;
}

.admin-seller-statement-total small,
.admin-seller-statement-total strong,
.admin-seller-statement-total span {
    display: block;
}

.admin-seller-statement-total small {
    color: #88756d;
    font-size: .68rem;
}

.admin-seller-statement-total strong {
    margin: 2px 0;
    color: var(--accent-dark);
    font-size: 1.45rem;
}

.admin-seller-statement-total span {
    color: #897872;
    font-size: .7rem;
}

.admin-seller-statement-total .admin-primary-action {
    width: auto;
    flex: 0 0 auto;
}

.admin-seller-statement-empty {
    padding: 25px;
    border: 1px dashed #d8c8bd;
    border-radius: 14px;
    background: #fbf7f4;
    text-align: center;
}

.admin-seller-statement-empty span,
.admin-seller-statement-empty strong,
.admin-seller-statement-empty p,
.admin-seller-statement-empty small {
    display: block;
}

.admin-seller-statement-empty span {
    margin-bottom: 7px;
    color: #4f7d59;
    font-size: 1.3rem;
}

.admin-seller-statement-empty p {
    margin: 5px 0 9px;
    color: #897c76;
    font-size: .78rem;
}

.admin-seller-statement-empty small {
    color: #9b8e88;
}

@media (max-width: 820px) {
    .admin-workspace-content .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-workspace-content .section-head > .nav {
        width: 100%;
    }

    .admin-workspace-content .section-head > .nav button,
    .admin-workspace-content .section-head > .nav a {
        flex: 1 1 150px;
    }

    .admin-workspace-page .admin-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-workspace-page .admin-catalog-sidebar {
        position: static;
        max-height: none;
    }

    .admin-workspace-page .admin-catalog-list {
        min-height: 240px;
        max-height: 460px;
    }
}

@media (max-width: 520px) {
    .admin-workspace-hero {
        padding-top: 26px;
    }

    .admin-workspace-content {
        width: min(100% - 24px, 1280px);
    }

    .admin-workspace-page .detail,
    .admin-workspace-page .summary-card,
    .admin-workspace-page .order-card {
        padding: 16px;
        border-radius: 18px;
    }

    .admin-workspace-content .section-head > .nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-seller-finance-summary {
        grid-template-columns: 1fr;
    }

    .admin-seller-card-finance {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-seller-card-finance > span:last-child {
        text-align: left;
    }

    .admin-seller-statement {
        padding: 16px;
    }

    .admin-seller-statement-heading,
    .admin-seller-statement-total {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-seller-statement-heading > p {
        text-align: left;
    }

    .admin-seller-statement-meta {
        grid-template-columns: 1fr;
    }

    .admin-seller-statement-table {
        overflow-x: auto;
    }

    .admin-seller-statement-row {
        min-width: 620px;
    }

    .admin-seller-statement-total .admin-primary-action {
        width: 100%;
    }
}

.image-upload-preview,
.image-gallery-preview,
.product-gallery {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.image-upload-preview img,
.image-gallery-card img,
.product-gallery-item img {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    object-fit: cover;
}

.image-upload-preview.image-frame-portrait,
.image-gallery-media.image-frame-portrait,
.product-gallery-item.image-frame-portrait {
    max-width: 220px;
    width: 100%;
    aspect-ratio: 2 / 3;
}

.image-upload-preview.image-frame-square,
.image-gallery-media.image-frame-square,
.product-gallery-item.image-frame-square {
    max-width: 220px;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.image-upload-preview.image-frame-landscape,
.image-gallery-media.image-frame-landscape,
.product-gallery-item.image-frame-landscape {
    max-width: 220px;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.image-upload-preview.image-frame-portrait img {
    aspect-ratio: 2 / 3;
}

.image-upload-preview.image-frame-square img {
    aspect-ratio: 1 / 1;
}

.image-upload-preview.image-frame-landscape img {
    aspect-ratio: 4 / 3;
}

.image-upload-preview.empty,
.image-gallery-preview.empty {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: rgba(61, 43, 31, .75);
    background: rgba(255, 255, 255, .5);
}

.author-photo-preview {
    max-width: 220px;
}

.author-photo-preview .eyebrow {
    text-align: center;
}

.image-gallery-preview,
.product-gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.image-gallery-card,
.product-gallery-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    display: grid;
    gap: 12px;
}

.image-gallery-media {
    display: grid;
    justify-items: start;
    overflow: hidden;
    border-radius: 18px;
}

.image-gallery-media-missing {
    min-height: 140px;
    width: 100%;
    border-radius: 18px;
    border: 1px dashed var(--line);
    background: rgba(255, 255, 255, .5);
    padding: 18px;
}

.image-gallery-missing {
    display: none;
    color: rgba(61, 43, 31, .75);
}

.image-gallery-media-missing .image-gallery-missing {
    display: inline-flex;
}

.image-gallery-actions {
    display: grid;
    gap: 10px;
    font-size: .95rem;
}

.image-gallery-label {
    font-weight: 700;
    color: var(--accent-dark);
}

.image-gallery-url {
    color: rgba(67, 49, 38, .66);
    font-size: .84rem;
    word-break: break-word;
}

.image-alt-input {
    margin-bottom: 0;
}

.image-gallery-button-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.image-gallery-button-grid .ghost {
    width: 100%;
    min-height: 42px;
    text-align: center;
    padding: 10px 12px;
    white-space: normal;
}

.file-chip {
    display: grid;
    gap: 8px;
}

.file-chip span {
    word-break: break-word;
}

.download-card-top {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: start;
}

.download-card-top img {
    width: 92px;
    height: 128px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.disabled-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(107, 58, 32, .08);
    color: rgba(61, 43, 31, .7);
    border: 1px solid rgba(107, 58, 32, .15);
}

@media (max-width: 900px) {
    #catalogGrid.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-v1-layout {
        grid-template-columns: 1fr;
    }

    .contact-v1-arrow {
        display: none;
    }

    .contact-v1-message {
        padding: 0;
        text-align: center;
    }

    .contact-v1-call {
        text-align: center;
    }

    .contact-v1-arrow img {
        width: min(100%, 180px);
    }

    .account-manage-layout {
        grid-template-columns: 1fr;
    }

    .cart-page-layout {
        grid-template-columns: 1fr;
    }

    .cart-page-sidebar {
        position: static;
    }

    .account-manage-nav {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .home-soft-metrics,
    .home-shop-grid {
        grid-template-columns: 1fr;
    }

    .home-release-layout {
        grid-template-columns: 1fr;
    }

    .home-release-button {
        justify-self: stretch;
    }

    .home-books-card {
        flex-basis: calc((100% - 36px) / 3);
    }

    .home-feature-layout,
    .home-feature-layout.reverse {
        grid-template-columns: 1fr;
    }

    .home-feature-copy,
    .home-feature-layout.reverse .home-feature-copy,
    .home-feature-layout.reverse .home-feature-art {
        order: initial;
    }

    .home-feature-button {
        justify-self: stretch;
    }
}

@media (max-width: 720px) {
    .home-books-carousel {
        padding: 0 44px;
    }

    .home-books-card {
        flex-basis: calc((100% - 18px) / 2);
    }

    .home-books-card-actions {
        grid-template-columns: 1fr;
    }

    .detail-supporting-carousel {
        padding: 0 44px;
    }

    .detail-image-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .catalog-filters {
        grid-template-columns: 1fr;
    }

    #catalogGrid.grid {
        grid-template-columns: 1fr;
    }

    .card-product-media {
        min-height: 0;
    }

    .site-header-bar,
    .site-footer-content,
    .home-hero-grid,
    .two-column-hero {
        grid-template-columns: 1fr;
        display: grid;
    }

    .site-header-bar {
        justify-items: center;
    }

    .site-footer-content-v1 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer-line {
        justify-content: center;
    }

    .site-footer-links {
        justify-content: center;
    }

    .site-menu,
    .site-actions {
        justify-content: center;
    }

    .site-mini-cart {
        position: fixed;
        top: auto;
        right: 16px;
        bottom: 16px;
        left: 16px;
        width: auto;
        max-height: min(70vh, 560px);
        overflow-y: auto;
        transform: translateY(16px);
    }

    .site-cart-entry:hover .site-mini-cart,
    .site-cart-entry:focus-within .site-mini-cart,
    .site-cart-entry.is-open .site-mini-cart {
        transform: translateY(0);
    }

    .home-heart-message {
        display: flex;
        text-align: center;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-contributor-card {
        grid-template-columns: 1fr;
    }

    .detail-contributor-photo {
        width: min(100%, 220px);
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-catalog-sidebar {
        position: static;
        max-height: none;
    }

    .cart-item-row {
        grid-template-columns: 1fr;
    }

    .cart-item-visual img {
        width: 100%;
        max-width: 180px;
        height: auto;
        aspect-ratio: 2 / 3;
    }

    .cart-item-pricing,
    .cart-item-subtotal {
        text-align: left;
    }

    .cart-inline-form {
        grid-template-columns: 1fr;
    }

    .download-card-top {
        grid-template-columns: 1fr;
    }

    .image-gallery-button-grid {
        grid-template-columns: 1fr;
    }
}

/* Shared collection and public-page heading. */
:is(.home-collection h2, .shuu-section-title) { font-family: "Fredoka", "Segoe UI", sans-serif; line-height: 1.3; text-align: center; font-size: clamp(25px, 3vw, 38px); font-weight: 700; margin: 0 0 26px; text-shadow: 2px 3px 0 #bca094; }
:is(.home-collection h2, .shuu-section-title) {
    color: #423d3a;
    display: grid;
    grid-template-columns: minmax(0, 80px) minmax(0, auto) minmax(0, 80px);
    justify-content: center;
    align-items: center;
    gap: 20mm;
}
:is(.home-collection h2, .shuu-section-title)::before,
:is(.home-collection h2, .shuu-section-title)::after {
    content: "";
    width: min(100%, clamp(28px, 7vw, 80px));
    height: 2px;
    background: currentColor;
}
:is(.home-collection h2, .shuu-section-title)::after { justify-self: end; }
@media (max-width: 600px) {
    :is(.home-collection h2, .shuu-section-title) { gap: 16px; }
}
.admin-danger-action {
    border-color: #a73a32;
    color: #8f2821;
}

.admin-danger-action:hover,
.admin-danger-action:focus-visible {
    background: #fff1ef;
    border-color: #8f2821;
}
