/*
Theme Name: SC Coloring
Theme URI: https://example.com/
Author: Codex
Description: WordPress theme for a dense printable library.
Version: 0.2.3
Text Domain: sc-coloring
*/

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #fafafa;
    --text: #1f1f1f;
    --muted: #666666;
    --line: #dddddd;
    --line-strong: #c9c9c9;
    --link: #2f69b0;
    --link-hover: #184f93;
    --accent: #f39b17;
    --content: 1540px;
    --sans: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
    --serif: "Noto Serif", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.site-shell {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
}

.site-main {
    padding-bottom: 34px;
}
body.single-product .site-main {
    padding-bottom: 0;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.site-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 8px 0 10px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark:hover {
    color: var(--text);
    text-decoration: none;
}

.brand-lockup {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 2px 0 10px;
}

.brand-word {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    font-size: 2.55rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-family: "Nunito", var(--sans);
}

.brand-letter {
    display: inline-block;
    position: relative;
    transform-origin: center bottom;
    padding: 0 0.02em;
    color: #7dd7e9;
    -webkit-text-stroke: 1.4px #47789d;
    text-shadow: 0.6px 0.6px 0 #ffffff;
}

.brand-letter::before,
.brand-letter::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0.95;
}

.brand-letter:nth-child(2n) {
    transform: rotate(-3deg) translateY(1px);
}

.brand-letter:nth-child(3n) {
    transform: rotate(2deg) translateY(-1px);
}

.brand-letter:nth-child(4n) {
    transform: rotate(-1deg) translateY(2px);
}

.brand-letter--teal-wave {
    color: #67d6e9;
}

.brand-letter--teal-wave::after {
    left: 24%;
    top: 30%;
    width: 42%;
    height: 8%;
    border-top: 3px solid rgba(255, 255, 255, 0.98);
    transform: rotate(-14deg);
}

.brand-letter--red-dash {
    color: #ff3535;
}

