/* Ficha de producto */

.detail-page .page-content {
    background: var(--home-bg, #f6f7f9);
}

.detail-breadcrumb {
    padding: 14px 15px 0;
    font-size: 13px;
    color: var(--home-muted, #6b7280);
}

.detail-breadcrumb a {
    color: var(--home-muted, #6b7280);
    text-decoration: none !important;
}

.detail-breadcrumb a:hover {
    color: var(--home-accent, #ef5730);
}

.detail-breadcrumb span {
    color: var(--home-text, #1f2937);
    font-weight: 500;
}

.detail-section {
    padding: 16px 0 40px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.detail-gallery {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.detail-image-link {
    display: block;
    aspect-ratio: 1;
    max-height: 420px;
    position: relative;
}

.detail-image-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-image-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--home-text, #1f2937);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.detail-image-link:hover .detail-image-zoom {
    opacity: 1;
}

.detail-info-card {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.detail-category {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff8f5;
    border: 1px solid #ffd4c4;
    color: var(--home-accent, #ef5730);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

.detail-category:hover {
    background: #ffede6;
    color: var(--home-accent-dark, #c94522);
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--home-text, #1f2937);
}

.detail-price-block {
    margin-bottom: 18px;
}

.detail-price {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #15803d;
    line-height: 1.2;
}

.detail-price del {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--home-muted, #6b7280);
    margin-bottom: 4px;
}

.detail-price-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eceef2;
}

.detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.detail-stock--available {
    background: #ecfdf5;
    color: #15803d;
}

.detail-stock--unavailable {
    background: #fef2f2;
    color: #dc2626;
}

.detail-cart-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.detail-qty {
    flex-shrink: 0;
}

.detail-qty .bootstrap-touchspin,
.detail-qty .quantity {
    margin: 0 !important;
    float: none !important;
}

.detail-qty input#cantAddToCartProductDetail {
    width: 64px !important;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 8px 4px;
    font-weight: 600;
}

.detail-add-btn {
    flex: 1;
    min-width: 200px;
    border: none;
    cursor: pointer;
}

.detail-whatsapp-btn {
    display: inline-flex;
    width: 100%;
    max-width: 320px;
}

.detail-description-card {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.detail-description-card h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--home-text, #1f2937);
}

.detail-description-content {
    color: #374151;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-line;
}

.detail-related {
    padding: 0 0 48px;
}

.detail-not-found {
    text-align: center;
    padding: 64px 24px;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 12px;
}

.detail-not-found i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.detail-not-found h1 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: var(--home-text, #1f2937);
}

.detail-not-found p {
    margin: 0 0 20px;
    color: var(--home-muted, #6b7280);
}

@media (min-width: 768px) {
    .detail-layout {
        grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
        align-items: start;
    }

    .detail-gallery {
        position: sticky;
        top: 90px;
    }
}

@media (min-width: 992px) {
    .detail-info-card {
        padding: 28px 26px;
    }
}
