/* Yami 1.3: theme integration; shared components live in pages.css. */
body.yg-inner :is(main.l-main,main#primary,main.site-main) {
  width:100%; max-width:none; color:var(--yg-ink); padding-bottom:40px;
  background-color:#eae1cb;
  background-image:linear-gradient(#eee6d280,#eee6d280),var(--yg-ornament);
  background-position:center top; background-size:auto,1100px auto; background-repeat:repeat-y;
}
body.yg-inner main.l-main>.l-section { background:transparent!important; }
body.yg-inner main.l-main>.l-section>.l-section-h {
  position:relative; width:calc(100% - 64px)!important; max-width:1240px!important;
  margin-inline:auto!important; padding:32px; box-sizing:border-box;
  border:1px solid var(--yg-line); border-radius:8px;
  background-color:var(--yg-ivory);
  background-image:linear-gradient(#f4efdf99,#f4efdf99),var(--yg-ornament);
  background-position:center top,center 24px; background-size:auto,960px auto; background-repeat:no-repeat;
  box-shadow:0 12px 32px #102b2009;
}
body.yg-inner main.l-main>.l-section>.l-section-h:has(.yg-store) {
  background:transparent; padding:0; border:0; box-shadow:none;
}
body.yg-inner main :is(h1,h2,h3,h4,h5,h6) { font-family:inherit; }
body.yg-inner main :is(p,li,dt,dd) { line-height:1.9; }
body.yg-native main .woocommerce-products-header {
  display:block; float:none!important; width:100%; clear:both;
  text-align:center; margin:0 0 24px; padding:4px 0 20px; border-bottom:1px solid var(--yg-line);
}
body.yg-native main .woocommerce-products-header::before {
  content:"YAMI GOLD"; display:block; color:#796034; font-family:Georgia,serif;
  font-size:11px; letter-spacing:3px; line-height:2;
}
body.yg-native main .woocommerce-products-header h1 {
  float:none!important; width:100%; text-align:center!important;
  color:var(--yg-ink); font-size:clamp(23px,2.2vw,30px); font-weight:500; line-height:1.7; margin:10px 0;
}
body.yg-native main .term-description { color:var(--yg-muted); max-width:600px; margin:auto; font-size:14px; }
body.yg-native main .woocommerce-result-count { float:right!important; width:auto; margin:12px 0 24px!important; }
body.yg-native main .woocommerce-ordering { display:block!important; float:left!important; margin:0 0 24px; }
body.yg-native main .woocommerce-ordering select { width:240px; opacity:1!important; }
body.yg-inner main :is(.woocommerce-info,.woocommerce-message,.woocommerce-error) {
  color:var(--yg-ink); background:#faf6eb; border:1px solid var(--yg-line);
  border-inline-start:3px solid var(--yg-gold); border-radius:4px;
}
body.yg-inner main .woocommerce-error { border-inline-start-color:#a53f34; }
body.yg-inner main .yg-empty-actions { text-align:center; padding:24px 12px; color:var(--yg-ink); }
body.yg-inner main .yg-empty-actions form { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; max-width:600px; margin:18px auto; }
body.yg-inner main .yg-empty-actions .search-field { flex:1; min-width:150px; }
body.yg-inner main :is(.yabout-hero,.yabout-close) {
  border:1px solid #b99a5b70; border-radius:6px; background-image:var(--yg-ornament); background-position:center; background-size:960px auto;
}
body.yg-inner main .yabout-frame { border:1px solid var(--yg-line); border-radius:5px; padding:4px; }
body.yg-inner main .yabout-photo { border-radius:3px; }
body.yg-inner main :is(.woocommerce-cart-form,.cart_totals,.woocommerce-checkout-review-order,.woocommerce-MyAccount-navigation) {
  border:1px solid var(--yg-line); border-radius:5px; padding:clamp(12px,2vw,24px); background-color:#faf6eb;
}
body.yg-inner main .woocommerce-MyAccount-navigation a { color:var(--yg-ink); }
@media(max-width:760px) {
  body.yg-inner main.l-main>.l-section>.l-section-h { width:calc(100% - 24px)!important; padding:22px 16px; }
  body.yg-inner main.l-main>.l-section>.l-section-h:has(.yg-store) { padding:0; }
  body.yg-native main .woocommerce-ordering,body.yg-native main .woocommerce-result-count { float:none!important; width:100%; }
  body.yg-native main .woocommerce-result-count { margin:0 0 12px!important; }
  body.yg-native main .woocommerce-ordering select { width:100%; }
}

/* 1.2.3: owner-provided explanation; native disclosure, no price changes. */
.yg-price-formula {
  direction:rtl; width:100%; max-width:520px; margin:14px 0 20px;
  border:1px solid #b79b6080; border-radius:5px;
  background:#f4ecd9; color:#193426; overflow:hidden;
  box-sizing:border-box; text-align:right;
}
.yg-price-formula>summary {
  display:flex; align-items:center; gap:9px; min-height:46px;
  padding:10px 14px; cursor:pointer; list-style:none;
  color:#193426; font:inherit; font-size:13px; font-weight:500; line-height:1.8;
}
.yg-price-formula>summary::-webkit-details-marker { display:none; }
.yg-price-formula>summary img {
  width:18px!important; height:18px!important; flex:0 0 18px;
  margin:0!important; padding:0; border:0; background:none;
}
.yg-price-formula .yg-formula-open,.yg-price-formula .yg-formula-close {
  margin-inline-start:auto; color:#775b2b; font-size:11px; font-weight:400;
}
.yg-price-formula .yg-formula-close { display:none; }
.yg-price-formula[open] .yg-formula-close { display:inline; }
.yg-price-formula[open] .yg-formula-open { display:none; }
.yg-price-formula .yg-price-formula-body {
  background:#eee4cd;
  border-top:1px solid #b79b6060; padding:16px 18px;
}
.yg-price-formula .yg-price-formula-body p {
  color:#193426!important; font:inherit; font-size:13px; font-weight:400;
  line-height:2.3; margin:0!important; white-space:normal;
  overflow-wrap:anywhere; unicode-bidi:plaintext;
}
.yg-price-formula>summary:focus-visible { outline:3px solid #13738d; outline-offset:-4px; }
@media(max-width:520px) {
  .yg-price-formula { max-width:100%; }
  .yg-price-formula .yg-price-formula-body { padding:13px 14px; }
}
