/**
 * Color palette:
 * https://coolors.co/316c29-b4ccc6-1d2e23-74bb50-263934
 * https://coolors.co/visualizer/316c29-b4ccc6-1d2e23-74bb50-263934
 * #316C29 - Fern Green
 * #B4CCC6 - Ash Gray
 * #1D2E23 - Dark Green
 * #74BB50 - Mantis
 * #263934 - Dark Slate Gray
 * #FFFFFF - White
 */
:root {
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
}
fieldset {
    /* reset fieldset style */
    border: none;
    margin: 0;
    padding: 0;
}
body {
    background-color: #1D2E23;
    color: #FAFAFA;
    min-height: 100vh;
    font-family: "Jost", Arial, sans-serif;
    margin: 0;
}

/* Match the seller dashboard's dark theme without the old marketplace texture. */
body.marketplace-page {
    background: #14201a;
}

h1, h2, h3, h4, h5 {
    color: #FAFAFA;
}


.storefront {
    margin: 0px auto;
    min-height: 99vh;
    text-align: center;
}
.storefront a {
    text-decoration: none;
    font-weight: bold;
    color: #FFF;
}
.storefront .button {
    background: #316C29;
    color: #FFF;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.storefront .button:hover {
    background: #74BB50;
    color: #FFF;
}

/**
 * Utility Styles
 */
.padded {
    padding: 1rem;
}
.top-margin, .readable .top-margin {
    margin-top: 1rem;
}
.top-margin-x2, .readable .top-margin-x2 {
    margin-top: 2rem;
}
.m-auto {
    margin-left: auto;
    margin-right: auto;
}
dialog {
    position: fixed;
    top: 50%;
    left: 0;
    width: 90vw;
    box-sizing: border-box;
    z-index: 200;
    margin-top: -150px;
    height: 300px;
    box-shadow: 0 0 20px rgba(0, 0, 0);
}
.strong, .bold {
    font-weight: bold;
}

/* make links bigger when hovering by zooming
 */
.storefront a:hover {
    font-weight: bold;
    color: #74BB50;
}

.storefront > header {
    padding: 50px 0;
}

.storefront > header h1 {
    font-size: 3em;
    margin: 0;
}

.storefront-seller-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.verified-seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid #74BB50;
    border-radius: 999px;
    background: #1D2E23;
    color: #CFE0DA;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    vertical-align: middle;
    white-space: nowrap;
}

.verified-seller-badge i {
    color: #74BB50;
    margin-left: -1px;
}

.verified-seller-badge--icon {
    padding: 0.25rem;
}

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

.unverified-seller-notice {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    border: 2px solid #B45309;
    border-radius: 8px;
    background: #FFFBEB;
    color: #451A03;
    text-align: left;
}

.unverified-seller-notice__seller h3,
.unverified-seller-notice__seller p {
    margin: 0 0 0.5rem;
}

.unverified-seller-marker {
    color: #F59E0B;
    font-size: 0.85rem;
    font-weight: 700;
}

.storefront > header h2 {
    font-size: 1.5em;
    margin: 0;
}
.storefront > header p {
    font-size: 1.2em;
    font-style: italic;
    padding-left: 1rem;
    padding-right: 1rem;
}

.storefront > header ul.socials-banner {
    padding: 0;
    margin: 1rem 0 5rem;
}

.storefront section.widget {
    margin: 2rem 0;
    background: #000;
    padding: 1rem;
    color: #FFF;
}
.storefront section.widget h2 {
    margin: 0;
    font-size: 1.8em;
    border-bottom: 1px solid #999;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

aside.storefront-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-color: #263934;
    color: #FFF;
    box-shadow: 0 0 8px #000000CC;
}
aside.storefront-sidebar .sticky {
    position: sticky;
    top: 0;
    max-height: 100vh;
    min-height: 100vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}
aside.storefront-sidebar header {
    border-bottom: 1px solid #263934;
}
aside.storefront-sidebar header > a {
    display: block;
    padding: 1rem;
    color: #B4CCC6;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: #263934;
}
aside.storefront-sidebar header > a img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 1em;
    margin-bottom: 4px;
    margin-top: -4px;
}
aside.storefront-sidebar header ul.socials-banner,
aside.storefront-sidebar ul.marketplace-links-banner {
    padding: 0;
    margin: 0;
    background: #1D2E23;
}
aside.storefront-sidebar ul.marketplace-links-banner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    list-style-type: none;
    margin-top: auto;
    border-top: 1px solid #263934;
}
aside.storefront-sidebar header ul.socials-banner li,
aside.storefront-sidebar ul.marketplace-links-banner li {
    font-size: 22px;
    display: inline-block;
    margin: 1px;
    flex: 1;
    text-align: center;
}
aside.storefront-sidebar header ul.socials-banner li a,
aside.storefront-sidebar ul.marketplace-links-banner li a {
    color: #FFF;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    position: relative;
    height: 100%;
}
aside.storefront-sidebar header ul.socials-banner li a:hover,
aside.storefront-sidebar ul.marketplace-links-banner li a:hover {
    background-color: #74BB50;
}
.cart-count-badge {
    position: absolute;
    background: #910000;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    right: 0;
    top: 0;
    box-shadow: 0 0 5px #00000099;
}
.sidebar-launcher .cart-count-badge {
    position: absolute;
    display: block;
    vertical-align: baseline;
    right: auto;
    left: 12px;
    top: 17px;
}
aside.storefront-sidebar nav {
    flex: 1 0 auto;
}

aside.storefront-sidebar nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
aside.storefront-sidebar nav ul li {

}
aside.storefront-sidebar nav ul li.title {
    font-weight: bold;
    font-size: 1.5em;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 0rem;
    color: #FFF;
}
/*
 * More Mayhem remains server-rendered, but its rows mirror the shopper React nav's
 * subitem structure so the two adjacent sidebar sections share a visual language.
 */
