.im-product-page {  
    min-height: 100vh;
    padding: 28px 16px 40px;
}

.im-product-wrap {
    max-width: 1020px;
    margin: 0 auto;
}

.im-product-top {
    display: grid;
    grid-template-columns: minmax(0,1fr) 260px;
    gap: 16px;
    align-items: start;
}

.im-product-gallery-card,
.im-side-card,
.im-product-section {
    background: #fff;
    border: 1px solid #d7e1ea;
    border-radius: 20px;
}

.im-product-gallery-card {
    overflow: hidden;
    width: 100%;
}

.im-product-gallery {
    width: 100%;
}

.im-product-gallery__main {
    position: relative;
    min-height: 460px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.im-product-gallery__img {
    width: 100%;
    height: 460px;
    display: block;
    object-fit: contain;
    background: #fff;
    position: relative;
    z-index: 1;
}

.im-product-gallery__empty {
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 15px;
}

.im-product-status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15,23,42,.06);
    z-index: 3;
}

.im-product-status-badge--reserved {
    color: #6d28d9;
    border: 1px solid #ece7ff;
}

.im-product-status-badge--sold {
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.im-product-gallery__count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,.72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    z-index: 3;
}

.im-product-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15,23,42,.12);
    z-index: 3;
}

.im-product-gallery__prev {
    left: 14px;
}

.im-product-gallery__next {
    right: 14px;
}

.im-product-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.im-side-card {
    padding: 14px;
}

.im-buy-card {
    padding: 16px 14px 14px;
}