.brand-letter--red-dash::after {
    left: 22%;
    top: 32%;
    width: 18%;
    height: 34%;
    background:
        linear-gradient(90deg, transparent 0 18%, #fff 18% 38%, transparent 38% 58%, #fff 58% 78%, transparent 78% 100%);
    transform: rotate(-14deg);
}

.brand-letter--yellow-zig {
    color: #ffd83d;
}

.brand-letter--yellow-zig::after {
    left: 18%;
    top: 35%;
    width: 54%;
    height: 10%;
    background:
        linear-gradient(135deg, transparent 0 8%, rgba(255,255,255,0.98) 8% 18%, transparent 18% 28%, rgba(255,255,255,0.98) 28% 38%, transparent 38% 48%, rgba(255,255,255,0.98) 48% 58%, transparent 58% 100%);
    transform: rotate(-8deg);
}

.brand-letter--green-dash {
    color: #87da47;
}

.brand-letter--green-dash::after {
    left: 26%;
    top: 31%;
    width: 24%;
    height: 32%;
    background:
        linear-gradient(90deg, transparent 0 22%, #fff 22% 40%, transparent 40% 60%, #fff 60% 78%, transparent 78% 100%);
    transform: rotate(12deg);
}

.brand-letter--blue-dot {
    color: #7fc8ff;
}

.brand-letter--blue-dot::before,
.brand-letter--blue-dot::after {
    width: 12%;
    height: 12%;
    background: #fff;
    border-radius: 50%;
}

.brand-letter--blue-dot::before {
    left: 28%;
    top: 28%;
}

.brand-letter--blue-dot::after {
    left: 58%;
    top: 50%;
}

.brand-letter--red-zag {
    color: #ff4852;
}

.brand-letter--red-zag::after {
    left: 19%;
    top: 30%;
    width: 48%;
    height: 11%;
    background:
        linear-gradient(135deg, transparent 0 9%, rgba(255,255,255,0.98) 9% 19%, transparent 19% 29%, rgba(255,255,255,0.98) 29% 39%, transparent 39% 49%, rgba(255,255,255,0.98) 49% 59%, transparent 59% 100%);
    transform: rotate(-16deg);
}

.brand-letter--orange-dot {
    color: #f5a22e;
}

.brand-letter--orange-dot::before,
.brand-letter--orange-dot::after {
    width: 11%;
    height: 11%;
    background: #fff8d7;
    border-radius: 50%;
}

.brand-letter--orange-dot::before {
    left: 31%;
    top: 32%;
}

.brand-letter--orange-dot::after {
    left: 55%;
    top: 50%;
}

.brand-letter--yellow-dash {
    color: #ffe05b;
}

.brand-letter--yellow-dash::after {
    left: 26%;
    top: 31%;
    width: 20%;
    height: 34%;
    background:
        linear-gradient(90deg, transparent 0 20%, #fff 20% 40%, transparent 40% 60%, #fff 60% 80%, transparent 80% 100%);
    transform: rotate(11deg);
}

.brand-letter--mint-wave {
    color: #bceef4;
}

.brand-letter--mint-wave::after {
    left: 20%;
    top: 36%;
    width: 48%;
    height: 8%;
    border-top: 3px solid rgba(255, 255, 255, 0.98);
    transform: rotate(-12deg);
}

.brand-underline {
    position: absolute;
    left: 18%;
    right: 2%;
    bottom: -1px;
    height: 20px;
    pointer-events: none;
}

.brand-tool {
    position: absolute;
    display: block;
    height: 100%;
}

.brand-tool::before,
.brand-tool::after {
    content: "";
    position: absolute;
    display: block;
}

.brand-tool--pencil {
    left: 0;
    top: 1px;
    width: 54%;
    transform: rotate(-7deg);
}

.brand-tool--pencil::before {
    top: 8px;
    left: 0;
    width: calc(100% - 18px);
    height: 7px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, #f2d26a 0 14%, #f6e6a5 14% 18%, #f7c24b 18% 82%, #d16d73 82% 92%, #f1a5ae 92% 100%);
    box-shadow: inset 0 0 0 1px rgba(110, 84, 28, 0.18);
}

.brand-tool--pencil::after {
    top: 8px;
    right: 0;
    width: 18px;
    height: 7px;
    background: linear-gradient(90deg, #e7d0a8 0 58%, #414141 58% 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.brand-tool--crayon {
    right: 0;
    top: 8px;
    width: 58%;
    transform: rotate(6deg);
}

.brand-tool--crayon::before {
    top: 6px;
    left: 12px;
    width: calc(100% - 20px);
    height: 8px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, #ff8d86 0 16%, #ef5a57 16% 84%, #ff8d86 84% 100%);
    box-shadow:
        inset 0 0 0 1px rgba(161, 52, 52, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-tool--crayon::after {
    top: 6px;
    left: 0;
    width: 16px;
    height: 8px;
    background: linear-gradient(90deg, #ffc6c2 0 58%, #ef5a57 58% 100%);
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 1320px;
    min-height: 54px;
    padding: 0 10px 0 18px;
    border: 1.5px solid #878787;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(33, 40, 56, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.header-search:focus-within {
    border-color: #5d87b9;
    box-shadow: 0 10px 28px rgba(47, 105, 176, 0.14);
}

.header-search__icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    color: #4a4a4a;
    border: 2px solid currentColor;
    border-radius: 999px;
    flex: 0 0 auto;
}

.header-search__icon::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: -2px;
    width: 10px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transform: rotate(45deg);
}

.header-search input[type="search"] {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    font-size: 1.03rem;
    color: #202938;
    outline: none;
}

.header-search input[type="search"]::placeholder {
    color: #7c8697;
}

.header-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #2f69b0;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.header-search__submit:hover {
    background: #21538f;
}

.header-search__submit:active {
    transform: translateY(1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.header-scope {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 18px;
    border: 1.5px solid #878787;
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(33, 40, 56, 0.05);
}

.header-scope:focus-within {
    border-color: #5d87b9;
    box-shadow: 0 10px 28px rgba(47, 105, 176, 0.14);
}

.header-scope select {
    appearance: none;
    border: 0;
    background: transparent;
    min-height: 48px;
    padding: 0 8px 0 0;
    color: #1f1f1f;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.header-scope select::-ms-expand {
    display: none;
}

.header-scope select option {
    color: #202938;
    font-weight: 600;
}

.header-scope__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    line-height: 1;
    color: #f6bf27;
    font-size: 0.88rem;
}

.header-scope__caret {
    color: #363636;
    font-size: 0.8rem;
    pointer-events: auto;
}

.header-scope:hover,
.header-signup:hover {
    text-decoration: none;
}

.header-text-link {
    color: #2b2b2b;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-signup {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    color: #fff;
    font-weight: 700;
    background: #63cfe3;
    border-radius: 999px;
    text-decoration: none;
}

.header-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-lang__icon {
    color: #4f4f4f;
    font-size: 1.05rem;
}

.site-header__bottom {
    display: flex;
    justify-content: center;
    padding: 6px 0 12px;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--link-hover);
}

.sky-hero {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    padding: 26px 0 18px;
    background:
        radial-gradient(circle at 88% 8%, rgba(173, 232, 251, 0.48), transparent 13%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    border: 0;
}

.sky-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1460px;
    margin: 0 auto;
    text-align: center;
}

.sky-hero h1 {
    margin: 0 0 14px;
    font-family: var(--sans);
    font-size: clamp(2.8rem, 4.2vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    color: #353535;
}

.sky-hero h1 span {
    color: #9fe045;
}

.sky-hero p {
    max-width: 1220px;
    margin: 0;
    color: #4e5868;
    font-size: 1.02rem;
    margin-left: auto;
    margin-right: auto;
}

.sky-hero__kicker {
    margin-top: 28px;
}

.sky-hero__art {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.balloon {
    display: none;
}

.cloud {
    position: absolute;
    display: block;
    height: 24px;
    border-radius: 999px;
    background: rgba(215, 246, 255, 0.95);
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(215, 246, 255, 0.95);
}

.cloud--one {
    top: 18px;
    right: 110px;
    width: 190px;
}

.cloud--one::before {
    left: 20px;
    top: -18px;
    width: 42px;
    height: 42px;
}

.cloud--one::after {
    left: 68px;
    top: -24px;
    width: 58px;
    height: 58px;
}

.cloud--two {
    top: 24px;
    right: -8px;
    width: 172px;
}

.cloud--two::before {
    left: 22px;
    top: -14px;
    width: 38px;
    height: 38px;
}

.cloud--two::after {
    left: 64px;
    top: -21px;
    width: 54px;
    height: 54px;
}

.cover-strip__head {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 28px;
    margin-bottom: 12px;
}

.cover-strip__head-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.book-shape-switcher,
.book-shape-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.book-shape-switcher__button,
.book-shape-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #d6dfeb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #4d5b70;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.book-shape-switcher__button:hover,
.book-shape-filter:hover {
    color: #2b3646;
    text-decoration: none;
}

.book-shape-switcher__button.is-active,
.book-shape-filter.is-active {
    border-color: #b5d866;
    background: #f6ffd9;
    color: #567700;
}

.cover-strip__browse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #2f69b0;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.cover-strip__browse:hover {
    color: #184f93;
    text-decoration: none;
    background: #fff;
}

.cover-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 16px;
}

.book-shape-panel[hidden] {
    display: none !important;
}

.cover-chip {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 14px 14px 16px;
    border: 1px solid #e5eaf0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(27, 40, 57, 0.08);
    color: var(--text);
    text-decoration: none;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cover-chip:hover {
    color: var(--text);
    text-decoration: none;
    transform: translateY(-4px);
    border-color: #d7e0ea;
    box-shadow: 0 22px 42px rgba(27, 40, 57, 0.12);
}

.cover-chip__thumb {
    display: block;
    overflow: hidden;
    padding: 12px;
    border: 1px solid #edf1f5;
    border-radius: 22px;
    background: #fff;
    aspect-ratio: 3 / 4;
}

.cover-chip__thumb img,
.cover-chip__thumb .card__placeholder,
.cover-chip__thumb svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-fallback {
    display: grid;
    place-items: end center;
    width: 100%;
    height: 100%;
    padding: 14px 10px;
    color: #fff;
    text-align: center;
}

.cover-fallback strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.cover-chip__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.cover-chip__meta {
    color: #667085;
    font-size: 0.84rem;
    font-weight: 600;
}

.cover-strip .cover-chip {
    border-radius: 0;
}

.cover-strip .cover-chip__thumb {
    border-radius: 0;
}

.cover-chip--shape-square .cover-chip__thumb {
    aspect-ratio: 1 / 1;
}

.cover-chip--shape-portrait .cover-chip__thumb {
    aspect-ratio: 3 / 4;
}

.homepage-categories,
.resource-section {
    margin-top: 18px;
    border: 0;
    background: transparent;
    padding: 0;
}

.homepage-categories__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.homepage-categories__head h2,
.resource-section__head h2 {
    margin: 0;
    font-size: 2.35rem;
    font-weight: 800;
    color: #5bc7dd;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.category-tile {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    width: 100%;
    color: var(--text);
    text-align: center;
    text-decoration: none;
}

.category-tile:hover {
    color: var(--text);
    text-decoration: none;
}

.category-tile__art {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    padding: 2px;
    border: 2px solid #ececec;
    background: #fff;
    color: #c8c8c8;
    overflow: hidden;
}

.category-tile__art svg {
    width: 114%;
    height: 114%;
    max-width: none;
    max-height: none;
    transform: scale(1.02);
    transform-origin: center;
}

.category-tile__art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.category-tile__label {
    color: #2a2a2a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.resource-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.resource-section__head h2 {
    font-size: 2rem;
}

.category-library-page__head {
    justify-content: center;
    text-align: center;
}

.category-library-page__head--center {
    justify-content: center;
}

.category-library-page__head h1 {
    margin: 10px 0 0;
    font-family: var(--serif);
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 1.05;
}

.category-grid--library {
    margin-top: 6px;
}

.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.resource-links a {
    font-size: 1rem;
    font-weight: 600;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.recent-card {
    display: grid;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
}

.recent-card:hover {
    color: var(--text);
    text-decoration: none;
}

.recent-card__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    background: #fff;
}

.recent-card__thumb--trigger {
    width: 100%;
    padding: 0;
    cursor: zoom-in;
}

.recent-card__thumb img,
.recent-card__thumb .card__placeholder {
    width: 100%;
    height: 100%;
}

.recent-card__meta {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.recent-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.32;
}

.recent-card__title:hover {
    color: var(--text);
}

.book-library-page,
.book-library-page__intro {
    margin-top: 18px;
}

.book-library-page__head {
    align-items: center;
}

.book-library-page__head--center {
    justify-content: center;
    text-align: center;
}

.book-library-page__head--center .book-shape-filters {
    margin-top: 12px;
}

.book-library-page__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #dfe6ee;
    border-radius: 999px;
    background: #f7fafc;
    color: #556070;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.book-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 18px;
}

.cover-chip--library {
    height: 100%;
}

.home-intro,
.archive-head,
.panel,
.page-shell {
    background: var(--surface);
    border: 1px solid var(--line);
}

.home-intro,
.archive-head,
.page-shell {
    margin-top: 18px;
    padding: 22px;
}

.home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 18px;
}

.home-intro__side {
    padding: 18px;
}

.home-intro h1,
.archive-head h1,
.page-shell h1 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.08;
}

.home-intro p,
.archive-head p,
.page-shell p {
    margin: 0;
    color: var(--muted);
}

.section-kicker {
    margin-bottom: 10px;
    color: #9a6200;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inline-links,
.single-actions,
.filter-panel__actions,
.active-filters,
.taxonomy-cloud,
.term-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-links {
    margin-top: 16px;
}

.inline-links a {
    font-weight: 700;
}

.home-layout,
.single-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    margin-top: 18px;
}

.browse-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

.home-main,
.browse-main,
.single-main,
.home-sidebar,
.browse-sidebar,
.single-sidebar {
    display: grid;
    gap: 18px;
}

.browse-sidebar {
    align-content: start;
}

.browse-sidebar .sidebar-block {
    align-self: start;
}

.panel {
    padding: 18px;
}

.section-block__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-block__head h2,
.section-head h2,
.sidebar-block h2,
.home-intro__side h2,
.single-copy h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.55rem;
    line-height: 1.2;
}

.section-link {
    font-weight: 700;
    white-space: nowrap;
}

.ghost-link {
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.grid--dense {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid--results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-wrap {
    display: grid;
    gap: 20px;
}

.term-featured,
.term-more-categories {
    display: grid;
    gap: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.term-featured .section-block__head,
.term-more-categories .section-block__head {
    margin-bottom: 0;
}

.featured-mini-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.featured-mini-card {
    display: grid;
    gap: 10px;
}

.featured-mini-card__thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    cursor: zoom-in;
}

.featured-mini-card__thumb img,
.featured-mini-card__thumb .card__placeholder {
    width: 100%;
    min-height: 160px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.featured-mini-card__title {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.featured-mini-card__title:hover {
    color: var(--link-hover);
    text-decoration: none;
}

.term-subcategories {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.term-subcategories h2 {
    margin: 0;
}

.term-gallery-results {
    display: grid;
    gap: 18px;
}

.term-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.term-category-tile {
    gap: 12px;
}

.term-category-tile .category-tile__art {
    min-height: 260px;
}

.term-category-tile .category-tile__label {
    font-size: 1.05rem;
}

.term-more-categories__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 26px;
}

.term-more-categories__list a {
    color: var(--link);
    font-weight: 500;
    text-decoration: none;
}

.term-more-categories__list a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.term-gallery-head {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin: 26px auto 28px;
    text-align: center;
}

.term-gallery-head h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
}

.term-gallery-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: min(100%, 920px);
}

.term-gallery-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #d9dce2;
    border-radius: 999px;
    background: #fff;
    color: #59616f;
    font-size: 0.95rem;
    text-decoration: none;
}

.term-gallery-chips a:hover {
    border-color: #a9c2e0;
    color: var(--link-hover);
    text-decoration: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.gallery-card {
    display: block;
}

.gallery-card__thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.gallery-card__thumb:hover {
    transform: translateY(-1px);
    border-color: #d8d8d8;
    box-shadow: 0 10px 20px rgba(30, 36, 46, 0.08);
}

.gallery-card__thumb:focus-visible {
    outline: 3px solid rgba(47, 105, 176, 0.28);
    outline-offset: 2px;
}

.gallery-card__thumb img,
.gallery-card__thumb .card__placeholder {
    width: 100%;
    min-height: 240px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-card__thumb .card__placeholder {
    min-height: 0;
}

.gallery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

.gallery-summary {
    color: #4b4b4b;
    font-size: 0.96rem;
}

.card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.card__media {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f1f1f1;
}

.card__media--trigger {
    width: 100%;
    padding: 0;
    border: 0;
    cursor: zoom-in;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__body {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.card__eyebrow {
    color: #8b8b8b;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.85rem;
}

.card__placeholder,
.single-hero__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background:
        linear-gradient(135deg, rgba(243, 155, 23, 0.12), rgba(47, 105, 176, 0.08)),
        #f7f7f7;
    text-align: center;
}

.card__placeholder span,
.single-hero__placeholder span {
    display: inline-grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: #b06e00;
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
}

.card__placeholder small,
.single-hero__placeholder small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.taxonomy-cloud--plain a,
.term-list a {
    color: var(--link);
    font-size: 0.98rem;
}

.link-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.link-columns h3,
.single-sidebar h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.text-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.text-link-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #ececec;
}

.text-link-list li:last-child {
    border-bottom: 0;
}

.text-link-list a {
    flex: 1;
    font-weight: 600;
}

.text-link-list span {
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.sidebar-search {
    display: flex;
    gap: 10px;
}

.result-summary {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.filter-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.filter-field {
    display: grid;
    gap: 6px;
}

.filter-field--search {
    grid-column: span 2;
}

.filter-field span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

input[type="search"],
input[type="text"],
input[type="url"],
select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    font: inherit;
}

.button,
button,
input[type="submit"] {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    text-decoration: none;
}

.button--primary {
    background: var(--link);
    color: #fff;
}

.button--primary:hover {
    background: var(--link-hover);
    color: #fff;
}

.button--secondary {
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
}

.button--secondary:hover {
    color: var(--text);
}

.active-filter {
    padding: 4px 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 0.88rem;
}

.single-preview {
    padding: 12px;
}

.single-preview__trigger {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.single-preview img {
    width: 100%;
    height: auto;
}

.single-page {
    display: grid;
    gap: 18px;
}

.single-viewer {
    padding: 18px;
}

.single-viewer__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 28px;
    align-items: stretch;
}

.single-viewer__stage {
    min-width: 0;
}

.single-viewer__trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.single-viewer__sheet {
    display: grid;
    place-items: center;
    min-height: min(76vh, 920px);
    padding: 28px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(29, 39, 54, 0.08);
}

.single-viewer__sheet > * {
    max-width: 100%;
}

.single-viewer__sheet img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(72vh, 860px);
    margin: auto;
    object-fit: contain;
}

.single-viewer__sheet .cover-fallback {
    min-height: min(72vh, 860px);
}

.single-viewer__compare {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: min(72vh, 860px);
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    background: #fff;
}

.single-viewer__compare-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    pointer-events: none;
    user-select: none;
}

.single-viewer__compare-image--after {
    clip-path: inset(0 50% 0 0);
}

.single-viewer__compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(22, 35, 56, 0.14);
    z-index: 2;
    pointer-events: none;
}

.single-viewer__compare-divider::before {
    content: "<>";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #d3dbe6;
    box-shadow: 0 4px 14px rgba(33, 52, 78, 0.16);
    color: #4a5567;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.single-viewer__compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
}

.single-viewer__sidebar {
    align-self: stretch;
}

.single-page--book-online {
    margin-top: 18px;
}

.online-book__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 360px;
    gap: 22px;
    align-items: start;
}

.online-book__viewer {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.online-book__toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.online-book__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d8dde7;
    border-radius: 999px;
    background: #fff;
    color: #2c3443;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.online-book__nav:disabled {
    opacity: 0.4;
    cursor: default;
}

.online-book__counter {
    min-width: 170px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e6ed;
    text-align: center;
    font-weight: 700;
}

.online-book__stage {
    position: relative;
    padding: 28px;
    border: 1px solid #d9e1eb;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 38%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.online-book__book {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    align-items: stretch;
    min-height: 720px;
    perspective: 1800px;
}

.online-book__book.is-cover-mode {
    visibility: hidden;
    pointer-events: none;
}

.online-book__viewer--square .online-book__book {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    max-width: 1180px;
    margin: 0 auto;
}

.online-book__book.is-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin: 0 auto;
}

