/* ═══ awstra-collection ═══ */
.awstra-collection-page{padding:120px 24px 80px}
.awstra-collection-header{text-align:center;margin-bottom:56px}
.awstra-collection-header h1{font-family:var(--mono);font-size:var(--title-size);font-weight:700;line-height:1.15;color:var(--text);letter-spacing:-.02em;margin-bottom:10px}
.awstra-collection-header p{font-size:15px;color:var(--text-sub);max-width:480px;margin:0 auto;text-wrap:balance}
.awstra-collection-toolbar{max-width:1200px;margin:0 auto 32px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.awstra-collection-grid-heading{max-width:1200px;margin:0 auto 18px;font-family:var(--mono);font-size:18px;font-weight:700;color:var(--text);letter-spacing:-.01em}
.awstra-collection-count{font-size:13px;color:var(--text-sub)}
.awstra-collection-sort{display:flex;align-items:center;gap:8px}
.awstra-collection-sort label{font-size:12px;color:var(--text-sub);font-weight:500}
.awstra-collection-sort select{padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--sans);font-size:13px;color:var(--text);background:var(--white);outline:none;cursor:pointer}
.awstra-collection-sort select:focus{border-color:var(--crimson)}
@media(max-width:600px){.awstra-collection-sort select{font-size:16px}}

.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px;max-width:1200px;margin:0 auto}
.product-card{border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;transition:transform .3s var(--ease-spring),box-shadow .3s ease,border-color .3s ease;cursor:pointer;display:flex;flex-direction:column;background:var(--white);text-decoration:none;color:inherit}
.product-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-ambient);border-color:transparent}
.product-card .card-img{aspect-ratio:1;background:var(--bg);display:flex;align-items:center;justify-content:center;overflow:hidden;padding:20px;border-radius:var(--radius-md) var(--radius-md) 0 0}
.product-card .card-img img{width:100%;height:100%;object-fit:contain;transition:transform .4s ease;border-radius:var(--radius-md) var(--radius-md) 0 0}
.product-card:hover .card-img img{transform:scale(1.06)}
/* A logo drawn for light and dark (CreateLab): the theme picks one */
.product-card .card-img .card-img-dark{display:none}
[data-theme="dark"] .product-card .card-img .card-img-light{display:none}
[data-theme="dark"] .product-card .card-img .card-img-dark{display:block}
.product-card .card-img .card-placeholder{font-family:var(--mono);font-size:44px;font-weight:800;color:var(--crimson-text);opacity:.15}
.product-card .card-img .card-fallback-icon{width:94px;height:94px;color:var(--crimson-text)}
.product-card .card-img .card-fallback-icon svg{width:100%;height:100%;display:block}
.product-card .card-body{padding:22px;flex:1;display:flex;flex-direction:column}
.product-card .card-body h3{font-family:var(--mono);font-size:17px;font-weight:700;color:var(--text);margin-bottom:4px;letter-spacing:-.01em}
/* Prices and order numbers use the body font: in the pixel heading font a 2 reads as an 8 and a 5 as an S */
.product-card .card-price{font-family:var(--sans);font-size:21px;font-weight:700;line-height:1.2;color:var(--text);margin-bottom:8px}
/* "from … / month" on a subscription: the words smaller, so it fits one line */
.product-card .card-price [data-i18n]{font-size:15px;font-weight:400;color:var(--text-sub)}
.product-card .card-desc{font-size:13px;color:var(--text-sub);line-height:1.5;margin-bottom:14px;flex:1}
.product-card .card-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.product-card .card-tag{font-size:12px;font-weight:600;padding:3px 10px;letter-spacing:.04em}
.product-card .card-tag.stock{background:#e8f5e9;color:#2e7d32}
.product-card .card-tag.out{background:#fce4ec;color:#c62828}
.product-card .card-arrow{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--crimson-text);display:inline-flex;align-items:center;gap:4px;margin-top:auto;align-self:flex-start;transition:gap .2s}
.product-card:hover .card-arrow{gap:8px}
.product-card .card-arrow svg{width:12px;height:12px}
.awstra-empty-state{text-align:center;padding:64px 0}
.awstra-empty-state p{font-size:15px;color:var(--text-sub);margin-bottom:20px}
.awstra-empty-state a{display:inline-flex;align-items:center;padding:14px 32px;background:var(--crimson);color:#fff;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;border-radius:var(--radius-sm);transition:filter .2s,transform .15s}
.awstra-empty-state a:hover{filter:brightness(.92);transform:translateY(-2px)}

[data-theme="dark"] .product-card{background:var(--white)}
[data-theme="dark"] .product-card .card-img{background:#1f1f1f}
[data-theme="dark"] .awstra-collection-sort select{background:var(--white)}
