/* Small additions for the new PHP site (everything else is the original main.css / shop.css). */
.ac-logout-form { margin: 0; }
.ac-logout-form button {
	display: block; width: 100%; text-align: right; cursor: pointer; font: inherit;
	padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
	color: var(--text-soft); font-weight: 600; font-size: 14.5px; white-space: nowrap;
}
.ac-logout-form button:hover { color: var(--gold-light); border-color: var(--gold-line); }
@media (min-width: 900px) { .ac-logout-form button { border: 0; background: none; white-space: normal; } }
.acc-staff-link {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
	margin: 20px 0 0; padding: 14px 18px; border-radius: var(--radius, 14px);
	border: 1px solid var(--gold-line); background: var(--gold-tint); color: var(--gold-light);
}
.acc-staff-link span { font-size: 13px; color: var(--text-soft); }

/* Product page + staff buttons on cards (from the previous version) */
.acc-specs{display:grid;margin:16px 0;border:1px solid var(--line,rgba(255,255,255,.08));border-radius:var(--radius,14px);overflow:hidden;background:var(--surface,#1e1e1e)}
.acc-specs div{display:flex;justify-content:space-between;gap:12px;padding:9px 14px;border-bottom:1px solid var(--line,rgba(255,255,255,.08));font-size:14px}
.acc-specs div:last-child{border-bottom:0}
.acc-specs dt{color:var(--muted,#a3a3a3)}
.acc-specs dd{margin:0;font-weight:700;color:var(--text,#ededed)}
.acc-specs .is-expired dd{color:var(--danger,#e5604d)}
.acc-pactions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.acc-pbtn{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:12px;border:1px solid var(--line-strong,rgba(255,255,255,.14));background:var(--surface-2,#292929);color:var(--text,#ededed);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;text-decoration:none;line-height:1.6;transition:border-color .2s,color .2s}
.acc-pbtn:hover{border-color:var(--gold,#d9a441);color:var(--gold-light,#f0c66e)}
.acc-pbtn[hidden]{display:none}
.acc-pbtn.is-done{border-color:var(--success,#4fbf7f);color:#8fe0b0}
.acc-pbtn--edit{background:var(--gold-tint,rgba(217,164,65,.12));border-color:var(--gold-line,rgba(217,164,65,.35));color:var(--gold-light,#f0c66e)}
.acc-pbtn .pi{flex-shrink:0}
.acc-cardadmin{display:flex;gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--line-strong,rgba(255,255,255,.14))}
.acc-cardadmin__edit,.acc-cardadmin__del{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:10px;padding:7px 12px;font:inherit;font-size:13px;font-weight:800;cursor:pointer;text-decoration:none;border:1px solid transparent;line-height:1.5}
.acc-cardadmin__edit{flex:1;background:var(--gold-tint,rgba(217,164,65,.12));border-color:var(--gold-line,rgba(217,164,65,.35));color:var(--gold-light,#f0c66e)}
.acc-cardadmin__edit:hover{background:var(--grad-gold,linear-gradient(135deg,#f3d28a,#d9a441 48%,#b3842c));color:var(--gold-ink,#1b1409)}
.acc-cardadmin__del{background:rgba(229,96,77,.14);border-color:rgba(229,96,77,.45);color:#ff9d8f}
.acc-cardadmin__del:hover{background:#e5604d;color:#fff}
.p-card.is-removing{opacity:0;transform:scale(.97);transition:opacity .3s,transform .3s}
.acc-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:999;background:#232323;border:1px solid var(--gold-line,rgba(217,164,65,.35));color:#fff;border-radius:14px;padding:10px 18px;box-shadow:0 20px 50px rgba(0,0,0,.5);font-weight:600;max-width:calc(100vw - 32px)}
.acc-toast.is-err{border-color:rgba(229,96,77,.6);color:#ffc2b9}
.acc-soon-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--gold-tint); border: 1px solid var(--gold-line); color: var(--text-soft); font-size: 13.5px; }
.woocommerce-Tabs-panel[hidden] { display: none; }
.p-card__img { width: 100%; height: 100%; object-fit: cover; }

/* ======================= Cart, checkout, account (v2.2) ======================= */
.cart-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; } .cart-summary { position: sticky; top: calc(var(--header-h) + 18px); } }
.cart-list { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); position: relative; }
.cart-item.has-problem { border-color: rgba(229, 96, 77, .5); }
.cart-item__img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #e9e9e9; display: grid; place-items: center; color: #888; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { display: grid; gap: 4px; min-width: 0; }
.cart-item__name { font-weight: 700; color: #fff; line-height: 1.6; }
.cart-item__unit { font-size: 13px; color: var(--muted); }
.cart-item__unit s { margin-inline-start: 6px; opacity: .7; }
.cart-item__problem { font-size: 13px; color: #ff9d8f; }
.cart-item__total { grid-column: 2; font-size: 15px; color: var(--gold-light); }
.cart-item .quantity { grid-column: 3; grid-row: 1; justify-self: end; }
.cart-item__remove { position: absolute; top: 8px; inset-inline-end: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.cart-item__remove:hover { background: rgba(229, 96, 77, .15); color: #ff9d8f; }
@media (min-width: 640px) { .cart-item { grid-template-columns: 84px minmax(0, 1fr) auto 130px; } .cart-item__total { grid-column: 4; grid-row: 1; text-align: left; } .cart-item .quantity { grid-column: 3; } }
.cart-summary, .co-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.cart-summary h2, .co-box h2 { font-size: 17px; margin: 0 0 12px; }
.cart-summary dl { margin: 0 0 12px; display: grid; gap: 0; }
.cart-summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-summary dl div:last-child { border: 0; }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; font-weight: 700; }
.cart-summary .is-discount dd { color: var(--success); }
.cart-summary .is-total { font-size: 16px; }
.cart-summary .is-total dd { color: var(--gold-light); font-size: 18px; }
.cart-summary__hint { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--gold-tint); border: 1px solid var(--gold-line); font-size: 13px; color: var(--text-soft); }
.cart-summary .btn--block { margin-top: 8px; }
.cart-coupon { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; font-size: 13.5px; }
.cart-coupon input { flex: 1; min-width: 0; }
.co-box { margin-bottom: 16px; }
.co-grid { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .co-grid { grid-template-columns: 1fr 1fr; } .co-grid__full { grid-column: 1 / -1; } }
.co-box .form-row, .co-grid .form-row { font-size: 14px; font-weight: 600; color: var(--text-soft); }
.co-box .form-row input, .co-box .form-row select, .co-box .form-row textarea { display: block; width: 100%; margin-top: 6px; }
.co-other { margin-top: 14px; }
.co-pay { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--gold-line); border-radius: 12px; background: var(--gold-tint); }
.co-pay small { display: block; color: var(--muted); font-weight: 400; margin-top: 3px; }
.co-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.co-items li { display: flex; justify-content: space-between; gap: 10px; color: var(--text-soft); }
.co-items b { white-space: nowrap; color: var(--text); }
.pay-card { display: grid; gap: 8px; padding: 18px; margin: 12px 0; border-radius: 16px; border: 1px solid var(--gold-line); background: linear-gradient(135deg, #1f1b14, #141414); text-align: center; }
.pay-card small { color: var(--muted); }
.pay-card > b { font-size: clamp(20px, 5vw, 28px); letter-spacing: .12em; color: var(--gold-light); }
.pay-amount { color: var(--gold-light); font-size: 20px; }
.pay-hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.acc-sub { font-size: 17px; margin: 24px 0 10px; }
.acc-orders { display: grid; gap: 8px; }
.acc-order { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.acc-order:hover { border-color: var(--gold-line); }
.acc-order-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 10px; }
.acc-order-card header, .acc-order-card footer { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.acc-order-card header span { color: var(--muted); font-size: 13px; margin-inline-end: auto; }
.acc-order-card footer strong { margin-inline-end: auto; color: var(--gold-light); }
.acc-order-card__items { margin: 0; color: var(--text-soft); font-size: 13.5px; }
.st { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--surface-3); color: var(--text-soft); white-space: nowrap; }
.st--awaiting, .st--unverified { background: rgba(232, 163, 59, .16); color: #f5c47a; }
.st--preparing { background: rgba(80, 140, 230, .16); color: #9cc2ff; }
.st--shipped { background: rgba(160, 110, 230, .16); color: #cdb0ff; }
.st--delivered, .st--verified { background: rgba(79, 191, 127, .16); color: #7fdca5; }
.st--cancelled, .st--bounced { background: rgba(229, 96, 77, .16); color: #ff9d8f; }
.acc-order-view__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 14px; }
.acc-order-view__head h2 { margin: 0; font-size: 19px; }
.acc-order-view__head span { color: var(--muted); font-size: 13px; margin-inline-end: auto; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; padding: 0; }
.steps li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12.5px; color: var(--muted); }
.steps span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-weight: 800; }
.steps .is-done span, .steps .is-current span { background: var(--grad-gold); color: var(--gold-ink); }
.steps .is-current b, .steps .is-done b { color: var(--gold-light); }
.acc-track { padding: 10px 14px; border-radius: 12px; background: var(--gold-tint); border: 1px solid var(--gold-line); }
.acc-table { width: 100%; border-collapse: collapse; margin: 14px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.acc-table th, .acc-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.acc-table thead th { color: var(--muted); font-weight: 600; background: var(--surface-2); }
.acc-table tfoot td { color: var(--text-soft); }
.acc-table .is-total td { color: var(--gold-light); font-weight: 800; font-size: 15px; }
.acc-two { display: grid; gap: 14px; }
@media (min-width: 760px) { .acc-two { grid-template-columns: 1fr 1fr; } }
.acc-two section { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.acc-two h3 { margin: 0 0 8px; font-size: 15px; }
.acc-two p { margin: 0 0 6px; font-size: 13.5px; color: var(--text-soft); }
.acc-cancel { display: flex; gap: 8px; margin-top: 14px; }
.acc-cancel input { flex: 1; min-width: 0; }
.cart-count.is-empty { display: none; }

/* ======================= Pages & contact card (v2.3) ======================= */
.page-content { margin-bottom: 24px; }
.page-content h2 { margin-top: 1.6em; }
.contact-card { display: grid; gap: 10px; margin: 18px 0; }
.contact-card__row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.contact-card__row > .ac-icon { color: var(--gold); flex-shrink: 0; }
.contact-card__row div:nth-of-type(1) { display: grid; gap: 2px; min-width: 0; }
.contact-card__row small { color: var(--muted); font-size: 12.5px; }
.contact-card__btns { margin-inline-start: auto; display: flex; gap: 8px; }

/* ======================= Articles (v2.4) ======================= */
.post-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta__cat { padding: 3px 12px; border-radius: 999px; background: var(--gold-tint); border: 1px solid var(--gold-line); color: var(--gold-light); }
.post-cover { margin: 0 0 22px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 9; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.toc { margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.toc ol { margin: 10px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.toc a { color: var(--text-soft); }
.toc a:hover { color: var(--gold-light); }
.single-post .prose h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.post-cta { margin: 32px 0 12px; padding: 24px; border: 1px solid var(--gold-line); border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(217, 164, 65, .10), rgba(255, 255, 255, .02)); display: grid; gap: 14px; }
.post-cta h2 { margin: 0; font-size: 20px; color: var(--gold-light); }
.post-cta p { margin: 0; color: var(--text-soft); }
.post-cta__grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .post-cta__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.post-cta .btn { justify-self: start; }
.post-related { margin-top: 40px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.pager a { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text-soft); }
.pager a.is-active, .pager a:hover { background: var(--grad-gold); color: var(--gold-ink); border-color: transparent; }
.prose-img { margin: 22px 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.prose-img img { display: block; width: 100%; height: auto; }

/* Quote (Telegram style) and italic inside articles */
.prose blockquote { margin: 22px 0; padding: 14px 18px; border: 0; border-inline-start: 4px solid var(--gold); border-radius: 4px 14px 14px 4px; background: linear-gradient(90deg, rgba(217, 164, 65, .10), rgba(217, 164, 65, .04)); color: var(--text); }
html[dir="rtl"] .prose blockquote { border-radius: 14px 4px 4px 14px; }
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: .7em; }
.prose em { font-style: italic; color: var(--text); }
.prose blockquote strong { color: var(--gold-light); }

/* note shown only to the shop owner */
.admin-hint { display: grid; gap: 10px; justify-items: start; padding: 18px 20px; border: 1.5px dashed var(--gold-line); border-radius: var(--radius-lg); background: transparent; color: var(--text-soft); }
.admin-hint strong { color: var(--gold-light); }
.admin-hint p { margin: 0; }
