.buckstore-editorial {
    --store-accent: var(--buck-primary, #2854d7);
    --store-ink: #142148;
    --store-muted: #52607a;
    --store-line: #dce5f6;
    color: var(--store-ink);
}

.buckstore-home {
    padding: clamp(35px, 6vw, 82px) 0;
    background: linear-gradient(145deg, #e9efff, #f7f9ff 68%, #e9efff);
    border-block: 1px solid var(--store-line);
}

.buckstore-home-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.buckstore-home-brand {
    margin: 0 0 6px;
    color: var(--store-accent);
    font-weight: 700;
}

.buckstore-home-heading h2 {
    max-width: 17ch;
    margin: 0;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -.045em;
}

.buckstore-home-cta {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--store-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.buckstore-home-categories {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    grid-template-rows: repeat(2, auto);
    justify-content: start;
    gap: 7px;
    padding: 4px 3px 9px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #8399c6 transparent;
}

.buckstore-home-categories a {
    padding: 6px 13px;
    border: 1px solid var(--store-line);
    border-radius: 999px;
    background: #fff;
    color: var(--store-ink);
    font-size: .83rem;
    white-space: nowrap;
    text-decoration: none;
}

.buckstore-home-categories a:hover {
    border-color: var(--store-accent);
    color: var(--store-accent);
}

.buckstore-editorial .buckstore-scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 80px) / 6);
    gap: 16px;
    margin: 0;
    padding: 4px 3px 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #8399c6 transparent;
}

.buckstore-editorial .buckstore-book-card {
    display: flex;
    min-width: 0;
    scroll-snap-align: start;
}

.buckstore-editorial .buckstore-book-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--store-line);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color .2s ease;
}

.buckstore-editorial .buckstore-book-link:hover {
    border-color: var(--store-accent);
}

