/* ==========================================================================
   Shop Page Styles
   ========================================================================== */

/* --- Main Page Layout --- */
.shop-header {
    text-align: center;
    padding: 5rem 0 4rem 0;
}

.shop-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.shop-intro {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-secondary);
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding-bottom: 6rem;
}

/* --- Product Card --- */
.product-card {
    position: relative; /* For the "Best Value" badge */
    background-color: var(--color-secondary-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.product-icon {
    font-size: 2rem;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.product-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.product-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.product-card .btn-primary {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

/* --- Special Styling for the Bundle --- */
.product-card.is-bundle {
    border-color: var(--color-primary-btn);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

.bundle-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--color-primary-btn);
    color: var(--color-primary-btn-text);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- NEW STYLES FOR PRODUCT STATES --- */

/* Style for the "Free" price */
.product-price.is-free {
    color: #00F57A; /* A vibrant green */
}

/* Style for the note below the price */
.product-note {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Dim the unavailable cards */
.product-card.is-unavailable {
    opacity: 0.5;
}

/* Style the disabled button */
.product-card.is-unavailable .btn-primary {
    background-color: var(--color-border);
    color: var(--color-text-secondary);
    cursor: not-allowed;
}

/* Disable the hover effect on the button */
.product-card.is-unavailable .btn-primary:hover {
    opacity: 1;
}