.online-book__book.is-single .online-book__page--left,
.online-book__book.is-single .online-book__spine {
    display: none;
}

.online-book__book.is-single .online-book__page--right .online-book__page-surface {
    border-radius: 28px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        0 22px 50px rgba(24, 38, 61, 0.12);
}

.online-book__page {
    position: relative;
    min-width: 0;
    display: grid;
    align-items: stretch;
    transition: transform 0.32s ease, opacity 0.22s ease;
    transform-style: preserve-3d;
}

.online-book__page-surface {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    aspect-ratio: 3 / 4;
    padding: 30px;
    border: 1px solid #d9e1eb;
    background: #fff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        0 22px 50px rgba(24, 38, 61, 0.12);
}

.online-book__viewer--square .online-book__page-surface {
    aspect-ratio: 1 / 1;
}

.online-book__page--left .online-book__page-surface {
    border-radius: 28px 10px 10px 28px;
    box-shadow:
        inset -24px 0 30px rgba(33, 48, 73, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        0 22px 50px rgba(24, 38, 61, 0.12);
}

.online-book__page--right .online-book__page-surface {
    border-radius: 10px 28px 28px 10px;
    box-shadow:
        inset 24px 0 30px rgba(33, 48, 73, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        0 22px 50px rgba(24, 38, 61, 0.12);
}

.online-book__page-surface::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid #edf1f6;
    border-radius: 22px;
    pointer-events: none;
}

.online-book__page-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 8px;
}

.online-book__compare[hidden] {
    display: none !important;
}

.online-book__compare {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-height: 560px;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    background: #fff;
}

.online-book__compare-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    user-select: none;
    pointer-events: none;
}

.online-book__compare-image--after {
    clip-path: inset(0 50% 0 0);
}

.online-book__compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(22, 35, 56, 0.14);
    z-index: 2;
    pointer-events: none;
}

.online-book__compare-divider::before {
    content: "<>";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #d3dbe6;
    box-shadow: 0 4px 14px rgba(33, 52, 78, 0.16);
    color: #4a5567;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.online-book__compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
}

.online-book__page.is-cover-empty .online-book__page-empty {
    display: none !important;
}

.online-book__cover-page360[hidden] {
    display: none !important;
}

.online-book__cover-page360 {
    position: absolute;
    inset: 16px;
    z-index: 5;
    width: auto;
    height: auto;
    --book-depth: 20px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    min-height: 0;
}

.online-book__cover-page360-view {
    position: relative;
    width: min(100%, 900px);
    height: min(100%, 600px);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 60px;
    border-radius: 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.online-book__cover-page360-stage {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: grid;
    place-items: center;
    perspective: 1800px;
    touch-action: none;
    cursor: ew-resize;
}

.online-book__cover-page360-rotate {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #d5dce7;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #6f7785;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(25, 35, 52, 0.14);
    z-index: 3;
}

.online-book__cover-page360-rotate--prev {
    left: 10px;
}

.online-book__cover-page360-rotate--next {
    right: 10px;
}

.online-book__cover-page360-rotate:hover {
    color: #2e3a4d;
    border-color: #b9c5d6;
}

.online-book__cover-page360-rotate:active {
    transform: translateY(calc(-50% + 1px));
}

.online-book__cover-page360-book {
    position: relative;
    width: min(78%, 520px);
    aspect-ratio: 3 / 4;
    transform-style: preserve-3d;
    transform: rotateX(8deg) rotateY(-42deg);
    transition: transform 0.11s linear;
    filter: drop-shadow(0 24px 32px rgba(17, 32, 54, 0.24));
}

.online-book__viewer--square .online-book__cover-page360-book {
    aspect-ratio: 1 / 1;
    width: min(82%, 520px);
}

.online-book__cover-page360-face {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow:
        0 24px 42px rgba(17, 32, 54, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.36);
    background: #fff;
}

.online-book__cover-page360-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.online-book__cover-page360-face--front {
    transform: translateZ(var(--book-depth));
}

.online-book__cover-page360-face--back {
    transform: rotateY(180deg) translateZ(var(--book-depth));
}

.online-book__cover-page360-spine {
    position: absolute;
    top: 3%;
    bottom: 3%;
    left: 50%;
    width: 34px;
    transform: translateX(-50%) rotateY(90deg);
    transform-origin: center center;
    background: linear-gradient(90deg, #cfd9e6 0%, #eef2f7 46%, #aeb9c7 100%);
    border-radius: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(80, 98, 120, 0.25),
        0 6px 18px rgba(30, 45, 66, 0.18);
}

.online-book__cover-page360-pages {
    position: absolute;
    top: 4.5%;
    bottom: 4.5%;
    left: 50%;
    width: 18px;
    transform: translateX(-50%) rotateY(90deg) translateZ(6px);
    transform-origin: center center;
    background:
        repeating-linear-gradient(90deg, #fdfdfd 0 4px, #e4ebf2 4px 6px);
    border-radius: 8px;
    opacity: 0.95;
}

.online-book__cover-page360-gloss {
    position: absolute;
    inset: -2%;
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 45%);
    transform: translateZ(calc(var(--book-depth) + 2px));
    pointer-events: none;
    mix-blend-mode: screen;
}

.online-book__cover-page360-help {
    margin: 0;
    color: #6f7b8e;
    font-size: 0.84rem;
    text-align: center;
}

.online-book__image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 560px;
    display: block;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 10px 18px rgba(30, 45, 66, 0.08));
}

.online-book__image[hidden] {
    display: none !important;
}

.online-book__viewer--square .online-book__image {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.online-book__viewer--square .online-book__page-media {
    padding: 14px;
    border-radius: 18px;
}

.online-book__viewer--square .online-book__compare {
    min-height: 0;
}

.online-book__page-empty {
    display: none;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 2px dashed #dfe6ef;
    border-radius: 20px;
    color: #8d98aa;
    font-weight: 700;
}

.online-book__viewer--square .online-book__page-empty {
    min-height: 0;
}

.online-book__page.is-empty .online-book__page-empty {
    display: grid;
}

.online-book__page-footer {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    padding-top: 16px;
    text-align: center;
}

.online-book__page-footer-title {
    min-height: 22px;
    color: #475163;
    font-weight: 700;
    line-height: 1.35;
}

.online-book__page-footer-number {
    color: #8893a4;
    font-size: 0.93rem;
    font-weight: 700;
}

.online-book__spine {
    position: relative;
    width: 34px;
    border-top: 1px solid #d5dce6;
    border-bottom: 1px solid #d5dce6;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(223, 232, 242, 0.94)),
        linear-gradient(90deg, rgba(188, 201, 217, 0.86), rgba(255, 255, 255, 0.94), rgba(184, 196, 212, 0.86));
    box-shadow:
        inset -6px 0 12px rgba(49, 67, 95, 0.08),
        inset 6px 0 12px rgba(49, 67, 95, 0.08);
}

.online-book__spine::before,
.online-book__spine::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 12px;
    border-radius: 999px;
    background: rgba(152, 166, 185, 0.55);
}

.online-book__spine::before {
    top: 22px;
}

.online-book__spine::after {
    bottom: 22px;
}

.online-book__book.is-turning-next .online-book__page--right {
    transform-origin: left center;
    animation: online-book-turn-next 0.34s ease;
}

.online-book__book.is-turning-prev .online-book__page--left {
    transform-origin: right center;
    animation: online-book-turn-prev 0.34s ease;
}

.online-book__book.is-single.is-turning-prev .online-book__page--right {
    transform-origin: left center;
    animation: online-book-turn-prev-single 0.34s ease;
}

@keyframes online-book-turn-next {
    0% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: rotateY(-68deg) scale(0.98);
        opacity: 0.32;
    }
}

@keyframes online-book-turn-prev {
    0% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: rotateY(68deg) scale(0.98);
        opacity: 0.32;
    }
}

@keyframes online-book-turn-prev-single {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-18px) scale(0.985);
        opacity: 0.86;
    }
}

.online-book__thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100px;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.online-book__mobile-controls {
    display: none;
    gap: 10px;
}