.buckstore-editorial .buckstore-cover-wrap {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1.12;
    padding: 15px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: linear-gradient(150deg, #f0f4ff, #dce7ff);
    box-shadow: none;
    transform: none;
}

.buckstore-editorial .buckstore-book-card:nth-child(3n + 2) .buckstore-cover-wrap {
    background: linear-gradient(150deg, #eef6ff, #d8eaf8);
}

.buckstore-editorial .buckstore-book-card:nth-child(3n) .buckstore-cover-wrap {
    background: linear-gradient(150deg, #f6f3ff, #e7e4fb);
}

.buckstore-editorial .buckstore-cover-wrap img {
    width: auto;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    filter: drop-shadow(5px 9px 8px #14214834);
}

.buckstore-editorial .buckstore-cover-placeholder {
    display: grid;
    place-content: center;
    text-align: center;
    width: 65%;
    height: 86%;
    border-radius: 2px 6px 6px 2px;
    background: #18387e;
    color: #fff;
    box-shadow: 4px 7px 12px #14214835;
}

.buckstore-editorial .buckstore-view-chip {
    display: none;
}

.buckstore-editorial .buckstore-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px;
}

.buckstore-editorial .buckstore-card-copy h3 {
    margin: 0;
    color: var(--store-ink);
    font-size: .95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.buckstore-editorial .buckstore-card-copy p {
    margin: 5px 0;
    color: var(--store-muted);
    font-size: .8rem;
}

.buckstore-editorial .buckstore-card-copy strong {
    margin-top: auto;
    padding-top: 8px;
    color: var(--store-accent);
    font-size: .9rem;
}

.buckstore-editorial :focus-visible {
    outline: 2px solid var(--store-accent);
    outline-offset: 2px;
}

.buckstore-editorial .buckstore-fallback-hero {
    background: radial-gradient(ellipse at 85% 40%, #315ed0, #142f80 74%);
    color: #fff;
}

.buckstore-editorial .buckstore-cover-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 8px;
}

.buckstore-cover-display a {
    display: block;
    width: 34%;
    aspect-ratio: 2 / 3;
    transform: rotate(-9deg) translateY(8%);
}

.buckstore-cover-display a + a {
    margin-left: -5%;
    transform: rotate(8deg) translateY(8%);
}

.buckstore-cover-display a:nth-child(2):not(:last-child),
.buckstore-cover-display a:only-child {
    z-index: 1;
    transform: rotate(-2deg) scale(1.12);
}

.buckstore-cover-display img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(7px 13px 12px #071633a0);
}

.buckstore-editorial .buckstore-search-section {
    border-bottom: 1px solid var(--store-line);
    background: #edf3ff;
}

.buckstore-editorial .buckstore-shelf {
    margin-top: 20px;
    padding-block: 28px;
}

.buckstore-editorial .buckstore-categories {
    padding-block: 28px;
    background: #eef3ff;
    border-radius: 18px;
}

@media (max-width: 1050px) {
    .buckstore-editorial .buckstore-scroll-row { grid-auto-columns: calc((100% - 48px) / 4); }
}

@media (max-width: 650px) {
    .buckstore-editorial .buckstore-scroll-row { grid-auto-columns: 43%; gap: 12px; }
    .buckstore-editorial .buckstore-fallback-grid { gap: 18px; }
    .buckstore-editorial .buckstore-cover-display { max-width: 330px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .buckstore-editorial .buckstore-book-link,
    .buckstore-editorial .buckstore-cover-wrap img { transition: none; }
}

.buckstore-editorial .buckstore-home-shelf { margin-top: clamp(24px, 4vw, 40px); }
.buckstore-editorial .buckstore-shelf-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 10px;
}
.buckstore-editorial .buckstore-shelf-heading h3 { margin: 0; font-size: clamp(1.1rem, 2vw, 1.65rem); }
.buckstore-editorial .buckstore-shelf-heading a,
.buckstore-editorial .buckstore-pagination a { color: var(--store-accent); font-weight: 600; }
.buckstore-home .buckstore-home-category-heading { margin-top: 20px; margin-bottom: 4px; }
.buckstore-home .buckstore-scroll-row { grid-auto-columns: clamp(92px, 9.3vw, 150px); gap: 12px; }
.buckstore-home .buckstore-home-shelf-featured-books .buckstore-scroll-row { grid-auto-columns: clamp(145px, 14vw, 220px); }
.buckstore-editorial .buckstore-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100px, 100%), 1fr));
    gap: 12px;
}
.buckstore-home .buckstore-cover-wrap { aspect-ratio: 2 / 3; padding: 4px; }
.buckstore-editorial .buckstore-cover-wrap { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.buckstore-editorial .buckstore-card-category { color: var(--store-muted); margin-bottom: 4px; }
.buckstore-editorial .buckstore-card-subtitle {
    color: var(--store-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .78rem;
}
.buckstore-editorial .buckstore-card-copy del { color: var(--store-muted); font-weight: 400; font-size: .78rem; }
.buckstore-editorial .buckstore-card-copy strong small { color: #14624c; }
.buckstore-editorial .buckstore-card-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: #163485;
    color: #fff;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: .68rem;
    font-weight: 700;
}
.buckstore-editorial .buckstore-catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.buckstore-editorial .buckstore-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    padding: 16px;
    background: #edf3ff;
    border-radius: 12px;
    margin: 18px 0;
}
.buckstore-editorial .buckstore-filters label {
    display: grid;
    gap: 4px;
    flex: 1 1 130px;
    min-width: 0;
    font-size: .82rem;
    font-weight: 600;
}
.buckstore-editorial .buckstore-filters :is(input, select, button) {
    box-sizing: border-box;
    min-width: 0;
    min-height: 38px;
    padding: 6px 9px;
    border: 1px solid #c3cfea;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--store-ink);
}
.buckstore-editorial .buckstore-filters button {
    background: var(--store-accent);
    color: #fff;
    cursor: pointer;
}
.buckstore-editorial .buckstore-pagination { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 16px; }
.buckstore-reader-details { display: grid; gap: 9px; margin: 0 0 18px; }
.buckstore-reader-details details { padding: 10px 13px; border: 1px solid #dce5f6; border-radius: 8px; }
.buckstore-reader-details summary { cursor: pointer; font-weight: 600; }
.buckstore-reader-details > a { font-weight: 700; color: var(--buck-primary, #2854d7); }

@media (max-width: 850px) {
    .buckstore-editorial .buckstore-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 550px) {
    .buckstore-editorial .buckstore-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.buckstore-editorial .buckstore-shelf-controls { display: flex; justify-content: flex-end; gap: 7px; margin-bottom: 5px; }
.buckstore-editorial .buckstore-shelf-controls[hidden] { display: none; }
.buckstore-editorial .buckstore-shelf-controls button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--store-line);
    background: #fff;
    color: var(--store-accent);
    cursor: pointer;
    font: inherit;
}
.buckstore-editorial .buckstore-shelf-controls [aria-disabled="true"] { opacity: .45; cursor: default; }

.buckstore-home .buckstore-book-link { border-radius: 8px; }

.buckstore-editorial #buckstore-categories,
.buckstore-editorial #buckstore-discover { scroll-margin-top: 180px; }

.buckstore-editorial #buckstore-categories .buckstore-category-row {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(125px, 100%), 1fr));
    margin: 0;
    padding: 4px 2px 12px;
    overflow: visible;
}

.buckstore-editorial .buckstore-search-section,
.buckstore-editorial .buckstore-search-section.is-catalog { padding-block: 18px; }

.buckstore-editorial .buckstore-search-section .buckstore-search-head h2 {
    font-size: clamp(1rem, 2vw, 1.45rem);
}

.buckstore-editorial .buckstore-catalog { padding-top: 22px; }
.buckstore-editorial .buckstore-catalog h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.buckstore-editorial .buckstore-filter-panel { margin-bottom: 14px; }
.buckstore-editorial .buckstore-filter-panel summary {
    width: fit-content;
    color: var(--store-accent);
    cursor: pointer;
    font-weight: 600;
}

.buckstore-editorial .buckstore-promo-heading {
    color: inherit;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -.04em;
    margin: 0 0 18px;
}

.buckstore-market-selector {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 9px;
    padding: 12px max(18px, calc((100% - 1400px) / 2));
    background: #edf3ff;
}
.buckstore-market-selector label { display: grid; gap: 4px; color: #142148; font-weight: 600; font-size: 13px; }
.buckstore-market-selector select { padding: 8px 12px; border: 1px solid #c3cfea; border-radius: 8px; background: #fff; font: inherit; }

.buckstore-buy-card .buckstore-market-selector {
    padding: 0 0 14px;
    margin-bottom: 16px;
    background: transparent;
    border-bottom: 1px solid #e4e9f2;
}
.buckstore-buy-card .buckstore-market-selector label { width: 100%; }
.buckstore-buy-card .buckstore-market-selector select { width: 100%; max-width: 100%; min-height: 42px; }
.buckstore-market-status { display: block; flex-basis: 100%; font-size: 12px; color: #52607a; }
.buckstore-market-status:empty { display: none; }
.buckstore-buy-card .buckstore-selected-price > div { flex-wrap: wrap; gap: 8px; }
.buckstore-buy-card #buckstore-selected-price,
.buckstore-buy-card #buckstore-selected-mrp { white-space: nowrap; }

.buckstore-buy-card .buckstore-selected-price { flex-wrap: wrap; }
.buckstore-buy-card .buckstore-format-option { gap: 8px; flex-wrap: wrap; }
