/* ===== PDP (Product Details Page) ===== */

.pdp-gallery-row { align-items: flex-start; }

.pdp-thumbs-col { width: 90px; }

.product-gallery-thumb {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdp-thumb-box {
    background: #f2f3f8;
    padding: 6px !important;
    border-radius: 10px;
    border: 0 !important;
}

.pdp-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.pdp-big-col .product-gallery { width: 100%; }

.pdp-big-box {
    width: 100%;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f3f5;
    position: relative;
}

.pdp-big-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slick height lock (evita “huevo blanco”) */
.product-gallery .slick-list,
.product-gallery .slick-track,
.product-gallery .slick-slide {
    height: 420px !important;
}
.product-gallery .slick-slide > div { height: 420px !important; }

/* Right side grid */
.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
    align-items: start;
}

.pdp-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #202020;
}

.pdp-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pdp-reviews { font-size: 13px; color: #93a0b2; }

.pdp-soldby {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    color: #5d6c80;
}

.pdp-muted { color: #93a0b2; }
.pdp-arrow { color: #93a0b2; margin-left: 2px; }

.pdp-field { margin-bottom: 12px; }

/* Buybox */
.pdp-buybox {
    border: 1px solid #dee6ea;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
}

.pdp-buybox-price {
    font-size: 20px;
    font-weight: 800;
    color: #ff6a1a;
    margin-bottom: 10px;
}

.pdp-buybox-line {
    height: 1px;
    background: rgba(17, 24, 39, 0.08);
    margin: 10px 0 12px;
}

.pdp-perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    color: #202020;
    margin-bottom: 14px;
}

.pdp-perk {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pdp-perk i {
    font-size: 16px;
    color: #5d6c80;
    margin-top: 1px;
}

.pdp-btn-main {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #ff6a1a;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.pdp-btn-main:hover { background: #e85506; }
.pdp-btn-main.is-disabled { opacity: .6; cursor: not-allowed; }

.pdp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.pdp-btn-outline {
    height: 38px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.25);
    font-weight: 600;
    color: #202020;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== UI Select (custom dropdown like screenshot) ===== */
.ui-select { position: relative; }
.ui-select__label {
    font-size: 12px;
    color: #5d6c80;
    margin-bottom: 6px;
}
.ui-select__button {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    border: 1px solid #dee6ea;
    background: #fff;
    padding: 0 44px 0 14px;
    font-size: 14px;
    color: #202020;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.ui-select__caret { color: #5d6c80; }

.ui-select__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #dee6ea;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 8px;
    display: none;
    z-index: 30;
    max-height: 240px;
    overflow: auto;
}
.ui-select.is-open .ui-select__list { display: block; }

.ui-select__option {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}
.ui-select__option:hover { background: rgba(17, 24, 39, 0.05); }
.ui-select__option.is-active { background: rgba(255, 106, 26, 0.12); }

/* Responsive */
@media (max-width: 992px) {
    .pdp-grid { grid-template-columns: 1fr; }
    .pdp-big-box,
    .product-gallery .slick-list,
    .product-gallery .slick-track,
    .product-gallery .slick-slide,
    .product-gallery .slick-slide > div {
        height: 320px !important;
    }
    .pdp-big-box { height: 320px; }
}

.product-section{
    --color-dark: #202020;
    --grey-01: #5D6C80;
    --grey-02: #93A0B2;
    --grey-03: #DEE6EA;
    --grey-04: #EFF2F5;
    --grey-05: #F8F9FB;
    --white: #FFFFFF;
    --primary: #FF6A1A;
    --primary-dark: #E85506;
    --text-main: var(--color-dark);
    --text-muted: var(--grey-01);
    --border-soft: var(--grey-03);
    font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    background-color: var(--white);
    color: var(--text-main);
}

/* ===== PDP (Product Details Page) ===== */

.pdp-gallery-row { align-items: flex-start; }

.pdp-thumbs-col { width: 90px; }

.product-gallery-thumb {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdp-thumb-box {
    background: #f2f3f8;
    padding: 6px !important;
    border-radius: 10px;
    border: 0 !important;
}

.pdp-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.pdp-big-col .product-gallery { width: 100%; }

.pdp-big-box {
    width: 100%;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f3f5;
    position: relative;
}

.pdp-big-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slick height lock (evita “huevo blanco”) */
.product-gallery .slick-list,
.product-gallery .slick-track,
.product-gallery .slick-slide {
    height: 420px !important;
}
.product-gallery .slick-slide > div { height: 420px !important; }

/* Right side grid */
.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
    align-items: start;
}

.pdp-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #202020;
}

.pdp-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* OJO: esta clase .pdp-reviews ya la usas como texto “X reviews” arriba */
.pdp-reviews { font-size: 13px; color: #93a0b2; }

.pdp-soldby {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    color: #5d6c80;
}

.pdp-muted { color: #93a0b2; }
.pdp-arrow { color: #93a0b2; margin-left: 2px; }

.pdp-field { margin-bottom: 12px; }

/* Buybox */
.pdp-buybox {
    border: 1px solid #dee6ea;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
}

.pdp-buybox-price {
    font-size: 20px;
    font-weight: 800;
    color: #ff6a1a;
    margin-bottom: 10px;
}

.pdp-buybox-line {
    height: 1px;
    background: rgba(17, 24, 39, 0.08);
    margin: 10px 0 12px;
}

.pdp-perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    color: #202020;
    margin-bottom: 14px;
}

.pdp-perk {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pdp-perk i {
    font-size: 16px;
    color: #5d6c80;
    margin-top: 1px;
}

.pdp-btn-main {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #ff6a1a;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.pdp-btn-main:hover { background: #e85506; }
.pdp-btn-main.is-disabled { opacity: .6; cursor: not-allowed; }

.pdp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.pdp-btn-outline {
    height: 38px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.25);
    font-weight: 600;
    color: #202020;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== UI Select (custom dropdown like screenshot) ===== */
.ui-select { position: relative; }
.ui-select__label {
    font-size: 12px;
    color: #5d6c80;
    margin-bottom: 6px;
}
.ui-select__button {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    border: 1px solid #dee6ea;
    background: #fff;
    padding: 0 44px 0 14px;
    font-size: 14px;
    color: #202020;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.ui-select__caret { color: #5d6c80; }

.ui-select__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #dee6ea;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 8px;
    display: none;
    z-index: 30;
    max-height: 240px;
    overflow: auto;
}
.ui-select.is-open .ui-select__list { display: block; }

.ui-select__option {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}
.ui-select__option:hover { background: rgba(17, 24, 39, 0.05); }
.ui-select__option.is-active { background: rgba(255, 106, 26, 0.12); }

/* Responsive (PDP) */
@media (max-width: 992px) {
    .pdp-grid { grid-template-columns: 1fr; }
    .pdp-big-box,
    .product-gallery .slick-list,
    .product-gallery .slick-track,
    .product-gallery .slick-slide,
    .product-gallery .slick-slide > div {
        height: 320px !important;
    }
    .pdp-big-box { height: 320px; }
}

/* Variables / base */
.product-section{
    --color-dark: #202020;
    --grey-01: #5D6C80;
    --grey-02: #93A0B2;
    --grey-03: #DEE6EA;
    --grey-04: #EFF2F5;
    --grey-05: #F8F9FB;
    --white: #FFFFFF;
    --primary: #FF6A1A;
    --primary-dark: #E85506;
    --text-main: var(--color-dark);
    --text-muted: var(--grey-01);
    --border-soft: var(--grey-03);
    font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    background-color: var(--white);
    color: var(--text-main);
}

/* ===========================
   REVIEWS (100% como captura)
   Usa solo .pdp-reviews__...
   =========================== */

.pdp-reviews{
    /* OJO: esta clase existe en tu header (texto),
       pero aquí la usamos SOLO como wrapper del tab de reviews.
       Si te da conflicto, dime y renombramos a .pdp-reviews-wrap */
}

/* Wrapper del tab */
.pdp-reviews{
    padding: 22px 22px 18px;
}

/* TOP layout */
.pdp-reviews__top{
    display: grid;
    grid-template-columns: 200px 1fr; /* card gris + barras */
    gap: 34px;
    align-items: start;
    margin-top: 6px;
    margin-bottom: 16px;
}

/* Left summary card (botón DENTRO) */
.pdp-reviews__card{
    background: #EFF2F5;
    border-radius: 12px;
    padding: 18px 16px 16px;
    text-align: center;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.pdp-reviews__score{
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: #202020 !important;
    margin-bottom: 10px;
}

.pdp-reviews__stars .rating i{
    font-size: 13px !important;
}

.pdp-reviews__count{
    margin-top: 8px;
    font-size: 12.5px;
    color: #5D6C80 !important;
}

.pdp-reviews__btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin-top: 14px !important;
    width: 100% !important;
    height: 44px !important;

    border: 0 !important;
    border-radius: 10px !important;
    background: #FF6A1A !important;
    color: #fff !important;

    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;

    position: static !important;
    float: none !important;
    transform: none !important;
}
.pdp-reviews__btn:hover{ background:#E85506 !important; }
.pdp-reviews__btn:disabled{ opacity:.55 !important; cursor:not-allowed !important; }

/* Right distribution */
.pdp-reviews__dist{
    padding-top: 12px;
    max-width: 340px; /* como captura, compacto */
}

.pdp-reviews__dist-row{
    display: grid;
    grid-template-columns: 14px 1fr 22px;
    gap: 12px;
    align-items: center;
    margin: 8px 0;
}

.pdp-reviews__dist-star{
    font-size: 12px;
    color: #5D6C80 !important;
}

.pdp-reviews__dist-bar{
    height: 5px;
    background: #DEE6EA;
    border-radius: 999px;
    overflow: hidden;
}

.pdp-reviews__dist-fill{
    height: 100%;
    display: block;
    background: #FFB24A; /* mostaza captura */
    border-radius: 999px;
}

.pdp-reviews__dist-num{
    font-size: 12px;
    color: #5D6C80 !important;
    text-align: right;
}

/* List */
.pdp-reviews__list{
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    margin-top: 14px;
}

.pdp-reviews__item{
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.pdp-reviews__left{
    padding-top: 2px;
}

.pdp-reviews__name{
    font-size: 12.5px;
    font-weight: 700;
    color: #202020 !important;
    margin-bottom: 6px;
}

.pdp-reviews__stars-sm .rating i{
    font-size: 12px !important;
}

/* Right */
.pdp-reviews__date{
    font-size: 12px;
    color: #93A0B2 !important;
    margin-bottom: 6px;
}

.pdp-reviews__comment{
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    color: #202020 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;

    overflow: visible !important;
    white-space: normal !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

/* Answer box */
.pdp-reviews__answer{
    margin-top: 14px;
    background: #EFF2F5;
    border-radius: 10px;
    padding: 14px 16px;
}

.pdp-reviews__answer-head{
    font-size: 12px;
    color: #202020 !important;
    margin-bottom: 6px;
}

.pdp-reviews__answer-date{
    margin-left: 8px;
    color: #93A0B2 !important;
    font-weight: 500;
}

.pdp-reviews__answer-body{
    font-size: 12px;
    color: #202020 !important;
    line-height: 1.55;
}

/* Footer */
.pdp-reviews__footer{
    display: flex;
    justify-content: center;
    padding: 18px 0 6px;
}

.pdp-reviews__more{
    height: 44px;
    padding: 0 24px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.25);
    color: #202020;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.pdp-reviews__more:hover{
    background: rgba(17, 24, 39, 0.03);
}

.pdp-reviews__empty{
    text-align: center;
    padding: 26px 0;
    font-size: 14px;
    color: #5D6C80;
}

/* Responsive (Reviews) */
@media (max-width: 992px){
    .pdp-reviews__top{ grid-template-columns: 1fr; gap: 16px; }
    .pdp-reviews__dist{ max-width: 100%; }
    .pdp-reviews__item{ grid-template-columns: 1fr; gap: 10px; }
}


/* ===== FORCE: imagen grande SIEMPRE entera (sin recorte) ===== */
.pdp-big-col .product-gallery .pdp-big-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pdp-big-col .product-gallery .pdp-big-box > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* clave: max + auto para respetar proporción y NO recortar */
.pdp-big-col .product-gallery .pdp-big-box img.pdp-big-img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}
