.pd-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 54px;
}

.pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    color: #777;
    font-size: 13px;
}

.pd-breadcrumb a {
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: 42px;
    align-items: start;
}

.pd-gallery {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
}

.pd-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-thumbs button {
    width: 82px;
    height: 104px;
    border: 1px solid #e5e7eb;
    background: #f6f6f6;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.pd-thumbs button.active {
    border-color: #EC14FF;
    box-shadow: 0 0 0 3px rgba(236,20,255,.14);
}

.pd-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-main-photo {
    position: relative;
    background: #f5f5f5;
    border-radius: 18px;
    overflow: hidden;
    min-height: 520px;
}

.pd-main-photo img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
}

.pd-discount {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background: #EC14FF;
    color: #fff;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.pd-info {
    position: sticky;
    top: 18px;
}

.pd-brand {
    margin: 0 0 8px;
    color: #EC14FF;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pd-info h1 {
    margin: 0 0 8px;
    color: #111;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 950;
}

.pd-code {
    margin: 0 0 18px;
    color: #777;
    font-size: 13px;
}

.pd-price-box {
    margin-bottom: 16px;
}

.pd-old-price {
    display: block;
    color: #777;
    text-decoration: line-through;
    font-size: 15px;
    margin-bottom: 2px;
}

.pd-price-box strong {
    display: block;
    color: #111;
    font-size: 31px;
    font-weight: 950;
    margin-bottom: 5px;
}

.pd-price-box p {
    margin: 0;
    color: #EC14FF;
    font-size: 13px;
    font-weight: 800;
}

.pd-stock {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.pd-stock.ok {
    background: #ecfdf5;
    color: #047857;
}

.pd-stock.empty {
    background: #fee2e2;
    color: #991b1b;
}

.pd-buy-form {
    display: grid;
    gap: 13px;
    margin-bottom: 22px;
}

.pd-buy-form label {
    display: block;
}

.pd-buy-form label span {
    display: block;
    color: #374151;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 6px;
}

.pd-buy-form select,
.pd-buy-form input {
    width: 100%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
}

.pd-buy-form button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    transition: background .2s ease;
}

.pd-buy-form button:hover {
    background: #EC14FF;
}

.pd-extra {
    border-top: 1px solid #eee;
}

.pd-extra details {
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}

.pd-extra summary {
    cursor: pointer;
    color: #111;
    font-weight: 900;
}

.pd-extra p {
    color: #555;
    line-height: 1.55;
    margin: 10px 0 0;
    font-size: 14px;
}

.pd-similares {
    margin-top: 54px;
}

.pd-similares h2 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 950;
}

.pd-similares-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.pd-sim-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease;
}

.pd-sim-card:hover {
    transform: translateY(-3px);
}

.pd-sim-card a {
    color: inherit;
    text-decoration: none;
}

.pd-sim-img {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #f5f5f5;
    overflow: hidden;
}

.pd-sim-img span {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #EC14FF;
    color: #fff;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.pd-sim-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-sim-info {
    padding: 12px;
}

.pd-sim-info p {
    margin: 0 0 5px;
    color: #EC14FF;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.pd-sim-info h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 14px;
    line-height: 1.25;
    min-height: 36px;
}

.pd-sim-info small {
    display: block;
    color: #777;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.pd-sim-info strong {
    font-size: 17px;
    font-weight: 950;
}

@media (max-width: 900px) {
    .pd-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pd-info {
        position: static;
    }

    .pd-main-photo,
    .pd-main-photo img {
        min-height: 420px;
    }

    .pd-similares-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .pd-page {
        padding: 18px 12px 42px;
    }

    .pd-breadcrumb {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .pd-gallery {
        display: block;
    }

    .pd-main-photo {
        border-radius: 16px;
        min-height: auto;
        aspect-ratio: 3 / 4;
    }

    .pd-main-photo img {
        min-height: auto;
        height: 100%;
    }

    .pd-thumbs {
        flex-direction: row;
        order: 2;
        margin-top: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .pd-thumbs button {
        flex: 0 0 66px;
        width: 66px;
        height: 82px;
        border-radius: 10px;
    }

    .pd-info h1 {
        font-size: 24px;
    }

    .pd-price-box strong {
        font-size: 25px;
    }

    .pd-similares {
        margin-top: 36px;
    }
}



/* ===== Selector visual de variantes ===== */

.pd-variant-selector {
    margin: 18px 0 14px;
}

.pd-option-group {
    margin-bottom: 16px;
}

.pd-option-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
    line-height: 1.3;
}

.pd-option-head span {
    font-weight: 900;
}

.pd-option-head strong {
    font-weight: 800;
    color: #111827;
}

.pd-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* IMPORTANTE: estos botones NO deben ocupar todo el ancho */
.pd-option-buttons .pd-option-btn {
    width: auto !important;
    min-width: 0;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    border: 1px solid #111827;
    background: #fff;
    color: #111827;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    transition: .18s ease;
    box-shadow: none;
}

.pd-option-buttons .pd-option-btn:hover {
    border-color: var(--dc-pink);
    color: var(--dc-pink);
    background: #fff;
}

.pd-option-buttons .pd-option-btn.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.pd-option-buttons .pd-option-btn.disabled,
.pd-option-buttons .pd-option-btn:disabled {
    position: relative;
    background: #f5f5f5;
    color: #777;
    border-color: #bbb;
    cursor: not-allowed;
    opacity: 1;
}

.pd-option-buttons .pd-option-btn.disabled::after,
.pd-option-buttons .pd-option-btn:disabled::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    height: 1px;
    background: #777;
    transform: rotate(-18deg);
}

.pd-option-empty {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.pd-selected-stock {
    margin: 8px 0 12px;
    padding: 10px 12px;
    background: #fff7fb;
    border: 1px solid rgba(236, 20, 255, .16);
    border-radius: 12px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.pd-selected-stock strong {
    color: var(--dc-pink);
}

.pd-qty-label small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

/* el botón real de agregar al carrito sí sigue grande */
#pdSubmitBtn {
    width: 100%;
}

#pdSubmitBtn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

/* MOBILE */
@media (max-width: 768px) {
    .pd-option-head {
        font-size: 13px;
        margin-bottom: 7px;
    }

    .pd-option-buttons {
        gap: 7px;
    }


    .pd-option-buttons .pd-option-btn {
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 9px !important;
        font-size: 12px;
        line-height: 28px;
    }

}

.pd-wholesale-note {
    margin-top: 8px;
    padding: 10px 12px;
    background: #fff7fb;
    border: 1px solid rgba(236, 20, 255, .18);
    border-radius: 12px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.pd-wholesale-note strong {
    color: var(--dc-pink);
    font-weight: 950;
}

.pd-promo-2x1 {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .4px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .22);
}

.pd-promo-note {
    margin-top: 8px;
    padding: 10px 12px;
    background: #fff7fb;
    border: 1px solid rgba(236, 20, 255, .18);
    border-radius: 12px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
}

.pd-sim-promo-2x1 {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
}

@media (max-width: 600px) {
    .pd-promo-2x1 {
        top: 10px;
        right: 10px;
        min-height: 28px;
        padding: 0 11px;
        font-size: 12px;
    }
}

.pd-extra details p {
    margin-top: 10px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}