.im-buy-card__title {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.im-buy-card__condition {
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.im-buy-card__price {
    color: #0f172a;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 10px;
}

.im-buy-card__status {
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}

    .im-buy-card__status strong {
        color: #334155;
    }

.im-buy-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.im-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.im-btn-primary {
    background: #20c7b7;
    border-color: #20c7b7;
    color: #0f172a;
}

    .im-btn-primary:hover {
        filter: brightness(.97);
    }

.im-btn-secondary {
    background: #fff;
    border-color: #cbd5e1;
    color: #0f172a;
}

    .im-btn-secondary:hover {
        background: #f8fafc;
    }

.im-btn-small {
    min-height: 36px;
    width: auto;
    padding: 0 18px;
    font-size: 14px;
}

.im-seller-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.im-seller-card__main {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex: 1;
}

.im-seller-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #f59e0b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex: 0 0 44px;
}

    .im-seller-card__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.im-seller-card__info {
    min-width: 0;
}

.im-seller-card__name {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 2px;
}

.im-seller-card__meta {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.im-seller-card__chat-inline {
    margin: 0;
    flex: 0 0 auto;
}

.im-seller-card__chat-btn {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #0f172a;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

    .im-seller-card__chat-btn:hover {
        background: #f8fafc;
    }

.im-shipping-card {
    padding-top: 10px;
    padding-bottom: 10px;
}

.im-shipping-card__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 0;
    border-bottom: 1px solid #e5edf3;
}

    .im-shipping-card__item:last-child {
        border-bottom: 0;
    }

    .im-shipping-card__item strong {
        color: #0f172a;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 800;
    }

    .im-shipping-card__item span {
        color: #475569;
        font-size: 13px;
        line-height: 1.35;
    }

.im-product-bottom {
    margin-top: 10px;
}

.im-product-section {
    padding: 12px;
    margin-bottom: 12px;
}

    .im-product-section h2 {
        margin: 0 0 10px;
        color: #0f172a;
        font-size: 16px;
        line-height: 1.2;
        font-weight: 800;
    }

.im-product-text {
    color: #1e293b;
    font-size: 14px;
    line-height: 1.6;
}

.im-product-meta-line {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.im-product-actions-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

@media (max-width: 920px) {
    .im-product-top {
        grid-template-columns: 1fr;
    }

    .im-product-gallery__main,
    .im-product-gallery__empty {
        min-height: 340px;
    }

    .im-product-gallery__img {
        height: 340px;
    }
}

@media (max-width: 640px) {
    .im-product-page {
        padding: 16px 10px 28px;
    }

    .im-product-wrap {
        max-width: 100%;
    }

    .im-product-gallery-card,
    .im-side-card,
    .im-product-section {
        border-radius: 16px;
    }

    .im-buy-card__title {
        font-size: 20px;
    }

    .im-buy-card__price {
        font-size: 24px;
    }

    .im-btn-small {
        width: 100%;
    }

    .im-product-actions-bar {
        flex-direction: column;
    }
}
.im-product-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.im-buy-card__report {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5edf3;
}

.im-report-trigger {
    appearance: none;
    border: 0;
    background: transparent;
    color: #b42318;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    padding: 0;
}

    .im-report-trigger:hover {
        text-decoration: underline;
    }

.im-report-modal__dialog {
    max-width: 560px;
}

.im-report-form {
    margin-top: 16px;
}

.im-report-form__group + .im-report-form__group {
    margin-top: 14px;
}

.im-report-form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.im-report-form__control {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .im-report-form__control:focus {
        border-color: #98a2b3;
        box-shadow: 0 0 0 4px rgba(17, 24, 39, .06);
    }

.im-report-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.im-report-form__actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.im-report-form__feedback {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

    .im-report-form__feedback.is-error {
        background: #fef3f2;
        border: 1px solid #fecdca;
        color: #b42318;
    }

    .im-report-form__feedback.is-success {
        background: #ecfdf3;
        border: 1px solid #abefc6;
        color: #067647;
    }

@media (max-width: 768px) {
    .im-report-form__actions {
        flex-direction: column;
    }

        .im-report-form__actions .im-btn {
            width: 100%;
        }
}
.im-buy-card__footer-actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

.im-buy-card__report-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 4px 8px;
    margin: 0;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
}

    .im-buy-card__report-link:hover {
        color: #667085;
        text-decoration: underline;
    }
.im-buy-card__footer-actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

.im-buy-card__report-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 4px 8px;
    margin: 0;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
}

    .im-buy-card__report-link:hover {
        color: #667085;
        text-decoration: underline;
    }

.im-report-modal__dialog {
    max-width: 560px;
}

.im-report-form {
    margin-top: 16px;
}

.im-report-form__group + .im-report-form__group {
    margin-top: 14px;
}

.im-report-form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.im-report-form__control {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .im-report-form__control:focus {
        border-color: #98a2b3;
        box-shadow: 0 0 0 4px rgba(17, 24, 39, .06);
    }

.im-report-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.im-report-form__actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.im-report-form__feedback {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

    .im-report-form__feedback.is-error {
        background: #fef3f2;
        border: 1px solid #fecdca;
        color: #b42318;
    }

    .im-report-form__feedback.is-success {
        background: #ecfdf3;
        border: 1px solid #abefc6;
        color: #067647;
    }

@media (max-width: 768px) {
    .im-report-form__actions {
        flex-direction: column;
    }

        .im-report-form__actions .im-btn {
            width: 100%;
        }
}
.im-contact-card {
    padding: 16px;
}

.im-contact-card__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.im-contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.im-contact-textarea {
    width: 100%;
    border: 1px solid #d8dee7;
    border-radius: 12px;
    padding: 10px;
    resize: none;
    font-size: 14px;
    font-family: inherit;
}

    .im-contact-textarea:focus {
        outline: none;
        border-color: #0ea5e9;
    }

.im-contact-btn {
    width: 100%;
}
.im-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.im-product-gallery__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.im-product-gallery__thumb {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease;
}

    .im-product-gallery__thumb:hover {
        transform: translateY(-1px);
    }

    .im-product-gallery__thumb.is-active {
        border-color: #13c1ac;
    }

    .im-product-gallery__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.im-product-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.im-product-gallery__nav--prev {
    left: 12px;
}

.im-product-gallery__nav--next {
    right: 12px;
}

.im-product-gallery__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.im-product-gallery__count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
}
.im-buy-card__stock {
    margin-top: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

.im-buy-card__stock--reserved {
    color: #b45309;
}

.im-buy-card__stock--sold {
    color: #b91c1c;
}
/* PRODUCT REVIEWS */

.im-product-reviews {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5edf3;
}

.im-product-reviews__head {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 800;
}

.im-product-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.im-product-reviews__item {
    background: #fff;
    border: 1px solid #dde6ee;
    border-radius: 14px;
    padding: 14px;
}

.im-product-reviews__user {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.im-product-reviews__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

    .im-product-reviews__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.im-product-reviews__meta strong {
    display: block;
    font-size: 14px;
}

.im-product-reviews__meta span {
    font-size: 12px;
    color: #64748b;
}

.im-product-reviews__stars {
    color: #f6b800;
    font-size: 14px;
    margin-bottom: 6px;
}

    .im-product-reviews__stars span {
        color: #d6dde5;
    }

        .im-product-reviews__stars span.is-filled {
            color: #f6b800;
        }

.im-product-reviews__text {
    font-size: 14px;
    color: #1d2733;
}
/* =========================================
   BLOQUE INFERIOR PRODUCTO (COMPACTO)
   ========================================= */

.im-product-bottom--compact {
    margin-top: 18px;
}

/* LIMITADOR DE ANCHO → clave para que no se vea “tocho” */
.im-product-bottom__inner {
    max-width: 720px;
    width: 100%;
}

/* SECCIONES */
.im-product-inline-section {
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
}

    .im-product-inline-section:last-child {
        border-bottom: 1px solid #e5e7eb;
    }

/* TEXTO GENERAL MÁS PEQUEÑO */
.im-product-inline-meta,
.im-product-inline-status {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

/* UBICACIÓN */
.im-product-inline-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #111827;
}

.im-product-inline-location__icon {
    font-size: 14px;
    opacity: 0.7;
}

/* =========================================
   REVIEWS COMPACTAS
   ========================================= */

.im-product-reviews-inline__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}

/* LISTA */
.im-product-reviews-inline__list {
    display: flex;
    flex-direction: column;
}

/* ITEM */
.im-product-reviews-inline__item {
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
}

    .im-product-reviews-inline__item:last-child {
        border-bottom: none;
    }

/* USER */
.im-product-reviews-inline__user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

/* AVATAR */
.im-product-reviews-inline__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

    .im-product-reviews-inline__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* META */
.im-product-reviews-inline__meta strong {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

.im-product-reviews-inline__meta span {
    font-size: 10px;
    color: #6b7280;
}

/* ESTRELLAS */
.im-product-reviews-inline__stars {
    margin-bottom: 6px;
}

    .im-product-reviews-inline__stars span {
        font-size: 12px;
        color: #d1d5db;
    }

        .im-product-reviews-inline__stars span.is-filled {
            color: #111827;
        }

/* TEXTO */
.im-product-reviews-inline__text {
    font-size: 13px;
    line-height: 1.4;
    color: #111827;
    margin-top: 6px;
}

/* MOBILE */
@media (max-width: 768px) {
    .im-product-bottom__inner {
        max-width: 100%;
    }
}
/* CONTENEDOR BOTÓN */
.im-product-reviews-inline__more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}

/* BOTÓN */
.im-product-reviews-inline__more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid #20c7b7;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* HOVER */
    .im-product-reviews-inline__more-btn:hover {
        background: #f2fffd;
        border-color: #18b3a5;
    }

    /* CLICK */
    .im-product-reviews-inline__more-btn:active {
        transform: scale(0.96);
    }
.im-product-reviews-inline {
    margin-top: 12px;
}

.im-product-reviews-inline__item {
    padding: 10px 0;
}
.im-product-reviews-inline__item {
    border-bottom: 1px solid #eef2f4;
}

    .im-product-reviews-inline__item:last-child {
        border-bottom: none;
    }
    .im-product-reviews-inline__author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.im-profile-badge--mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid #e8e2d2;
  background: #faf8f3;
  color: #6c5a1f;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  top: -1px;
}

.im-profile-badge--mini.im-profile-badge--ceo_founder {
  border-color: #e8e2d2;
  background: #faf8f3;
  color: #6c5a1f;
  top: 1px;
}
.im-seller-card__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.im-seller-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2b3d;
  line-height: 1.1;
}

.im-profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  line-height: 1;
  box-sizing: border-box;
}

.im-profile-badge--seller {
  height: 20px;
  padding: 0 8px;
  border: 1px solid #e8e2d2;
  background: #faf8f3;
  color: #6c5a1f;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  top: -1px;
}

.im-profile-badge--seller.im-profile-badge--ceo_founder {
  border-color: #e8e2d2;
  background: #faf8f3;
  color: #6c5a1f;
}