aside.storefront-sidebar nav ul li.marketplace-sidebar-more-mayhem-item {
    --marketplace-more-mayhem-background: #222F28;
    --marketplace-more-mayhem-text: #E3ECE6;
    --marketplace-more-mayhem-muted: #9AA8A1;
    --marketplace-more-mayhem-border: #2C3A33;
    --marketplace-more-mayhem-accent: #8FD66C;

    background: var(--marketplace-more-mayhem-background);
    border-block-start: 1px solid var(--marketplace-more-mayhem-border);
}
aside.storefront-sidebar nav ul li.marketplace-sidebar-more-mayhem-item > a.marketplace-sidebar-more-mayhem-item__link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-block: 0.7rem;
    padding-inline: 1rem;
    border-inline-start: 3px solid transparent;
    color: var(--marketplace-more-mayhem-text);
    font-size: 0.9rem;
    line-height: 1.35;
    text-decoration: none;
}
aside.storefront-sidebar nav ul li.marketplace-sidebar-more-mayhem-item > a.marketplace-sidebar-more-mayhem-item__link:hover {
    background: color-mix(in srgb, var(--marketplace-more-mayhem-accent) 12%, transparent);
    color: var(--marketplace-more-mayhem-text);
}
aside.storefront-sidebar nav ul li.marketplace-sidebar-more-mayhem-item > a.marketplace-sidebar-more-mayhem-item__link:focus-visible {
    outline: 2px solid var(--marketplace-more-mayhem-accent);
    outline-offset: 2px;
}
aside.storefront-sidebar .marketplace-sidebar-more-mayhem-item__icon {
    flex: 0 0 1.1rem;
    inline-size: 1.1rem;
    margin-block-start: 0.1rem;
    color: var(--marketplace-more-mayhem-muted);
    text-align: center;
}
aside.storefront-sidebar .marketplace-sidebar-more-mayhem-item__icon i:first-child {
    margin: 0;
}
aside.storefront-sidebar .marketplace-sidebar-more-mayhem-item__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-inline-size: 0;
    gap: 0.15rem;
}
aside.storefront-sidebar .marketplace-sidebar-more-mayhem-item__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-inline-size: 0;
}
aside.storefront-sidebar .marketplace-sidebar-more-mayhem-item__title-row strong {
    min-inline-size: 0;
    overflow-wrap: anywhere;
}
aside.storefront-sidebar .storefront-sidebar-footer {
    flex: 0 0 auto;
    margin-top: auto;
}
aside.storefront-sidebar .storefront-language-switcher,
aside.storefront-sidebar .storefront-country-switcher {
    display: flex;
    justify-content: center;
    padding: 0.65rem 1rem;
}
aside.storefront-sidebar .storefront-language-switcher form,
aside.storefront-sidebar .storefront-country-switcher form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 12rem;
    max-width: 100%;
    height: 2.5rem;
    padding: 0.2rem 0.4rem;
    overflow: hidden;
    background: #1D2E23;
    border: 1px solid #3D544E;
    border-radius: 0.35rem;
}
aside.storefront-sidebar .storefront-language-switcher label,
aside.storefront-sidebar .storefront-country-switcher label {
    flex: 0 0 auto;
    width: 1.5rem;
    color: #B4CCC6;
    text-align: center;
    line-height: 1;
}
aside.storefront-sidebar .storefront-language-switcher label span,
aside.storefront-sidebar .storefront-country-switcher label span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
aside.storefront-sidebar .storefront-language-switcher select,
aside.storefront-sidebar .storefront-country-switcher select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 1.75rem;
    padding: 0 0.4rem;
    color: #FFF;
    background: #263934;
    border: 0;
    border-radius: 0.2rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}
aside.storefront-sidebar .storefront-language-switcher select:focus-visible,
aside.storefront-sidebar .storefront-country-switcher select:focus-visible {
    outline: 2px solid #74BB50;
    outline-offset: 1px;
}
aside.storefront-sidebar .storefront-language-switcher button,
aside.storefront-sidebar .storefront-country-switcher button {
    flex: 0 0 auto;
    height: 2rem;
}
aside.storefront-sidebar nav ul li a {
    display: block;
    padding: 1rem;
    color: #FFF;
    text-decoration: none;
}
aside.storefront-sidebar nav ul li a i:first-child {
    margin-right: 0.5rem;
}
aside.storefront-sidebar nav ul li a:hover {
    background-color: #1D2E23;
}

aside.storefront-sidebar nav ul li a small {
    font-size: 0.7em;
    color: #B4CCC6;
}
aside.storefront-sidebar ~ div.storefront,
aside.storefront-sidebar + .storefront-branding-media {
    margin-left: 300px;
}

.storefront-branding-media {
    position: relative;
    line-height: 0;
}

.storefront-banner-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    background: #1D2E23;
}

