/* Pashiz Daily Auctions – front end. Inherits your theme's fonts. */
.pda {
	--pda-accent: #7a5c1e;
	--pda-accent-ink: #fff;
	--pda-ink: #1d1d1b;
	--pda-muted: #6b6b66;
	--pda-line: #e4e1da;
	--pda-soft: #f7f5f0;
	--pda-good: #1f7a3a;
	--pda-bad: #b3261e;
	--pda-warn: #9a6400;
	--pda-radius: 6px;
	color: var(--pda-ink);
	box-sizing: border-box;
}
.pda *, .pda *::before, .pda *::after { box-sizing: inherit; }
.pda [hidden] { display: none !important; }

/* Toolbar */
.pda-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.pda-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--pda-line); }
.pda-tabs a { padding: 8px 14px; text-decoration: none; color: var(--pda-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.pda-tabs a.is-active { color: var(--pda-ink); border-bottom-color: var(--pda-accent); }
.pda-tabs a span { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--pda-soft); font-size: .8em; text-align: center; }
.pda-search input { padding: 8px 12px; border: 1px solid var(--pda-line); border-radius: var(--pda-radius); min-width: 220px; max-width: 100%; }

/* Grid of lot cards */
.pda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.pda-card { display: flex; flex-direction: column; border: 1px solid var(--pda-line); border-radius: var(--pda-radius); overflow: hidden; background: #fff; transition: box-shadow .15s; }
.pda-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.pda-card-img { display: block; aspect-ratio: 1 / 1; background: var(--pda-soft); }
.pda-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; margin: 0; }
.pda-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pda-lotno { font-size: .78em; letter-spacing: .08em; text-transform: uppercase; color: var(--pda-accent); font-weight: 700; }
.pda-card-title { font-size: 1em; line-height: 1.35; margin: 0; }
.pda-card-title a { color: inherit; text-decoration: none; }
.pda-est, .pda-sku { font-size: .85em; color: var(--pda-muted); }
.pda-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: auto; }
.pda-price-label { font-size: .8em; color: var(--pda-muted); width: 100%; }
.pda-price-value { font-size: 1.25em; }
.pda-bidcount { font-size: .8em; color: var(--pda-muted); }
.pda-timer { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9em; }
.pda-timer.is-urgent { color: var(--pda-bad); }
.pda-card.is-ended { opacity: .85; }

.pda-btn { display: inline-block; text-align: center; padding: 9px 14px; border-radius: var(--pda-radius); border: 1px solid var(--pda-ink); color: var(--pda-ink); background: transparent; text-decoration: none; font-weight: 600; cursor: pointer; line-height: 1.2; }
.pda-btn:hover { background: var(--pda-soft); }
.pda-btn-primary { background: var(--pda-accent); border-color: var(--pda-accent); color: var(--pda-accent-ink); }
.pda-btn-primary:hover { background: #5f4716; border-color: #5f4716; color: #fff; }
.pda-btn.is-confirm { background: var(--pda-good); border-color: var(--pda-good); }
.pda-btn[disabled] { opacity: .6; cursor: wait; }

.pda-my { font-size: .85em; font-weight: 600; padding: 6px 8px; border-radius: var(--pda-radius); }
.pda-my-good { background: #e7f4ea; color: var(--pda-good); }
.pda-my-bad { background: #fbe9e7; color: var(--pda-bad); }
.pda-my-muted { background: var(--pda-soft); color: var(--pda-muted); }

.pda-pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0 0; flex-wrap: wrap; }
.pda-pagination a { padding: 6px 12px; border: 1px solid var(--pda-line); border-radius: var(--pda-radius); text-decoration: none; color: inherit; }
.pda-pagination a.is-active { background: var(--pda-ink); color: #fff; border-color: var(--pda-ink); }
.pda-empty { padding: 30px; text-align: center; background: var(--pda-soft); border-radius: var(--pda-radius); }

/* Lot page */
.pda-lot-nav { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: .9em; }
.pda-lot-nav a { text-decoration: none; margin-left: 12px; }
.pda-lot-nav a:first-child { margin-left: 0; }
.pda-lot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.pda-gallery-main { background: var(--pda-soft); border-radius: var(--pda-radius); overflow: hidden; }
.pda-gallery-main img { width: 100%; height: auto; display: block; margin: 0; }
.pda-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pda-thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--pda-radius); background: var(--pda-soft); cursor: pointer; overflow: hidden; }
.pda-thumb.is-active { border-color: var(--pda-accent); }
.pda-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.pda-lot-title { font-size: 1.5em; line-height: 1.3; margin: 4px 0 6px; }

.pda-box { border: 1px solid var(--pda-line); border-radius: var(--pda-radius); padding: 18px; margin: 16px 0 24px; background: #fff; }
.pda-timer-lg { font-size: 1.6em; }
.pda-ends { font-size: .85em; color: var(--pda-muted); margin: 2px 0 12px; }
.pda-facts { margin: 0 0 12px; display: grid; gap: 6px; }
.pda-facts > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--pda-line); padding-bottom: 6px; }
.pda-facts dt { color: var(--pda-muted); font-weight: normal; margin: 0; }
.pda-facts dd { margin: 0; text-align: right; }
.pda-facts .pda-price-value { font-size: 1.3em; }
.pda-label { display: block; font-size: .85em; margin: 12px 0 6px; color: var(--pda-muted); }
.pda-bid-row { display: flex; align-items: stretch; gap: 8px; }
.pda-cur { display: flex; align-items: center; padding: 0 10px; background: var(--pda-soft); border: 1px solid var(--pda-line); border-radius: var(--pda-radius); font-weight: 700; }
.pda-bid-row input { flex: 1; min-width: 0; padding: 10px 12px; font-size: 1.1em; border: 1px solid var(--pda-line); border-radius: var(--pda-radius); }
.pda-bid-row .pda-btn { white-space: nowrap; }
.pda-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pda-chip { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--pda-line); background: var(--pda-soft); cursor: pointer; font-size: .85em; color: var(--pda-ink); }
.pda-chip:hover { border-color: var(--pda-accent); }
.pda-msg { min-height: 1.2em; margin: 10px 0 0; font-weight: 600; font-size: .9em; }
.pda-msg-good { color: var(--pda-good); }
.pda-msg-bad { color: var(--pda-bad); }
.pda-note { font-size: .78em; color: var(--pda-muted); margin: 10px 0 0; }
.pda-login { margin-top: 12px; }
.pda-login .pda-btn { width: 100%; }

