.header-custom {
    background-color: #002d72;
    color: white;
    padding: 10px 0;
}

.header-custom a {
    color: white;
}

.header-custom .left-section,
.header-custom .right-section {
    display: flex;
    align-items: center;
}

.card {
    background-color: white !important;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    transform: none;
}

.card-body {
    color: black !important;
}

.card-title,
.card-subtitle {
    color: black !important;
}

.price-green {
    color: green;
}

.price-red {
    color: red;
}

.btn-block {
    width: 100%;
}

.card-custom-size {
    width: 100%;
    overflow: hidden;
}

.site-product-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e5edf8;
    padding: 0.45rem;
}

.site-product-image-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-product-image-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0.25rem;
    background: rgba(15, 23, 42, 0);
    transition: background 0.2s ease;
    pointer-events: none;
}

.site-product-image-button__hint {
    position: absolute;
    left: 50%;
    bottom: 0.65rem;
    z-index: 1;
    transform: translate(-50%, 8px);
    padding: 0.35rem 0.65rem;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.88);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.site-product-image-button:hover::after,
.site-product-image-button:focus-visible::after {
    background: rgba(15, 23, 42, 0.1);
}

.site-product-image-button:hover .site-product-image-button__hint,
.site-product-image-button:focus-visible .site-product-image-button__hint {
    opacity: 1;
    transform: translate(-50%, 0);
}

.site-product-image-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
    border-radius: 0.35rem;
}

.site-product-card {
    border-radius: 12px;
}

.site-product-card:hover {
    border-color: #1d4ed8 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
    transform: translateY(-2px);
}

.site-product-card .card-body {
    padding: 0.85rem;
}

.site-product-card h6 {
    font-size: 0.86rem;
    line-height: 1.25;
}

.site-product-card .card-subtitle {
    font-size: 0.8rem;
}

.site-product-card .card-text {
    font-size: 0.78rem;
    margin-bottom: 0.25rem !important;
}

.site-product-card .badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.5rem;
}

.site-product-card .price-green,
.site-product-card .price-red {
    font-size: 1.05rem;
    line-height: 1.2;
}

.site-product-whatsapp {
    align-items: center;
    background: #16a34a;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.55rem;
    min-height: 36px;
    padding: 0 0.75rem;
    text-decoration: none;
    width: 100%;
}

.site-product-whatsapp:hover,
.site-product-whatsapp:focus {
    background: #15803d;
    color: #ffffff;
    text-decoration: none;
}

.site-product-detail {
    border: 0;
    border-radius: 16px;
    max-width: 100%;
    overflow: hidden;
}

#productoDetalleModal .modal-dialog {
    max-width: min(960px, calc(100vw - 2rem));
}

.site-product-detail .modal-body {
    overflow: hidden;
    padding: 1.25rem;
}

.site-product-detail__body {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
    gap: 1.25rem;
    align-items: start;
}

.site-product-detail__media,
.site-product-detail__summary {
    min-width: 0;
}

.site-product-detail__media {
    overflow: hidden;
}

.site-product-detail__eyebrow {
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-product-detail__image {
    width: 100%;
    max-width: 100%;
    height: clamp(220px, 32vw, 340px);
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e5edf8;
    border-radius: 12px;
    display: block;
}

.site-product-detail__image-button {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.site-product-detail__image-button span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 0.35rem 0.55rem;
    color: #1d4ed8;
    background: rgba(239, 246, 255, 0.95);
    border: 1px solid #dbeafe;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.site-product-image-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.site-product-image-modal__image {
    width: 100%;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e5edf8;
    border-radius: 12px;
}

.site-product-detail__title {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.site-product-detail__vehicle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.site-product-detail__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.site-product-detail__grid div {
    background: #f8fafc;
    border: 1px solid #e8eef8;
    border-radius: 10px;
    padding: 0.75rem;
}

.site-product-detail__grid span,
.site-product-detail__price span {
    color: #64748b;
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.site-product-detail__grid strong {
    color: #1e293b;
    font-size: 0.95rem;
}

.site-product-detail__price {
    margin-top: 1rem;
    padding: 1rem;
    background: #ecfdf3;
    border: 1px solid #d9f7e5;
    border-radius: 12px;
}

.site-product-detail__price strong {
    color: #0f6b29;
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
}

.site-product-detail__note {
    color: #64748b;
    font-size: 0.9rem;
    margin: 1rem 0 0;
}

@media (max-width: 575.98px) {
    .site-product-detail .modal-body {
        padding: 1rem;
    }

    .site-product-detail__body {
        grid-template-columns: 1fr;
    }

    .site-product-detail__grid {
        grid-template-columns: 1fr;
    }

    .site-product-detail__image {
        height: 220px;
    }
}

.card-title {
    font-size: 1rem;
}

.card-subtitle {
    font-size: 0.875rem;
}

.card-text {
    font-size: 0.875rem;
}

.price-green,
.price-red {
    font-size: 1.25rem;
}

.container {
    max-width: 90%;
}

#whatsapp-icon-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#whatsapp-icon-link img {
    width: 60px;
    height: 61px;
}

.footer {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.footer .footer-title {
    font-weight: bold;
    margin-bottom: 20px;
}

.footer a {
    color: #343a40;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .social-icons i {
    font-size: 24px;
    margin-right: 15px;
    color: #343a40;
}

.footer .social-icons i:hover {
    color: #007bff;
}