.storefront-banner-image,
.storefront-banner-backdrop {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.storefront-banner-image {
    position: relative;
    z-index: 1;
}

.storefront-banner-backdrop {
    position: absolute;
    inset: 0;
    filter: blur(24px) brightness(0.55) saturate(0.85);
    pointer-events: none;
    transform: scale(1.12);
}

.storefront-branding-media.has-contained-banner .storefront-banner-image {
    object-fit: contain;
}

.storefront-profile-picture {
    display: block;
    width: 128px;
    height: 128px;
    border: 5px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: #263934;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    line-height: 0;
    overflow: hidden;
}

.storefront-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-profile-picture:focus-visible {
    outline: 3px solid #74BB50;
    outline-offset: 3px;
}

.storefront-branding-media.has-banner.has-profile-picture {
    margin-bottom: 64px;
}

.storefront-branding-media.has-banner .storefront-profile-picture {
    position: absolute;
    left: clamp(1.5rem, 5vw, 4rem);
    bottom: -64px;
    z-index: 2;
}

.storefront-branding-media.has-banner + .storefront > header {
    padding-top: 1.5rem;
}

.storefront-branding-media.has-profile-picture:not(.has-banner) {
    padding: 1.5rem 2rem 0;
}

.storefront-branding-media.has-profile-picture:not(.has-banner) .storefront-profile-picture {
    margin: 0 auto;
}

/*
 * Marketplace sidebar needs tighter spacing
 */
aside.marketplace-sidebar {}
aside.marketplace-sidebar header { }
aside.marketplace-sidebar nav ul li a {
    padding: 0.5rem 1rem;
}
aside.marketplace-sidebar nav ul li a i {
    width: 20px;
    text-align: center;
}
aside.marketplace-sidebar .marketplace-sidebar-hide {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: transparent;
    border: 0;
    border-top: 1px solid #1D2E23;
    color: #B4CCC6;
    font: inherit;
    cursor: pointer;
}
aside.marketplace-sidebar .marketplace-sidebar-hide:hover {
    background: #1D2E23;
    color: #FFF;
}
aside.marketplace-sidebar .marketplace-sidebar-hide--top {
    border-top: 0;
    border-bottom: 1px solid #1D2E23;
}

/**
 * Sidebar launcher show/hide stuff
 */
.sidebar-launcher, .back-to-top {
    position: fixed;
    right: 1rem;
    background: #316C29CC;
    border-radius: 5em;
    color: #FFF;
    padding: 1rem 2rem;
    cursor: pointer;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 0 10px #00000099;
    font-size: 1em;
}

.sidebar-launcher:hover, .back-to-top:hover {
    background: #74BB50;
}

.sidebar-launcher i, .back-to-top i { }

.sidebar-launcher {
    bottom: 1rem;
}

.back-to-top {
    opacity: 0;
    pointer-events: none;
    top: 1rem;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.floating-tools {
    position: static;
    z-index:400;
    display: none;
}

section#socials {
}

ul.socials-banner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

ul.socials-banner li {
    list-style-type: none;
    margin: 0 10px;
    font-size: 2.3em;
}

ol.links {
    padding: 0;
    margin: 0 auto 10rem;
    list-style-type: none;
    max-width: 600px;
    display: block;
}

ol.links li {
    margin: 1rem;
    border: 1px solid #EEE;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.2);
    cursor: pointer;
}

ol.links li:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

ol.links li .icon {
    padding: 20px;
    font-size: 60px;
}

ol.links li .icon img {
    vertical-align: bottom;
    width: 80px;
    height: 80px;
}

ol.links li .content {
    flex-grow: 1;
    padding: 2rem;
    text-align: right
}

ol.links li .content .title {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    margin-bottom: 0.5rem;
}

ol.links li .content .description {

}

section header.green-to-transparent {
    background: linear-gradient(90deg, #263934 0%, transparent 90%);
    text-align: left;
    padding: var(--space-sm) var(--space-md);

    position: sticky;
    top: 0;
    z-index: 102;
}
section header.green-to-transparent > h2 {
    margin: 0;
    padding: 0;
    color:#B4CCC6;
}
section header.green-to-transparent > p {
    margin: var(--space-2xs) 0 0;
    color:#B4CCC6;
    padding: 0;
}
/* More Like This explorer (productdetail.ejs): the React widget under
   `.more-like-this__explorer-wrap` is styled with tokens.css `--color-*`
   custom properties, which default to the light palette unless a
   `[data-theme="dark"]` ancestor is present (tokens.css §1). The marketplace
   is unconditionally dark via this file's own hardcoded colors and never
   sets that attribute on <html>, so the wrapper carries it locally to match
   the surrounding dark background without toggling theme site-wide. */
.more-like-this {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
/* Fixed (not max-) width, so the widget's footprint doesn't grow/shrink as the
   candidate count changes between MLT lookups — a variable-width flex item
   here reflows the page around it every time the user clicks a candidate.
   42.25rem (676px) is exactly four 160px .mlt-candidate-tile columns plus
   their var(--space-sm) gaps, so a full row of tiles fits with no leftover
   whitespace; margin: auto centers the fixed-width box without relying on a
   flex parent. */
.more-like-this__explorer-wrap {
    width: 42.25rem;
    max-width: 100%;
    margin: var(--space-lg) auto;
    box-sizing: border-box;
}
.product-tiles {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-tiles .product-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    flex-basis: 20rem;
    flex-grow: 1;
    flex-shrink: 0;
    max-width: 800px;
    width: 20rem;
}

/* Seller-selected tile density (channel.branding.productTileSize), applied storefront-wide
   via a body modifier class in header.ejs so it cascades to every .product-tiles instance
   (homepage, folder listings, full store listing). */
body.tile-size-compact .product-tiles .product-tile {
    flex-basis: 13rem;
    width: 13rem;
}

body.tile-size-large .product-tiles .product-tile {
    flex-basis: 28rem;
    width: 28rem;
}

.product-tile {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #316C2966;

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.product-tile .clickarea {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*width: 100%;*/

    flex: 1;
    min-height: 20vh;
    padding: 1rem;
    background: rgba(0,0,0,0.8);
}

.product-tile .random-hj {
    position: absolute;;
    top: 0;
    right: 0;
    background: #000000CC;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    box-shadow: 0 0 10px #00000099;
}
.product-tile .random-hj img {
    padding: 0;
    width: 60px;
}
.product-tile .random-hj p {
    margin: 0;
    font-size: 10px;
    position: absolute;
    width: 100%;
    bottom: 5px;
}

.product-tile .product-info {
    /** This is the background transparency container */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #B4CCC6;
    box-shadow: 0 -3px 10px #00000066;
    padding: 1rem;
    height: auto;
    position: relative;
    width: 100%;
    color: #263934;
    text-align: left;
    min-height: 123px;
}
.product-tile.folder-tile .product-info {
    min-height: 100px;
}
.product-tile .product-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-tile h4 {
    margin: 0 0 1px;
    font-size: 20px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.product-tile h4 a {
    color: #316C29;
    text-decoration: none;
}
.product-tile h4 a:hover {
    color: #74BB50;
}

.product-tile img {
}
@keyframes bgpanvertical {
    /**
     * Pan smoothly from center, bottom, top, center
     */
    0% {
        object-position: 50% 50%;
    }
    25% {
        object-position: 100% 100%;
    }
    75% {
        object-position: 0% 0%;
    }
    100% {
        object-position: 50% 50%;
    }
}
.product-tile img.product-image {
    height: 100%;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    vertical-align: bottom;
}
.product-tile.folder-tile img.product-image {
    /*padding-bottom: 100px;*/
}
.product-tile:hover img.product-image {
    /*animation-name: bgpanvertical;*/
    /*animation-duration: 20s;*/
    /*animation-iteration-count: infinite;*/
    /*animation-timing-function: ease;*/
}
.product-tile .description {
    color: #263934;
    margin: 0;
    max-height: 48px;
    overflow: hidden;
}
.product-tile .price {
    color: #263934;
    margin: 0;
}

.product-tile .seller {
    color: #263934;
    font-size: 0.9em;
    margin-top: -1.2em;
    margin-bottom: 1em;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.product-tile .seller .seller-link {
    color: #316C29;
    text-decoration: none;
}
.product-tile .seller .seller-link:hover {
    color: #74BB50;
}
.product-tile .seller .seller-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.product-tile .product-type {
    background: #263934;
    margin: 0;
    position: absolute;
    font-size: 0.8em;
    color: white;
    border-radius: 1em;
    padding: 2px 10px;
    display: block;
    top: -10px;
    right: 5px;
    rotate: 20deg;
}
.product-tile .save-product-btn {
    text-shadow: 0 0 1em #00000066;
}
.product-tile .save-product-btn.saved {
    color: #9b1e00;
}
.product-tile .save-seller-btn {
    margin-left: 1em;
}
.product-tile .save-seller-btn.saved {
    color: #74BB50;
}
.product-tile .add-to-collection {
    position: relative;
    display: inline-block;
    margin-left: 1em;
}
.product-tile .add-to-collection-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-shadow: 0 0 1em #00000066;
}
.product-tile .add-to-collection-btn:hover {
    filter: brightness(1.1);
}
.product-tile .add-to-collection-menu {
    position: absolute;
    z-index: 5;
    top: 100%;
    left: 0;
    margin-top: 0.35em;
    min-width: 10rem;
    background: #1c2620;
    border: 1px solid #3a463e;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    padding: 0.4em 0;
}
.product-tile .add-to-collection-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.product-tile .add-to-collection-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.4em 0.75em;
    border: none;
    background: transparent;
    color: #e3ece6;
    cursor: pointer;
    font-size: 0.9em;
}
.product-tile .add-to-collection-menu button:hover {
    background: #263934;
}
.product-tile .add-to-collection-empty {
    margin: 0;
    padding: 0.4em 0.75em;
    font-size: 0.85em;
    color: #cfd9d3;
}
.product-tile .add-to-collection-empty a {
    color: #74BB50;
}

/* Marketplace product cards */
body.marketplace-page .product-tiles {
    gap: 1.25rem;
    justify-content: center;
    padding: 1rem;
}

body.marketplace-page .product-tiles .product-tile {
    flex: 1 1 18rem;
    max-width: 24rem;
    min-width: 0;
    width: auto;
}

body.marketplace-page .product-tile {
    background-color: #1c2620;
    border: 1px solid #3a463e;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

body.marketplace-page .product-tiles .product-tile:hover {
    border-color: #587060;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
    transform: translateY(-3px);
}

body.marketplace-page .product-tile .clickarea {
    aspect-ratio: 4 / 3;
    background: #101813;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.product-tile .product-image-placeholder {
    align-items: center;
    display: flex;
    font-size: 3rem;
    height: 100%;
    justify-content: center;
    width: 100%;
}

body.marketplace-page .product-tile .product-image-placeholder {
    color: #587060;
}

body.marketplace-page .product-tile img.product-image {
    height: 100%;
    max-height: none;
    object-fit: cover;
    transition: transform 0.25s ease;
}

body.marketplace-page .product-tiles .product-tile:hover img.product-image {
    transform: scale(1.025);
}

body.marketplace-page .product-tile .product-info {
    background: #1c2620;
    box-shadow: none;
    color: #e3ece6;
    gap: 0.65rem;
    min-height: 0;
    padding: 1.4rem 1rem 1rem;
}

body.marketplace-page .product-tiles .product-tile .product-info {
    flex: 1;
}

body.marketplace-page .product-tile h4 {
    display: -webkit-box;
    font-size: 1.15rem;
    line-height: 1.3;
    min-height: 3rem;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.marketplace-page .product-tile h4 a,
body.marketplace-page .product-tile .seller .seller-link {
    color: #8fd66c;
}

body.marketplace-page .product-tile h4 a:hover,
body.marketplace-page .product-tile .seller .seller-link:hover {
    color: #b9e79c;
}

body.marketplace-page .product-tile .seller {
    color: #aab8af;
    gap: 0.5rem;
    margin: 0;
}

body.marketplace-page .product-tile .seller .seller-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.marketplace-page .product-tile .save-seller-btn {
    color: #aab8af;
    flex: 0 0 auto;
    font-size: 0.8rem;
    margin-left: 0;
}

body.marketplace-page .product-tile .description {
    color: #c2cec6;
    display: -webkit-box;
    line-height: 1.45;
    max-height: none;
    min-height: 2.9rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.marketplace-page .product-tile .product-type {
    background: #263a30;
    border: 1px solid #3a5945;
    border-radius: 999px;
    color: #b9e79c;
    left: 1rem;
    padding: 0.2rem 0.65rem;
    right: auto;
    rotate: none;
    top: -0.75rem;
}

body.marketplace-page .product-tile .product-info .info-row:last-child {
    border-top: 1px solid #2c3a33;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

body.marketplace-page .product-tile .price {
    color: #e3ece6;
}

body.marketplace-page .product-tile .save-product-btn {
    color: #aab8af;
    flex: 0 0 auto;
    font-size: 0.85rem;
}

body.marketplace-page .product-tile .save-product-btn:hover,
body.marketplace-page .product-tile .save-product-btn.saved {
    color: #e87979;
}

/* Admin-only Editor's Pick toggle — styled as a sibling of the save/follow stars. */
.product-tile .editors-pick-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid #c8a24a;
    border-radius: 999px;
    background: transparent;
    color: #c8a24a;
    font-size: 0.8rem;
    cursor: pointer;
}

.product-tile .editors-pick-btn.is-pick {
    background: #c8a24a;
    color: #1c1c1c;
}

.product-tile .editors-pick-btn:hover {
    filter: brightness(1.1);
}

body.marketplace-page section.product-details .product-tile .clickarea {
    aspect-ratio: auto;
}

body.marketplace-page section.product-details .product-tile img.product-image {
    object-fit: contain;
}

section {}
section .product-tiles {
    overflow: auto;
}
section .product-tiles .product-tile {
}
section .meta-bottom {
    background:#B4CCC6 ;
    color:  #1D2E23;
    margin: 2rem auto;
    max-width: 700px;
}
body.marketplace-page section .meta-bottom {
    background: #1c2620;
    border: 1px solid #3a463e;
    border-radius: var(--border-radius);
    color: #e3ece6;
    overflow: hidden;
}
section .meta-bottom p {
    margin: 0;
    font-weight: bold;
    line-height: 5rem;
}
section .meta-bottom p.store-cta {
    font-size: 1.2em;
    font-weight: bold;
}
section .meta-bottom p.store-cta a {
    background: #263934;
    display: block;
}

section.product-section {
    text-align: left;
    background: linear-gradient(180deg, #1D2E23 0%, transparent 80%);
    margin-bottom: 2rem;
}
section.product-section h2 {
}
section.product-section p {
}
/* p that's right after h2 should get a border */
section.product-section h2 + p {
    /*border-bottom: 1px solid #B4CCC6;*/
    padding: 0 1rem 1rem 1rem;
}

/**
 * Product detail page
 */
section.product-details {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-content: stretch;
}
section.product-details .extended-description {
    background-color: #b4ccc6DD;
    border-radius: var(--border-radius);
    color: #1d2e23;
    margin-bottom: 2rem;
    max-width: 400px;
    max-height: 500px;
    overflow: auto;
    text-align: left;
    width: 100%;
}
section.product-details .extended-description summary {
    display: none;
}
section.product-details .extended-description .extended-description-content {
    padding: 0 2rem 1rem 2rem;
}
section.product-details .extended-description h3 {
    color: #1d2e23;
}
section.product-details .product-detail {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: flex-start;
    margin-bottom: 2rem;
}
section.product-details .product-detail .product-tile {
    min-height: 500px;
    max-height: 800px;
    height: 55vh;
    width: 50vw;
}
section.product-details .product-detail .product-tile img.product-image {
    max-height: none;

}
section.product-details .product-detail.small .product-tile {
    height: 24vh;
    width: 40vw;
}

/* Compact product detail template (channel.branding.productDetailTemplate): tighter
   spacing and a shorter, collapsed-by-default extended description. */
section.product-details.compact {
    gap: 1rem;
}
section.product-details.compact .extended-description {
    margin-bottom: 1rem;
    max-height: 300px;
}
section.product-details.compact .product-detail {
    margin-bottom: 1rem;
}

/**
 * Product detail page product gallery
 * should be horizontally scrollable
 */
.product-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem;
}
.product-gallery figure {
    margin: 0;
    cursor: pointer;
}
.product-gallery figure img, .product-gallery figure video {
    vertical-align: top;
    height: 300px;
}
.product-gallery figure figcaption {
    text-align: center;
    font-size: 0.8em;
    color: #B4CCC6;

}

/**
 * Standard form
 */
form { }
form .group {
    display: block;
    margin-bottom: 2rem;
}
form .group label {
    display: block;
    margin-bottom: 0;
    font-weight: bold;
    color: #1D2E23;
}
form .group label.checkbox, label.checkbox {
    cursor: pointer;
}
form .group label.checkbox span, label.checkbox span {
    display: inline-block;
    vertical-align: middle;
    max-width: calc(100% - 60px);
}
form .group label.checkbox input[type=checkbox], label.checkbox input[type=checkbox],
form .group label.checkbox input[type=radio], label.checkbox input[type=radio] {
    display: inline-block;
    width: auto;
    min-width: 0;
    margin: 4px;
    vertical-align: middle;
}
form .group .help, p.help {
    font-size: 0.9em;
    font-style: italic;
}

form input, form textarea, form select, form input[type="text"] {
    padding: 1rem;
    margin: 0.5rem auto;
    border: none;
    cursor: pointer;
    font-weight: bold;
    min-width: 400px;
    width: 400px;
    font-family: "Jost", Arial, sans-serif;
    background: #EEE;
    color: #263934;
    height: auto;
    font-size: 14px;
}
form input[type="file"] {
    background: #EEE;
}
form input[type="submit"] {
    background: #316C29;
    color: #FFF;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.button {
    display: inline-block;
    font-size: 14px;
}
form .button {
    width: 400px;
    min-width: 400px;
}
form input[type="submit"].secondary, .button.secondary {
    background: #EEF0EE;
    color: #263934;
    border: 1px solid #316C29;
}
form input[type="submit"]:hover {
    background: #74BB50;
}
form input[type="submit"].secondary:hover {
}
form .group input[type="submit"].danger, form .group button.danger, a.button.danger {
    background-color: #721c24;
    color: white;
}

/** Split groups using flexbox */
form .split {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
form .split .group {
    flex: 1;
}

.shipping-form-section, .white-panel {
    max-width: 900px;
    background: white;
    padding: 2rem 2rem ;
    margin: 2rem auto 2rem;
    color: black;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.shipping-form-section h3, .readable .shipping-form-section h3 ,
.shipping-form-section h4, .readable .shipping-form-section h4 {
    color: black;
    margin-top: 0;
    padding-top: 0;
}

/**
 * Add to Cart form
 */
form.add-to-cart {
    padding: 2rem;
    background: #B4CCC6;
}
form.add-to-cart .group {
}
form.add-to-cart .group label {
}

form.add-to-cart .seller-instructions {
    white-space: pre-line;
}

form.add-to-cart input, form.add-to-cart textarea, form.add-to-cart select {
}

form.add-to-cart input[type="submit"] {
}

form.low-contrast {
    max-width: 600px;
    margin: 0 auto;
    background: #FFF;
    padding: 2rem;
    box-shadow: 0 0 10px #00000033;
}
form.low-contrast .group p.help {
    max-width: 400px;
}

.address-autocomplete-target {
    border-top: 1px solid #CCC;
    margin-bottom: 2rem;
}
.split .address-autocomplete-target {
    flex: 2;
}
.address-autocomplete-target ul {
    list-style-type: none;
    padding: 0;
    margin: 0;

}
.address-autocomplete-target ul li {
    padding: 8px;
    background: #EEE;
    margin: 0.5rem 0;
    cursor: pointer;
    font-size: 12px;
}
.address-autocomplete-target ul li:hover {
    background: #DDD;
}

/**
 * Payment form (credit card form)
 */
form.payment-form {
    background: #fafafa;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    box-shadow: 0 0 10px #00000099;
}
form.payment-form h1, form.payment-form h2, form.payment-form h3, form.payment-form h4, form.payment-form h5 {
    margin: 0;
    padding: 1rem;
    color: #1D2E23;
}
form.payment-form a {
    color: #316C29;
    text-decoration: none;
}
form.payment-form input, form.payment-form select {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem auto;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: "Jost", Arial, sans-serif;
}

/**
 * Header search form
 */

form.search-form {
}
form.search-form .row {
    display: flex;
    justify-content: center;
    margin: 1rem auto;
    gap: 1rem;
    max-width: 800px;
    padding: 0 1rem;
}
form.search-form input, form.search-form select {
    padding: 1rem 2rem;
    font-size: 1.2em;
    width: 100%;
    max-width: 800px;
    border: none;
    border-radius: 5em;
    background: #316C29;
    color: #FFF;
    margin: 0;
}
form.search-form input::placeholder {
    color: #ddd;
}
form.search-form select, form.search-form .small {
    padding: 1rem;
    font-size: 14px;
    width: 100%;
    max-width: none;
    min-width: 0;
    border: none;
    border-radius: 2em;
    background: #316C29;
    color: #FFF;
    margin: 0;
    appearance: none;
    text-align: left;
}
form.search-form .row select:last-child {
    margin-right: 65px;
}
form.search-form button {
    padding: 1rem;
    font-size: 1.2em;
    border: none;
    border-radius: 5em;
    background: #1f431a;
    color: #FFF;
    cursor: pointer;
}

/**
 * Readable style
 */
.readable {
    background: #B4CCC6;
    color: #1D2E23;
    padding-top: 2rem;
    padding-bottom: 5rem;
}
.readable.balanced {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.readable.slim {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.readable p {
    margin: 0 auto 1rem auto;
    max-width: 500px;
}
.readable p:first-child {
    margin-top: 1rem;
}
.readable h1, .readable h2, .readable h3 {
    margin: 0;
    padding: 1rem;
    color: #1D2E23;
}

.readable .custom-page-content {
    max-width: 800px;
    margin: auto;
    padding: 1rem;
    text-align: left;
}
.readable img, .readable video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 2rem;
}
.readable .custom-page-content img,
.readable .custom-page-content video {
    max-width: 100%;
    height: auto;
}

/* Page/blog design templates (docs/PLAN-REACT-PAGE-BLOG-EDITOR.md, 2026-08-21 entry):
   masthead banner and the twoColumn/twoColumnMasthead secondary rail. */
.page-masthead {
    margin: 0 0 1.5rem;
}
.page-masthead-image {
    display: block;
    height: auto;
    margin: 0;
    max-height: 24rem;
    object-fit: cover;
    width: 100%;
}
.page-columns {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    margin: auto;
    max-width: 1100px;
    padding: 1rem;
    text-align: left;
}
.page-columns .custom-page-content {
    margin: 0;
    padding: 0;
}
.page-column-secondary {
    text-align: left;
}
@media (max-width: 760px) {
    .page-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}
.youtube-embeds {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}
.youtube-embed {
    margin: 0;
}
.youtube-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.youtube-embed figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9em;
}
.readable .custom-page-content p, .readable .custom-page-content h1, .readable .custom-page-content h2, .readable .custom-page-content h3 {
    max-width: 800px;
    padding: 0;
    margin: 0 0 1rem 0;
}
.readable .custom-page-content h1, .readable .custom-page-content h2, .readable .custom-page-content h3 {
    margin: 0 0 2rem 0;
}

.readable a {
    color: #316C29;
    text-decoration: none;
}
.readable a:hover {
    color: #1D2E23;
}

/**
 * DIY Payment Page
 */
.payment-methods {
}
.payment-methods .readable {
}
.payment-methods .readable p {
}
.payment-methods .readable h2, .payment-methods .readable h3 {
}
.payment-methods ol.how-to-pay {
    padding: 0;
    margin: 0 auto;
    max-width: 500px;
    text-align: left;
}
.payment-methods ol.how-to-pay li {
    margin: 1rem 0;
}
.payment-methods ol.how-to-pay li.bold {
    font-weight: bold;
}
.payment-method a {
    display: inline-block;
    padding: 1rem;
    background: white   ;
    color: black;
}

table {
    border-collapse: collapse;
    text-align: left;
}
table td, table th {
    padding: 4px 8px;
}
/**
 * Customer Order page
 */
table.order-messages {
    width: 90%;
    max-width: 800px;
    margin: auto;
    border-collapse: collapse;
}
table.order-messages td {
    border: 1px solid #DDD;
    padding: 1rem;
    background: #eee;

}

table.order-summary {
    text-align: left;
    width: 100%;
}
table.order-summary td ,
table.order-summary th {
    border: 1px solid #ccc;
    padding: 1rem;
    word-wrap: break-word;
    word-break: break-word;
}

/**
 * Shopper/Market cart table
 */
table.checkout-one-subtotal {
    width: 100%;
    max-width: 800px;
    margin: auto auto 40px;
    border-bottom: 1px solid #888;
    text-align: left;
}
table.checkout-one-subtotal th {
    font-weight: bold;
    padding: 8px 0;
}
table.checkout-one-subtotal td {
    font-weight: normal;
    padding: 8px 0;
}

/**
 * Get/view file page
 */

.get-file-wrapper {
    padding-top: 1rem;
}

.other-files-in-set {
    width: 100%;
    margin-top: 1.5rem;
}

.other-files-in-set ul {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    list-style: none;
}

.other-files-in-set li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid currentColor;
    border-radius: 6px;
}

.other-files-in-set li > div {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .other-files-in-set li {
        align-items: stretch;
        flex-direction: column;
    }

    .other-files-in-set .button {
        min-height: 44px;
        justify-content: center;
    }
}

.video-viewer-wrapper {
    padding: 1rem;
    margin: 1rem auto;
    max-width: 1600px;
}
.video-viewer-wrapper video {
    width: 100%;
    height: auto;
}

.download-wrapper {
    padding: 1rem;
    margin: 1rem auto;
}

.download-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.flash.error {
    background: #9b1e00;
    padding: 1em;
    color: white;
}
.flash.error a { color: white; }
.flash.error a:hover { color: #fbc7b9; }
.flash.success {
    background: #316C29;
    padding: 1em;
    color: white;
}
.flash.success a { color: white; }
.flash.success a:hover { color: #cfe7ca; }
.flash.warning {
    background: #ad6000;
    padding: 1em;
    color: white;
}
.flash.warning a { color: white; }
.flash.warning a:hover { color: #e1d9cc; }

div.global-alert {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 80%;
    max-width: 600px;
    text-align: center;
    height: 60px;
    background: #9b1e00;
    padding: 1em;
    color: white;
}
div.global-alert a {
    color: white;
    text-decoration: underline;
}
/* pad body if there's a global alert */
body.has-global-alert {
    padding-top: 60px;
}

/**
 * Paginator
 */
.paginator {
    padding: 2em 0 ;
}
.paginator ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.paginator ul li {

}

.paginator ul li a {
    padding: 5px;
}
.paginator ul li a.active {
    background: #316C29;
    color: #FFF;
    border-radius: 5px;
}
.paginator ul li a:hover {

}

/**
 * Marketplace channel tiles
 */
.channel-tiles {
    gap: 2rem;
}
.channel-tiles.no-products {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.channel-tile {
    display: flex;
    align-items: center;
    background: #FFFFFF33;
    width: 100%;
    padding: 1rem;
    gap: 2rem;
}
.channel-tiles .channel-tile.channel-tile--no-products {
    align-items: stretch;
    border: 1px solid #FFFFFF1F;
    border-radius: var(--border-radius);
    flex: 1 1 360px;
    max-width: 520px;
    padding: 1.25rem;
    width: auto;
}
.channel-tile .product-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}
.channel-tiles.no-products .channel-tile .product-previews {
    display: none;
}
.channel-tile .product-previews .product-preview {
    height: 100%;
    position: relative;
    flex: 1 1 150px;
    max-width: 400px;
}
.channel-tile .product-previews .product-preview a {
    display: block;
    text-decoration: none;
}
.channel-tile .product-previews .product-preview a.img {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 160px;
    margin-bottom: 1em;

}
.channel-tile .product-previews .product-preview a.save-product-btn {
    font-size: 12px;
    color: #CCC;
}
.channel-tile .channel-info {
    width: 330px;
}
.channel-tile .channel-info .channel-avatar {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin: 1rem auto;
    position: relative;
}
.channel-tile .channel-info .channel-avatar .clickarea {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}
.channel-tile .channel-info h4 {
    margin-bottom: 5px;
}
.channel-tile .channel-info .save-seller-wrapper {
    margin-top: 0;
    font-size: 12px;
}
.channel-tile .channel-info .save-seller-wrapper a {
    color: #CCC;
    text-decoration: none;
}
.channel-tile .channel-info .save-seller-wrapper a.saved {
    color: #74BB50;
}
.channel-tile .channel-info .subtitle {
    margin-bottom: 2px;
    font-size: 15px;
}
.channel-tile .channel-info .description {
    margin-top: 0;
    font-size: 13px;
}
.channel-tile--no-products .channel-info {
    align-content: center;
    column-gap: 1.25rem;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    margin: 0;
    text-align: left;
    width: 100%;
}
.channel-tile--no-products .channel-info > :not(.channel-avatar) {
    grid-column: 2;
}
.channel-tile--no-products .channel-info .channel-avatar {
    grid-column: 1;
    grid-row: 1 / span 4;
    height: 112px;
    margin: 0;
    width: 112px;
}
.channel-tile--no-products .channel-info h4 {
    align-self: end;
    margin: 0 0 0.25rem;
}
.channel-tile--no-products .channel-info .save-seller-wrapper,
.channel-tile--no-products .channel-info .subtitle,
.channel-tile--no-products .channel-info .description {
    margin: 0.15rem 0;
}

/**
 * Storefront friend tiles (extends channel tiles)
 */
.friend-tiles {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
}
.friend-tile.channel-tile {
    flex: 1 1 400px;
    max-width: 400px;
    flex-direction: column;
    align-items: center;
}
@media (max-width: 768px) {
    .friend-tile.channel-tile {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
/**
 * Shopping cart
 */

.cart-items {
    padding: 0;
    text-align: left;
}
.cart-items .cart-item-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(100% - 2rem, 980px);
    margin: 0 auto;
}
.cart-items .cart-item-card {
    overflow: hidden;
    border: 1px solid #8EADA4;
    border-radius: 0;
    background: #DDE9E4;
    box-shadow: 0 8px 20px rgba(29, 46, 35, 0.16);
}
.cart-items .cart-item-card form {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) minmax(280px, 320px);
    grid-template-areas:
        "thumb title purchase"
        "thumb options purchase"
        "thumb actions purchase";
    column-gap: 1rem;
    row-gap: 0.62rem;
    padding: 0.85rem;
    align-items: stretch;
    text-align: left;
}
.cart-items .cart-item-thumb {
    grid-area: thumb;
    align-self: start;
}
.cart-items .cart-item-title {
    grid-area: title;
    min-width: 0;
}
.cart-items .cart-item-title h3 {
    margin: 0;
    padding: 0;
    font-size: 1.05rem;
    line-height: 1.2;
}
.cart-items .cart-item-title h3 a {
    color: #1D2E23;
    text-decoration: none;
}
.cart-items .cart-item-title h3 a:hover {
    color: #316C29;
    text-decoration: underline;
}
.cart-items .cart-item-title .seller {
    margin: 0.25rem 0 0;
    color: #496259;
    font-size: 0.88rem;
}
.cart-items .cart-item-title .seller a {
    color: #316C29;
}
.cart-items .cart-item-options-fields,
.cart-items .cart-item-purchase {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: flex-start;
}
.cart-items .cart-item-options {
    grid-area: options;
    align-content: flex-start;
}
.cart-items .cart-item-options-toggle {
    display: none;
}
.cart-items .cart-item-purchase {
    grid-area: purchase;
    padding: 0.75rem;
    border: 1px solid #9DB9B1;
    border-radius: 0;
    background: #CFE0DA;
    text-align: left;
}
.cart-items .cart-item-options-fields .group,
.cart-items .cart-item-purchase .group {
    flex: 1 1 100%;
    min-width: 0;
    margin: 0;
}
.cart-items .cart-item-card form label {
    margin-bottom: 0.25rem;
    color: #263934;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}
.cart-items .cart-item-card form input,
.cart-items .cart-item-card form textarea,
.cart-items .cart-item-card form select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    border: 1px solid #8EADA4;
    border-radius: 0;
    background-color: #EEF3F0;
    color: #1D2E23;
    font-size: 0.9rem;
    cursor: text;
}
.cart-items .cart-item-card form select,
.cart-items .cart-item-card form input[type="submit"] {
    cursor: pointer;
}
.cart-items .cart-item-card .product-img {
    display: flex;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #9DB9B1;
    border-radius: 0;
    background-color: #CFE0DA;
    color: #316C29;
    font-size: 2rem;
    text-decoration: none;
}
.cart-items .cart-item-card .product-img.placeholder {
    background: linear-gradient(135deg, #CFE0DA 0%, #E6EFEA 100%);
}
.cart-items .cart-item-price {
    display: flex;
    flex: 1 1 100%;
    gap: 0.5rem;
    align-items: baseline;
    justify-content: space-between;
    margin: 0;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid #9DB9B1;
}
.cart-items .cart-item-price span {
    color: #496259;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}
.cart-items .cart-item-price strong {
    color: #111b14;
    font-size: 1.28rem;
}
.cart-items .cart-item-actions {
    grid-area: actions;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
    padding-top: 0.25rem;
}
.cart-items .cart-item-actions .update-btn-wrapper input {
    width: auto;
}
.cart-items .remove-cart-item {
    color: #9A2F2F;
    font-weight: 700;
    text-decoration: none;
}
.cart-items .remove-cart-item:hover {
    color: #721C24;
    text-decoration: underline;
}
.js-active .cart-items .update-btn-wrapper {
    display: none;
}
.cart-items .save-indicator {
    display: inline-block;
    min-height: 1.25rem;
    color: #496259;
    font-size: 0.85rem;
}
.cart-items .save-indicator.is-saved {
    color: #316C29;
}
.cart-items .save-indicator.is-error {
    color: #721c24;
}
.cart-items .cart-item-card p {
    margin: 0;
}
.cart-items .cart-item-empty-options {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    width: fit-content;
    padding: 0.42rem 0.58rem;
    border: 1px solid #9DB9B1;
    border-radius: 0;
    background: #CFE0DA;
    color: #263934;
    font-size: 0.86rem;
}
.cart-items .cart-item-empty-options i {
    color: #316C29;
    font-size: 0.8rem;
}
.cart-items + form {
    max-width: 520px;
    margin: 1.5rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(38, 57, 52, 0.32);
}
.cart-items + form .group {
    margin-bottom: 1rem;
}

/**
 * Blog
 */

.blog-post-previews {
    display: flex;
    gap: 4rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.blog-post-preview {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-around;
    flex: 1 1 100%;
    padding: 1rem;
}
.blog-post-preview figure {
    margin: 0;
}
.blog-post-preview figure img {
    margin: auto;
}
.blog-post-preview .right {
    flex: 2;
}
.blog-post-preview h2 {
    margin: 2rem 0 0 0;
    padding: 0;
}
.blog-post-preview p.byline {
    font-size: 0.8em;
    font-style: italic;
}
.blog-post-preview p.excerpt {
}
.blog-post-preview p.read-more {

}

.shopper-subscription-feed {}
.shopper-subscription-feed .blog-post-preview {
}

/**
 * Toast
 */
#toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #222;
    color: #FFF;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px #00000099;
    display: none;
    opacity: 0.95;
}
#toast.show {
    display: block;
}
#toast.success {
    background: #316C29;
}
#toast.error {
    background: #9b1e00;
}
#toast.warning {
    background: #ad6000;
}

/**
 * Product gallery lightbox
 */
#product-gallery-lightbox-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000CC;
    display: none;
    z-index: 200;
}
#product-gallery-lightbox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFF;
    padding: 1rem;
    min-width: 60vw;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

#product-gallery-lightbox-content figure {
    margin: 0;
}
#product-gallery-lightbox-content figure img {
    max-width: 100%;
    height: auto;
}
#product-gallery-lightbox-content figure figcaption {
    text-align: center;
    color: #111b14;
    margin: 1rem;
}

/**
 * Product reviews
 */

.review {
    font-size: 13px;
    margin-top: 2rem;
}
.review .byline {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 0;
}
.review p {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;

}

/**
 * Comments
 */
.comment-wrapper {
    padding: 1rem 0;
    max-width: 600px;
    margin: auto;
    text-align: left;
}
.comment-wrapper .byline {
    font-size: 13px;
    font-style: italic;
    margin-bottom: 0;
}
.comment-wrapper .comment {
}
.comment-wrapper .replies {
    padding-left: 2rem;
}

/**
 * Utilities
 */
.lifted {
    margin-top: -1rem;
}
/**
 * Responsive styles
 */

@media screen and (max-width: 900px){
    .storefront > header {
        padding: 1.5rem 0;
    }
    .storefront > header h1 {
        font-size: 2.25em;
        line-height: 1.1;
    }
    section.product-details .extended-description summary {
        cursor: pointer;
        display: list-item;
        font-size: 1.1rem;
        font-weight: bold;
        list-style-position: inside;
        padding: 1rem 2rem;
    }
    section.product-details .extended-description[open] summary {
        border-bottom: 1px solid currentColor;
    }
    section.product-details .extended-description .extended-description-content > h3:first-child {
        display: none;
    }
    section.product-details .product-detail .product-tile {
        height: auto;
        width: 94vw;
    }
    section.product-details .product-detail.small .product-tile {
        width: 94vw;
    }
    .product-tile .random-hj {
        top: 0;
        right: 0;
    }

    .product-tile:hover img.product-image {
        /* Disable animation on mobile */
        /*animation-name: none;*/
    }

    aside.storefront-sidebar {
        display: none;
    }
    aside.storefront-sidebar.open {
        display: block;
        position: fixed;
        z-index: 300;
    }
    /* Marketplace owns its mobile launcher treatment: reserve the right side for the
       upcoming facet explorer FAB, and let the drawer's own control close an open menu. */
    .marketplace-floating-tools .sidebar-launcher {
        left: 1rem;
        right: auto;
    }
    .marketplace-floating-tools.marketplace-menu-open .sidebar-launcher {
        visibility: hidden;
        pointer-events: none;
    }
    aside.marketplace-sidebar .marketplace-sidebar-hide {
        display: flex;
    }
    .floating-tools {
        display: block;
    }

    aside.storefront-sidebar ~ div.storefront,
    aside.storefront-sidebar + .storefront-branding-media {
        margin-left: 0;
    }
    .storefront-banner-frame {
        aspect-ratio: 2 / 1;
    }
    .storefront-profile-picture {
        width: 104px;
        height: 104px;
    }
    .storefront-branding-media.has-banner.has-profile-picture {
        margin-bottom: 52px;
    }
    .storefront-branding-media.has-banner .storefront-profile-picture {
        left: 1rem;
        bottom: -52px;
    }
    .storefront-branding-media.has-banner + .storefront > header {
        padding-top: 0.75rem;
    }
    aside.storefront-sidebar nav {
        margin-bottom: 0;
    }
    .product-tiles {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    section#featured-products .meta-bottom p.store-cta {
        line-height: 1.2em;
    }
    section#featured-products .meta-bottom p.store-cta a {
        padding: 1rem;
    }
    form input, form input[type=text], form textarea, form select, form .button {
        min-width: 100px;
        width: 90%;
    }
    form .split {
        display: block;
    }
    form.add-to-cart input, form.add-to-cart textarea, form.add-to-cart select, form.add-to-cart .button {
        min-width: 100%;
    }
    .payment-methods ol.how-to-pay {
        max-width: 100%;
        padding: 0 1rem 0 2rem;
    }

    .subscription-cta h2 {
        font-size: 2em;
    }
    .subscription-cta h5 {
        font-size: 1.2em;
    }
    .subscription-cta a.cta {
        font-size: 1.2em;

    }
    .readable {
        padding: 0.5rem;
    }
    .shipping-form-section, .white-panel {
        padding: 1rem;
    }
    table.order-summary td, table.order-summary th {
        padding: 0.5rem;
        font-size: 12px;
    }
    table.checkout-preview-table,
    table.checkout-preview-table tbody {
        display: block;
        width: 100%;
    }
    table.checkout-preview-table thead {
        display: none;
    }
    table.checkout-preview-table tr.checkout-preview-line-item {
        border: 1px solid #ccc;
        border-radius: 4px;
        display: block;
        margin-bottom: 1rem;
        overflow: hidden;
    }
    table.checkout-preview-table tr.checkout-preview-line-item td {
        align-items: baseline;
        border: 0;
        border-bottom: 1px solid #e5e5e5;
        display: flex;
        font-size: 0.9rem;
        gap: 1rem;
        justify-content: space-between;
        text-align: right;
    }
    table.checkout-preview-table tr.checkout-preview-line-item td:last-child {
        border-bottom: 0;
    }
    table.checkout-preview-table tr.checkout-preview-line-item td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-weight: bold;
        text-align: left;
    }
    table.checkout-preview-table tr.checkout-preview-line-item td[data-label="Item"] {
        background: #f5f5f5;
        font-size: 1rem;
        font-weight: bold;
    }
    table.checkout-preview-table tr.checkout-preview-summary-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }
    table.checkout-preview-table tr.checkout-preview-summary-row td {
        border: 0;
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: 0.9rem;
    }
    table.checkout-preview-table td.checkout-preview-summary-label {
        text-align: left;
    }
    table.checkout-preview-table td.checkout-preview-summary-value {
        min-width: 7rem;
        text-align: right;
    }
    table.checkout-preview-table td.checkout-preview-summary-value::before {
        content: none;
    }
    table.checkout-preview-table tr.total-row td {
        border-bottom: 0;
        border-top: 2px solid #888;
        font-size: 1rem;
    }

    .channel-tile {
        display: block;
    }
    .channel-tile .product-previews {
        display: block;
    }
    .channel-tile .product-previews .product-preview {
        width: 100%;
        margin: 1rem auto;
    }
    .channel-tile .channel-info {
        width: 100%;
        margin-bottom: 3rem;
    }
    .channel-tile--no-products .channel-info {
        display: grid;
        margin-bottom: 0;
    }
    .channel-tile .product-previews .product-preview a.img {
        width: 100%;
    }
    .cart-items .cart-item-card form {
        column-gap: 0.75rem;
        row-gap: 0.75rem;
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-areas:
            "thumb title"
            "options options"
            "purchase purchase"
            "actions actions";
    }
    .cart-items .cart-item-thumb {
        width: 72px;
        height: 72px;
    }
    .cart-items .cart-item-card .product-img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1;
        font-size: 1.2rem;
    }
    .cart-items .cart-item-card .remove-cart-item {
        display: block;
    }

    /* Customization options collapse behind a toggle on mobile */
    .cart-items .cart-item-options-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        border: 1px solid #9DB9B1;
        background: #CFE0DA;
        color: #1D2E23;
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
        padding: 0.6rem 0.75rem;
        cursor: pointer;
    }
    .cart-items .cart-item-options-toggle i {
        margin-left: auto;
        transition: transform 0.15s ease;
    }
    .cart-items .cart-item-options.expanded .cart-item-options-toggle i {
        transform: rotate(180deg);
    }
    .cart-items .cart-item-options-fields {
        display: none;
        margin-top: 0.65rem;
    }
    .cart-items .cart-item-options.expanded .cart-item-options-fields {
        display: flex;
    }

    #product-gallery-lightbox {
        width: 98vw;
    }

    form.search-form .row select:last-child {
        margin-right: 0;
    }
}

