/* ===============================================
   ESTILOS DE DETALLE DE PRODUCTO - ESTILO MERCADOLIBRE
   =============================================== */

:root {
    --ml-primary: #FFE600;
    --ml-accent: #3483FA;
    --ml-border: #EEEEEE;
    --ml-text-primary: #333333;
    --ml-text-secondary: #999999;
    --ml-success: #01B850;
    --ml-discount: #FF6B6B;
}

* {
    box-sizing: border-box;
}

/* Contenedor principal - Flexbox por defecto */
.row {
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb-section {
    background-color: #F5F5F5;
    padding: 16px 0;
    border-bottom: 1px solid var(--ml-border);
}

.breadcrumb {
    margin: 0;
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--ml-accent);
    text-decoration: none;
    font-size: 13px;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--ml-text-secondary);
    font-size: 13px;
}

/* ===============================================
   PRODUCT DETAIL SECTION
   =============================================== */

.product-detail-section {
    padding: 32px 16px;
    background-color: #FFFFFF;
}

.product-images-col {
    padding-right: 16px;
}

.product-images-container {
    background-color: #FFFFFF;
    border: 1px solid var(--ml-border);
    border-radius: 4px;
    padding: 16px;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    background-color: #F5F5F5;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--ml-discount);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.discount-percent {
    display: block;
    line-height: 1;
}

/* ===============================================
   PRODUCT INFO COLUMN
   =============================================== */

.product-info-col {
    padding-left: 16px;
}

.product-info {
    padding: 0;
}

.category-link {
    margin-bottom: 12px;
}

.category-link a {
    color: var(--ml-text-secondary);
    text-decoration: none;
    font-size: 13px;
}

.category-link a:hover {
    color: var(--ml-accent);
    text-decoration: underline;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--ml-text-primary);
    margin: 16px 0;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    font-size: 14px;
}

.rating-count {
    color: var(--ml-text-secondary);
    font-size: 12px;
}

/* ===============================================
   SELLER SECTION
   =============================================== */

.seller-section {
    border: 1px solid var(--ml-border);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background-color: #FAFAFA;
}

.seller-name {
    margin: 0;
    font-size: 14px;
    color: var(--ml-text-primary);
}

.seller-badge {
    background-color: var(--ml-success);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 8px;
    font-weight: bold;
}

/* ===============================================
   PRICE SECTION
   =============================================== */

.price-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--ml-border);
    margin-bottom: 16px;
}

.price-container {
    padding: 0;
}

.price-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.price-label {
    display: block;
    color: var(--ml-text-secondary);
    font-size: 14px;
    min-width: 80px;
}

.price-values {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.original-price {
    color: var(--ml-text-secondary);
    font-size: 16px;
    text-decoration: line-through;
}

.current-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--ml-text-primary);
    line-height: 1;
}

.discount-info {
    color: var(--ml-success);
    font-size: 14px;
    font-weight: 600;
}

.discount-label {
    color: var(--ml-success);
}

/* ===============================================
   INSTALLMENTS SECTION
   =============================================== */

.installments-section {
    padding: 12px 16px;
    background-color: #FEF3E2;
    border-radius: 4px;
    margin-bottom: 16px;
}

.installments-info {
    margin: 0;
    color: var(--ml-text-primary);
    font-size: 14px;
}

/* ===============================================
   STOCK SECTION
   =============================================== */

.stock-section {
    margin-bottom: 16px;
}

.stock-status {
    padding: 12px 0;
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-status.in-stock {
    color: var(--ml-success);
}

.stock-status.out-of-stock {
    color: var(--ml-discount);
}

.stock-icon {
    font-size: 16px;
}

/* ===============================================
   SHIPPING SECTION
   =============================================== */

.shipping-section {
    padding: 16px;
    background-color: #F5F5F5;
    border-radius: 4px;
    margin-bottom: 16px;
}

.shipping-item {
    display: flex;
    gap: 12px;
}

.shipping-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.shipping-details {
    flex-grow: 1;
}

.shipping-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

.shipping-time {
    margin: 0;
    color: var(--ml-text-secondary);
    font-size: 12px;
}

/* ===============================================
   WARRANTY SECTION
   =============================================== */

.warranty-section {
    padding: 12px 0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ml-text-primary);
}

.warranty-icon {
    font-size: 20px;
}

.warranty-text {
    flex-grow: 1;
}

/* ===============================================
   ACTIONS SECTION
   =============================================== */

.actions-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-add-cart,
.btn-contact-seller {
    padding: 16px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-add-cart {
    background-color: var(--ml-accent);
    color: white;
}

.btn-add-cart:hover:not(:disabled) {
    background-color: #2968D4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 131, 250, 0.3);
}

.btn-add-cart:disabled {
    background-color: #CCCCCC;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-contact-seller {
    background-color: white;
    color: var(--ml-accent);
    border: 2px solid var(--ml-accent);
}

.btn-contact-seller:hover {
    background-color: #F0F0F0;
}

.cart-icon,
.whatsapp-icon {
    font-size: 18px;
}

.cart-text,
.contact-text {
    flex-grow: 1;
    text-align: left;
}

/* ===============================================
   BENEFITS SECTION
   =============================================== */

.benefits-section {
    border-top: 1px solid var(--ml-border);
    padding-top: 16px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--ml-text-primary);
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    color: var(--ml-success);
    font-size: 16px;
    font-weight: bold;
    margin-top: 2px;
    flex-shrink: 0;
}