.online-book__mobile-label {
    color: #5a6576;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.online-book__mobile-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.online-book__jump {
    min-height: 44px;
    border-radius: 16px;
}

.online-book__thumb-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #d8dde7;
    border-radius: 16px;
    background: #fff;
    color: #334057;
    font-size: 0.94rem;
    font-weight: 700;
    white-space: nowrap;
}

.online-book__thumb {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid #dde2ea;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    min-width: 0;
    scroll-snap-align: start;
}

.online-book__thumb.is-active {
    border-color: #5bc7dd;
    box-shadow: 0 0 0 3px rgba(91, 199, 221, 0.18);
}

.online-book__thumb img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.online-book__thumb span {
    font-weight: 700;
    color: #3a4351;
}

.online-book__sidebar {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.online-book__sidebar h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.online-book__description {
    margin: 0;
    color: #4f596a;
    font-size: 1.02rem;
    line-height: 1.75;
}

.online-book__facts {
    margin-top: 6px;
}

.single-bottom,
.single-followup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
}

.single-followup {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: stretch;
}

.single-brand-links {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.single-brand-links__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.single-brand-links__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.single-brand-links__item:hover {
    transform: translateY(-1px);
    border-color: var(--brand-cyan);
    box-shadow: 0 8px 24px rgba(30, 40, 70, 0.12);
}

.single-brand-links__item img {
    display: block;
    width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.single-taxonomy,
.single-followup__related {
    height: 100%;
    min-width: 0;
}

.single-taxonomy {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px;
}

.single-taxonomy h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.55rem;
    line-height: 1.2;
}

.single-taxonomy h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

body.sc-lightbox-open {
    overflow: hidden;
}

.sc-lightbox[hidden] {
    display: none;
}

.sc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
}

.sc-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(247, 247, 244, 0.96);
    backdrop-filter: blur(2px);
}

.sc-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 44px), 1560px);
    height: min(calc(100vh - 44px), 980px);
    margin: 22px auto;
    padding: 48px 0 0;
}

.sc-lightbox__close {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2b2b2b;
    font-size: 0;
    line-height: 1;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(45, 45, 45, 0.12);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(29, 39, 54, 0.14);
    z-index: 4;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.sc-lightbox__close::before {
    content: "\00d7";
    display: block;
    color: #2b2b2b;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.sc-lightbox__close:hover {
    background: #fff;
}

.sc-lightbox__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 28px;
    height: 100%;
    align-items: stretch;
}

.sc-lightbox__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
}

