/* ================================
   Catalog Showcase - Vista Bundle
   ================================ */

.showcase-page .content {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Link ritorno */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-hover);
}

/* Header showcase */
.showcase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.showcase-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.showcase-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================================
   Sezione acquisto bundle (in alto)
   ================================ */
.showcase-buy-section {
    margin-bottom: 3rem;
}

.showcase-buy-card {
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.showcase-buy-image {
    flex-shrink: 0;
    width: 260px;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.showcase-buy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-buy-info {
    flex: 1;
}

.showcase-buy-info h3 {
    font-size: 1.6rem;
    color: var(--text-color-dark);
    margin: 0 0 0.5rem;
}

.showcase-buy-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.showcase-price {
    margin-bottom: 1.5rem;
}

.showcase-price strong {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.showcase-price span {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
}

.showcase-buy-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color-dark);
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.quantity-wrapper input[type="number"] {
    width: 48px;
    text-align: center;
    border: none;
    font-size: 1rem;
    height: 40px;
    -moz-appearance: textfield;
}

.quantity-wrapper input[type="number"]::-webkit-outer-spin-button,
.quantity-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-add-cart:hover {
    background: var(--primary-hover);
}

/* ================================
   Composizione - prodotti del bundle
   ================================ */
.showcase-composition-section {
    margin-bottom: 3rem;
}

.showcase-composition-title {
    font-size: 1.4rem;
    color: var(--text-color-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
}

.showcase-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.showcase-product-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.showcase-product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.showcase-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-product-card:hover .showcase-product-image img {
    transform: scale(1.03);
}

.showcase-product-info {
    padding: 1.25rem;
}

.showcase-product-info h3 {
    font-size: 1.15rem;
    color: var(--text-color-dark);
    margin: 0 0 0.5rem;
}

.showcase-product-info p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 0.4rem;
}

.showcase-composition {
    font-size: 0.85rem !important;
    color: #777 !important;
    margin-top: 0.4rem !important;
}

/* Responsive */
@media (max-width: 680px) {
    .showcase-buy-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .showcase-buy-image {
        width: 100%;
        height: 240px;
    }

    .showcase-buy-actions {
        justify-content: center;
    }

    .showcase-products {
        grid-template-columns: 1fr;
    }

    .showcase-header h2 {
        font-size: 1.8rem;
    }
}
