/* Producto Librería Woody - CSS aislado y compatible */

.producto-page {
    min-height: 70vh;
    padding: 38px 0 72px;
    background:
        radial-gradient(circle at 86% 8%, rgba(242, 105, 56, .10), transparent 28%),
        linear-gradient(180deg, #fff8ea 0%, #fffdf7 58%, #f8f1e5 100%);
}

.producto-back-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.producto-back {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eadfc8;
    color: #1f4e79;
    font-weight: 900;
    text-decoration: none;
}

.producto-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 32px;
    align-items: start;
}

.producto-gallery,
.producto-info {
    background: #fff;
    border: 1px solid #eadfc8;
    border-radius: 30px;
    box-shadow: 0 20px 48px rgba(31, 78, 121, .10);
}

.producto-gallery {
    padding: 24px;
}

.producto-image-box {
    min-height: 520px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        radial-gradient(circle at center, rgba(242,105,56,.07), transparent 42%),
        #fff8ea;
    overflow: hidden;
}

.producto-image-box img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
}

.producto-info {
    padding: 34px;
}

.producto-kicker {
    display: inline-flex;
    width: max-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e9f3ff;
    color: #1f4e79;
    font-weight: 900;
    margin-bottom: 14px;
}

.producto-info h1 {
    margin: 0 0 12px;
    color: #1f4e79;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -.8px;
}

.producto-short {
    margin: 0 0 18px;
    color: #5f6f7f;
    line-height: 1.7;
    font-size: 1.08rem;
}

.producto-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 18px 0 12px;
}

.producto-price strong {
    color: #2f5d50;
    font-size: 2.35rem;
    line-height: 1;
}

.producto-price span {
    color: #999;
    text-decoration: line-through;
    font-weight: 900;
}

.producto-stock {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e9f8ef;
    color: #1f7a43;
    font-weight: 900;
    margin-bottom: 20px;
}

.product-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 18px;
}

.product-qty-control button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 13px;
    background: #1f4e79;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
}

.product-qty-control input {
    width: 62px;
    height: 42px;
    border: 1px solid #eadfc8;
    border-radius: 13px;
    text-align: center;
    font-weight: 900;
    background: #fffdf7;
}

.producto-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 26px;
}

.producto-actions .producto-btn-primary {
    grid-column: 1 / -1;
}

.producto-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 15px;
    border: 0;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.producto-btn-primary {
    background: linear-gradient(135deg, #f26938 0%, #ff8b48 100%);
    color: #fff;
    box-shadow: 0 14px 24px rgba(242,105,56,.22);
}

.producto-btn-light {
    background: #fff;
    color: #1f4e79;
    border: 1px solid #eadfc8;
}

.producto-btn-green {
    background: #2f5d50;
    color: #fff;
}

.producto-description {
    padding-top: 20px;
    border-top: 1px solid #eadfc8;
}

.producto-description h2 {
    margin: 0 0 8px;
    color: #1f4e79;
}

.producto-description p {
    margin: 0;
    color: #526579;
    line-height: 1.75;
}

.producto-empty {
    background: #fff;
    border: 1px solid #eadfc8;
    border-radius: 28px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 48px rgba(31,78,121,.10);
}

.producto-empty h1 {
    margin: 0 0 10px;
    color: #1f4e79;
}

.producto-empty p {
    color: #5f6f7f;
}

.producto-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .producto-layout {
        grid-template-columns: 1fr;
    }

    .producto-image-box {
        min-height: 360px;
    }
}

@media (max-width: 560px) {
    .producto-page {
        padding: 22px 0 54px;
    }

    .producto-gallery,
    .producto-info {
        border-radius: 24px;
    }

    .producto-gallery {
        padding: 14px;
    }

    .producto-info {
        padding: 22px;
    }

    .producto-image-box {
        min-height: 310px;
    }

    .producto-actions {
        grid-template-columns: 1fr;
    }

    .producto-actions .producto-btn-primary {
        grid-column: auto;
    }

    .producto-btn {
        width: 100%;
    }
}