.sc-lightbox__nav {
    position: absolute;
    top: 50%;
    width: 54px;
    height: 54px;
    margin-top: -27px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    background: rgba(42, 42, 42, 0.62);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(12, 18, 28, 0.2);
    cursor: pointer;
    z-index: 3;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.sc-lightbox__nav:hover {
    background: rgba(42, 42, 42, 0.78);
}

.sc-lightbox__nav[hidden],
.sc-lightbox__nav:disabled {
    opacity: 0;
    pointer-events: none;
}

.sc-lightbox__nav--prev {
    left: 14px;
}

.sc-lightbox__nav--next {
    right: 14px;
}

.sc-lightbox__sheet {
    display: grid;
    place-items: center;
    width: min(100%, 1000px);
    max-height: 100%;
    padding: 28px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(29, 39, 54, 0.08);
}

.sc-lightbox__canvas {
    position: relative;
    display: block;
    width: min(100%, 1000px);
    max-width: 100%;
    min-height: 420px;
    aspect-ratio: 4 / 3;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.sc-lightbox__image {
    position: absolute;
    inset: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sc-lightbox__image--after[hidden],
.sc-lightbox__compare-divider[hidden],
.sc-lightbox__compare-range[hidden] {
    display: none !important;
}

.sc-lightbox__image--after {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    object-fit: contain;
    object-position: center;
    clip-path: inset(0 50% 0 0);
}

.sc-lightbox__compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(22, 35, 56, 0.14);
    z-index: 2;
    pointer-events: none;
}

.sc-lightbox__compare-divider::before {
    content: "<>";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #d3dbe6;
    box-shadow: 0 4px 14px rgba(33, 52, 78, 0.16);
    color: #4a5567;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.sc-lightbox__compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
}

.sc-lightbox__overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.sc-lightbox__overlay.is-editing {
    pointer-events: none;
}

.sc-lightbox__overlay-text {
    position: absolute;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 4px 8px;
    color: #1d1d1d;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 0 #fff, 0 0 8px rgba(255, 255, 255, 0.96);
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    transform-origin: top left;
}

.sc-lightbox__overlay-text.is-draggable {
    cursor: grab;
    user-select: none;
    touch-action: none;
    pointer-events: auto;
}

.sc-lightbox__overlay-text.is-dragging {
    cursor: grabbing;
}

.sc-lightbox__overlay-text--small {
    font-size: 24px;
}

.sc-lightbox__overlay-text--medium {
    font-size: 34px;
}

.sc-lightbox__overlay-text--large {
    font-size: 46px;
}

.sc-lightbox__overlay-text--font-rounded {
    font-family: "Nunito", var(--sans);
}

.sc-lightbox__overlay-text--font-bubble {
    font-family: "Quicksand", "Nunito", var(--sans);
}

.sc-lightbox__overlay-text--font-comic {
    font-family: "Quicksand", "Be Vietnam Pro", var(--sans);
}

.sc-lightbox__overlay-text--font-school {
    font-family: "Be Vietnam Pro", var(--sans);
}

.sc-lightbox__overlay-text--font-serif {
    font-family: "Noto Serif", var(--serif);
    font-weight: 700;
}

.sc-lightbox__overlay-text--font-handwriting {
    font-family: "Nunito", "Quicksand", var(--sans);
    font-weight: 700;
}

.sc-lightbox__overlay-text--top-left {
    top: 22px;
    left: 22px;
}

.sc-lightbox__overlay-text--top-center {
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.sc-lightbox__overlay-text--top-right {
    top: 22px;
    right: 22px;
    text-align: right;
}

.sc-lightbox__overlay-text--bottom-left {
    bottom: 22px;
    left: 22px;
}

.sc-lightbox__overlay-text--bottom-center {
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.sc-lightbox__overlay-text--bottom-right {
    right: 22px;
    bottom: 22px;
    text-align: right;
}

.sc-lightbox__sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 0;
    padding: 28px 16px;
    background: #efefee;
    border-radius: 4px;
    overflow: auto;
}

.sc-lightbox__type {
    color: #7b7b7b;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sc-lightbox__title {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
}

.sc-lightbox__description {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.sc-lightbox__type:empty,
.sc-lightbox__description:empty {
    display: none;
}

.sc-lightbox__actions {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.sc-lightbox__action {
    min-height: 42px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
}

.sc-lightbox__action--print {
    background: #8cc63e;
    color: #fff;
}

.sc-lightbox__action--print:hover {
    background: #7ab12f;
    color: #fff;
}

.sc-lightbox__action--open {
    background: #ffc600;
    color: #fff;
}

.sc-lightbox__action--open:hover {
    background: #f0b500;
    color: #fff;
}

.sc-lightbox__actions .js-printable-favorite-button.sc-lightbox__action--favorite {
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #3b3b3b;
    background: #fff;
    color: #2b2b2b;
    gap: 10px;
    transform: none;
}

.sc-lightbox__actions .js-printable-favorite-button.sc-lightbox__action--favorite:hover {
    transform: none;
    background: #fafafa;
    border-color: #3b3b3b;
}

.sc-lightbox__actions .js-printable-favorite-button.sc-lightbox__action--favorite .favorite-icon {
    font-size: 15px;
    color: currentColor;
}

.sc-lightbox__actions .js-printable-favorite-button.sc-lightbox__action--favorite.is-active {
    background: #8cc63e;
    border-color: #8cc63e;
    color: #fff;
}

.sc-lightbox__annotate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #3b3b3b;
    border-radius: 999px;
    background: #fff;
    color: #2b2b2b;
    font-size: 1rem;
    font-weight: 700;
}

.sc-lightbox__annotate:hover {
    background: #fafafa;
}

.sc-lightbox__annotate.is-active {
    background: #f7f7f7;
}

.sc-lightbox__editor {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e6e6e6;
}

.sc-lightbox__editor[hidden] {
    display: none;
}

.sc-lightbox__editor-head {
    display: grid;
    gap: 6px;
}

.sc-lightbox__editor-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.sc-lightbox__editor-note,
.sc-lightbox__editor-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.sc-lightbox__editor-list {
    display: grid;
    gap: 14px;
}

.sc-lightbox__text-row {
    display: grid;
    gap: 10px;
}

.sc-lightbox__text-input {
    min-height: 48px;
    border-radius: 14px;
}

.sc-lightbox__text-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.sc-lightbox__text-meta {
    display: grid;
    gap: 6px;
}

.sc-lightbox__text-meta--font {
    grid-column: 1 / -1;
}

.sc-lightbox__text-meta span {
    color: #666;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sc-lightbox__text-meta select {
    min-height: 44px;
    border-radius: 12px;
}

.sc-lightbox__text-meta--font-select {
    grid-column: 1 / -1;
}

.sc-lightbox__text-meta--font-select select {
    font-size: 1rem;
}

.sc-lightbox__text-meta input[type="number"] {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
}

.sc-lightbox__font-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sc-lightbox__font-option {
    display: grid;
    gap: 4px;
    min-height: 68px;
    padding: 10px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    color: #333;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sc-lightbox__font-option:hover {
    background: #fafafa;
    border-color: #c7c7c7;
}

.sc-lightbox__font-option.is-active {
    border-color: #71b7ff;
    box-shadow: 0 0 0 3px rgba(113, 183, 255, 0.18);
    background: #f7fbff;
}

.sc-lightbox__font-option-preview {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
}

.sc-lightbox__font-option-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.1;
}

.sc-lightbox__font-option--rounded .sc-lightbox__font-option-preview {
    font-family: "Nunito", var(--sans);
}

.sc-lightbox__font-option--serif .sc-lightbox__font-option-preview {
    font-family: var(--serif);
}

.sc-lightbox__font-option--handwriting .sc-lightbox__font-option-preview {
    font-family: "Nunito", "Quicksand", var(--sans);
}

.sc-lightbox__text-remove {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    color: #545454;
    font-weight: 700;
    grid-column: 1 / -1;
}

.sc-lightbox__text-remove:hover {
    background: #f7f7f7;
}

.sc-lightbox__text-hint {
    margin: 0;
    color: #6a6a6a;
    font-size: 0.85rem;
    line-height: 1.4;
}

.sc-lightbox__editor-add {
    justify-self: start;
    min-height: 44px;
    border-radius: 12px;
}

.sc-lightbox__facts {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.sc-lightbox__fact {
    display: grid;
    gap: 2px;
    margin: 0;
    font-size: 0.95rem;
}

.sc-lightbox__fact dt {
    color: #575757;
    font-weight: 700;
    font-size: 0.88rem;
}

.sc-lightbox__fact dd {
    margin: 0;
    color: #2c2c2c;
    line-height: 1.45;
}

.sc-lightbox__fact dd a {
    color: var(--link);
}

.sc-lightbox__print-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5e5e5e;
    font-size: 0.92rem;
}

.sc-lightbox__print-stat::before {
    content: "\2193";
    font-size: 1rem;
}

.single-copy {
    padding: 20px;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
}

.info-list dt {
    color: var(--muted);
    font-weight: 700;
}

.info-list dd {
    margin: 0;
}

.term-list {
    margin-bottom: 14px;
}

.archive-head--single {
    margin-bottom: 0;
}

.page-template-template-all-printables .archive-head {
    min-height: 140px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15%;
}

.page-template-template-all-printables .archive-head .section-kicker {
    margin-bottom: 0;
    text-align: center;
}

.footer-columns {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(180px, 1fr));
    gap: 24px;
    padding: 24px 0 16px;
    border-top: none;
}

.footer-column h3 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 1.2rem;
}

.footer-column p {
    margin: 0;
    color: var(--muted);
}

.footer-column__note {
    margin: 4px 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer.site-footer--playful {
    background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 65%);
    border-top: 1px solid var(--line);
    position: relative;
}

.site-footer.site-footer--playful::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    background: linear-gradient(90deg, #50c7ff, #7ad957, #ffb100, #ff5a6f);
    opacity: 0.8;
}

.footer-column--brand {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-brand .brand-lockup {
    transform: scale(0.95);
    transform-origin: left center;
}

.footer-tagline {
    max-width: 320px;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.footer-social__link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-social__link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-social__link:hover {
    border-color: var(--brand-cyan);
    background: #f0f7ff;
    color: #0f4bd6;
}

.footer-social__label {
    margin: 10px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2b3a55;
    letter-spacing: 0.2px;
}

.footer-social__link--facebook { color: #1877f2; }
.footer-social__link--tiktok { color: #111111; }
.footer-social__link--instagram { color: #d62976; }
.footer-social__link--youtube { color: #ff0000; }

.footer-social__link--facebook:hover { color: #0f5bd0; }
.footer-social__link--tiktok:hover { color: #000000; }
.footer-social__link--instagram:hover { color: #b82563; }
.footer-social__link--youtube:hover { color: #cc0000; }

.site-footer .footer-columns {
    padding-top: 30px;
}

.footer-meta {
    align-items: center;
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li + li {
    margin-top: 8px;
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 24px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.empty-state {
    padding: 18px;
    border: 1px dashed var(--line-strong);
    color: var(--muted);
    background: #fff;
}

.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
}

.pagination-wrap .page-numbers.current {
    background: var(--link);
    color: #fff;
    border-color: var(--link);
}

.wp-block-image,
.entry-content > * + * {
    margin-top: 1rem;
}

@media (max-width: 1040px) {
    .cover-strip,
    .recent-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .book-library-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    }

    .term-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .featured-mini-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .term-more-categories__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .browse-layout,
    .single-shell,
    .single-viewer__layout,
    .single-bottom,
    .single-followup,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .single-brand-links__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid,
    .grid--dense,
    .grid--results,
    .link-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-search {
        width: 100%;
        max-width: none;
    }

    .site-header__top {
        display: grid;
        grid-template-columns: 1fr;
    }

    .header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
    }

    .header-search__submit {
        min-width: 78px;
    }

    .sc-lightbox__dialog {
        width: min(calc(100% - 28px), 1120px);
        height: min(calc(100dvh - 28px), 920px);
        margin: 14px auto;
        overflow: auto;
    }

    .sc-lightbox__layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: 100%;
    }

    .sc-lightbox__sidebar {
        max-height: none;
        overflow: visible;
    }

    .online-book__layout {
        grid-template-columns: 1fr;
    }

    .online-book__stage {
        padding: 16px;
    }

    .online-book__book {
        min-height: 520px;
    }

    .online-book__page-surface {
        padding: 18px;
    }
}

@media (max-width: 720px) {
    .cover-strip,
    .recent-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .term-gallery-head {
        margin-top: 18px;
    }

    .homepage-categories__head {
        display: grid;
        justify-items: start;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-library-grid {
        grid-template-columns: repeat(2, minmax(0, min(100%, 180px)));
        justify-content: center;
    }

    .term-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .term-more-categories__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 16px;
    }

    .online-book__toolbar {
        gap: 10px;
    }

    .online-book__counter {
        min-width: 0;
        flex: 1 1 auto;
    }

    .online-book__book {
        min-height: 340px;
    }

    .online-book__page-surface {
        padding: 14px;
    }

    .online-book__compare {
        min-height: 220px;
    }

    .online-book__cover-page360-view {
        min-height: 200px;
        height: min(100%, 360px);
        padding: 12px 38px;
    }

    .online-book__cover-page360-stage {
        min-height: 190px;
    }

    .online-book__cover-page360-book {
        width: min(88%, 300px);
    }

    .online-book__cover-page360-rotate {
        width: 34px;
        height: 34px;
        font-size: 1.6rem;
    }

    .online-book__cover-page360-rotate--prev {
        left: 4px;
    }

    .online-book__cover-page360-rotate--next {
        right: 4px;
    }

    .online-book__cover-page360 {
        inset: 10px;
    }

    .online-book__compare-divider::before {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .online-book__page-empty {
        min-height: 260px;
    }

    .online-book__thumbs {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 132px;
        grid-template-columns: none;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .online-book__mobile-controls {
        display: none;
    }

    .online-book__thumb {
        min-width: 0;
        padding: 10px;
        scroll-snap-align: start;
    }

    .online-book__thumb img {
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }

    .online-book__thumb span {
        font-size: 1.12rem;
        line-height: 1.1;
    }

    .category-grid--library {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-grid--library > * {
        min-width: 0;
    }

    .category-grid--library .category-tile {
        min-width: 0;
        width: 100%;
    }

    .category-grid--library .category-tile__art {
        min-width: 0;
    }

    .category-grid--library .category-tile__label {
        font-size: 0.95rem;
    }

    .single-brand-links {
        margin-top: 8px;
        padding-top: 8px;
    }

    .single-brand-links__item {
        min-height: 74px;
        padding: 8px;
        border-radius: 12px;
    }

    .single-brand-links__item img {
        max-height: 56px;
    }

    .gallery-card__thumb img,
    .gallery-card__thumb .card__placeholder {
        min-height: 164px;
    }

    body {
        font-size: 15px;
    }

    .section-block__head,
    .footer-meta,
    .sidebar-search {
        display: grid;
        grid-template-columns: 1fr;
    }

    .book-library-page__count {
        justify-self: start;
    }

    .grid,
    .grid--dense,
    .grid--results,
    .filter-panel__grid,
    .link-columns {
        grid-template-columns: 1fr;
    }

    .filter-field--search {
        grid-column: span 1;
    }

    .home-intro,
    .archive-head,
    .page-shell,
    .panel {
        padding: 16px;
    }

    .site-shell {
        width: min(calc(100% - 24px), var(--content));
    }

    .site-header__top {
        gap: 12px;
        padding: 6px 0 12px;
    }

    .brand-mark {
        justify-content: center;
    }

    .brand-lockup {
        width: min(100%, 320px);
        padding-bottom: 8px;
    }

    .header-search {
        min-height: 56px;
        padding: 0 8px 0 14px;
        gap: 8px;
    }

    .header-search input[type="search"] {
        font-size: 0.98rem;
    }

    .header-search__submit {
        min-width: 82px;
        min-height: 42px;
        padding: 0 16px;
        font-size: 0.95rem;
    }

    .header-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .header-scope {
        width: 100%;
        min-height: 52px;
        padding: 0 16px;
    }

    .header-scope select {
        min-height: 50px;
    }

    .header-cart {
        margin-left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .header-shop__link {
        justify-content: center;
        min-height: 48px;
        padding: 0 12px;
    }

    .header-user,
    .header-auth {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        margin-left: 0;
    }

    .header-user__name {
        width: 100%;
        justify-content: center;
    }

    .sky-hero {
        padding: 22px 18px 18px;
    }

    .category-tile__art {
        min-height: 210px;
    }

    .single-viewer {
        padding: 12px;
    }

    .single-viewer__sheet {
        min-height: auto;
        padding: 18px;
    }

    .single-viewer__sheet img {
        max-height: min(64vh, 620px);
    }

    .single-viewer__compare {
        min-height: 240px;
        height: min(64vh, 620px);
    }

    .sc-lightbox {
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .sc-lightbox__dialog {
        width: calc(100% - 16px);
        max-width: 560px;
        height: auto;
        min-height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        margin: 8px auto;
        padding: 56px 0 12px;
        overflow: auto;
        background: #fff;
        border-radius: 18px;
    }

    .sc-lightbox__close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        z-index: 2147483002;
    }

    .sc-lightbox__close::before {
        font-size: 2.1rem;
    }

    .sc-lightbox__layout {
        height: auto;
        min-height: 100%;
        gap: 12px;
        grid-template-rows: auto auto;
    }

    .sc-lightbox__stage {
        place-items: start center;
    }

    .sc-lightbox__nav {
        top: 18px;
        width: 42px;
        height: 42px;
        margin-top: 0;
        font-size: 1.7rem;
    }

    .sc-lightbox__nav--prev {
        left: 10px;
    }

    .sc-lightbox__nav--next {
        right: 10px;
    }

    .sc-lightbox__sheet {
        width: 100%;
        padding: 12px;
    }

    .sc-lightbox__canvas {
        min-height: 0;
        max-height: min(52dvh, 560px);
    }

    .sc-lightbox__sidebar {
        max-height: none;
        overflow: visible;
        gap: 12px;
        padding: 16px 14px 20px;
        border-radius: 18px;
    }

    .sc-lightbox__actions {
        gap: 10px;
    }

    .sc-lightbox__action,
    .sc-lightbox__annotate,
    .sc-lightbox__editor-add,
    .sc-lightbox__text-remove {
        width: 100%;
        justify-self: stretch;
    }

    .sc-lightbox__editor {
        gap: 12px;
        padding: 14px;
    }

    .sc-lightbox__text-controls {
        grid-template-columns: 1fr;
    }

    .sc-lightbox__font-options {
        grid-template-columns: 1fr;
    }

    .sc-lightbox__text-input {
        min-height: 44px;
    }

    .sc-lightbox__overlay-text--small {
        font-size: 18px;
    }

    .sc-lightbox__overlay-text--medium {
        font-size: 24px;
    }

    .sc-lightbox__overlay-text--large {
        font-size: 32px;
    }

    .sc-lightbox__title {
        font-size: 1.15rem;
    }

.sc-lightbox__fact,
.sc-lightbox__print-stat {
    font-size: 0.9rem;
}
}

@media (max-width: 560px) {
    .homepage-categories {
        padding: 14px;
    }

    .homepage-categories__head {
        display: grid;
        gap: 10px;
        justify-items: start;
        margin-bottom: 12px;
    }

    .homepage-categories .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .homepage-categories .category-tile,
    .homepage-categories .category-tile__art {
        min-width: 0;
        width: 100%;
    }

    .homepage-categories .category-tile__art {
        min-height: 0;
    }

    .homepage-categories .category-tile__label {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .category-library-page {
        padding: 14px;
    }

    .category-library-page__head {
        margin-bottom: 12px;
    }

    .category-grid--library {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-grid--library .category-tile__art {
        min-height: 0;
    }

    .category-grid--library .category-tile__label {
        font-size: 0.92rem;
        line-height: 1.3;
    }
}

@media (max-width: 380px) {
    .homepage-categories .category-grid {
        grid-template-columns: 1fr;
    }
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-modal[hidden] {
    display: none;
}

.auth-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.auth-modal__dialog {
    position: relative;
    width: min(92vw, 520px);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    padding: 26px 26px 22px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    z-index: 1;
}

.auth-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: #f1f5f9;
    color: #1f2937;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.auth-modal__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f39b17;
    margin: 0 0 6px;
    font-weight: 700;
}

.auth-modal__title {
    font-size: 1.6rem;
    margin: 0 0 16px;
    font-family: var(--serif);
}

.auth-modal__tabs {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.auth-modal__tab {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.auth-modal__tab.is-active {
    background: #0f172a;
    color: #fff;
}

.auth-modal__body {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.auth-modal__social {
    display: grid;
    gap: 12px;
}

.auth-modal__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.auth-modal__divider::before,
.auth-modal__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-modal__panel label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.auth-modal__panel input[type="text"],
.auth-modal__panel input[type="email"],
.auth-modal__panel input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d8e2f1;
    background: #f8fafc;
    font-family: var(--sans);
    font-size: 0.98rem;
    margin-bottom: 12px;
}

.auth-modal__panel #loginform p {
    margin: 0 0 12px;
}

.auth-modal__panel #loginform .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-modal__panel #loginform .login-submit {
    margin-top: 12px;
}

.auth-modal__panel #loginform input[type="submit"],
.auth-modal__submit {
    background: #2f69b0;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
}

.header-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #d6e4fb;
    background: #fff;
    color: #2b3b55;
    font-weight: 600;
}

.header-auth:hover {
    text-decoration: none;
    border-color: #9cc2ff;
    box-shadow: 0 6px 16px rgba(45, 89, 168, 0.12);
}

.header-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
}

.header-cart__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #d6e4fb;
    background: #fff;
    color: #2f69b0;
}

.header-cart__link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-shop__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d6e4fb;
    background: #fff;
    color: #2b3b55;
    font-weight: 600;
    text-decoration: none;
}

.header-shop__link:hover {
    text-decoration: none;
    border-color: #9cc2ff;
    box-shadow: 0 6px 16px rgba(45, 89, 168, 0.12);
}

.header-shop__link-icon {
    font-size: 14px;
    line-height: 1;
}

.header-user {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d6e4fb;
    background: #fff;
    font-weight: 600;
    color: #1f2937;
}

.header-user__name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #2f69b0;
}

.header-user__icon {
    font-size: 14px;
    line-height: 1;
}

.header-user__logout {
    color: #2f69b0;
    font-weight: 600;
}

.sc-cart {
    margin-top: 18px;
}

.sc-cart__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.sc-cart__header h1 {
    margin: 8px 0 4px;
    font-family: var(--serif);
    font-size: 1.8rem;
}

.sc-cart__header p {
    margin: 0 0 18px;
    color: #667085;
}

.sc-cart__table-wrap {
    overflow-x: auto;
}

.sc-cart__table {
    width: 100%;
    border-collapse: collapse;
}

.sc-cart__table th,
.sc-cart__table td {
    padding: 14px 10px;
    border-bottom: 1px solid #e6edf7;
    text-align: left;
    vertical-align: middle;
}

.sc-cart__table th {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
}

.sc-cart__table .product-thumbnail img {
    width: 80px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.sc-cart__table .product-name a {
    font-weight: 700;
}

.sc-cart__table .product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e3e9f4;
    color: #ef4444;
    font-size: 1.2rem;
    line-height: 1;
}

.sc-cart__table .product-quantity input[type="number"] {
    max-width: 80px;
}

.sc-cart__table .actions {
    padding-top: 18px;
}

.sc-cart__table .coupon {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.sc-cart__table .coupon label {
    font-weight: 600;
    color: #475569;
}

.sc-cart__table .coupon input {
    min-width: 180px;
    border-radius: 10px;
    border: 1px solid #dbe4f3;
    padding: 8px 10px;
}

.sc-cart__table .button {
    border-radius: 999px;
    padding: 8px 16px;
    border: 1px solid #d6e4fb;
    background: #2f69b0;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.sc-cart__table .sc-cart__update {
    margin-left: auto;
}

.sc-cart__aside h2 {
    margin-top: 0;
    font-family: var(--serif);
    font-size: 1.4rem;
}

.sc-cart__aside .shop_table {
    width: 100%;
    border-collapse: collapse;
}

.sc-cart__aside th,
.sc-cart__aside td {
    padding: 10px 6px;
    border-bottom: 1px solid #e6edf7;
    text-align: left;
}

.sc-cart__aside .wc-proceed-to-checkout .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    background: #f6b500;
    color: #1f2a37;
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 700;
}

.sc-cart-empty {
    margin-top: 24px;
    text-align: center;
    padding: 36px 24px;
}

.sc-cart-empty__icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.sc-cart-empty__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    border: 1px solid #d6e4fb;
    background: #2f69b0;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 900px) {
    .sc-cart__layout {
        grid-template-columns: 1fr;
    }

    .sc-cart__table th,
    .sc-cart__table td {
        padding: 12px 8px;
    }

    .sc-cart__table .coupon {
        flex-direction: column;
        align-items: flex-start;
    }
}

.auth-modal__links {
    margin-top: 10px;
}

.auth-modal__hint {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 12px;
}

body.auth-modal-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .auth-modal__dialog {
        padding: 22px 18px;
    }

    .auth-modal__title {
        font-size: 1.4rem;
    }
}

body.woocommerce-account .site-main .woocommerce {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 24px;
    align-items: start;
}

body.woocommerce-account .site-main .woocommerce::before,
body.woocommerce-account .site-main .woocommerce::after {
    content: none !important;
}

.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
    max-width: none;
}

.woocommerce-MyAccount-navigation {
    float: none;
    width: 100% !important;
    margin: 0 !important;
    justify-self: stretch;
    align-self: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

.woocommerce-MyAccount-content {
    float: none;
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
    min-width: 0;
    align-self: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    min-height: 420px;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    margin-top: 0;
    font-family: var(--serif);
    font-weight: 700;
}

.woocommerce-MyAccount-content .woocommerce-Message,
.woocommerce-MyAccount-content .woocommerce-info {
    border-radius: 12px;
}

.woocommerce-MyAccount-content .shop_table {
    border-radius: 14px;
    overflow: hidden;
}

.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content .woocommerce-button {
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
}

.account-downloads {
    display: grid;
    gap: 14px;
}

.account-downloads__note {
    margin: 0;
    color: var(--muted);
}

.account-downloads__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.account-downloads__card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.account-downloads__thumb {
    display: block;
    background: #f8fafc;
    padding: 12px;
}

.account-downloads__thumb img {
    width: 100%;
    border-radius: 12px;
}

.account-downloads__thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px dashed #cbd5f0;
    border-radius: 12px;
    background: #f9fbff;
}

.account-downloads__meta {
    padding: 12px 14px 14px;
    display: grid;
    gap: 6px;
}

.account-downloads__meta h3 {
    margin: 0;
    font-size: 1rem;
}

.account-downloads__meta span {
    font-size: 0.85rem;
    color: var(--muted);
}

.account-downloads__pagination {
    justify-content: flex-start;
}

@media (max-width: 1024px) {
    .account-downloads__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .account-downloads__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    body.woocommerce-account .site-main .woocommerce {
        grid-template-columns: 1fr !important;
    }

    .woocommerce-MyAccount-navigation {
        position: sticky;
        top: 10px;
        z-index: 1;
    }
}

@media (max-width: 560px) {
    .woocommerce-MyAccount-navigation ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce-MyAccount-content {
        padding: 18px;
    }
}

.shop-shell {
    margin-top: 18px;
}

.shop-shell--fahasa {
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(25, 32, 45, 0.08);
}

.shop-shell__breadcrumbs {
    font-size: 0.9rem;
    color: #7a8494;
    margin-bottom: 12px;
}

.shop-shell__breadcrumbs .woocommerce-breadcrumb {
    margin: 0;
}

.shop-shell__breadcrumbs a {
    color: #7a8494;
    text-decoration: none;
}

.shop-shell__breadcrumbs a:hover {
    color: #f36f21;
}

.shop-mega {
    margin: 18px 0;
    border-radius: 16px;
    border: 1px solid #efe7e3;
    background: #fff;
    box-shadow: 0 18px 40px rgba(25, 32, 45, 0.08);
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    overflow: hidden;
}

.shop-mega__menu {
    background: #f4f4f6;
    padding: 18px;
    display: grid;
    gap: 14px;
}

.shop-mega__title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c6f75;
}

.shop-mega__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.shop-mega__item {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: #2a2f36;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-mega__item:hover {
    background: #fff;
    color: #f36f21;
}

.shop-mega__item.is-active {
    background: #fff;
    color: #f36f21;
    box-shadow: 0 8px 18px rgba(25, 32, 45, 0.08);
    border-left: 4px solid #f36f21;
    padding-left: 8px;
}

.shop-mega__panels {
    padding: 18px 22px;
    min-height: 320px;
}

.shop-mega__panel {
    display: none;
}

.shop-mega__panel.is-active {
    display: block;
}

.shop-mega__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.shop-mega__panel-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2a2f36;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shop-mega__panel-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #f36f21;
    display: inline-block;
}

.shop-mega__panel-link {
    color: #1f6feb;
    font-weight: 700;
    text-decoration: none;
}

.shop-mega__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px 24px;
}

.shop-mega__column {
    display: grid;
    gap: 8px;
}

.shop-mega__column-title {
    font-weight: 800;
    color: #2a2f36;
    text-decoration: none;
}

.shop-mega__column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.shop-mega__column a {
    color: #5f6b7a;
    text-decoration: none;
    font-size: 0.95rem;
}

.shop-mega__column a:hover,
.shop-mega__panel-link:hover,
.shop-mega__seeall:hover {
    color: #f36f21;
}

.shop-mega__seeall {
    color: #1f6feb;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.shop-sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
}

.shop-shell--fahasa {
    padding: 18px;
}

.shop-shell__head--fahasa {
    align-items: flex-end;
}

.shop-shell__head--fahasa h1 {
    margin-bottom: 6px;
}

.shop-layout--fahasa {
    grid-template-columns: 240px minmax(0, 1fr);
}

.shop-category-panel {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #f0e7e3;
    background: #fff;
}

.shop-panel__title {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 800;
    color: #2a2f36;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.shop-category-list,
.shop-category-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.shop-category-list > li > a {
    font-weight: 700;
    color: #2a2f36;
    text-decoration: none;
}

.shop-category-list > li > a:hover {
    color: var(--link-hover);
}

.shop-category-list > li > a.is-active,
.shop-category-sublist a.is-active {
    color: #f36f21;
}

.shop-category-sublist {
    margin-top: 6px;
    padding-left: 12px;
    border-left: 2px solid #e7edf4;
}

.shop-category-sublist a {
    color: #5f6b7a;
    text-decoration: none;
    font-size: 0.95rem;
}

.shop-category-sublist a:hover {
    color: var(--link-hover);
}

.shop-empty {
    margin: 0;
    color: var(--muted);
}

.shop-shell__head {
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.shop-shell__head h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.shop-shell__search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
}

.shop-shell__search input[type="search"] {
    min-width: 220px;
}

.shop-shell__search .button--primary {
    background: #f36f21;
    color: #fff;
}

.shop-shell__search .button--primary:hover {
    background: #d95e14;
    color: #fff;
}

.shop-shell__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.shop-shell__toolbar .woocommerce-result-count {
    margin: 0;
}

.shop-shell__toolbar--fahasa {
    padding: 10px 12px;
    border: 1px solid #f0e7e3;
    border-radius: 12px;
    background: #fff;
    flex-wrap: wrap;
}

.shop-shell__toolbar--fahasa .woocommerce-ordering {
    margin: 0;
}

.shop-shell__toolbar--fahasa select {
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
}

.shop-shell__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-shell__sort-label {
    color: #5b6675;
    font-size: 0.9rem;
    font-weight: 600;
}

.shop-sort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-sort-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #e7e1dd;
    border-radius: 999px;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
}

.shop-sort-tab:hover {
    border-color: #f36f21;
    color: #f36f21;
}

.shop-sort-tab.is-active {
    border-color: #f36f21;
    background: #f36f21;
    color: #fff;
}

.sc-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.sc-shop-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid #efe7e3;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(31, 39, 53, 0.05);
}

.sc-shop-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #fbf9f7;
}

.sc-shop-card__media img,
.sc-shop-card__media .card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-shop-card__media .card__placeholder {
    display: block;
}

.sc-shop-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sc-shop-card__body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.sc-shop-card__meta {
    color: #8b8b8b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sc-shop-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.sc-shop-card__title a {
    color: var(--text);
    text-decoration: none;
}

.sc-shop-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: #f36f21;
}

.sc-shop-card__price .price-sale {
    color: #e53935;
    font-size: 1.05rem;
}

.sc-shop-card__price .price-regular {
    color: #8d97a5;
    font-size: 0.85rem;
    text-decoration: line-through;
}

.sc-shop-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f1b400;
    font-size: 0.9rem;
}

