/* Yami Store Pages 1.3 — one consistent presentation system. */
.yg-store,body.yg-inner {
  --yg-green:#102b20; --yg-green-deep:#0c2118; --yg-ivory:#f4efdf;
  --yg-paper:#eee5cf; --yg-gold:#ba9a5c; --yg-gold-light:#dfc58d;
  --yg-ink:#1c372b; --yg-muted:#566457; --yg-line:#b99a5b59;
  --yg-ornament:url("yami-ornament-1.3.5.svg");
}
.yg-store {
  position:relative; isolation:isolate; direction:rtl; color:var(--yg-ink);
  background:var(--yg-ivory); border:1px solid var(--yg-line);
  border-radius:8px; max-width:1240px; width:100%; margin:24px auto;
  padding:32px; font-family:inherit; box-sizing:border-box;
  box-shadow:0 12px 32px #102b2009;
}
.yg-store,.yg-store * { box-sizing:border-box; }
.yg-store::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:var(--yg-ornament) center top/960px auto no-repeat;
  opacity:.6; border-radius:inherit;
}
.yg-store::after {
  content:""; position:absolute; inset:6px; z-index:-1; pointer-events:none;
  border:1px solid #ba9a5c26; border-radius:4px;
}
.yg-store a { color:inherit; text-decoration:none; }
.yg-store .yg-hero { text-align:center; padding:4px 0 24px; margin:0; }
.yg-store .yg-hero>span {
  display:block; color:#796034; font-family:Georgia,serif;
  font-size:11px; letter-spacing:3px; line-height:2;
}
.yg-store h1 { font-family:inherit; font-size:clamp(23px,2.2vw,30px); font-weight:500; line-height:1.7; color:var(--yg-ink); margin:10px 0; }
.yg-store .yg-hero p { color:var(--yg-muted); line-height:1.9; margin:0 auto; font-size:14px; max-width:600px; }
.yg-store .yg-hero::after {
  content:""; display:block; width:64px; height:1px; margin:18px auto 0; background:var(--yg-gold);
}
.yg-store .yg-toolbar {
  display:flex!important; align-items:center; flex-wrap:wrap; justify-content:flex-end;
  gap:10px; border-block:1px solid var(--yg-line); padding:14px 0; margin:0 0 18px;
}
.yg-store .yg-toolbar label { width:auto; margin:0; color:var(--yg-muted); font-size:13px; }
.yg-store .yg-toolbar select { width:auto!important; flex:0 1 240px; margin:0; }
.yg-store .yg-toolbar button { margin:0; flex:0 0 auto; }
:is(.yg-store,body.yg-inner main) :is(button,.button,.yg-button,input[type="submit"]) {
  font-family:inherit; font-size:13px; font-weight:500; line-height:1.7; min-height:44px; padding:10px 16px;
  background:linear-gradient(120deg,#e1c992,#c9aa6e)!important;
  color:#142d20!important; border:1px solid #b39860!important; border-radius:4px;
  cursor:pointer; text-align:center; box-shadow:inset 0 1px #fff6dd80;
  transition:background-color 160ms ease,box-shadow 160ms ease;
}
:is(.yg-store,body.yg-inner main) :is(input[type="text"],input[type="search"],input[type="email"],input[type="tel"],input[type="password"],input[type="number"],textarea,select) {
  font-family:inherit; color:var(--yg-ink)!important; background-color:#faf6eb!important;
  border:1px solid #aa956c!important; border-radius:4px;
}
:is(.yg-store,body.yg-inner main) select { min-height:44px; max-width:100%; padding:9px 14px; font-size:13px; }
:is(.yg-store,body.yg-inner main) :is(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid #13738d!important; outline-offset:3px;
}
/* auto-fit collapses empty tracks: three products stay centered in a four-column shop. */
:is(.yg-store .woocommerce,body.yg-inner main) ul.products {
  display:grid!important; grid-template-columns:repeat(auto-fit,minmax(0,248px))!important;
  justify-content:center; gap:24px; clear:both; width:100%; max-width:1064px;
  margin:22px auto!important; padding:0!important; box-sizing:border-box;
}
:is(.yg-store .woocommerce,body.yg-inner main) ul.products::before,
:is(.yg-store .woocommerce,body.yg-inner main) ul.products::after { display:none!important; }
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product {
  position:relative; isolation:isolate; width:auto!important; min-width:0;
  float:none!important; margin:0!important; padding:10px 10px 14px; box-sizing:border-box;
  display:flex; flex-direction:column; text-align:center;
  background:linear-gradient(150deg,#173b2a,#0c2118); color:#f8efdb;
  border:1px solid #ae9159; border-radius:6px; overflow:hidden;
  box-shadow:0 5px 16px #102b2010;
  transition:transform 180ms ease-out,box-shadow 180ms ease-out,border-color 180ms ease;
}
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:var(--yg-ornament) center/420px auto; opacity:.32;
}
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product::after {
  content:""; position:absolute; inset:4px; border:1px solid #d8bc7b29;
  border-radius:3px; pointer-events:none;
}
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product a { color:#f8efdb; }
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product a img {
  display:block; width:100%!important; height:auto!important; aspect-ratio:1/1;
  object-fit:contain; background:#eae2d2; border:1px solid #c8ae7466;
  border-radius:3px; margin:0 0 14px!important;
}
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product .woocommerce-loop-product__title {
  color:#f8efdb!important; font-family:inherit; font-size:14px; font-weight:400;
  line-height:1.85; margin:0 0 8px; padding:0;
}
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product .price {
  display:block; color:#e7ce99!important; opacity:1!important; font-size:14px;
  font-weight:500; line-height:1.9; font-variant-numeric:tabular-nums; margin:0 0 15px;
}
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product .price :is(span,bdi) { color:inherit!important; }
:is(.yg-store .woocommerce,body.yg-inner main) .price del { opacity:1; color:#c6bda8; font-weight:400; }
:is(.yg-store .woocommerce,body.yg-inner main) .price ins { text-decoration:none; }
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product :is(.button,button) {
  width:100%; margin-top:auto; font-size:12px;
}
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product a:not(.woocommerce-LoopProduct-link):not(.button):not(.added_to_cart) {
  font-size:12px; line-height:1.8; color:#ead5a9!important; border-color:#b89a5559!important;
}
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product .added_to_cart {
  display:block; color:#f5dfb4!important; text-decoration:underline; padding:10px 0;
}
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product .onsale {
  position:absolute; top:16px; right:16px; left:auto; margin:0; padding:3px 9px;
  min-height:28px; min-width:0; line-height:1.8; font-size:11px; z-index:2;
  background:#102b20; color:#f8efdb; border:1px solid #b89a55; border-radius:3px;
}
:is(.yg-store .woocommerce,body.yg-inner main) .woocommerce-result-count { float:none; color:var(--yg-muted)!important; opacity:1!important; font-size:13px; }
.yg-store .woocommerce-ordering { display:none!important; }
:is(.yg-store .woocommerce,body.yg-inner main) .woocommerce-pagination { margin:28px 0 8px; }
:is(.yg-store .woocommerce,body.yg-inner main) .woocommerce-pagination ul { border:0!important; display:flex; justify-content:center; flex-wrap:wrap; gap:8px; }
:is(.yg-store .woocommerce,body.yg-inner main) .woocommerce-pagination li { border:0!important; }
:is(.yg-store .woocommerce,body.yg-inner main) .woocommerce-pagination :is(a,span) {
  display:flex!important; align-items:center; justify-content:center; min-width:44px; min-height:44px;
  padding:10px!important; border:1px solid var(--yg-line); border-radius:4px; background:#faf6eb; color:var(--yg-ink);
}
:is(.yg-store .woocommerce,body.yg-inner main) .woocommerce-pagination .current { background:var(--yg-green); color:#f8efdb; }
.yg-store .yg-ranges { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 24px; }
.yg-store .yg-ranges a {
  position:relative; isolation:isolate; display:flex; align-items:center; justify-content:space-between;
  gap:8px; min-height:80px; padding:16px; color:#f1dfb7; line-height:1.8; font-size:13px;
  background:var(--yg-green); border:1px solid #aa8e55; border-radius:5px;
}
.yg-store .yg-ranges a::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:var(--yg-ornament) center/400px auto; opacity:.3; }
.yg-store .yg-ranges a>span { font-size:18px; }
.yg-store .yg-ranges a[aria-current] { color:var(--yg-ink); background:#dfc995; }
.yg-store .yg-collections { display:grid; grid-template-columns:repeat(auto-fit,minmax(0,270px)); justify-content:center; gap:24px; }
.yg-store .yg-collection {
  display:flex; flex-direction:column; min-width:0; border:1px solid #ae9159; border-radius:6px;
  background:var(--yg-green); color:#f8efdb; overflow:hidden; box-shadow:0 5px 16px #102b2010;
}
.yg-store .yg-collection img { display:block; width:100%; height:auto; aspect-ratio:1/1; object-fit:contain; background:#eae2d2; }
.yg-store .yg-collection>div { position:relative; isolation:isolate; padding:20px; flex:1; }
.yg-store .yg-collection>div::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:var(--yg-ornament) center/420px auto; opacity:.32; }
.yg-store .yg-collection h2 { font-size:18px; font-weight:500; line-height:1.8; color:#f8efdb; margin:0 0 8px; }
.yg-store .yg-collection p { color:#dcd9ca; font-size:13px; line-height:1.9; margin:0 0 14px; }
.yg-store .yg-collection span { display:block; padding-top:12px; border-top:1px solid #b89a5559; color:#e7ce99; font-size:12px; }
.yg-store .yg-back { display:inline-block; margin-bottom:18px; min-height:44px; padding:10px 0; text-decoration:underline; text-underline-offset:4px; }
.yg-store .yg-empty { text-align:center; padding:36px 20px; color:var(--yg-ink); border:1px solid var(--yg-line); border-radius:6px; background:#f8f3e7; }
.yg-store .yg-empty h2 { font-size:22px; line-height:1.8; }
.yg-store .yg-empty p { color:var(--yg-muted); line-height:1.9; }
@media(min-width:1001px) {
  :is(.yg-store .woocommerce,body.yg-inner main) ul.products.columns-3 { max-width:792px; }
  :is(.yg-store .woocommerce,body.yg-inner main) ul.products.columns-2 { max-width:520px; }
  :is(.yg-store .woocommerce,body.yg-inner main) ul.products.columns-1 { max-width:248px; }
}
@media(max-width:1000px) and (min-width:761px) {
  :is(.yg-store .woocommerce,body.yg-inner main) ul.products { grid-template-columns:repeat(3,minmax(0,230px))!important; gap:18px; }
  .yg-store .yg-ranges { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .yg-store { padding:22px 16px; margin:16px auto; }
  :is(.yg-store .woocommerce,body.yg-inner main) ul.products { grid-template-columns:repeat(2,minmax(0,248px))!important; gap:14px; }
  .yg-store .yg-collections { grid-template-columns:repeat(2,minmax(0,270px)); gap:14px; }
  .yg-store .yg-ranges { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px) {
  .yg-store .yg-toolbar { gap:8px; }
  .yg-store .yg-toolbar label { flex:0 0 100%; }
  .yg-store .yg-toolbar select { flex:1 1 140px; min-width:0; }
  :is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product { padding:8px 8px 12px; }
  :is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product .woocommerce-loop-product__title { font-size:13px; }
  .yg-store .yg-collection>div { padding:14px; }
}
@media(max-width:359px) {
  :is(.yg-store .woocommerce,body.yg-inner main) ul.products,.yg-store .yg-collections { grid-template-columns:minmax(0,270px)!important; }
}
@media(hover:hover) and (pointer:fine) {
  :is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product:hover { transform:translateY(-3px); border-color:#d8b97d; box-shadow:0 10px 24px #102b2018; }
  :is(.yg-store,body.yg-inner main) :is(button,.button):hover { box-shadow:inset 0 1px #fff6dd80,0 3px 9px #102b2015; }
}
@media(prefers-reduced-motion:reduce) {
  :is(.yg-store,body.yg-inner main) :is(button,.button,li.product) { transition:none!important; transform:none!important; }
}

.yg-store .yg-button { display:inline-flex; align-items:center; justify-content:center; }
:is(.yg-store,body.yg-inner main) :is(button,.button)[disabled] { opacity:.55; cursor:not-allowed; }

/* One background motif, not a competing pattern in every small component. */
:is(.yg-store .woocommerce,body.yg-inner main) ul.products li.product::before,
.yg-store .yg-collection>div::before,.yg-store .yg-ranges a::before { display:none; }
