/* 4D-Shop — отдельные стили витрины (будущий standalone-сайт) */

.shop-page {
    max-width: 960px;
}

.shop-hero {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8ebff;
}

.shop-hero-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.shop-hero-brand h1 {
    margin: 0;
    font-size: 2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-hero-logo {
    flex-shrink: 0;
}

.shop-tagline {
    margin: 4px 0 0;
    color: #666;
}

.shop-user {
    margin: 8px 0;
    color: #444;
}

.shop-note {
    margin: 8px 0 0;
    font-size: 0.95em;
    color: #666;
}

.shop-section {
    margin-bottom: 40px;
    scroll-margin-top: 16px;
}

.shop-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.shop-section-head h2 {
    margin: 0 0 4px;
    font-size: 1.5em;
}

.shop-section-subtitle {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.shop-section-icon {
    flex-shrink: 0;
    margin-top: 4px;
}

.shop-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.shop-plan-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-plan-card:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.shop-plan-card h3 {
    margin: 0 0 8px;
    font-size: 1.1em;
}

.shop-plan-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    margin: 12px 0;
}

.shop-plan-duration {
    margin: 0 0 16px;
    color: #666;
    font-size: 0.95em;
}

.shop-plan-description {
    margin: 0 0 16px;
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
    text-align: left;
}

.shop-plan-card--service {
    text-align: left;
}

.shop-plan-card--service .shop-plan-price {
    text-align: center;
}

.shop-plan-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.shop-plan-btn:hover {
    opacity: 0.9;
    color: white;
}

.shop-plan-bot-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.shop-plan-btn--secondary {
    margin-top: 0.5rem;
    background: #5a6fd6;
}

.wg-redeem-block {
    margin: 1.25rem 0;
    text-align: left;
}

.wg-redeem-code-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

.wg-redeem-code {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: #f4f4f8;
    border-radius: 6px;
    font-size: 1rem;
}

.wg-redeem-hint,
.wg-redeem-label {
    font-size: 0.9rem;
    color: #555;
}

.wg-codes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wg-codes-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.wg-codes-meta {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.shop-back-link {
    margin-top: 24px;
}

.shop-back-link a {
    color: #667eea;
    text-decoration: none;
}

.shop-back-link a:hover {
    text-decoration: underline;
}

/* Иконка 4D-Shop в header главной (рядом с версией) */
.shop-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.shop-icon-link:hover {
    transform: scale(1.1);
}

.shop-icon-link img,
.shop-icon-link svg {
    width: 100%;
    height: 100%;
}

.payment-result-page {
    display: flex;
    justify-content: center;
    padding-top: 48px;
}

.payment-result-card {
    width: 100%;
    max-width: 520px;
    padding: 28px 32px;
    border-radius: 12px;
}

.payment-result-card h1 {
    margin: 0 0 16px;
    font-size: 1.5rem;
}

.payment-result-message {
    margin: 0 0 24px;
    line-height: 1.5;
}

.payment-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin: 0;
}

.payment-result-home {
    color: #667eea;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .shop-hero-brand h1 {
        font-size: 1.5em;
    }

    .shop-plans-grid {
        grid-template-columns: 1fr;
    }
}