.benefit-text {
    line-height: 1.4;
}

/* ===============================================
   DESCRIPTION SECTION
   =============================================== */

.description-section {
    padding: 32px 16px;
    background-color: #F5F5F5;
    border-top: 1px solid var(--ml-border);
}

.description-card {
    background-color: white;
    padding: 24px;
    border-radius: 4px;
    border: 1px solid var(--ml-border);
}

.description-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ml-text-primary);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ml-border);
}

.description-content {
    color: var(--ml-text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.description-content p {
    margin-bottom: 16px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* ===============================================
   FOOTER SECTION
   =============================================== */

.footer-section {
    background-color: #222222;
    color: #CCCCCC;
    padding: 32px 16px;
    margin-top: 32px;
}

.footer-section h5 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-section p {
    font-size: 12px;
    margin: 0 0 12px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    display: inline-block;
}

.social-link:hover {
    color: white;
    border-color: white;
}

.footer-section hr {
    border: none;
    border-top: 1px solid #444444;
    margin: 24px 0;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #999999;
}

.footer-bottom p {
    margin: 8px 0;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 992px) {
    .product-detail-section {
        padding: 16px 0;
    }

    .product-images-col {
        padding-right: 8px;
        flex: 0 0 auto;
        width: 200px;
    }

    .product-info-col {
        padding-left: 8px;
        flex: 1;
    }

    .product-title {
        font-size: 20px;
    }

    .current-price {
        font-size: 28px;
    }

    .description-section {
        padding: 16px 0;
    }

    .description-section .row {
        margin: 0;
    }

    .description-card {
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--ml-border);
        border-bottom: 1px solid var(--ml-border);
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 16px;
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
    }

    .row {
        display: flex;
        flex-direction: row;
        margin: 0 !important;
        width: 100%;
    }

    .product-images-col {
        padding: 0 !important;
        flex: 0 0 160px;
        margin-bottom: 0 !important;
    }

    .product-info-col {
        padding: 0 !important;
        flex: 1;
        min-width: 0;
    }

    .product-images-container {
        border: 1px solid var(--ml-border);
        border-radius: 4px;
        padding: 8px;
        background-color: #F5F5F5;
    }

    .main-image-wrapper {
        min-height: auto;
        height: 160px;
        border-radius: 4px;
    }

    .product-title {
        font-size: 16px;
        margin: 8px 0 12px 0;
    }

    .category-link {
        margin-bottom: 8px;
    }

    .category-link a {
        font-size: 12px;
    }

    .product-rating {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .seller-section {
        padding: 8px 12px;
        margin-bottom: 12px;
        font-size: 12px;
    }

    .seller-name {
        font-size: 12px;
    }

    .seller-badge {
     product-detail-section {
        padding: 12px;
        flex-direction: column;
    }

    .product-images-col {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 16px;
    }

    .product-info-col {
        flex: 1;
        width: 100%;
    }

    .main-image-wrapper {
        min-height: 280px;
        height: auto;
    }

    .product-title {
        font-size: 16px;
    }

    .current-price {
        font-size: 20px;
    }

    .installments-section {
        font-size: 12px;
    }

    .actions-section {
        flex-direction: column;
        padding: 0;
        gap: 8px;
    }

    .btn-add-cart,
    .btn-contact-seller {
        width: 100%;
        padding: 12px;
        font-size: 13px;
    }

    .product-rating {
        flex-direction: row;
        align-items: center
        font-size: 20px;
    }

    .discount-info {
        font-size: 12px;
    }

    .installments-section {
        padding: 8px 12px;
        margin-bottom: 12px;
        font-size: 12px;
    }

    .installments-info {
        font-size: 12px;
    }

    .stock-section {
        margin-bottom: 12px;
    }

    .stock-status {
        padding: 8px 0;
        font-size: 12px;
    }

    .shipping-section {
        padding: 12px;
        margin-bottom: 12px;
    }

    .shipping-icon {
        font-size: 20px;
    }

    .shipping-title {
        font-size: 12px;
    }

    .shipping-time {
        font-size: 11px;
    }

    .warranty-section {
        padding: 8px 0;
        margin-bottom: 16px;
        font-size: 12px;
    }

    .warranty-icon {
        font-size: 16px;
    }

    .price-row {
        flex-direction: row;
        gap: 8px;
    }

    .actions-section {
        display: flex;
        flex-direction: row;
        gap: 8px;
        padding: 0;
        background-color: transparent;
        border-top: none;
        margin: 12px 0 0 0;
        position: static;
        z-index: auto;
    }

    .btn-add-cart,
    .btn-contact-seller {
        padding: 10px 8px;
        font-size: 12px;
        flex: 1;
        min-height: 44px;
    }

    .cart-text,
    .contact-text {
        display: block;
    }

    .product-info {
        padding-bottom: 0;
    }

    .benefits-section {
        display: none;
    }

    .description-section {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .main-image-wrapper {
        min-height: 250px;
    }

    .product-title {
        font-size: 16px;
    }

    .current-price {
        font-size: 22px;
    }

    .installments-section {
        Font-size: 13px;
    }

    .actions-section {
        padding: 8px;
    }

    .product-rating {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-section {
        padding: 24px 12px;
    }

    .footer-section h5 {
        font-size: 13px;
    }
}
