/* ===========================================
   PARAÍSO DA MAGIA — FICHA DE PRODUTO
=========================================== */

.pdm-detail {
    --pd-bg: #1b1428;
    --pd-surface: #251a34;
    --pd-border: rgba(210, 174, 235, .22);
    --pd-gold: #e4c491;
    --pd-text: #f8f2fc;
    --pd-muted: #c5b7d0;

    color: var(--pd-text);
    padding: 30px 0 70px;
}

.pdm-detail *,
.pdm-detail *::before,
.pdm-detail *::after {
    box-sizing: border-box;
}

.pdm-detail-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAVEGAÇÃO */

.pdm-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 35px;
    color: var(--pd-muted);
    font-size: 12px;
}

.pdm-detail-breadcrumb a {
    color: var(--pd-muted);
    text-decoration: none;
}

.pdm-detail-breadcrumb a:hover {
    color: var(--pd-gold);
}

.pdm-detail-breadcrumb [aria-current="page"] {
    color: var(--pd-gold);
}

/* ESTRUTURA */

.pdm-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
    align-items: start;
    gap: clamp(25px, 5vw, 74px);
}

/* GALERIA */

.pdm-detail-gallery {
    min-width: 0;
}

.pdm-detail-featured {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--pd-border);
    border-radius: 19px;
    background:
        radial-gradient(circle at 50% 40%,
            #342345,
            #1a1326 76%);
}

.pdm-detail-featured>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pdm-detail-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pd-muted);
}

.pdm-detail-no-image span {
    color: var(--pd-gold);
    font-size: 82px;
}

.pdm-detail-no-image p {
    font-size: 12px;
}

.pdm-detail-photo-badge {
    position: absolute;
    top: 17px;
    left: 17px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 190, 190, .34);
    border-radius: 25px;
    background: rgba(53, 22, 36, .9);
    color: #ffbdc8;
    font-size: 11px;
    font-weight: 700;
}

.pdm-detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
    margin-top: 13px;
}

.pdm-detail-thumb {
    overflow: hidden;
    padding: 0;
    aspect-ratio: 1;
    border: 1px solid var(--pd-border);
    border-radius: 11px;
    background: var(--pd-surface);
    cursor: pointer;
}

.pdm-detail-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdm-detail-thumb.is-active {
    border: 2px solid var(--pd-gold);
}

.pdm-detail-thumb:hover {
    border-color: var(--pd-gold);
}

/* INFORMAÇÕES */

.pdm-detail-info {
    min-width: 0;
    padding-top: 9px;
}

.pdm-detail-category {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--pd-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    line-height: 1.8;
    text-transform: uppercase;
}

.pdm-detail-info h1 {
    margin: 0 0 13px;
    color: #fff;
    font-size: clamp(29px, 3.1vw, 42px);
    font-weight: 650;
    letter-spacing: -.8px;
    line-height: 1.2;
}

.pdm-detail-reference {
    margin: 0;
    color: var(--pd-muted);
    font-size: 12px;
}

.pdm-detail-reference strong {
    color: #f2e8f7;
    font-weight: 600;
}

/* PREÇO */

.pdm-detail-price-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 24px 0 21px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--pd-border);
}

.pdm-detail-price {
    color: var(--pd-gold);
    font-size: clamp(31px, 3.5vw, 42px);
    font-weight: 700;
    letter-spacing: -.8px;
}

.pdm-detail-iva {
    color: var(--pd-muted);
    font-size: 11px;
}

/* STOCK */

.pdm-detail-stock {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid;
    border-radius: 11px;
}

.pdm-detail-stock-dot {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-top: 6px;
    border-radius: 50%;
}

.pdm-detail-stock strong,
.pdm-detail-stock small {
    display: block;
}

.pdm-detail-stock strong {
    margin-bottom: 5px;
    font-size: 13px;
}

.pdm-detail-stock small {
    font-size: 11px;
    line-height: 1.6;
}

.pdm-detail-stock.available {
    border-color: rgba(105, 198, 150, .3);
    background: rgba(35, 116, 77, .11);
    color: #b2e9c9;
}

.pdm-detail-stock.available .pdm-detail-stock-dot {
    background: #70d09a;
}

.pdm-detail-stock.unavailable {
    border-color: rgba(240, 132, 146, .3);
    background: rgba(180, 68, 88, .09);
    color: #f2b1bd;
}

