/* ── Wrapper ── */
.pc-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 48px;
    margin: 24px 0;
}

/* ── Carousel track ── */
.pc-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.pc-card {
    scroll-snap-align: start;
}

/* ── Card ── */
.pc-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}

@media (max-width: 1024px) {
    .pc-card {
        min-width: 0;
    }
}

.pc-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.13);
}

.pc-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
}

.pc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.pc-card-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pc-card-title {
    font-size: .9rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
    color: #1a1a2e;
}

.pc-card-pa {
    font-size: .78rem;
    color: #6b7280;
    margin: 0 0 8px;
}

/* ── Precios ── */
.pc-card-price {
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pc-price-original {
    text-decoration: line-through !important;
    color: #9ca3af;
    font-size: .9rem;
    font-weight: 400;
}

.pc-price-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #c0392b;
}

.pc-price-badge {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1a1a2e;
    background: #f5c518;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Precio normal (sin descuento) ── */
.pc-card-price-normal,
.pc-card-price > span:not(.pc-price-original):not(.pc-price-discount):not(.pc-price-badge) {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f5c518;
}

/* Precio en modal */
#pc-modal-precio {
    font-weight: 800;
}
.pc-btn-more {
    margin-top: auto;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.pc-btn-more:hover {
    background: #a93226;
}

/* ── Nav buttons ── */
.pc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.pc-nav:hover { background: #f3f4f6; }
.pc-prev { left: 4px; }
.pc-next { right: 4px; }

.pc-nav:disabled {
    opacity: .35;
    cursor: default;
}

/* ── Error ── */
.pc-error {
    color: #c0392b;
    font-style: italic;
}

/* ── Modal overlay ── */
.pc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pc-modal-overlay.pc-open {
    display: flex;
}

/* ── Modal box ── */
.pc-modal-box {
    background: #fff;
    border-radius: 14px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: pc-fade-in .2s ease;
}

@keyframes pc-fade-in {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

.pc-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.pc-modal-close:hover { color: #111; }

.pc-modal-content {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.pc-modal-img {
    flex: 0 0 200px;
    max-width: 200px;
}

.pc-modal-img img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    object-fit: contain;
    aspect-ratio: 1/1;
    padding: 8px;
    background: #f9fafb;
}

.pc-modal-info {
    flex: 1;
    min-width: 220px;
}

.pc-modal-info h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a2e;
    line-height: 1.3;
}

.pc-modal-info h4 {
    font-size: .85rem;
    font-weight: 700;
    margin: 18px 0 8px;
    color: #c0392b;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Tables ── */
.pc-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.pc-modal-table th,
.pc-modal-table td {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.pc-modal-table th {
    background: #fef2f2;
    font-weight: 600;
    color: #c0392b;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .pc-wrapper {
        overflow: hidden;
        padding: 0 40px;
    }

    .pc-nav {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .pc-prev { left: 2px; }
    .pc-next { right: 2px; }
}

@media (max-width: 768px) {
    .pc-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .pc-card {
        flex: 0 0 calc(100% - 0px);
    }
    .pc-modal-img {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
