/* Ozark Attitudes storefront. Community Store still owns catalog and checkout behavior. */
.cs-site.cstore-commerce { --cstore-shop-bg:#f6f0e4; --cstore-shop-panel:#fffaf2; --cstore-shop-muted:#465d50; background:var(--cstore-shop-bg); }
.cstore-commerce .cstore-backdrop,.cstore-commerce .cstore-corner { display:none; }
.cs-site .cstore-shop-header { gap:clamp(.55rem,2vw,1.5rem); padding-block:.85rem; background:#0b392b; border-bottom:1px solid var(--cstore-line); }
.cstore-shop-header .cs-brand { margin-inline-end:auto; }
.cstore-shop-menu,.cstore-shop-pill { position:relative; }
.cstore-shop-menu summary,.cstore-shop-pill summary { display:flex; align-items:center; gap:.55rem; cursor:pointer; list-style:none; }
.cstore-shop-menu summary::-webkit-details-marker,.cstore-shop-pill summary::-webkit-details-marker { display:none; }
.cstore-shop-menu summary::after,.cstore-shop-pill summary::after { content:""; width:.45rem; height:.45rem; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(45deg); margin-block-end:.25rem; flex:none; }
.cstore-shop-menu[open] summary::after,.cstore-shop-pill[open] summary::after { transform:rotate(225deg); margin-block-end:-.15rem; }
.cs-site .cstore-shop-menu .cs-nav,.cstore-shop-options { position:absolute; z-index:5; inset-block-start:calc(100% + .45rem); inset-inline-start:0; width:max-content; max-width:min(85vw,20rem); min-width:11rem; padding:.4rem; border:1px solid var(--cstore-line); border-radius:.75rem; background:#fffaf2; box-shadow:0 10px 25px #19392e26; }
.cs-site .cstore-shop-menu .cs-nav ul { display:grid; gap:.25rem; }
.cstore-shop-options a,.cstore-shop-menu .cs-nav a { display:block; padding:.45rem .7rem; border-radius:.4rem; text-decoration:none; }
.cstore-shop-options a:hover,.cstore-shop-options a[aria-current=true] { background:#ede3cf; color:var(--cstore-cyan); }
.cs-site :is(.cstore-shop-cart,.cstore-shop-back) { display:inline-flex; align-items:center; min-height:42px; border:1px solid #315a4b76; padding:.35rem .9rem; border-radius:999px; text-decoration:none; }
.cs-site :is(.cstore-shop-cart,.cstore-shop-back):hover { background:#eae0ca; }
.cstore-shop-home { text-decoration:none; }
.cstore-shop-shell { width:min(100% - 2rem, 1320px); margin-inline:auto; padding-block:clamp(1.2rem,3vw,2.5rem) 3rem; }
.cstore-shop-intro { margin-block-end:1.1rem; }
.cs-site .cstore-shop-intro h1 { margin:0; font-size:clamp(2rem,4vw,3.5rem); }
.cstore-shop-intro .eyebrow { margin-block-end:.4rem; }
.cstore-shop-featured { margin-block-end:1rem; }
.cstore-shop-filters { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; border-bottom:1px solid var(--cstore-line); padding-block:0 .8rem; margin-block-end:1rem; font-size:.9rem; }
.cstore-shop-pill summary { min-height:44px; border:1px solid #32584768; border-radius:999px; padding:.3rem .9rem; }
.cstore-shop-pill summary:hover,.cstore-shop-pill[open] summary { border-color:var(--cstore-cyan); }
.cstore-shop-sort { margin-inline-start:auto; }
.cstore-shop-sort summary { border-color:transparent; padding-inline-end:.5rem; }
.cstore-shop-sort summary span { border-inline-start:1px solid #32584768; padding-inline-start:.6rem; }
.cstore-shop-sort .cstore-shop-options { inset-inline:auto 0; }
.cstore-shop-shell .store-product-list-block { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.cstore-shop-shell .store-product-list-block > * { grid-column:1 / -1; }
.cstore-shop-shell .store-product-list-block > .store-product-list { display:contents; }
.cstore-shop-shell .store-product-list .store-product-list-item { width:100%; min-width:0; max-width:none; padding:0; margin:0!important; }
.cstore-shop-shell .store-product-list-item > form { height:100%; padding:1rem; border:1px solid var(--cstore-line); border-radius:.8rem; background:var(--cstore-shop-panel); }
.cs-site .cstore-shop-shell .store-product-list-name { margin:0 0 .55rem; font-size:1.1rem; letter-spacing:-.01em; }
.cstore-shop-shell .store-product-list-description { margin-block:.4rem .8rem; color:var(--cstore-shop-muted); font-size:.9rem; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.cstore-shop-shell .store-product-list-price { color:var(--cstore-cyan); font-weight:700; margin-block-end:.5rem; }
.cstore-shop-shell .store-product-list-item img { width:100%; aspect-ratio:4/3; object-fit:contain; border-radius:.45rem; }
.cstore-shop-shell .store-product-options :is(select,input:not([type=hidden]),textarea) { width:100%; max-width:100%; border:1px solid #32584768; border-radius:.4rem; background:#fffdf8; color:#18362b; padding:.45rem; }
.cstore-shop-shell :is(.store-btn-add-to-cart,.store-btn-more-details) { max-width:100%; border-radius:999px; padding:.4rem .85rem; font:inherit; font-size:.88rem; text-decoration:none; }
.cstore-shop-shell .store-btn-add-to-cart { color:#fffaf2; background:var(--cstore-cyan); border:1px solid var(--cstore-cyan); cursor:pointer; font-weight:700; }
.cstore-shop-shell .store-btn-more-details { display:inline-block; border:1px solid #32584768; background:transparent; }
.cstore-shop-shell .store-product-list-sort { display:none; }
.cstore-shop-shell .pagination { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:.4rem; padding:0; margin:1rem 0 0; list-style:none; }
.cs-site .cstore-shop-shell .pagination li { margin:0; }
.cstore-shop-shell .page-link { display:inline-grid; place-items:center; min-width:42px; min-height:42px; padding:.3rem .55rem; border:1px solid var(--cstore-line); border-radius:999px; text-decoration:none; }
.cstore-shop-shell .page-item.active .page-link { background:var(--cstore-cyan); color:#fffaf2; font-weight:700; }
.cstore-shop-shell .page-item.disabled .page-link { opacity:.55; }
.cstore-shop-shell .pagination .visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.cstore-shop-back { margin-block-end:1rem; }
.cstore-shop-shell .store-product-block > .row { display:grid; gap:clamp(1rem,3vw,2rem); grid-template-columns:minmax(0,1fr); }
.cstore-shop-shell .store-product-block > .row:has(.store-product-image img) { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); }
.cstore-shop-shell .store-product-block .row > * { width:100%; max-width:none; min-width:0; }
.cstore-shop-shell .store-product-image:not(:has(img)) { display:none; }
.cstore-shop-shell .store-product-image { grid-column:1; grid-row:1; }
.cstore-shop-shell .store-product-details { padding:clamp(1rem,3vw,2rem); background:var(--cstore-shop-panel); border:1px solid var(--cstore-line); border-radius:1rem; }
.cs-site .cstore-shop-shell .store-product-name { font-size:clamp(1.7rem,4vw,2.7rem); text-transform:none; text-shadow:none; }
.cstore-shop-shell .store-product-details .store-product-price { font-size:1.3rem; font-weight:700; color:var(--cstore-cyan); }
.cstore-shop-shell .store-product-detailed-description { border-top:1px solid var(--cstore-line); padding-block:1rem; margin-block-start:1rem; }
.cstore-shop-shell :focus-visible,.cstore-shop-header :focus-visible { outline:2px solid var(--cstore-cyan); outline-offset:3px; }
@media(max-width:960px) { .cstore-shop-shell .store-product-list-block { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:720px) {
    .cstore-shop-shell .store-product-list-block { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
    .cstore-shop-shell .store-product-block > .row:has(.store-product-image img) { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:380px) {
    .cstore-shop-shell .store-product-list-block { grid-template-columns:minmax(0,1fr); }
    .cstore-shop-sort { margin-inline-start:0; }
}

/* Shop controls enhance the existing Community Store forms. */
.cstore-shop-menu summary { width:44px; height:44px; justify-content:center; border:1px solid var(--cstore-line); border-radius:999px; }
.cstore-shop-menu summary:hover { border-color:var(--cstore-cyan); }
.cstore-shop-menu summary::after { display:none; }
.cstore-option-only :is(.store-product-options,.store-btn-add-to-cart-container,.store-btn-add-to-cart) { display:none !important; }
.cs-site .cstore-shop-shell .cstore-option-link { display:inline-flex; min-height:42px; align-items:center; border:1px solid #315a4b76; border-radius:999px; padding:.35rem .95rem; color:var(--cstore-cyan); font-weight:700; }
.cstore-option-pills { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.4rem; }
.cstore-option-pills button,.cstore-qty button { min-height:44px; border:1px solid #32584768; color:#18362b; background:#fffaf2; font:inherit; cursor:pointer; }
.cstore-option-pills button { border-radius:999px; padding:.35rem .85rem; }
.cstore-option-pills button[aria-pressed=true] { color:#fffaf2; background:var(--cstore-cyan); border-color:var(--cstore-cyan); font-weight:700; }
.cstore-option-pills button:disabled,.cstore-qty button:disabled { opacity:.45; cursor:default; }
.cstore-option-pills [hidden],.cstore-shop-shell select.cstore-option-native { display:none !important; }
.cstore-qty { display:inline-flex; align-items:center; border:1px solid #32584768; border-radius:999px; overflow:hidden; margin-block:.3rem .55rem; max-width:100%; }
.cstore-qty button { min-width:44px; border:0; font-size:1.15rem; }
.cstore-qty button:focus-visible { outline-offset:-3px; }
.cstore-shop-shell .cstore-qty input.store-product-qty { width:4.2rem; min-width:0; height:44px; margin:0; padding:.25rem; border:0; border-radius:0; color:#18362b; background:#fffdf8; text-align:center; font:inherit; appearance:textfield; }
.cstore-qty input::-webkit-inner-spin-button,.cstore-qty input::-webkit-outer-spin-button { appearance:none; margin:0; }
.cstore-shop-shell form:not(:has(.store-btn-add-to-cart:not([disabled]):not([hidden]):not(.hidden):not(.d-none))) .cstore-qty { display:none; }

/* Keep the purchase row at the bottom of each catalog tile. */
.cstore-shop-shell .store-product-list-item > form { display:flex; flex-direction:column; align-items:stretch; }
.cstore-shop-shell .store-product-list-item .store-product-options { margin-block:.15rem .6rem; }
.cstore-shop-shell .store-product-list-item .store-product-option-group { margin-bottom:.55rem !important; }
.cstore-shop-shell .store-product-list-item .cstore-option-pills { gap:.3rem; margin-top:.2rem; }
.cstore-shop-shell .store-product-list-item .cstore-option-pills button { min-height:34px; padding:.2rem .6rem; font-size:.8rem; }
.cs-site .cstore-shop-shell .store-product-list-item .store-btn-add-to-cart-container { margin:auto 0 0; padding-top:.45rem; }
.cs-site .cstore-shop-shell .store-product-list-item .store-btn-more-details-container { margin-bottom:.45rem; }
.cstore-shop-shell .cstore-cart-native-qty,.cstore-shop-shell .cstore-cart-added,.cstore-shop-shell .cstore-inline-qty[hidden] { display:none !important; }
.cstore-shop-shell .cstore-inline-qty { margin:0; background:var(--cstore-cyan); color:#fffaf2; border-color:var(--cstore-cyan); vertical-align:middle; }
.cstore-inline-qty button { background:transparent; color:inherit; }
.cstore-inline-qty output { min-width:2.5rem; color:inherit; font-weight:700; text-align:center; }
.cstore-cart-feedback:not(:empty) { display:block; color:var(--cstore-shop-muted); margin-top:.35rem; font-size:.8rem; }
.cstore-shop-shell form[aria-busy=true] .store-btn-add-to-cart { opacity:.65; cursor:progress; }
.cstore-commerce .cstore-shop-shell .store-product-option-group:has(.cstore-cart-native-qty):not(:has(.cstore-option-pills,select,textarea,input:not(.cstore-cart-native-qty):not([type=hidden]))) { display:none; }

/* Cart and checkout share the shop shell while keeping native checkout fields. */
.cstore-cart-count:not([hidden]) { display:inline-grid; place-items:center; min-width:1.65rem; height:1.65rem; padding-inline:.35rem; border-radius:999px; background:var(--cstore-cyan); color:#fffaf2; font-size:.8rem; letter-spacing:0; }
.cs-site .cstore-shop-cart { gap:.5rem; }
.cstore-shop-flow { max-width:1150px; }
.cstore-flow-links { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1.25rem; margin-bottom:1.15rem; }
.cstore-flow-links .cstore-shop-back { margin:0; gap:.45rem; }
.cs-site .cstore-shop-flow :is(.store-cart-page,.store-checkout-page) > h1 { margin:0 0 1.15rem; font-size:clamp(1.9rem,4vw,3rem); text-transform:none; text-shadow:none; }
.cs-site .cstore-shop-flow .store-checkout-page h2 { font-size:clamp(1.2rem,2.5vw,1.6rem); margin-block:0 .8rem; }
.cstore-shop-flow .store-checkout-form-row { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); align-items:start; gap:1.15rem; margin:0; }
.cstore-shop-flow .store-checkout-form-row > * { width:auto; max-width:none; min-width:0; padding:0; }
.cstore-shop-flow :is(.store-checkout-form-shell,.store-checkout-cart-contents,.store-cart-page) { padding:clamp(.85rem,2.5vw,1.5rem); border:1px solid var(--cstore-line); border-radius:1rem; background:var(--cstore-shop-panel); }
.cstore-shop-flow .store-checkout-form-shell .row { --bs-gutter-x:1rem; }
.cstore-shop-flow .store-checkout-form-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),select,textarea) { display:block; width:100%; max-width:100%; min-width:0; min-height:44px; border-radius:.5rem; }
.cstore-shop-flow .store-checkout-form-shell label { display:block; margin-bottom:.3rem; font-size:.9rem; }
.cstore-shop-flow .store-checkout-cart-contents :is(th,td):not(:first-child), .cstore-shop-flow :is(.store-cart-item-price,.store-cart-grand-total-value) { white-space:nowrap; font-variant-numeric:tabular-nums; }
.cstore-shop-flow .store-checkout-cart-contents :is(th,td) { padding:.55rem .4rem; }
.cstore-shop-flow .store-checkout-cart-contents ul { padding-inline-start:0; list-style:none; }
.cstore-shop-flow .store-cart-table { width:100%; }
.cstore-shop-flow .store-cart-product-qty input[type=number] { width:5.2rem; max-width:100%; border-radius:.5rem; }
.cstore-shop-flow :is(.store-cart-page-cart-total,.store-cart-page-tax,.store-cart-page-shipping) { text-align:end; margin:.55rem 0; }
.cstore-shop-flow .store-cart-page-cart-links { display:flex; justify-content:flex-end; }
.cs-site .cstore-shop-flow .store-btn-cart-page-checkout { background:var(--cstore-cyan); color:#fffaf2 !important; border-color:var(--cstore-cyan); border-radius:999px; font-weight:700; text-decoration:none; }
.cstore-shop-flow .store-cart-grand-total-value { color:var(--cstore-cyan); font-weight:700; }
@media(max-width:760px) {
    .cstore-shop-flow .store-checkout-form-row { grid-template-columns:minmax(0,1fr); }
    .cstore-shop-flow .store-cart-table :is(th,td) { padding-inline:.25rem; }
    .cstore-shop-flow .store-cart-product-qty input[type=number] { width:3.5rem; }
}

/* Catalog search shares the shop header on list, product, cart and checkout. */
.cs-site .cstore-shop-header .cs-brand { margin-inline-end:0; }
.cstore-shop-search { display:flex; flex:1 1 16rem; max-width:35rem; min-width:0; margin-inline:auto; align-items:center; padding:.2rem .25rem .2rem .85rem; border:1px solid #315a4b76; border-radius:999px; background:#f6f0e4; }
.cs-site .cstore-shop-search input[type=search] { flex:1; min-width:0; width:100%; height:38px; margin:0; border:0; padding:0 .4rem 0 0; border-radius:0; background:transparent; color:#18362b; font:400 .95rem/1.3 Arial,sans-serif; }
.cstore-shop-search input::placeholder { color:#465d50; }
.cs-site .cstore-shop-search button { display:grid; place-items:center; flex:none; width:42px; height:42px; padding:0; border:0; border-radius:50%; background:var(--cstore-cyan); color:#fffaf2; cursor:pointer; }
.cstore-shop-search:focus-within { border-color:var(--cstore-cyan); }
.cstore-shop-search input:focus-visible { outline:0; }
.cstore-search-summary { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:.6rem; margin-bottom:1rem; }
.cs-site .cstore-search-summary h2 { margin:0 0 .25rem; font-size:clamp(1.35rem,3vw,2rem); }
.cstore-search-summary p,.cstore-search-desc { color:var(--cstore-shop-muted); }
.cstore-search-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.cstore-search-card { display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding:1rem; border:1px solid var(--cstore-line); border-radius:.8rem; background:var(--cstore-shop-panel); }
.cs-site .cstore-search-card h3 { font-size:1.1rem; margin:.2rem 0 .5rem; letter-spacing:-.01em; }
.cstore-search-card h3 a { text-decoration:none; }
.cstore-search-card a:has(img) { width:100%; }
.cstore-search-card img { width:100%; aspect-ratio:4/3; object-fit:contain; border-radius:.45rem; margin-bottom:.55rem; }
.cs-site .cstore-search-card p { margin-bottom:.6rem; }
.cstore-search-price { color:var(--cstore-cyan); font-weight:700; }
.cstore-search-desc { font-size:.9rem; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.cstore-search-card .cstore-shop-back { margin:auto 0 0; font-size:.85rem; }
.cstore-search-pagination { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:.8rem; margin-top:1.25rem; }
.cstore-search-pagination a { padding:.3rem .8rem; border:1px solid var(--cstore-line); border-radius:999px; text-decoration:none; }
@media(max-width:950px) { .cstore-search-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) {
    .cstore-shop-search { order:5; flex-basis:100%; max-width:none; }
    .cs-site .cstore-shop-header .cs-brand { margin-inline-end:auto; }
    .cstore-search-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:380px) { .cstore-search-grid { grid-template-columns:minmax(0,1fr); } }

/* Crafted Seasons storefront: parchment, evergreen, and warm brass. */
.cs-site.cstore-commerce {
    --cstore-accent:#164a38;
    --cstore-cyan:var(--cstore-accent);
    --cstore-focus:#b87508;
    --cs-line:#19403329;
    --cstore-line:var(--cs-line);
}
.cs-site .cstore-shop-header { position:sticky; top:0; z-index:20; display:block; width:100%; max-width:none; padding:0; color:#fffaf2; }
.cs-site.cstore-editing .cstore-shop-header { position:relative; }
.cstore-shop-header .cs-header__inner {
    position:relative; display:flex; align-items:center; gap:clamp(.65rem,2vw,1.5rem);
    width:min(90%,1280px); margin:auto; min-height:76px;
    padding-block:.55rem;
}
.cs-site .cstore-shop-header .cs-brand { flex:none; letter-spacing:normal; }
.cs-site .cstore-shop-header :is(.cs-brand a,.cstore-shop-home,.cstore-shop-cart) { color:#fffaf2; }
.cstore-shop-header .cstore-shop-menu { position:absolute; inset-inline-end:calc(100% + .45rem); }
.cstore-shop-header .cstore-shop-menu summary { width:36px; height:40px; border-color:#fffaf26b; }
.cs-site .cstore-shop-menu .cs-nav { color:#18362b; }
.cs-site .cstore-shop-menu .cs-nav ul { gap:.2rem; }
.cstore-shop-header .cstore-search-slot { flex:1 1 16rem; min-width:0; }
.cstore-shop-header .cstore-search-slot:empty { display:none; }
.cstore-shop-header .cstore-header-actions { display:flex; align-items:center; flex:none; gap:.85rem; margin-inline-start:auto; white-space:nowrap; }
.cs-site .cstore-shop-header .cstore-shop-cart { border-color:#fffaf278; }
.cs-site .cstore-shop-header .cstore-shop-cart:hover { background:#fffaf222; }
.cs-site .cstore-shop-search { background:#fffaf2; border-color:transparent; }
.cstore-shop-search input::placeholder { color:#526157; }
.cs-site .cstore-shop-search button,.cstore-cart-count:not([hidden]) { background:#ebdfc4; color:#18362b; }
.cstore-shop-shell { width:min(1280px,calc(100% - 2 * clamp(20px,5vw,80px))); }
.cstore-shop-intro { text-align:center; padding-block:clamp(1rem,3vw,2.5rem); }
.cs-site .cstore-shop-intro h1 { font-size:clamp(2rem,5vw,4.1rem); }
.cs-site .cstore-shop-shell .store-product-list-name { font-size:clamp(1.08rem,1.7vw,1.35rem); line-height:1.25; }
.cstore-shop-shell .store-product-list-item img { aspect-ratio:1; object-fit:cover; }
.cstore-shop-shell .store-product-image img { max-width:100%; height:auto; border-radius:.65rem; }
.cs-site .cstore-shop-shell :is(.store-product-list-price,.store-product-price) { font-family:Arial,sans-serif; }
.cstore-shop-shell .store-product-list-description { margin-block:.3rem .65rem; line-height:1.5; }
.cs-site .cstore-shop-shell :is(.store-btn-add-to-cart,.cstore-inline-qty) { min-height:44px; }
.cs-site .cstore-shop-shell .pagination { padding:0; margin-block:1.5rem 0; }
.cs-site .cstore-shop-shell :focus-visible,.cs-site .cstore-shop-header :focus-visible { outline-color:var(--cstore-focus); }
.cs-site .cstore-shop-search input:focus-visible { outline:0; }
.cstore-shop-search:focus-within { box-shadow:0 0 0 2px #e7bc67; }
.cstore-shop-filters { scroll-margin-top:8rem; }

/* Catalog finishing touches and readable Concrete pagination. */
.cs-site .cstore-shop-intro {
    padding:clamp(1.5rem,4vw,3.25rem) clamp(.8rem,3vw,2.5rem);
    margin-block-end:clamp(1.2rem,3vw,2rem);
    border:1px solid #a47c4738;
    border-radius:1.05rem;
    background:radial-gradient(ellipse at top,#fffaf2 12%,transparent 74%),#f0e5d3;
}
.cs-site .cstore-shop-intro .eyebrow { color:#7c5324; }
.cs-site .cstore-shop-intro h1 em { color:#805c2d; }
.cstore-shop-intro::after {
    display:block;
    width:2.5rem;
    height:2px;
    margin:1rem auto 0;
    background:#bd914d;
    content:"";
}
.cs-site .cstore-shop-shell .store-product-list-item > form {
    box-shadow:0 3px 12px #482c1610;
}
.cs-site .cstore-shop-shell .store-product-list-thumbnail { margin-block-end:.75rem; }
.cs-site .cstore-shop-shell .store-product-list-price { font-size:1.02rem; }
.cs-site .cstore-shop-shell :is(.store-btn-add-to-cart,.store-out-of-stock-label,.store-not-available-label):is(.hidden,.d-none,[hidden]),
.cs-site .cstore-shop-shell form:has(:is(.store-out-of-stock-label,.store-not-available-label):not(.hidden,.d-none,[hidden])) :is(.store-btn-add-to-cart,.store-btn-add-to-cart-container,.cstore-qty) {
    display:none !important;
}
.cs-site .cstore-shop-shell :is(.store-out-of-stock-label,.store-not-available-label):not(.hidden,.d-none,[hidden]) {
    display:inline-flex;
    align-items:center;
    align-self:flex-start;
    min-height:44px;
    margin:.3rem 0 .55rem;
    padding:.4rem .85rem;
    border:1px solid #ab856350;
    border-radius:999px;
    background:#f2e7d7;
    color:#644527;
    font-size:.8rem;
    font-weight:700;
}
.cs-site .cstore-shop-shell .ccm-pagination-wrapper {
    margin-block-start:clamp(1.2rem,3vw,2rem);
    padding-block:.85rem;
    border-block-start:1px solid var(--cstore-line);
}
.cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination { margin-block:0; }
.cs-site .cstore-shop-shell .pagination .page-link {
    margin:0;
    border:1px solid #cbbfae;
    background:#fffaf2;
    color:#164a38;
    font-variant-numeric:tabular-nums;
}
.cs-site .cstore-shop-shell .pagination a.page-link:hover {
    border-color:#164a38;
    background:#e8eee7;
}
.cs-site .cstore-shop-shell .pagination :is(.active,.current,[aria-current="page"]) > .page-link,
.cs-site .cstore-shop-shell .pagination .page-link[aria-current="page"] {
    border-color:#164a38;
    background:#164a38;
    color:#fffaf2;
    font-weight:700;
}
.cs-site .cstore-shop-shell .pagination .disabled .page-link {
    border-color:transparent;
    background:transparent;
    color:#655c50;
    opacity:1;
}
@media(max-width:1050px) { .cstore-shop-header .cstore-shop-menu { position:relative; inset:auto; } }
@media(max-width:760px) {
    .cstore-shop-header .cs-header__inner { flex-wrap:wrap; gap:.45rem .65rem; }
    .cstore-shop-header .cstore-search-slot { order:5; flex-basis:100%; }
    .cstore-shop-header .cstore-shop-home { display:none; }
    .cs-site .cstore-shop-header .cs-brand { margin:0; font-size:clamp(1.15rem,4.5vw,1.65rem); }
}
@media(max-width:420px) {
    .cstore-shop-header .cs-header__inner { width:calc(100% - 1rem); }
    .cs-site .cstore-shop-header .cstore-shop-cart { padding-inline:.45rem; min-height:38px; font-size:.82rem; }
}

/* Catalog card layout and click target. */
.cs-site .cstore-shop-shell .pagination > .page-item.disabled:is(.prev, .previous, .next) {
    display: none !important;
}
.cs-site .cstore-shop-shell .store-product-list-item > form {
    position: relative;
    isolation: isolate;
}
.cs-site .cstore-shop-shell .store-product-list-item > form > .store-product-list-thumbnail { order: -70; }
.cs-site .cstore-shop-shell .store-product-list-item > form
> :is(.store-btn-add-to-cart-container, .store-out-of-stock-label, .store-not-available-label) {
    order: -60;
    margin: 0 0 .55rem;
    padding-block-start: 0;
}
.cs-site .cstore-shop-shell .store-product-list-item > form
> :is(.store-out-of-stock-label, .store-not-available-label) { padding-block-start: .4rem; }
.cs-site .cstore-shop-shell .store-product-list-item > form > .store-product-list-price {
    order: -50;
    margin: 0 0 .2rem;
    font: 700 1.375rem/1.2 system-ui, sans-serif;
}
.cs-site .cstore-shop-shell .store-product-list-item > form > .cstore-option-price-range {
    order: -45;
    margin: 0 0 .35rem;
    color: #655c50;
    font: 400 .75rem/1.35 system-ui, sans-serif;
}
.cs-site .cstore-shop-shell .store-product-list-item > form > .store-product-options { order: -40; }
.cs-site .cstore-shop-shell .store-product-list-item > form > .store-product-list-name {
    order: -30;
    margin: .25rem 0;
    font: 600 .9375rem/1.35 system-ui, sans-serif;
}
.cs-site .cstore-shop-shell .store-product-list-item > form > .store-product-list-description {
    order: -20;
    font: 400 .875rem/1.4 system-ui, sans-serif;
}
.cs-site .cstore-shop-shell .store-product-list-item .store-product-list-price:has(.store-sale-price + .store-original-price) { font-size: 0; }
.cs-site .cstore-shop-shell .store-product-list-price .store-sale-price {
    color: #164a38;
    font-size: 1.375rem;
    font-weight: 800;
    white-space: nowrap;
}
.cs-site .cstore-shop-shell .store-product-list-price .store-sale-price::before { content: "Now "; }
.cs-site .cstore-shop-shell .store-product-list-price .store-original-price {
    margin-inline-start: .4rem;
    color: #655c50;
    font-size: .8125rem;
    font-weight: 400;
    text-decoration: line-through;
    white-space: nowrap;
}
.cs-site .cstore-shop-shell .store-product-list-item .store-btn-more-details-container {
    position: static;
    margin: 0;
    padding: 0;
}
.cs-site .cstore-shop-shell .store-product-list-item a.store-btn-more-details {
    position: absolute;
    inset: 0;
    z-index: 1;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    cursor: pointer;
}
.cs-site .cstore-shop-shell .store-product-list-item a.store-btn-more-details:focus-visible {
    outline: 2px solid #164a38;
    outline-offset: 3px;
}
.cs-site .cstore-shop-shell .store-product-list-item
:is(button, input:not([type="hidden"]), select, textarea, label) {
    position: relative;
    z-index: 2;
}

/* Keep mobile pagination on one line using Concrete's pager markup. */
@media (max-width: 600px) {
    .cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination {
        flex-wrap: nowrap;
        justify-content: center;
        gap: .25rem;
    }

    .cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination > .page-item {
        display: none;
        flex: 0 0 auto;
    }

    /* The current page, its immediate numbered neighbors, and available arrows. */
    .cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination > .page-item:is(.prev, .previous, .next):not(.disabled),
    .cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination > .page-item.active,
    .cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination > .page-item:not(.prev, .previous, .next, .disabled):has(+ .page-item.active),
    .cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination > .page-item.active + .page-item:not(.prev, .previous, .next, .disabled),
    /* Ignore navigation arrows and ellipses when finding the numbered endpoints. */
    .cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination > :nth-last-child(1 of .page-item:not(.prev, .previous, .next, .disabled)),
    .cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination:has(> :nth-last-child(1 of .page-item:not(.prev, .previous, .next, .disabled)).active) > :nth-child(1 of .page-item:not(.prev, .previous, .next, .disabled)) {
        display: list-item;
    }

    /* Keep the existing separator only on the side with an endpoint shortcut. */
    .cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination > .page-item.active ~ .page-item.disabled:not(.prev, .previous, .next),
    .cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination:has(> :nth-last-child(1 of .page-item:not(.prev, .previous, .next, .disabled)).active) > .page-item.disabled:not(.prev, .previous, .next) {
        display: list-item;
    }

    .cs-site .cstore-shop-shell .ccm-pagination-wrapper .pagination > .page-item.disabled:not(.prev, .previous, .next) > .page-link {
        min-width: 0;
        width: 1rem;
        padding-inline: 0;
    }
}

/* Keep names, prices and quantities within the cart and checkout panels. */
.cs-site .cstore-shop-flow :is(.store-cart-page,.store-checkout-cart-contents) .store-cart-table {
    width: 100%;
    table-layout: auto;
}
.cs-site .cstore-shop-flow .store-cart-table :is(.store-cart-product-name,.store-cart-product-name a,.store-cart-list-item-attributes,.store-cart-list-item-attributes *) {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.4;
}
.cs-site .cstore-shop-flow .store-cart-table .store-cart-list-thumb {
    width: 2.5rem;
}
.cs-site .cstore-shop-flow .store-cart-table .store-cart-list-thumb img {
    width: 2rem;
    max-width: 100%;
    height: auto;
}
.cs-site .cstore-shop-flow .store-cart-table :is(thead th:last-child,.store-cart-item-price) {
    white-space: nowrap;
    word-break: normal;
    width: 1%;
}
.cs-site .cstore-shop-flow .store-cart-table .store-cart-product-qty {
    white-space: normal;
    width: 1%;
}
.cs-site .cstore-shop-flow .store-cart-table .store-qty-container {
    display: inline-flex;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
}
.cs-site .cstore-shop-flow .store-cart-table .store-product-qty[type="number"] {
    width: 4rem;
    min-width: 0;
    min-height: 44px;
    padding-inline: .4rem;
    text-align: center !important;
}
.cs-site .cstore-shop-flow .store-cart-table .store-cart-qty-label {
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 6rem;
}
.cs-site .cstore-shop-flow .store-cart-table .store-btn-cart-list-remove {
    display: inline-grid;
    place-items: center;
    vertical-align: middle;
    inline-size: 44px;
    block-size: 44px;
    padding: 0;
    border: 1px solid #164a38;
    border-radius: .5rem;
    background: transparent;
    color: #164a38;
    cursor: pointer;
}
.cs-site .cstore-shop-flow .store-cart-table .store-btn-cart-list-remove:hover {
    background: #e8eee7;
    color: #164a38;
}
.cs-site .cstore-shop-flow .store-cart-table .store-btn-cart-list-remove > .fa-times {
    display: none;
}
.cs-site .cstore-shop-flow .store-cart-table .store-btn-cart-list-remove::before {
    content: "" / "Remove item";
    width: 1.25rem;
    height: 1.25rem;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M9 6V4h6v2M6 6l1 14h10l1-14M10 10v6m4-6v6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 761px) {
    .cs-site .cstore-shop-flow .store-cart-page .store-cart-list-thumb {
        width: 4.5rem;
    }
    .cs-site .cstore-shop-flow .store-cart-page .store-cart-list-thumb img {
        width: 3.25rem;
        aspect-ratio: 1;
        object-fit: contain;
    }
    .cs-site .cstore-shop-flow .store-cart-page .store-cart-product-qty {
        width: 1%;
        white-space: nowrap;
    }
    .cs-site .cstore-shop-flow .store-cart-page .store-qty-container {
        vertical-align: middle;
        max-width: 8rem;
        flex-wrap: nowrap;
        margin-block: 0 !important;
    }
    .cs-site .cstore-shop-flow .store-cart-page .store-product-qty[type="number"] {
        box-sizing: border-box;
        height: 44px;
        padding-block: 0;
    }
    .cs-site .cstore-shop-flow .store-cart-page .store-btn-cart-list-remove {
        margin-inline-start: .35rem;
    }
}
@media (max-width: 600px) {
    .cs-site .cstore-shop-flow .store-cart-table :is(th,td) {
        padding-inline: .25rem;
        font-size: .875rem;
    }
    .cs-site .cstore-shop-flow .store-cart-table .store-cart-list-thumb { width: 1.8rem; }
    .cs-site .cstore-shop-flow .store-cart-table .store-product-qty[type="number"] {
        width: 3.5rem;
    }
    .cs-site .cstore-shop-flow .store-cart-page .store-qty-container {
        display: flex;
        justify-content: center;
    }
    .cs-site .cstore-shop-flow .store-cart-page .store-cart-product-qty {
        text-align: center !important;
    }
    .cs-site .cstore-shop-flow .store-cart-page .store-btn-cart-list-remove {
        margin-block-start: .3rem;
    }
}
