/* Shop storefront styles */

.shop-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 1rem 3rem;
}

.shop-header {
    text-align: center;
    margin-bottom: 2rem;
}

.shop-title {
    font-family: 'Cinzel', serif;
    font-size: 2.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.4rem;
    color: #ffffff;
}

.shop-subtitle {
    font-family: 'Forum', serif;
    font-size: 1rem;
    color: #c3d2f4;
    margin: 0;
}

.shop-balance-card {
    background: radial-gradient(circle at top, rgba(20, 40, 70, 0.9), rgba(5, 10, 20, 0.98));
    border-radius: 18px;
    border: 1px solid rgba(120, 170, 255, 0.7);
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.8);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.shop-balance-label {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: #9fb1de;
}

.shop-balance-value {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #f0d58a;
}

.shop-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.shop-section {
    margin-top: 2.5rem;
}

.shop-section-title {
    margin-bottom: 1.2rem;
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.shop-product-card {
    background: rgba(5, 10, 20, 0.96);
    border: 1px solid rgba(80, 120, 180, 0.7);
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
    padding: 1.2rem 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-product-name {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin: 0;
}

.shop-product-desc {
    font-family: 'Forum', serif;
    font-size: 0.98rem;
    color: #c3d2f4;
    line-height: 1.5;
    margin: 0;
}

.shop-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #9fb4dd;
}

.shop-product-price {
    font-family: 'Cinzel', serif;
    color: #f0d58a;
    font-size: 1rem;
}

.shop-product-scope {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.shop-product-action {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.shop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(151, 182, 230, 0.7);
    background: rgba(10, 22, 38, 0.9);
    color: #e4f2ff;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.shop-button .shop-cost {
    margin-left: 0.6rem;
    color: #f0d58a;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.shop-button:hover {
    background: rgba(16, 32, 54, 0.95);
}

.shop-detail-card {
    background: rgba(5, 10, 20, 0.96);
    border: 1px solid rgba(80, 120, 180, 0.7);
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
    padding: 1.4rem;
}

.shop-form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.shop-form label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #c3d2f4;
}

.shop-form select,
.shop-form input {
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(120, 170, 255, 0.6);
    background: rgba(6, 14, 26, 0.9);
    color: #e4f2ff;
}

.shop-alert {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.shop-alert--error {
    background: rgba(120, 40, 40, 0.2);
    border-color: rgba(200, 80, 80, 0.6);
    color: #ffb2b2;
}

.shop-alert--success {
    background: rgba(40, 120, 70, 0.2);
    border-color: rgba(120, 220, 160, 0.6);
    color: #b6f0c9;
}

.shop-kv {
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.shop-kv span {
    color: #9fb4dd;
}

.shop-inline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.shop-inline-list li {
    font-size: 0.9rem;
    color: #c3d2f4;
}

.shop-table-wrap {
    border-radius: 16px;
    border: 1px solid rgba(80, 120, 180, 0.7);
    background: rgba(5, 10, 20, 0.96);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.shop-table {
    width: 100%;
    max-width: none;
    border-collapse: collapse;
}

.shop-table thead {
    background: rgba(12, 24, 48, 0.96);
}

.shop-table th,
.shop-table td {
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(40, 60, 100, 0.9);
}

.shop-table th {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: #a9bce6;
    text-align: left;
}

.shop-table tbody tr:last-child td {
    border-bottom: none;
}

.shop-meta-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

@media (max-width: 720px) {
    .shop-balance-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-links,
    .shop-meta-links {
        flex-direction: column;
        align-items: center;
    }
}