.sc-shop-card__rating .star-rating {
    margin: 0;
}

.sc-shop-card__extras {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a8494;
    font-size: 0.85rem;
}

.sc-shop-card__ghost {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.sc-shop-card__ghost:hover {
    color: #f36f21;
}

.sc-shop-card__ghost.is-active .sc-shop-card__icon {
    color: #ef4444; /* Red color for favorited state */
}

.sc-shop-card__ghost.is-active {
    font-weight: 600;
    color: #1e293b;
}

.sc-shop-card__icon {
    margin-right: 4px;
    color: #f36f21;
    display: inline-block;
    transition: transform 0.2s ease;
}

.sc-shop-card__ghost:active .sc-shop-card__icon {
    transform: scale(1.3);
}

.sc-shop-card__divider {
    color: #d7d0cb;
}

.sc-shop-card__actions .button {
    width: 100%;
    border-radius: 8px;
    background: #f36f21;
    color: #fff;
    justify-content: center;
}

.shop-shell .woocommerce-pagination {
    margin-top: 18px;
}

.shop-shell .woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-shell .woocommerce-pagination .page-numbers li {
    margin: 0;
}

.shop-shell .woocommerce-pagination .page-numbers a,
.shop-shell .woocommerce-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.shop-shell .woocommerce-pagination .page-numbers .current {
    border-color: var(--link);
    background: var(--link);
    color: #fff;
}

@media (max-width: 960px) {
    .shop-shell__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-shell__toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-mega {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .shop-mega__menu {
        padding: 12px;
    }

    .shop-mega__list {
        grid-auto-flow: row;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .shop-mega__item {
        padding: 8px;
        font-size: 0.85rem;
    }

    .shop-mega__panels {
        padding: 14px 16px;
    }

    .shop-mega__columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .shop-shell__search {
        width: 100%;
        flex-wrap: wrap;
    }

    .shop-shell__search input[type="search"] {
        width: 100%;
        min-width: 0;
    }
}

/* Shop-only header (Fahasa-style) */
.shop-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid #f0e7e3;
}

.shop-header__promo {
    background: linear-gradient(90deg, #b31217 0%, #e52d27 100%);
    color: #fff;
    font-size: 0.9rem;
    padding: 0 16px;
}

.shop-header__promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.shop-header__promo-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fcd34d;
    color: #7a3e00;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.shop-header__promo-text {
    flex: 1;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.shop-header__promo-cta {
    color: #fff;
    text-decoration: none;
    background: #111827;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.shop-header__main {
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
}

.shop-header__logo {
    display: inline-flex;
    align-items: center;
}

.shop-header__logo img,
.shop-header__logo svg {
    max-height: 52px;
    width: auto;
}

.shop-header__search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff7f3;
    border: 2px solid #f3c7b6;
    border-radius: 999px;
    padding: 6px 12px;
    flex: 1;
    min-width: 260px;
}

.shop-header__search-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #f36f21;
    border-radius: 999px;
    position: relative;
}

.shop-header__search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -6px;
    width: 8px;
    height: 2px;
    background: #f36f21;
    transform: rotate(45deg);
    border-radius: 2px;
}

