/* Esoterica Shop — matches the site palette (gold #D7CB59 / #a08040, cream #fdfcf6, brown #2d2013) */
.eshop-grid { padding-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0 0 28px; }
.eshop-card { background: #fdfcf6; border: 1px solid rgba(215,203,89,.45); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.eshop-card { position: relative; }
.eshop-card--badge { border-color: #D7CB59; box-shadow: 0 0 0 1px rgba(215,203,89,.6); padding-top: 26px; }
.eshop-badge { position: absolute; top: -11px; right: 16px; background: #a08040; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1; padding: 6px 10px; border-radius: 999px; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.eshop-card-head { display: flex; flex-wrap: nowrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.eshop-card .eshop-title { flex: 1 1 auto; min-width: 0; width: auto; margin: 0 !important; padding: 0; font-size: 18px; line-height: 1.3; color: #2d2013; }
.eshop-price { flex: 0 0 auto; font-weight: 700; font-size: 18px; color: #a08040; white-space: nowrap; }
.eshop-short { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(45,32,19,.72); }
.eshop-long { font-size: 14px; line-height: 1.6; color: rgba(45,32,19,.8); border-top: 1px solid rgba(0,0,0,.07); padding-top: 10px; }
.eshop-long p { margin: 0 0 8px; }
.eshop-more { align-self: flex-start; background: none; border: 0; padding: 0; color: #a08040; font-weight: 600; font-size: 13px; cursor: pointer; }
.eshop-meta { list-style: none; margin: 2px 0 4px; padding: 0; font-size: 13px; color: rgba(45,32,19,.65); display: grid; gap: 4px; }
.eshop-buy { margin-top: auto; background: #D7CB59; color: #2d2013; border: 0; font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 24px; cursor: pointer; }
.eshop-buy:hover { background: #cfc24a; }
.eshop-buy--inline { margin: 6px 0 0; padding: 0; background: none; color: #a08040; font-size: 13px; font-weight: 600; display: inline; }
.eshop-buy--inline:hover { background: none; text-decoration: underline; }

.eshop-banner { background: rgba(215,203,89,.15); border: 1px solid rgba(215,203,89,.5); color: #5c4a12; border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.eshop-banner--ok { background: rgba(21,128,61,.1); border-color: rgba(21,128,61,.3); color: #166534; }
.eshop-balance { margin: 0 0 16px; font-size: 15px; color: #5c4a12; }

.eshop-orders-title { margin: 8px 0 12px; color: #2d2013; }
.eshop-orders { display: grid; gap: 10px; margin-bottom: 28px; }
.eshop-shop-title { margin-top: 0; }
.eshop-order { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 14px 16px; }
.eshop-order-main { min-width: 0; }
.eshop-order-for { color: rgba(45,32,19,.65); }
.eshop-order-date { font-size: 13px; color: rgba(45,32,19,.55); margin-top: 2px; }
.eshop-order-status { font-size: 14px; font-weight: 600; color: #a08040; }
.eshop-status--delivered, .eshop-status--completed { color: #15803d; }
.eshop-status--q-ready { color: #15803d; }
.eshop-status--q-partly { color: #a08040; }
.eshop-status--q-used { color: rgba(45,32,19,.5); font-weight: 500; }
.eshop-order--used { background: #f7f5ee; border-color: rgba(0,0,0,.05); }
.eshop-order--used strong { color: rgba(45,32,19,.6); }
.eshop-status--refunded { color: rgba(45,32,19,.45); }
.eshop-order .eshop-add-details { margin-top: 0; padding: 8px 16px; font-size: 14px; }

.eshop-popup-single { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; font-size: 14px; color: rgba(45,32,19,.7); }

.eshop-modal { position: fixed; inset: 0; z-index: 999999; background: rgba(20,15,5,.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.eshop-modal[hidden] { display: none; }
.eshop-modal-box { position: relative; background: #fdfcf6; border-radius: 20px; padding: 26px 22px 22px; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.eshop-modal-box h3 { margin: 0 32px 4px 0; color: #2d2013; font-size: 20px; }
.eshop-modal-sub { margin: 0 0 16px; color: rgba(45,32,19,.6); font-size: 14px; }
.eshop-modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.08); color: #2d2013; cursor: pointer; font-size: 15px; }
#eshop-person-form { display: grid; gap: 12px; }
#eshop-person-form label, .eshop-label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: #2d2013; }
.eshop-label { margin-bottom: -6px; }
#eshop-person-form input[type=text], #eshop-person-form select { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid rgba(0,0,0,.15); border-radius: 10px; background: #fff; font-size: 15px; color: #2d2013; }
.eshop-row { display: flex; gap: 8px; }
.eshop-row select { flex: 1; min-width: 0; }
#eshop-person-form .eshop-check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.eshop-form-msg { color: #b32d2e; font-size: 13px; }
.eshop-submit { margin-top: 4px; width: 100%; }
