/* Challenge Circle — Shop
   Mirrors blog.css's visual language (same hero/filter/grid/card shapes)
   for a consistent feel across the two content-browsing areas. */

.shop-hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 32px 48px;
    text-align: center;
}
.shop-hero h1 {
    font-size: clamp(2rem,5vw,3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}
.shop-hero h1 span { color: #a78bfa; }
.shop-hero-sub {
    font-size: 15px;
    color: #9ca3af;
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}
.shop-filter-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
    text-decoration: none;
    display: inline-block;
}
.shop-filter-btn:hover,
.shop-filter-btn.active {
    background: rgba(139,92,246,0.12);
    border-color: rgba(139,92,246,0.35);
    color: #a78bfa;
}

/* ── Product card grid ───────────────────────────────────── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px 80px;
}
.shop-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.shop-card:hover {
    border-color: rgba(139,92,246,0.3);
    transform: translateY(-2px);
}
.shop-card-cover {
    aspect-ratio: 4/3;
    background: rgba(139,92,246,0.08);
    overflow: hidden;
    position: relative;
}
.shop-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.shop-card:hover .shop-card-cover img { transform: scale(1.04); }
.shop-card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(109,40,217,0.05));
}
.shop-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(0,0,0,0.7);
    color: #a78bfa;
    padding: 3px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}
.shop-card-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(245,158,11,0.85);
    color: #1a1304;
    padding: 3px 10px;
    border-radius: 6px;
}
.shop-card-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.shop-card-type {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
}
.shop-card-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #ffffff;
}
.shop-card-excerpt {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
    flex: 1;
}
.shop-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.shop-card-price {
    font-size: 16px;
    font-weight: 900;
    color: #a78bfa;
}
.shop-card-price-was {
    font-size: 12px;
    color: #6b7280;
    text-decoration: line-through;
}

/* ── Product detail page ─────────────────────────────────── */
.shop-detail {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    margin-bottom: 20px;
}
@media (max-width: 720px) {
    .shop-detail { grid-template-columns: 1fr; }
}
.shop-detail-cover {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: rgba(139,92,246,0.08);
}
.shop-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-detail-cat {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a78bfa;
    margin-bottom: 8px;
}
.shop-detail-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
}
.shop-detail-author {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 14px;
}
.shop-detail-desc {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 16px;
}
.shop-detail-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.shop-detail-price-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.shop-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.shop-detail-price {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}
.shop-detail-member-hint {
    font-size: 12px;
    color: #a78bfa;
    margin-top: 6px;
}
.shop-detail-body {
    font-size: 16px;
    line-height: 1.85;
    color: #d1d5db;
}
.shop-detail-body h1,.shop-detail-body h2,.shop-detail-body h3 {
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 32px 0 12px;
    line-height: 1.25;
}
.shop-detail-body h1 { font-size: 24px; }
.shop-detail-body h2 { font-size: 20px; }
.shop-detail-body h3 { font-size: 17px; }
.shop-detail-body p  { margin: 0 0 16px; }
.shop-detail-body ul,.shop-detail-body ol { margin: 0 0 16px 20px; }
.shop-detail-body li { margin-bottom: 6px; }
.shop-detail-body a { color: #a78bfa; text-decoration: underline; text-underline-offset: 3px; }
.shop-detail-body a:hover { color: #fff; }
.shop-detail-body img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.shop-detail-body strong { color: #fff; }

/* ── My Purchases list ───────────────────────────────────── */
.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.purchase-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 14px 18px;
}
.purchase-row-cover {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(139,92,246,0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    overflow: hidden;
}
.purchase-row-cover img { width: 100%; height: 100%; object-fit: cover; }
.purchase-row-info { flex: 1; min-width: 0; }
.purchase-row-type {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
}
.purchase-row-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.purchase-row-meta {
    font-size: 12px;
    color: #6b7280;
}
.purchase-row-actions { flex-shrink: 0; }