.shop-header__search input[type="search"] {
    border: 0;
    background: transparent;
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
}

.shop-header__search input[type="search"]:focus {
    outline: none;
}

.shop-header__search-btn {
    border: 0;
    background: #f36f21;
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.shop-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-header__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e7e1dd;
    background: #fff;
    color: #2a2f36;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.shop-header__action-icon {
    font-size: 1.1rem;
}

.shop-header__center {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.shop-header__categories-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    border: 1px solid #f3c7b6;
    background: #fff;
    padding: 8px 14px;
    font-weight: 700;
    color: #2a2f36;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.shop-header__categories-toggle:focus-visible {
    outline: 2px solid #f36f21;
    outline-offset: 2px;
}

.shop-header__categories-icon {
    position: relative;
    width: 18px;
    height: 2px;
    background: #f36f21;
    border-radius: 2px;
}

.shop-header__categories-icon::before,
.shop-header__categories-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #f36f21;
    border-radius: 2px;
}

.shop-header__categories-icon::before {
    top: -6px;
}

.shop-header__categories-icon::after {
    top: 6px;
}

.shop-header__dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 220;
    opacity: 0;
    pointer-events: none;
}

.shop-header__dropdown.is-open {
    opacity: 1;
    pointer-events: auto;
}

.shop-header__dropdown-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.shop-header__dropdown.is-open .shop-header__dropdown-backdrop {
    opacity: 1;
}

.shop-header__dropdown-panel {
    position: relative;
}

.shop-header__dropdown-panel .shop-mega {
    margin: 10px 0 0 0;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    width: 100%;
}

body.is-shop-header .shop-shell--fahasa > .shop-mega {
    display: none;
}

