/* A quiet continuation of the catalogue, using native horizontal scrolling. */
.storefront .recently-viewed {
    --recent-line: #d9c5a0;
    --recent-gold: #805b25;
    padding-block: clamp(40px, 5vw, 64px);
    border-top: 1px solid var(--recent-line);
}
.storefront .recently-viewed[hidden] { display: none !important; }
.storefront .recently-viewed .recently-viewed-heading {
    align-items: flex-end;
    gap: 24px;
    margin: 0 0 24px;
}
.storefront .recently-viewed-heading .eyebrow {
    margin: 0 0 12px;
    color: var(--recent-gold);
    font: 600 10px/1.5 var(--sans, Arial, sans-serif);
    letter-spacing: .14em;
}
.storefront .recently-viewed-heading h2 {
    margin: 0;
    color: var(--ink, #30231d);
    font: 400 clamp(34px, 3.6vw, 49px)/1.08 var(--serif, Georgia, serif);
    letter-spacing: -.035em;
}
.storefront .recently-viewed-heading h2 em { color: var(--recent-gold); }
.storefront .recently-viewed-intro {
    margin: 12px 0 0;
    color: #705a44;
    font: 400 14px/1.6 var(--sans, Arial, sans-serif);
}
.storefront .recently-viewed-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 22px;
}
.storefront .recently-viewed-clear {
    min-height: 44px;
    margin: 0;
    padding: 10px 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #70501f;
    font: 500 13px/1.5 var(--sans, Arial, sans-serif);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.storefront .recently-viewed-clear:hover { color: #30231d; }
.storefront .recently-viewed-navigation { display: flex; gap: 8px; }
.storefront .recently-viewed-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 9px;
    border: 1px solid #baa078;
    border-radius: 3px;
    background: transparent;
    color: #70501f;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.storefront .recently-viewed-arrow .icon { width: 22px; height: 22px; flex: 0 0 auto; }
.storefront .recently-viewed-arrow:hover:not(:disabled) { border-color: #805b25; background: #eee4d3; color: #30231d; }
.storefront .recently-viewed-arrow:disabled { border-color: #ded3c1; color: #94836d; opacity: .55; }
.storefront .recently-viewed-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 4);
    align-items: stretch;
    gap: 20px;
    margin-inline: -4px;
    padding: 4px 4px 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #bca071 #eee6d7;
}
.storefront .recently-viewed-track::-webkit-scrollbar { height: 6px; }
.storefront .recently-viewed-track::-webkit-scrollbar-track { background: #eee6d7; }
.storefront .recently-viewed-track::-webkit-scrollbar-thumb { border-radius: 6px; background: #bca071; }
.storefront .recently-viewed-track .recently-viewed-card {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    scroll-snap-align: start;
}
.storefront .recently-viewed-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    color: var(--ink, #30231d);
    text-decoration: none;
}
.storefront .recently-viewed-image {
    --recent-image-padding: clamp(14px, 1.7vw, 22px);
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: var(--recent-image-padding);
    overflow: hidden;
    border: 1px solid #e1d5c0;
    border-radius: 3px;
    background: #fff;
    transition: border-color .18s ease;
}
.storefront .recently-viewed-image > img {
    position: absolute;
    inset: var(--recent-image-padding);
    display: block;
    width: calc(100% - 2 * var(--recent-image-padding));
    height: calc(100% - 2 * var(--recent-image-padding));
    object-fit: contain;
    transition: transform .22s ease;
}
.storefront .recently-viewed-image > .image-placeholder {
    position: absolute;
    inset: var(--recent-image-padding);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 0;
    height: auto;
    padding: 12px;
    background: transparent;
    color: #705a44;
    font: 400 12px/1.6 var(--sans, Arial, sans-serif);
    text-align: center;
}
.storefront .recently-viewed-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 16px 1px 2px;
}
.storefront .recently-viewed-info .product-brand {
    color: var(--recent-gold);
    font: 600 10px/1.5 var(--sans, Arial, sans-serif);
    letter-spacing: .12em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.storefront .recently-viewed-card .recently-viewed-name {
    display: -webkit-box;
    min-height: 2.6em;
    max-height: 3.9em;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--ink, #30231d);
    font: 400 clamp(20px, 1.85vw, 26px)/1.3 var(--serif, Georgia, serif);
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.storefront .recently-viewed-detail {
    display: block;
    margin-top: auto;
    padding-top: 14px;
    color: #70501f;
    font: 500 12px/1.5 var(--sans, Arial, sans-serif);
}
.storefront .recently-viewed-link:is(:hover, :focus-visible) .recently-viewed-image { border-color: #b18c51; }
.storefront .recently-viewed-link:is(:hover, :focus-visible) .recently-viewed-detail { text-decoration: underline; text-underline-offset: 4px; }
.storefront .recently-viewed :is(button, a, [tabindex]):focus-visible { outline: 3px solid #93692f; outline-offset: 3px; }
.storefront .recently-viewed-note { margin: 13px 0 0; color: #705a44; font: 400 12px/1.6 var(--sans, Arial, sans-serif); }
.storefront .recently-viewed-feedback {
    margin-top: 0;
    margin-bottom: 36px;
    padding: 12px 16px;
    border: 1px solid #d9c5a0;
    border-radius: 3px;
    background: #f4eee1;
    color: #634a2d;
    font: 400 14px/1.6 var(--sans, Arial, sans-serif);
    overflow-wrap: anywhere;
}
.storefront .recently-viewed-feedback[hidden] { display: none !important; }
.storefront .recently-viewed-feedback:focus { outline: 2px solid #b59969; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
    .storefront .recently-viewed-link:hover .recently-viewed-image > img { transform: scale(1.025); }
}
@media (max-width: 1120px) {
    .storefront .recently-viewed-track { grid-auto-columns: calc((100% - 40px) / 3); }
}
@media (max-width: 800px) {
    .storefront .recently-viewed-track { grid-auto-columns: calc((100% - 20px) / 2); }
    .storefront .recently-viewed-actions { gap: 14px; }
}
@media (max-width: 600px) {
    .storefront .recently-viewed .recently-viewed-heading { display: flex; flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 18px; }
    .storefront .recently-viewed-actions { justify-content: space-between; gap: 16px; }
    .storefront .recently-viewed-track { grid-auto-columns: min(78vw, 340px); gap: 16px; }
    .storefront .recently-viewed-heading h2 { font-size: 36px; }
    .storefront .recently-viewed-intro { margin-top: 10px; font-size: 13px; }
    .storefront .recently-viewed-image { --recent-image-padding: 18px; }
    .storefront .recently-viewed-card .recently-viewed-name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .storefront .recently-viewed-track { scroll-behavior: auto; }
    .storefront .recently-viewed :is(button, img, .recently-viewed-image) { transition: none; }
    .storefront .recently-viewed-link:hover .recently-viewed-image > img { transform: none; }
}
