:root {
    --dar-review-gold: #c8863d;
    --dar-review-ink: #352c25;
    --dar-review-muted: #756b63;
    --dar-review-line: #eadfd4;
    --dar-review-soft: #fbf6f0;
}

body.page-template-template-tailwind-recenzii { overflow-x: hidden; }

.dar-reviews-page {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    background: #fff;
    color: var(--dar-review-ink);
}

.dar-reviews-shell {
    width: min(1240px, calc(100% - 32px));
    max-width: 100%;
    box-sizing: border-box;
    margin-inline: auto;
}

.dar-reviews-hero {
    position: relative;
    overflow: hidden;
    padding: 25px 0 27px;
    border-bottom: 1px solid var(--dar-review-line);
    background: linear-gradient(to bottom, #d1893d33 0, #fff 100%);
    width: 100vw;
    max-width: none;
    left: 50%;
    margin-inline: 0;
    transform: translateX(-50%);
}

.dar-reviews-hero__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dar-reviews-hero__content { min-width: 0; }
.dar-review-types--hero,
.dar-reviews-summary--sticky { display: none; }

.dar-reviews-hero__content p {
    max-width: 650px;
    margin: 6px 0 0;
    color: #573a27;
    font-size: 15px;
    line-height: 1.4;
}

.dar-reviews-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #9b5f27;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dar-reviews-hero h1 {
    margin: 0;
    color: #422d20;
    font-family: Georgia, serif;
    font-size: clamp(34px, 3.4vw, 48px);
    font-weight: 500;
    line-height: 1.05;
}

.dar-reviews-summary {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 0 10px;
    min-width: 170px;
    padding: 9px 14px;
    border: 1px solid rgba(155,95,39,.25);
    border-radius: 8px;
    background: rgba(255,255,255,.68);
    color: #422d20;
    box-shadow: 0 9px 24px rgba(65,43,25,.08);
}

.dar-reviews-summary__stars {
    grid-column: 1 / -1;
    color: #f7bb64;
    font-size: 12px;
    letter-spacing: 2px;
}

.dar-reviews-summary strong { font-size: 25px; line-height: 1; }
.dar-reviews-summary span { font-size: 12px; opacity: .86; }

.dar-reviews-content {
    padding: 12px 0 48px;
}

.dar-reviews-layout,
.dar-reviews-grid,
.dar-review-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.dar-reviews-layout { width: 100%; }

.dar-review-types {
    display: grid;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    gap: 6px;
    margin: 0 0 18px;
    padding: 4px 2px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
}

.dar-review-types::-webkit-scrollbar { display: none; }

.dar-review-type {
    position: relative;
    display: block;
    min-width: 0;
    border-radius: 10px;
    color: var(--dar-review-ink) !important;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease;
}

.dar-review-type:hover { background: var(--dar-review-soft); }
.dar-review-type.is-active {
    background: #cf843b;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(207, 132, 59, .28);
}

.dar-review-type.is-active .dar-review-type__icon {
    filter: brightness(0) invert(1);
}

.dar-review-type.is-active .dar-review-type__count {
    background: #fff;
    color: #cf843b;
}

.dar-review-type__button {
    display: flex;
    min-height: 57px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 5px 3px;
}

.dar-review-type__icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(24%) sepia(10%) saturate(741%) hue-rotate(346deg) brightness(91%) contrast(91%);
}