@media (max-width: 960px) {
    .shop-header__main {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shop-header__actions {
        justify-content: space-between;
        width: 100%;
    }

    .shop-header__center {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .shop-header__categories-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .shop-header__search {
        width: 100%;
        min-width: 0;
    }

    .shop-header__action {
        flex: 1 1 0;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .shop-header__promo-inner {
        flex-direction: column;
        text-align: center;
        padding: 10px 16px;
    }

    .shop-header__main {
        padding: 10px 0;
    }

    .shop-header__logo img,
    .shop-header__logo svg {
        max-height: 46px;
    }

    .shop-header__search-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

.sc-favorites-page {
    padding: 0 0 60px;
}

.sc-favorites-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    color: #1e293b;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 15px;
}

.sc-favorites-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #f36f21;
    border-radius: 2px;
}

/* Hide default page title on favorites page to avoid duplication */
.page-shell:has(.sc-favorites-page) .section-label,
.page-shell:has(.sc-favorites-page) > h1 {
    display: none !important;
}

.sc-favorites-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.sc-favorites-pagination ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.sc-favorites-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sc-favorites-pagination .page-numbers.current,
.sc-favorites-pagination .page-numbers:hover {
    background: #f36f21;
    color: #fff;
}

.grid::before, .grid::after {
    display: none !important;
}

.sc-favorites-page .grid {
    grid-template-columns: repeat(4, 1fr);
    display: grid;
    gap: 20px;
}

@media (max-width: 1200px) {
    .sc-favorites-page .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sc-favorites-page .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sc-favorites-main-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .sc-favorites-page .grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   NEW SINGLE PRODUCT PAGE
   ========================================================================== */

.sc-sp-wrapper {
    background: #f8fafc;
    padding: 12px 0 20px;
}

.sc-sp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Base grid layout */
.sc-sp-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important;
    gap: 40px;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.sc-sp-main::before,
.sc-sp-main::after {
    display: none !important;
}

/* Gallery / Left Column */
.sc-sp-gallery {
    position: relative;
}

.sc-sp-gallery__sticky {
    position: sticky;
    top: 100px;
}

.sc-sp-gallery .woocommerce-product-gallery {
    margin: 0;
    float: none;
    width: 100%;
}

.sc-sp-gallery .woocommerce-product-gallery__wrapper {
    margin-bottom: 16px;
}

.sc-sp-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    background: #fff;
}

/* Gallery Thumbnails overrides */
.single-product .sc-sp-gallery ol.flex-control-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.single-product .sc-sp-gallery ol.flex-control-nav li {
    width: 80px !important;
    height: 80px !important;
    flex: 0 0 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.single-product .sc-sp-gallery ol.flex-control-nav li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 0.6 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.single-product .sc-sp-gallery ol.flex-control-nav li img.flex-active,
.single-product .sc-sp-gallery ol.flex-control-nav li img:hover {
    opacity: 1 !important;
    border-color: #f36f21 !important;
    transform: translateY(-2px);
}

/* Summary / Right Column */
.sc-sp-summary {
    display: flex;
    flex-direction: column;
}

.sc-sp-summary__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sc-sp-summary .product_title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
}

/* Rating */
.sc-sp-summary .woocommerce-product-rating {
    margin: -8px 0 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sc-sp-summary .woocommerce-product-rating .star-rating {
    margin: 0;
    color: #f59e0b;
}
.sc-sp-summary .woocommerce-review-link {
    color: #64748b;
    font-size: 0.95rem;
    text-decoration: none;
}

/* Price */
.sc-sp-summary .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ea580c; /* Orange-red premium feel */
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-sp-summary .price del {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 500;
}
.sc-sp-summary .price ins {
    text-decoration: none;
}

/* Excerpt */
.sc-sp-summary .woocommerce-product-details__short-description {
    color: #475569;
    line-height: 1.6;
    font-size: 1.05rem;
}
.sc-sp-summary .woocommerce-product-details__short-description p {
    margin-bottom: 0;
}

/* Stock */
.sc-sp-stock {
    margin-top: 4px;
}
.sc-sp-stock__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}
.sc-sp-stock__badge.in-stock {
    background: #ecfdf5;
    color: #059669;
}
.sc-sp-stock__badge.out-of-stock {
    background: #fef2f2;
    color: #dc2626;
}

/* Cart area */
.sc-sp-cart-area {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.sc-sp-cart-area form.cart {
    display: flex;
    gap: 12px;
    margin: 0;
}

.sc-sp-cart-area .quantity input[type="number"] {
    width: 60px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.2s;
}

.sc-sp-cart-area .quantity input[type="number"]:focus {
    border-color: #f36f21;
    background: #fff;
    outline: none;
}

.sc-sp-cart-area .single_add_to_cart_button {
    height: 48px;
    padding: 0 32px;
    border-radius: 99px;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.sc-sp-cart-area .single_add_to_cart_button:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
}

.sc-sp-btn--buynow {
    height: 48px;
    padding: 0 32px;
    border-radius: 99px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.sc-sp-btn--buynow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.4);
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

/* Meta */
.sc-sp-meta {
    font-size: 0.95rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sc-sp-meta a {
    color: #f36f21;
    text-decoration: none;
    font-weight: 600;
}
.sc-sp-meta a:hover {
    text-decoration: underline;
}

/* Policies */
.sc-sp-policies {
    margin-top: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    display: grid;
    gap: 16px;
}

.sc-sp-policy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sc-sp-policy-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.sc-sp-policy-item strong {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.sc-sp-policy-item p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

/* Extra section (Tabs, details) */
.sc-sp-extra {
    display: grid;
    gap: 32px;
}

.sc-sp-extra .woocommerce-tabs {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
}

.sc-sp-extra .woocommerce-tabs ul.tabs {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 32px;
    border-bottom: 2px solid #f1f5f9;
}

.sc-sp-extra .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0 0 16px 0;
    position: relative;
}

.sc-sp-extra .woocommerce-tabs ul.tabs li a {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #64748b;
    transition: all 0.2s;
}

.sc-sp-extra .woocommerce-tabs ul.tabs li.active a {
    color: #0f172a;
}

.sc-sp-extra .woocommerce-tabs ul.tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #f36f21;
    border-radius: 99px;
}

/* Related products inside extra */
.sc-sp-extra .related,
.sc-sp-extra .upsells {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
}

.sc-sp-extra .related > h2,
.sc-sp-extra .upsells > h2 {
    font-family: var(--serif);
    font-size: 2rem;
    margin: 0 0 24px;
    color: #0f172a;
    text-align: center;
}

.sc-sp-extra .related ul.products,
.sc-sp-extra .upsells ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
}

.sc-sp-extra .related ul.products::before,
.sc-sp-extra .upsells ul.products::before,
.sc-sp-extra .related ul.products::after,
.sc-sp-extra .upsells ul.products::after {
    display: none !important;
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    .sc-sp-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px;
    }
    
    .sc-sp-gallery__sticky {
        position: static;
    }

    .sc-sp-extra .related ul.products,
    .sc-sp-extra .upsells ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max 640px) */
@media (max-width: 640px) {
    .sc-sp-wrapper {
        padding: 0;
        background: #fff;
    }
    .sc-sp-container {
        padding: 0;
    }
    /* Card không cần border-radius trên mobile - full bleed */
    .sc-sp-main {
        padding: 16px;
        border-radius: 0;
        gap: 20px;
        box-shadow: none;
        border-left: none;
        border-right: none;
        border-radius: 0;
        margin-bottom: 8px;
    }
    /* Gallery image ngắn hơn trên mobile */
    .sc-sp-gallery .flex-viewport {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }
    .sc-sp-gallery .flex-viewport img {
        height: 280px !important;
        max-height: 280px !important;
    }
    /* Thumbnail nhỏ lại */
    .single-product .sc-sp-gallery ol.flex-control-nav li {
        width: 60px !important;
        height: 60px !important;
        flex: 0 0 60px !important;
    }
    /* Title nhỏ hơn */
    .sc-sp-summary .product_title {
        font-size: 1.6rem;
    }
    /* Price */
    .sc-sp-summary .price {
        font-size: 1.4rem;
    }
    /* Cart area stack full-width */
    .sc-sp-cart-area {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px 0;
    }
    .sc-sp-cart-area form.cart {
        width: 100%;
        display: grid;
        grid-template-columns: 72px 1fr;
        gap: 10px;
    }
    .sc-sp-cart-area .quantity input[type="number"] {
        width: 100%;
        height: 44px;
    }
    .sc-sp-cart-area .single_add_to_cart_button {
        width: 100% !important;
        height: 44px !important;
        line-height: 44px !important;
    }
    .sc-sp-btn--buynow {
        width: 100% !important;
        height: 44px !important;
        justify-content: center;
    }
    /* Policies compact */
    .sc-sp-policies {
        padding: 14px;
        gap: 12px;
        border-radius: 12px;
    }
    /* Tabs */
    .sc-sp-extra .woocommerce-tabs {
        padding: 16px;
        border-radius: 16px;
    }
    .sc-sp-extra .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
        gap: 12px;
    }
    .sc-sp-extra .woocommerce-tabs ul.tabs li a {
        font-size: 0.95rem;
    }
    /* Related products 2 columns */
    .sc-sp-extra .related,
    .sc-sp-extra .upsells {
        padding: 16px;
        border-radius: 16px;
    }
    .sc-sp-extra .related ul.products,
    .sc-sp-extra .upsells ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    /* Breadcrumb tighter */
    .sc-sp-breadcrumb {
        padding: 10px 16px 12px;
        font-size: 0.85rem;
    }
}

/* Extra small (max 400px) */
@media (max-width: 400px) {
    .sc-sp-summary .product_title {
        font-size: 1.4rem;
    }
    .sc-sp-gallery .flex-viewport {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
    }
    .sc-sp-gallery .flex-viewport img {
        height: 240px !important;
        max-height: 240px !important;
    }
}



/* FIX WOOCOMMERCE FLOATS */
.sc-sp-main .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
}

.sc-sp-main .summary, 
.woocommerce #content div.product div.summary, 
.woocommerce div.product div.summary {
    float: none !important;
    width: 100% !important;
}

/* Printable favorites */
.card--favoritable,
.recent-card--favoritable {
    position: relative;
}

.card__favorite,
.recent-card__favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.js-printable-favorite-button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.js-printable-favorite-button .favorite-icon {
    font-size: 16px;
    color: var(--muted);
}

.js-printable-favorite-button:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
}

.js-printable-favorite-button.is-active {
    background: var(--accent);
    border-color: var(--accent);
}

.js-printable-favorite-button.is-active .favorite-icon {
    color: #ffffff;
}

.js-printable-favorite-button:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

.sc-printable-favorites-page {
    padding: 0 0 60px;
}

.sc-printable-favorites-title {
    margin-bottom: 40px;
}

.sc-printable-favorites-guest-loading {
    margin-top: 0;
}

.sc-printable-favorites-pagination {
    margin-top: 50px;
}