@media screen and (max-width: 480px) {
    .channel-tiles .channel-tile.channel-tile--no-products {
        flex-basis: 100%;
        max-width: none;
        padding: 1rem;
    }
    .channel-tile--no-products .channel-info {
        column-gap: 1rem;
        grid-template-columns: 80px minmax(0, 1fr);
    }
    .channel-tile--no-products .channel-info .channel-avatar {
        height: 80px;
        width: 80px;
    }
    section.product-details .extended-description {
        width: calc(100% - 2rem);
    }
}

/* Breadcrumb Navigation Styles */
.breadcrumbs {
    text-align: left;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid rgba(116, 187, 80, 0.3);
}

.breadcrumbs a {
    color: #74BB50;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #B4CCC6;
    text-decoration: underline;
}

.breadcrumbs span {
    color: #B4CCC6;
}

/* Folder Hierarchy Styles for Dashboard */
.hierarchy-indent {
    color: #999;
    font-family: monospace;
}

.hierarchy-connector {
    color: #999;
    font-family: monospace;
}

/* Empty State Styles */
.empty-state {
    padding: 3rem;
    text-align: center;
    opacity: 0.6;
}

.empty-state a {
    color: #74BB50;
    text-decoration: none;
}

.empty-state a:hover {
    color: #B4CCC6;
    text-decoration: underline;
}