.pda-desc { margin-bottom: 24px; }
.pda-history h2 { font-size: 1.05em; margin: 0 0 8px; }
.pda-history ol { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; border-top: 1px solid var(--pda-line); }
.pda-history li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--pda-line); font-size: .9em; }
.pda-history li:first-child strong { color: var(--pda-accent); }
.pda-history time { color: var(--pda-muted); font-variant-numeric: tabular-nums; }
.pda-hist-empty { color: var(--pda-muted); display: block !important; }

/* Product page notice */
.pda-product-notice { border: 1px solid #e0d3b4; background: #fbf7ee; padding: 14px 16px; border-radius: 6px; margin: 0 0 18px; line-height: 1.6; }
.pda-product-notice .button { margin-top: 8px; }

/* My Account */
.pda-account h3 { margin-top: 1.4em; }
.pda-pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .8em; font-weight: 600; }
.pda-pill-good { background: #e7f4ea; color: var(--pda-good); }
.pda-pill-bad { background: #fbe9e7; color: var(--pda-bad); }
.pda-pill-warn { background: #fff3dc; color: var(--pda-warn); }

@media (max-width: 782px) {
	.pda-lot-grid { grid-template-columns: 1fr; gap: 20px; }
	.pda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pda-card-body { padding: 10px; }
	.pda-search, .pda-search input { width: 100%; }
	.pda-bid-row { flex-wrap: wrap; }
	.pda-bid-row input { flex: 1 1 60%; }
	.pda-bid-row .pda-btn { flex: 1 1 100%; padding: 12px; }
}

/* Adapt to the width the theme gives the page, not just the screen. */
.pda { container-type: inline-size; }
@container (max-width: 720px) {
	.pda-lot-grid { grid-template-columns: 1fr; gap: 20px; }
	.pda-gallery-main img { max-height: 520px; object-fit: contain; }
}
@container (max-width: 480px) {
	.pda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pda-card-body { padding: 10px; }
	.pda-bid-row { flex-wrap: wrap; }
	.pda-bid-row .pda-btn { flex: 1 1 100%; padding: 12px; }
}

/* Watch button */
.pda-card-actions { display: flex; gap: 8px; align-items: stretch; }
.pda-card-actions .pda-btn { flex: 1; }
.pda-watch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--pda-line); border-radius: var(--pda-radius); background: #fff; color: var(--pda-ink); font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none; }
.pda-watch:hover { border-color: var(--pda-accent); color: var(--pda-ink); }
.pda-watch .pda-star { font-size: 1.15em; line-height: 1; color: var(--pda-accent); }
.pda-watch.is-on { background: #fbf7ee; border-color: var(--pda-accent); }
.pda-watch.is-compact { padding: 8px 11px; }
.pda-watch[disabled] { opacity: .6; }
.pda-title-actions { margin: 4px 0 4px; }

/* Premium and total */
.pda-total-row dt { color: var(--pda-ink) !important; font-weight: 600 !important; }
.pda-total-row dd strong { font-size: 1.1em; }
.pda-total-hint { font-size: .85em; color: var(--pda-muted); margin: 8px 0 0; }

/* Category filter */
.pda-search { display: flex; gap: 8px; flex-wrap: wrap; }
.pda-search select { padding: 8px 10px; border: 1px solid var(--pda-line); border-radius: var(--pda-radius); background: #fff; max-width: 100%; }
@container (max-width: 480px) { .pda-search select { width: 100%; } }
