/* ================================================
   SHOP PAGE - Styles
   Extends base style.css
   ================================================ */

/* --- Shop Hero --- */
#shop-hero {
    padding: 140px 0 20px;
    background: var(--bg-darkest);
}

.shop-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.shop-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.7;
}

/* --- How It Works --- */
#shop-how {
    padding: 32px 0 0;
    background: var(--bg-darkest);
}

.how-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.how-step {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    padding: 24px 28px;
}

.how-num {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono);
}

.how-step div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.how-step strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.how-step span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.how-divider {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
    align-self: stretch;
}

/* --- Products Section --- */
#shop-products {
    padding: 60px 0 80px;
    background: var(--bg-darkest);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* --- Product Card --- */
.product-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.1);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 3px;
}

.product-icon {
    color: var(--accent);
    margin-bottom: 16px;
    width: 44px;
    height: 44px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
    padding: 0;
}

.product-features li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features li::before {
    content: '\2713';
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Pricing --- */
.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.price-from {
    font-size: 0.7rem;
    color: var(--text-faint);
    text-transform: lowercase;
}

.price-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
}

.price-range {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.product-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 24px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Custom card variant */
.product-card-custom {
    border-style: dashed;
    border-color: var(--bg-lighter);
}

.product-card-custom:hover {
    border-style: dashed;
    border-color: var(--accent);
}

.shop-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-top: 28px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* --- Invite Modal --- */
.invite-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.invite-modal.open {
    display: flex;
}

.invite-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.invite-modal-content {
    position: relative;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.invite-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
    padding: 4px;
}

.invite-modal-close:hover {
    color: var(--text-primary);
}

.invite-modal-icon {
    color: var(--accent);
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    background: rgba(88, 101, 242, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.invite-modal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.invite-modal-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.invite-modal-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
}

.invite-modal-note {
    font-size: 0.72rem;
    color: var(--text-faint);
    margin-top: 10px;
}

.invite-modal-note.error {
    color: var(--red);
}

.invite-modal-note.success {
    color: var(--green);
}

/* Nav active state */
.nav-active {
    color: var(--text-primary) !important;
}

.nav-active::after {
    width: 100% !important;
}

/* --- Scroll Reveal for shop --- */
.product-card {
    opacity: 0;
    transform: translateY(24px);
}

.how-steps {
    opacity: 0;
    transform: translateY(16px);
}

.product-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.how-steps.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Stagger product cards */
.product-card:nth-child(1) { transition-delay: 0s; }
.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.2s; }

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 968px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-steps {
        flex-direction: column;
    }

    .how-step {
        padding: 20px 24px;
    }

    .how-divider {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 640px) {
    .nav-links,
    .nav-right {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    #shop-hero {
        padding: 120px 0 20px;
    }

    .shop-title {
        font-size: 2rem;
    }

    .shop-subtitle {
        font-size: 0.92rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card {
        padding: 24px 20px;
    }

    .invite-modal-content {
        padding: 28px 24px;
    }

    #shop-products {
        padding: 48px 0 60px;
    }
}