/* Image Protection Styles - Make product images harder to save */
.product-tile img.product-image,
.product-gallery figure img,
.product-detail img {
    /* Disable right-click context menu */
    pointer-events: none;
    /* Prevent text/image selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Prevent drag and drop */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Re-enable pointer events on clickable parent elements */
.product-tile .clickarea,
.product-gallery figure {
    pointer-events: auto;
}

/* ---------------------------------------------------------------------------
   Shopper account center — overview landing (/shopper/account)
   Phase 1 of docs/PLAN-SHOPPER-ACCOUNT-SETTINGS.md. Neutral cards, no
   green-to-transparent section gradient.
   --------------------------------------------------------------------------- */
.shopper-account section {
    margin-bottom: var(--space-2xl);
}

.shopper-account__section-head {
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-soft);
    padding-bottom: var(--space-xs);
}

.shopper-account__section-head h2 {
    font-size: var(--text-xl);
    margin: 0;
}

.shopper-account__identity {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.shopper-account__avatar {
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius-pill);
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.shopper-account__identity-text p {
    margin: 0;
}

.shopper-account__name {
    font-size: var(--text-lg);
    font-weight: 600;
}

.shopper-account__legal-name,
.shopper-account__meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.shopper-account__rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.shopper-account__row {
    display: grid;
    grid-template-columns: 12rem 1fr auto;
    gap: var(--space-md);
    align-items: baseline;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border-soft);
}

.shopper-account__row:last-child {
    border-bottom: 0;
}

.shopper-account__row-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.shopper-account__row-value {
    word-break: break-word;
}

.shopper-account__row-action {
    font-size: var(--text-sm);
    white-space: nowrap;
}

.shopper-account__muted {
    color: var(--color-text-subtle);
}

.shopper-account__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: var(--text-xs);
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    margin-left: var(--space-2xs);
}

.shopper-account__chip--ok {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border-color: var(--color-success-border);
}

.shopper-account__chip--warn {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border-color: var(--color-warning-border);
}

.shopper-account__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: var(--space-md);
}

.shopper-account__cards a {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    height: 100%;
    padding: var(--space-md);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color var(--motion-base) var(--ease-standard),
                background var(--motion-base) var(--ease-standard);
}

.shopper-account__cards a:hover {
    border-color: var(--color-accent);
    background: var(--color-surface-soft);
}

.shopper-account__card-title {
    font-weight: 600;
}

.shopper-account__card-help {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

@media (max-width: 40rem) {
    .shopper-account__row {
        grid-template-columns: 1fr auto;
    }
    .shopper-account__row-label {
        grid-column: 1 / -1;
    }
}
