/* ==========================================================================
   Pagina de produs
   Se incarca in plus fata de site.min.css, doar unde e nevoie.
   ========================================================================== */

/* --- Firimituri ---------------------------------------------------------- */
.pdr-breadcrumb {
    font-size: 14px;
    color: #8a8a8a;
    margin: 0 0 22px;
}
.pdr-breadcrumb a { color: #8a8a8a; text-decoration: none; }
.pdr-breadcrumb a:hover { color: #1a1a1a; text-decoration: underline; }
.pdr-breadcrumb span { margin: 0 8px; color: #c9c9c9; }
.pdr-breadcrumb strong { color: #1a1a1a; font-weight: 600; }

/* --- Fotografia produsului ----------------------------------------------
   Inainte, .img-single avea `object-fit: fill`, care INTINDE imaginea ca sa
   umple caseta - piatra iesea turtita. Cu `cover` proportiile se pastreaza,
   iar surplusul se decupeaza.
   Inaltimea fixa (in vh) face poza vizibil mai mare pe ecrane late, fara sa
   impinga detaliile produsului sub linia de plutire.
------------------------------------------------------------------------- */
.pdr-foto {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #efefef;
    line-height: 0;
}
.pdr-foto img {
    width: 100%;
    height: 62vh;
    min-height: 380px;
    max-height: 680px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.pdr-foto:hover img { transform: scale(1.03); }

/* Indiciul de marire: se vede din start pe telefon (unde nu exista hover). */
.pdr-lupa {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(20, 20, 20, .72);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    letter-spacing: .3px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
}
.pdr-foto:hover .pdr-lupa { opacity: 1; transform: translateY(0); }

.pdr-foto-nota {
    margin: 10px 2px 0;
    font-size: 13px;
    color: #9a9a9a;
    line-height: 1.5;
}

/* --- Titlu si stoc ------------------------------------------------------- */
.pdr-titlu {
    font-size: 34px;
    line-height: 1.15;
    font-weight: 400;
    margin: 0 0 14px;
    color: #1a1a1a;
}
.pdr-titlu span { font-weight: 700; display: block; }

.pdr-stoc {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.pdr-stoc.este  { background: #e7f6ec; color: #1c7c3f; }
.pdr-stoc.lipsa { background: #fdf1e3; color: #a2610f; }

/* --- Pretul --------------------------------------------------------------
   Cifra mare e pe metru patrat: asa compara oamenii piatra decorativa.
   Pretul pe cutie (unitatea in care se comanda) ramane imediat dedesubt.
------------------------------------------------------------------------- */
.pdr-pret {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.pdr-pret-mp {
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
    letter-spacing: -1px;
}
.pdr-pret-um {
    font-size: 17px;
    color: #6f6f6f;
    font-weight: 500;
}
.pdr-pret-detaliu {
    font-size: 14px;
    color: #6f6f6f;
    margin: 0 0 22px;
    line-height: 1.7;
}
.pdr-pret-detaliu .price-product { font-weight: 700; color: #1a1a1a; }
.pdr-sep { margin: 0 7px; color: #d0d0d0; }

.prod-desc { color: #5d5d5d; line-height: 1.75; margin-bottom: 20px; }
.prod-desc p { margin-bottom: 10px; }

/* --- Caracteristici ------------------------------------------------------ */
.pdr-spec {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    margin: 0 0 26px;
    border-top: 1px solid #ececec;
    font-size: 14.5px;
}
.pdr-spec dt,
.pdr-spec dd {
    padding: 11px 0;
    border-bottom: 1px solid #ececec;
    margin: 0;
}
.pdr-spec dt { color: #8a8a8a; padding-right: 26px; white-space: nowrap; }
.pdr-spec dd { color: #1a1a1a; font-weight: 600; text-align: right; }

/* --- Zona de comanda ----------------------------------------------------- */
.pdr-comanda {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
}
.pdr-camp label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #8a8a8a;
    margin-bottom: 7px;
    font-weight: 600;
}
.pdr-camp select.form-control {
    height: 48px;
    border-radius: 5px;
    border: 1px solid #dcdcdc;
    font-size: 15px;
    color: #1a1a1a;
    background-color: #fff;
}

.pdr-cantitate {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    overflow: hidden;
    height: 48px;
}
.pdr-cantitate button {
    width: 42px;
    border: 0;
    background: #fafafa;
    font-size: 21px;
    line-height: 1;
    color: #444;
    cursor: pointer;
    transition: background .15s;
}
.pdr-cantitate button:hover { background: #efefef; }
.pdr-cantitate input {
    width: 62px;
    border: 0;
    border-left: 1px solid #ececec;
    border-right: 1px solid #ececec;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    -moz-appearance: textfield;
}
.pdr-cantitate input::-webkit-outer-spin-button,
.pdr-cantitate input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Total --------------------------------------------------------------- */
.pdr-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    margin-bottom: 18px;
}
.pdr-total > span { color: #8a8a8a; font-size: 14px; }
.pdr-total strong { font-size: 25px; font-weight: 700; color: #1a1a1a; }
.pdr-total small { font-size: 13px; color: #9a9a9a; font-weight: 400; margin-left: 8px; }

.pdr-buton {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .4px;
    border-radius: 5px;
}

/* --- Avantaje ------------------------------------------------------------ */
.pdr-avantaje {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    font-size: 14px;
    color: #6f6f6f;
}
.pdr-avantaje li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 9px;
    line-height: 1.55;
}
.pdr-avantaje li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 13px;
    height: 8px;
    border-left: 2px solid #1c7c3f;
    border-bottom: 2px solid #1c7c3f;
    transform: rotate(-45deg);
}
.pdr-avantaje strong { color: #1a1a1a; }

/* --- Ecrane mici --------------------------------------------------------- */
@media (max-width: 991px) {
    .pdr-foto img { height: 46vh; min-height: 280px; }
    .pdr-titlu { font-size: 28px; }
    .pdr-pret-mp { font-size: 40px; }
    /* Pe telefon indiciul de marire e mereu vizibil: nu exista hover. */
    .pdr-lupa { opacity: 1; transform: none; }
}

@media (max-width: 575px) {
    .pdr-comanda { grid-template-columns: 1fr; }
    .pdr-cantitate { width: 100%; }
    .pdr-cantitate input { flex: 1; width: auto; }
    .pdr-spec { font-size: 14px; }
}

/* Cine prefera mai putina miscare nu primeste zoom la hover. */
@media (prefers-reduced-motion: reduce) {
    .pdr-foto img,
    .pdr-lupa { transition: none; }
    .pdr-foto:hover img { transform: none; }
}


/* ==========================================================================
   Focus vizibil
   Butoanele de cantitate si selectorul de ambalare nu aveau niciun indicator:
   cine navigheaza din tastatura nu stia unde se afla.
   ========================================================================== */
.pdr-cantitate button:focus-visible,
.pdr-cantitate input:focus-visible,
.pdr-camp select:focus-visible,
.pdr-buton:focus-visible,
.pdr-foto:focus-visible {
    outline: 3px solid #4a9eff;
    outline-offset: 2px;
    position: relative;
    z-index: 1;
}

/* Nota de sub fotografie era prea deschisa fata de fundalul alb. */
.pdr-foto-nota { color: #767676; }