.pdm-detail-stock.unavailable .pdm-detail-stock-dot {
    background: #ee899a;
}

.pdm-detail-stock.info {
    border-color: rgba(184, 150, 229, .28);
    background: rgba(130, 91, 180, .1);
    color: #dbc5f1;
}

.pdm-detail-stock.info .pdm-detail-stock-dot {
    background: #b594dc;
}

/* DESCRIÇÃO */

.pdm-detail-description {
    margin-top: 27px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--pd-border);
}

.pdm-detail-description h2 {
    margin: 0 0 13px;
    color: #fff;
    font-size: 17px;
    font-weight: 650;
}

.pdm-detail-description p {
    margin: 0;
    color: var(--pd-muted);
    font-size: 13px;
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* ADICIONAR AO CARRINHO */

.pdm-detail-purchase {
    margin-top: 25px;
}

.pdm-detail-cart-form {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.pdm-detail-quantity-area {
    flex: 0 0 auto;
}

.pdm-detail-quantity-area>label {
    display: block;
    margin-bottom: 9px;
    color: #eee6f4;
    font-size: 12px;
    font-weight: 650;
}

.pdm-detail-quantity-control {
    display: flex;
    align-items: center;
    height: 49px;
    overflow: hidden;
    border: 1px solid rgba(210, 174, 235, .32);
    border-radius: 10px;
    background: #171020;
}

.pdm-detail-quantity-control button {
    flex: 0 0 40px;
    width: 40px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #e8d6f5;
    font: inherit;
    font-size: 21px;
    cursor: pointer;
}

.pdm-detail-quantity-control button:hover:not(:disabled) {
    background: #38244c;
}

.pdm-detail-quantity-control button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.pdm-detail-quantity-control input {
    width: 43px;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.pdm-detail-quantity-control input::-webkit-inner-spin-button,
.pdm-detail-quantity-control input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.pdm-detail-add-cart {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 49px;
    padding: 12px 18px;
    border: 1px solid #9b6ac5;
    border-radius: 10px;
    background: linear-gradient(135deg, #9563bd, #774aa2);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s, transform .2s;
}

.pdm-detail-add-cart:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.pdm-detail-purchase-note,
.pdm-detail-cart-hint {
    margin: 12px 0 0;
    color: var(--pd-muted);
    font-size: 11px;
    line-height: 1.7;
}

.pdm-detail-cart-hint a {
    color: var(--pd-gold);
}

/* CONTACTO / ESGOTADO */

.pdm-detail-contact-box {
    margin-top: 26px;
    padding: 21px;
    border: 1px solid rgba(228, 196, 145, .23);
    border-radius: 12px;
    background: rgba(228, 196, 145, .05);
}

.pdm-detail-contact-box strong {
    color: #fff;
    font-size: 15px;
}

.pdm-detail-contact-box p {
    margin: 11px 0 0;
    color: var(--pd-muted);
    font-size: 12px;
    line-height: 1.9;
}

.pdm-detail-contact-soon {
    display: inline-block;
    margin-top: 16px;
    color: var(--pd-gold);
    font-size: 11px;
}

/* BLOCOS INFORMATIVOS */

.pdm-detail-benefits {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--pd-border);
}

.pdm-detail-benefit {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.pdm-detail-benefit>span {
    display: flex;
    flex: 0 0 37px;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border: 1px solid var(--pd-border);
    border-radius: 10px;
    background: var(--pd-surface);
    color: var(--pd-gold);
    font-size: 19px;
}

.pdm-detail-benefit strong,
.pdm-detail-benefit small {
    display: block;
}

.pdm-detail-benefit strong {
    margin-bottom: 5px;
    color: #fff;
    font-size: 12px;
}

.pdm-detail-benefit small {
    color: var(--pd-muted);
    font-size: 11px;
    line-height: 1.6;
}

.pdm-detail-bottom {
    margin-top: 55px;
    padding-top: 23px;
    border-top: 1px solid var(--pd-border);
}

.pdm-detail-bottom a {
    color: var(--pd-gold);
    font-size: 12px;
    text-decoration: none;
}

/* MENSAGENS */

.pdm-detail-notice {
    padding: 16px 19px;
    margin-bottom: 22px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 13px;
}

.pdm-detail-notice p {
    margin: 7px 0 0;
}

.pdm-detail-notice.success {
    border-color: rgba(105, 198, 150, .28);
    background: rgba(35, 116, 77, .12);
    color: #b2e9c9;
}

.pdm-detail-notice.error {
    border-color: rgba(240, 132, 146, .3);
    background: rgba(180, 68, 88, .1);
    color: #f2b1bd;
}

/* ACESSIBILIDADE */

.pdm-detail a:focus-visible,
.pdm-detail button:focus-visible,
.pdm-detail input:focus-visible {
    outline: 2px solid var(--pd-gold);
    outline-offset: 3px;
}

/* RESPONSIVO */

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

    .pdm-detail-featured {
        max-height: 620px;
    }

    .pdm-detail-info {
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .pdm-detail {
        padding: 17px 0 45px;
    }

    .pdm-detail-container {
        padding: 0 14px;
    }

    .pdm-detail-breadcrumb {
        margin-bottom: 22px;
    }

    .pdm-detail-featured {
        border-radius: 13px;
    }

    .pdm-detail-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .pdm-detail-info h1 {
        font-size: 29px;
    }

    .pdm-detail-cart-form {
        flex-wrap: wrap;
    }

    .pdm-detail-add-cart {
        flex-basis: 100%;
    }

    .pdm-detail-benefits {
        margin-top: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pdm-detail * {
        transition: none !important;
    }
}


.pdm-detail-quantity-feedback {
    flex-basis: 100%;
    display: block;
    color: #e4c491;
    font-size: 11px;
    line-height: 1.6;
}

.pdm-detail-add-cart:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* =====================================
   BOTÃO ADICIONAR AO CARRINHO
===================================== */

.pdm-detail-cart-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    width: 100%;
}

.pdm-detail-quantity-area {
    flex: 0 0 auto;
}

.pdm-detail-add-cart {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #9563bd, #774aa2);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
}

.pdm-detail-add-cart:hover:not(:disabled) {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.pdm-detail-quantity-feedback {
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
}

/* PDM_VISUAL_V3_START — galeria mais intuitiva e transições suaves */
.pdm-detail-gallery{
  position:relative;
  isolation:isolate;
  z-index:1;
}
.pdm-detail-featured{
  box-shadow:0 22px 55px rgba(9,5,15,.20);
}
.pdm-detail-featured > img{
  transition: opacity .28s ease, transform .32s ease;
  will-change: opacity, transform;
}
.pdm-detail-featured > img.is-switching{
  opacity:.2;
  transform:scale(.985);
}
.pdm-detail-thumbnails{
  display:flex;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  gap:12px;
  margin-top:16px;
  padding:4px 2px 8px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:rgba(228,196,145,.45) rgba(255,255,255,.04);
}
.pdm-detail-thumbnails::-webkit-scrollbar{height:8px}
.pdm-detail-thumbnails::-webkit-scrollbar-track{background:rgba(255,255,255,.04); border-radius:999px}
.pdm-detail-thumbnails::-webkit-scrollbar-thumb{background:rgba(228,196,145,.45); border-radius:999px}
.pdm-detail-thumb{
  position:relative;
  flex:0 0 96px;
  width:96px;
  max-width:96px;
  scroll-snap-align:start;
  transition:border-color .22s ease, transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}
.pdm-detail-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
  pointer-events:none;
}
.pdm-detail-thumb img{
  transition:transform .26s ease, filter .26s ease;
}
.pdm-detail-thumb.is-active{
  border-width:1px;
  border-color:var(--pd-gold);
  transform:translateY(-2px);
  box-shadow:0 12px 22px rgba(8,4,14,.22), 0 0 0 2px rgba(228,196,145,.14);
}
.pdm-detail-thumb.is-active img{transform:scale(1.04)}
.pdm-detail-thumb:hover{border-color:var(--pd-gold); transform:translateY(-2px)}
.pdm-detail-thumb:hover img{transform:scale(1.03)}
@media (max-width: 600px){
  .pdm-detail-thumbnails{
    gap:10px;
    padding-bottom:10px;
  }
  .pdm-detail-thumb{
    flex-basis:82px;
    width:82px;
    max-width:82px;
  }
}
/* PDM_VISUAL_V3_END */
