/*
Theme Name: Solidmint Bazaar
Description: The Solidmint Bazaar storefront for WordPress and WooCommerce.
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.1
Author: Zaprit Technologies
Text Domain: solidmint
*/
:root {
  --shop-bg: #fff8ee;
  --shop-ink: #211c19;
  --shop-action: #833526;
  --shop-header: #34231d;
  --shop-highlight: #ffce77;
  --shop-paper: #fff;
  --shop-edge: color-mix(in srgb, var(--shop-ink) 25%, transparent);
  --shop-title: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--shop-bg); color: var(--shop-ink); font: 1rem/1.55 system-ui, sans-serif; }
body, input, button, textarea { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--shop-title); line-height: 1.13; }
img { max-width: 100%; height: auto; }
a { color: var(--shop-action); text-underline-offset: .16em; }
a:hover { text-decoration-thickness: .13em; }
:is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
input, select, textarea { min-width: 0; max-width: 100%; }
input:not([type=checkbox],[type=radio],[type=hidden]), select, textarea {
  border: 1px solid var(--shop-edge); background: var(--shop-paper); padding: .52rem .7rem; border-radius: .18rem;
}
button:not(.wc-block-mini-cart__button, .components-button) {
  border: 1px solid currentColor; padding: .45rem .8rem; background: transparent; border-radius: .2rem;
}
.screen-reader-text, .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; width: auto; height: auto; margin: 0; padding: .7rem .9rem; clip-path: none; z-index: 100000; background: white; }
.shop-width { width: min(94%, 87rem); margin-inline: auto; }
.site-header { position: relative; z-index: 5; color: white; background: var(--shop-header); }
.site-header a { color: inherit; }
.shop-announcement { background: var(--shop-highlight); color: #181410; }
.shop-announcement > div { display: flex; gap: .75rem; align-items: center; justify-content: center; min-height: 2.25rem; padding-block: .25rem; font-size: .9rem; }
.shop-announcement button { min-width: 1.65rem; padding: .05rem .25rem; }
.header-main { display: grid; grid-template-columns: minmax(7.5rem,auto) minmax(0,1fr) minmax(7rem,auto); gap: clamp(.8rem,2.25vw,2rem); align-items: center; padding-block: .75rem; }
.site-brand a, .footer-brand > a { display: flex; gap: .55rem; align-items: center; color: inherit; text-decoration: none; font: 750 clamp(1.15rem,2.2vw,1.7rem)/1.08 var(--shop-title); }
.site-brand img, .footer-brand img { flex: none; border-radius: .22rem; }
.site-brand .custom-logo { max-width: min(13rem, 100%); max-height: 3.8rem; object-fit: contain; }
.shop-search { position: relative; display: flex; min-width: 0; width: min(100%, 42rem); }
.shop-search input { flex: 1 1 0; width: 0; min-height: 2.75rem; border-radius: .24rem 0 0 .24rem; color: var(--shop-ink); }
.shop-search button:not(.components-button) { border-color: var(--shop-highlight); border-radius: 0 .24rem .24rem 0; background: var(--shop-highlight); color: #161411; font-weight: 720; }
.shop-search-suggestions { position: absolute; inset: 100% 0 auto; z-index: 7; display: grid; list-style: none; margin: 0; padding: .35rem; background: var(--shop-paper); color: var(--shop-ink); border: 1px solid var(--shop-edge); box-shadow: 0 .55rem 1.6rem #0003; }
.shop-search-suggestions a { display: block; padding: .55rem .65rem; color: var(--shop-ink); }
.store-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .8rem; }
.store-tools > a { min-width: max-content; }
.shop-mini-cart, .shop-mini-cart > div { display: flex; align-items: center; }
.shop-mini-cart .wc-block-mini-cart { color: inherit; }
.store-navigation { border-block: 1px solid #ffffff38; background: color-mix(in srgb, var(--shop-header) 90%, white); }
.nav-row { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: .2rem clamp(.75rem,2.25vw,1.75rem); padding-block: .25rem; }
.nav-row > a, .nav-row > button, .nav-group > summary, .account-group > summary { padding-block: .48rem; overflow-wrap: anywhere; }
.nav-row > button:not(.components-button) { border: 0; padding-inline: 0; }
.nav-group { min-width: 0; }
.nav-group > summary, .account-group > summary { font-weight: 720; }
.nav-panel { position: absolute; z-index: 3; inset: 100% 0 auto; padding: .9rem; max-height: 65dvh; overflow: auto; background: var(--shop-paper); color: var(--shop-ink); border: 1px solid var(--shop-edge); box-shadow: 0 .55rem 1.6rem #0003; }
.nav-panel a, .nav-panel strong { display: block; padding: .3rem 0; color: var(--shop-ink); overflow-wrap: anywhere; }
.nav-panel a[aria-current] { font-weight: 760; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel .nav-columns { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 12rem),1fr)); gap: .45rem 1.2rem; }
.nav-columns ul { padding-inline-start: .65rem; border-inline-start: 1px solid var(--shop-edge); }
.account-group { position: relative; }
.account-group .nav-panel { inset: 100% 0 auto auto; width: min(14rem, 80vw); }
.shop-content { min-height: 48vh; padding-block: clamp(1.1rem,3vw,3rem); }
.shop-content h1 { font-size: clamp(1.8rem, 4.5vw, 3.5rem); margin-block: 0 .6em; }
.shop-content .entry-content > :is(p,ul,ol,blockquote) { max-width: 72ch; }
.shop-content .entry-content img, .shop-editorial > img { border-radius: .25rem; }
.shop-content .wp-block-table { overflow-x: auto; }
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,18rem),1fr)); gap: 1rem; }
.post-list > article { padding: 1rem; border: 1px solid var(--shop-edge); background: var(--shop-paper); }
.post-list > article h2 { margin: 0 0 .7rem; }
.shop-comments, .post-navigation, .navigation.pagination { margin-block-start: 2rem; }
.comment-list { padding-inline-start: 1.1rem; }
.shop-image-placeholder { display: grid; place-items: center; width: 100%; min-height: 10rem; background: color-mix(in srgb,var(--shop-highlight) 16%, var(--shop-paper)); }
.shop-home .shop-feature div.shop-image-placeholder { position: absolute; inset: 0; min-height: 0; }
.shop-home .shop-feature div.shop-image-placeholder img { width: min(32%,6rem); height: auto; position: static; opacity: .65; }
#primary ul.products { display: grid; clear: both; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.55rem,1.4vw,1.25rem); margin: 1rem 0; padding: 0; }
#primary ul.products.columns-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
#primary ul.products.columns-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
#primary ul.products.columns-5 { grid-template-columns: repeat(5,minmax(0,1fr)); }
#primary ul.products::before, #primary ul.products::after { display: none; }
#primary ul.products li.product, #primary ul.products li.product-category { display: flex; flex-direction: column; float: none; width: auto; min-width: 0; margin: 0; padding: .65rem; background: var(--shop-paper); border: 1px solid var(--shop-edge); }
#primary ul.products li.product a:not(.button) { color: var(--shop-ink); }
#primary ul.products li.product .woocommerce-loop-product__title { font-size: clamp(.96rem,1.25vw,1.18rem); padding: .6rem 0; }
#primary ul.products li.product .price { color: var(--shop-ink); }
#primary ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: contain; margin: 0; background: color-mix(in srgb,var(--shop-highlight) 10%, var(--shop-paper)); }
#primary ul.products li.product > .button { align-self: flex-start; margin-top: auto; white-space: normal; }
body.woocommerce #primary .button, body.woocommerce-page #primary .button { background: var(--shop-action); color: white; line-height: 1.25; }
body.woocommerce #primary .button:hover, body.woocommerce-page #primary .button:hover { background: color-mix(in srgb,var(--shop-action) 84%, black); color: white; }
.woocommerce .woocommerce-breadcrumb { color: var(--shop-ink); }
.woocommerce .woocommerce-ordering select { width: 100%; max-width: max(14rem,80%); }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { vertical-align: middle; }
.woocommerce div.product form.cart .variations select { max-width: 100%; }
.woocommerce div.product form.cart { gap: .5rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce td.product-name, .woocommerce th, .woocommerce td, .woocommerce-address-fields { overflow-wrap: anywhere; }
.woocommerce table.shop_table { max-width: 100%; }
.woocommerce .quantity .qty { max-width: 4.6rem; }
.quantity input[type=number] { padding-inline: .25rem; }
.shop-product-tools > div { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem; }
.shop-product-tools button[aria-pressed=true] { background: var(--shop-highlight); color: #171411; }
.shop-list-status { margin: 0; font-size: .92rem; }
.shop-list-status:not(:empty) { border-inline-start: .25rem solid var(--shop-action); padding: .5rem .75rem; background: var(--shop-paper); }
.shop-catalog-filters { display: flex; flex-wrap: wrap; gap: .8rem 1rem; margin-block: 1rem; padding: .9rem; border: 1px solid var(--shop-edge); background: var(--shop-paper); }
.shop-filter-widget { min-width: 0; }
.shop-filter-widget h2 { margin: 0 0 .45rem; font-size: 1.04rem; }
.site-footer { background: var(--shop-header); color: white; margin-top: 1rem; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; grid-template-columns: minmax(11rem,1.25fr) repeat(4,minmax(0,1fr)); gap: 1rem 1.5rem; padding-block: 2.1rem; }
.footer-column h2, .footer-widget h2 { margin: 0 0 .7rem; font-size: 1.02rem; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin-block: .3rem; }
.footer-bottom { padding-block: .9rem; border-top: 1px solid #fff5; font-size: .88rem; }
.footer-widgets { padding-block-end: 1rem; }
.shop-dialog { width: min(92vw, 43rem); max-height: 88dvh; padding: clamp(.8rem,3vw,1.5rem); border: 1px solid var(--shop-edge); border-radius: .32rem; background: var(--shop-paper); color: var(--shop-ink); }
.shop-dialog::backdrop { background: #121216aa; }
.dialog-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.dialog-heading h2 { margin: 0; }
.dialog-list { list-style: none; margin: .9rem 0; padding: 0; }
.dialog-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; padding: .55rem 0; border-bottom: 1px solid var(--shop-edge); }
.dialog-table { overflow-x: auto; margin: 1rem 0; }
.dialog-table table { border-collapse: collapse; width: 100%; }
.dialog-table :is(th,td) { text-align: start; vertical-align: top; min-width: 7rem; border: 1px solid var(--shop-edge); padding: .5rem; }
.dialog-table button { display: block; margin-top: .5rem; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .header-main { grid-template-columns: minmax(0,1fr) auto; gap: .6rem; }
  .header-main .shop-search { grid-row: 2; grid-column: 1 / -1; width: 100%; }
  .nav-group[open] { flex-basis: 100%; }
  .nav-group .nav-panel { position: static; max-height: none; }
  .nav-group .nav-columns { grid-template-columns: minmax(0,1fr); }
  .nav-panel a, .nav-row > a, .nav-row > button, .nav-group > summary { min-height: 2.5rem; }
  #primary ul.products, #primary ul.products:is(.columns-2,.columns-3,.columns-5) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 380px) {
  .header-main { grid-template-columns: minmax(5.8rem,1fr) auto; }
  .store-tools { gap: .45rem; font-size: .85rem; }
  .site-brand a { gap: .3rem; font-size: 1rem; }
  .site-brand img { width: 1.7rem; height: 1.7rem; }
  #primary ul.products li.product { padding: .45rem; }
}

body.solidmint-edition-bazaar {
  --shop-bg: #fff3d8;
  --shop-ink: #382019;
  --shop-action: #84351e;
  --shop-header: #184c40;
  --shop-highlight: #ffd16c;
  --shop-title: Georgia, serif;
}