.dar-review-type__label {
    overflow: hidden;
    max-width: 100%;
    color: inherit;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dar-review-type__count {
    position: absolute;
    top: 3px;
    right: 4px;
    z-index: 2;
    min-width: 19px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--dar-review-gold);
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.dar-reviews-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.dar-reviews-section-head h2 {
    margin: 0;
    color: var(--dar-review-ink);
    font-family: Georgia, serif;
    font-size: 28px;
}

.dar-reviews-section-head span {
    color: var(--dar-review-muted);
    font-size: 14px;
}

.dar-reviews-grid {
    display: block;
    column-count: 4;
    column-gap: 13px;
    width: min(calc(100vw - 44px), 1880px);
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.dar-review-card {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    margin: 0 0 13px;
    border: 1px solid var(--dar-review-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(58, 43, 31, .06);
    break-inside: avoid;
}

.dar-review-card__delete {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 8;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #a6302b;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(74, 21, 18, .24);
    cursor: pointer;
}
.dar-review-card__delete:disabled { opacity: .45; }
.dar-review-card:has(.dar-review-card__delete) .dar-review-card__top { padding-right: 48px; }

.dar-review-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 14px 0;
}

.dar-review-card__top h3 {
    margin: 0;
    color: var(--dar-review-ink);
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.2;
}

.dar-review-card__verified {
    display: block;
    margin-top: 3px;
    color: #63836b;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.dar-review-card__stars {
    flex: 0 0 auto;
    color: #dd8b31;
    font-size: 12px;
    letter-spacing: 0;
}

.dar-review-card__text {
    margin: 11px 14px 13px;
    color: #655b54;
    font-family: Georgia, serif;
    font-size: 15px;
    font-style: italic;
    line-height: 1.5;
}

.dar-review-card__media {
    position: relative;
    overflow: hidden;
    background: #f1ebe5;
}

.dar-review-card__review-trigger,
.dar-review-card__product-trigger {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.dar-review-card__review-trigger {
    display: block;
    width: 100%;
}

.dar-review-card__photo {
    display: block;
    width: 100%;
    height: auto;
}

.dar-review-card__product-photo {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.dar-review-card__product-trigger {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 29%;
    aspect-ratio: 1;
    padding: 3px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(0,0,0,.2);
}

.dar-review-card__product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 12px;
}

.dar-review-card__product > div { min-width: 0; }
.dar-review-card__product-name {
    display: block;
    overflow: hidden;
    max-width: 150px;
    color: var(--dar-review-muted);
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dar-review-card__product strong { color: #a56529; font-size: 14px; }
.dar-review-card__product a { flex: 0 0 auto; color: var(--dar-review-ink) !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }

.dar-reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 24px;
}

.dar-reviews-pagination .page-numbers {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--dar-review-line);
    border-radius: 9px;
    color: var(--dar-review-ink);
    font-size: 12px;
    font-weight: 750;
}
.dar-reviews-pagination .current { border-color: var(--dar-review-gold); background: var(--dar-review-gold); color: #fff; }

.dar-review-lightbox[hidden] { display: none !important; }
.dar-review-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
}
.dar-review-lightbox__backdrop { position: absolute; inset: 0; background: rgba(35,24,17,.86); backdrop-filter: blur(7px); }
.dar-review-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(92vw, 980px);
    height: min(88vh, 900px);
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
}
.dar-review-lightbox figure { display: flex; min-width: 0; max-height: 88vh; align-items: center; justify-content: center; flex-direction: column; margin: 0; }
.dar-review-lightbox figure img { display: block; max-width: 100%; max-height: calc(88vh - 42px); border-radius: 12px; object-fit: contain; box-shadow: 0 22px 70px rgba(0,0,0,.38); }
.dar-review-lightbox figcaption { min-height: 28px; padding-top: 8px; color: #fff; font-size: 12px; text-align: center; }
.dar-review-lightbox__close,
.dar-review-lightbox__nav { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; backdrop-filter: blur(5px); }
.dar-review-lightbox__close { position: absolute; top: 0; right: 0; z-index: 3; width: 42px; height: 42px; border-radius: 50%; font-size: 28px; }
.dar-review-lightbox__nav { width: 44px; height: 58px; border-radius: 10px; font-size: 36px; }
.dar-review-lightbox__nav--prev { justify-self: start; }
.dar-review-lightbox__nav--next { justify-self: end; }
.dar-review-lightbox.is-product .dar-review-lightbox__nav { visibility: hidden; pointer-events: none; }
body.dar-review-lightbox-open { overflow: hidden !important; }

@media (min-width: 901px) {
    .dar-reviews-hero { padding: 18px 0 20px; }
    .dar-reviews-hero__grid {
        display: grid;
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 28px;
    }
    .dar-reviews-hero h1 { font-size: clamp(28px, 2.35vw, 38px); }
    .dar-reviews-hero__content p { max-width: 520px; font-size: 14px; }
    .dar-reviews-hero > .dar-reviews-shell > .dar-reviews-summary { display: none; }
    .dar-reviews-summary--sticky {
        position: fixed;
        right: 22px;
        bottom: 22px;
        z-index: 90;
        display: grid;
        width: 164px;
        min-width: 0;
        padding: 10px 13px;
        background: rgba(255,255,255,.94);
        backdrop-filter: blur(8px);
    }
    .dar-review-types--content { display: none; }
    .dar-review-types--hero {
        display: grid;
        justify-self: end;
        width: 75%;
        min-width: 0;
        max-width: 720px;
        margin: 0;
    }
    .dar-review-types {
        width: 75%;
        max-width: 720px;
        margin-right: auto;
        margin-left: auto;
        transform: none;
    }
    .dar-review-type__button { min-height: 76px; padding: 5px 4px; }
    .dar-review-type__icon { width: 58px; height: 58px; }
}

@media (min-width: 1100px) {
    .dar-reviews-grid { column-count: 5; }
}

@media (min-width: 1500px) {
    .dar-reviews-grid { column-count: 6; }
}

@media (max-width: 900px) {
    .dar-reviews-grid { column-count: 3; }
    .dar-review-types { overflow-x: auto; grid-template-columns: repeat(7, 92px); }
    .dar-review-types--hero,
    .dar-reviews-summary--sticky { display: none !important; }
}

@media (max-width: 600px) {
    body.page-template-template-tailwind-recenzii { overflow-x: hidden; }
    .dar-reviews-shell { width: calc(100% - 32px); max-width: calc(100% - 32px); }
    .dar-reviews-hero .dar-reviews-shell { width: calc(100% - 36px); max-width: calc(100% - 36px); }
    .dar-reviews-hero { padding: 12px 0; }
    .dar-reviews-hero__grid { gap: 8px; }
    .dar-reviews-eyebrow { display: none; }
    .dar-reviews-hero h1 { font-size: 24px; }
    .dar-reviews-hero__content p { margin-top: 5px; font-size: 12px; line-height: 1.35; }
    .dar-reviews-summary { flex: 0 0 86px; grid-template-columns: 1fr; min-width: 0; gap: 0; padding: 6px 7px; text-align: center; }
    .dar-reviews-summary__stars { font-size: 9px; letter-spacing: 0; }
    .dar-reviews-summary strong { font-size: 20px; }
    .dar-reviews-summary span { font-size: 8px; }
    .dar-reviews-content { padding-top: 7px; }
    .dar-review-types {
        display: flex;
        width: 100%;
        max-width: 100%;
        gap: 3px;
        margin-bottom: 12px;
        padding: 4px 2px 10px;
        overflow-x: auto;
        overflow-y: hidden;
        border-bottom: 1px solid var(--dar-review-line);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }
    .dar-review-type { flex: 0 0 76px; min-width: 76px; }
    .dar-review-type__button { min-height: 55px; padding: 4px 2px; }
    .dar-review-type__icon { width: 28px; height: 28px; }
    .dar-review-type__label { font-size: 8px; }
    .dar-review-type__count { top: 1px; right: 1px; min-width: 15px; height: 13px; padding: 0 3px; font-size: 6px; line-height: 13px; }
    .dar-reviews-section-head { margin-bottom: 7px; }
    .dar-reviews-section-head { justify-content: flex-start; text-align: left; }
    .dar-reviews-section-head h2 { display: none; }
    .dar-reviews-section-head span { color: #8a7c71; font-family: Georgia, serif; font-size: 10px; font-style: italic; font-weight: 400; }
    .dar-reviews-grid { width: calc(100vw - 20px); max-width: none; column-count: 2; column-gap: 7px; overflow: hidden; }
    .dar-review-card { margin-bottom: 7px; border-radius: 10px; }
    .dar-review-card__top { display: block; padding: 10px 9px 0; }
    .dar-review-card__top h3 { font-size: 13px; }
    .dar-review-card__verified { margin-top: 2px; font-size: 8px; }
    .dar-review-card__stars { display: block; margin-top: 4px; font-size: 11px; }
    .dar-review-card__text { margin: 8px 9px 10px; font-size: 12px; line-height: 1.48; }
    .dar-review-card__product-trigger { right: 5px; bottom: 5px; padding: 2px; border-width: 1px; border-radius: 7px; }
    .dar-review-card__product { gap: 4px; padding: 8px 8px 9px; }
    .dar-review-card__product-name { max-width: 76px; font-size: 8px; }
    .dar-review-card__product strong { font-size: 11px; }
    .dar-review-card__product a { font-size: 9px; }
    .dar-review-lightbox { padding: 10px; }
    .dar-review-lightbox__dialog { width: 100%; height: 92vh; grid-template-columns: 38px minmax(0, 1fr) 38px; }
    .dar-review-lightbox figure { max-height: 92vh; }
    .dar-review-lightbox figure img { max-height: calc(92vh - 38px); border-radius: 8px; }
    .dar-review-lightbox__nav { width: 34px; height: 48px; border-radius: 8px; font-size: 29px; }
    .dar-review-lightbox__close { top: 4px; right: 4px; width: 38px; height: 38px; font-size: 25px; }
}
