/* =========================================================
   SHOP FEATURES — reviews, variants, filters, search
   (loaded on the product and products pages)
   ========================================================= */

/* ---------- Variant picker ---------- */

.size-btn[disabled] {
    position: relative;
    color: #b8aca6 !important;
    background: #faf6f0 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.size-btn[disabled]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 12%;
    right: 12%;
    height: 1px;
    background: #c9bdb6;
    transform: rotate(-18deg);
}

.price-from {
    margin-right: 4px;
    color: #8a7f7b;
    font-size: 0.55em;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}

.detail-rating a {
    color: inherit;
}

.detail-rating a:hover .review-count {
    color: #ac0060;
}

/* ---------- Reviews ---------- */

.pr-section {
    padding: 64px 0 24px;
    font-family: "Poppins", sans-serif;
    color: #2a1712;
    background: #fbf5e9;
}

.pr-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.pr-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #ac0060;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.pr-head h2 {
    margin: 0;
    font-family: "DM Serif Display", serif;
    font-size: 34px;
    font-weight: 400;
}

.pr-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.pr-summary,
.pr-form,
.pr-review,
.pr-empty {
    background: #ffffff;
    border: 1px solid #efe5d8;
    border-radius: 18px;
}

.pr-summary {
    position: sticky;
    top: 100px;
    padding: 28px;
    text-align: center;
}

.pr-score {
    font-family: "DM Serif Display", serif;
    font-size: 56px;
    line-height: 1;
}

.pr-summary .stars,
.pr-review .stars {
    display: inline-flex;
    gap: 3px;
    color: #cd9c2a;
    font-size: 15px;
}

.pr-summary .stars {
    margin: 10px 0 6px;
}

.pr-summary > p {
    margin: 0 0 18px;
    color: #7a6f6b;
    font-size: 13px;
}

.pr-bars {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pr-bars li {
    display: grid;
    grid-template-columns: 34px 1fr 26px;
    gap: 10px;
    align-items: center;
    font-size: 12.5px;
}

.pr-bars li i {
    color: #cd9c2a;
    font-size: 10px;
}

.pr-bar {
    height: 7px;
    overflow: hidden;
    background: #f3ece2;
    border-radius: 10px;
}

.pr-bar span {
    display: block;
    height: 100%;
    background: #cd9c2a;
    border-radius: 10px;
}

.pr-bar-count {
    color: #8a7f7b;
    text-align: right;
}

.pr-note {
    margin: 20px 0 0;
    padding-top: 16px;
    color: #7a6f6b;
    font-size: 12.5px;
    line-height: 1.6;
    border-top: 1px solid #f1e9df;
}

.pr-note a {
    color: #ac0060;
    font-weight: 600;
}

.pr-main {
    display: grid;
    gap: 16px;
}

/* form */

.pr-form {
    padding: 26px;
}

.pr-form h3 {
    margin: 0 0 16px;
    font-family: "DM Serif Display", serif;
    font-size: 22px;
    font-weight: 400;
}

.pr-rating-input {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.pr-rating-input legend,
.pr-field > span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.pr-field small {
    color: #8a7f7b;
    font-weight: 400;
}

/* Stars are rendered 5 → 1 and flipped, so hovering a star lights it and the ones before it. */
.pr-star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.pr-star-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pr-star-input label {
    color: #e2d6c8;
    font-size: 26px;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.pr-star-input label:hover,
.pr-star-input label:hover ~ label,
.pr-star-input input:checked ~ label {
    color: #cd9c2a;
}

.pr-star-input label:hover {
    transform: scale(1.12);
}

.pr-star-input input:focus-visible + label {
    outline: 2px solid #ac0060;
    outline-offset: 2px;
    border-radius: 4px;
}

.pr-field {
    display: block;
    margin-bottom: 14px;
}

.pr-field input,
.pr-field textarea {
    width: 100%;
    padding: 12px 14px;
    color: #2a1712;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    background: #fdfbf8;
    border: 1.5px solid #e9e0d4;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pr-field textarea {
    resize: vertical;
}

.pr-field input:focus,
.pr-field textarea:focus {
    background: #ffffff;
    border-color: #ac0060;
    box-shadow: 0 0 0 4px rgba(172, 0, 96, 0.1);
}

.pr-error {
    margin: 6px 0 0;
    color: #d92d20;
    font-size: 12.5px;
}

.pr-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    color: #ffffff;
    font-family: "Jost", sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    background: #ac0060;
    border: 0;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pr-btn:hover {
    color: #ffffff;
    background: #8f0050;
}

.pr-btn-outline {
    color: #2a1712;
    background: #ffffff;
    border: 1.5px solid #e2d6c8;
}

.pr-btn-outline:hover {
    color: #ac0060;
    background: #ffffff;
    border-color: #ac0060;
}

.pr-link {
    color: #6f6460;
    font-size: 14px;
}

/* list */

.pr-review {
    padding: 22px 24px;
}

.pr-review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.pr-avatar {
    display: grid;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #ac0060;
    font-weight: 600;
    background: #fbe8f2;
    border-radius: 50%;
}

.pr-review-head strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.pr-verified {
    color: #1f8a4c;
    font-size: 11.5px;
}

.pr-review-head time {
    margin-left: auto;
    color: #8a7f7b;
    font-size: 12px;
}

.pr-review h4 {
    margin: 8px 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.pr-review p {
    margin: 6px 0 0;
    color: #5c514d;
    font-size: 14px;
    line-height: 1.75;
}

.pr-empty {
    padding: 40px 24px;
    color: #7a6f6b;
    text-align: center;
}

.pr-empty i {
    display: block;
    margin-bottom: 10px;
    color: #d6c8bd;
    font-size: 30px;
}

.pr-empty p {
    margin: 0;
    font-size: 14px;
}

.pr-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    font-size: 13.5px;
    border-radius: 12px;
}

.pr-alert-success {
    color: #1f6f43;
    background: #e5f4ea;
}

.pr-alert-error {
    color: #b42318;
    background: #fdecea;
}

@media (max-width: 991px) {
    .pr-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pr-summary {
        position: static;
    }
}

@media (max-width: 575px) {
    .pr-section {
        padding-top: 44px;
    }

    .pr-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .pr-head h2 {
        font-size: 28px;
    }

    .pr-review,
    .pr-form {
        padding: 18px;
    }
}

/* ---------- Products page: filters ---------- */

.shop-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    font-family: "Poppins", sans-serif;
}

.shop-filters {
    position: sticky;
    top: 100px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #efe5d8;
    border-radius: 18px;
}

.shop-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: #2a1712;
}

.shop-filters-head strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.shop-filters-reset {
    color: #ac0060;
    font-size: 12.5px;
    font-weight: 500;
}

.shop-filters-close {
    display: none;
    padding: 4px 8px;
    color: #2a1712;
    font-size: 18px;
    background: none;
    border: 0;
}

.shop-filter-group {
    padding: 18px 0;
    border-bottom: 1px solid #f1e9df;
}

.shop-filter-group:last-of-type {
    border-bottom: 0;
}

.shop-filter-title {
    display: block;
    margin-bottom: 12px;
    color: #8a7f7b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.shop-search {
    display: flex;
    align-items: center;
    height: 44px;
    background: #fdfbf8;
    border: 1.5px solid #e9e0d4;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-search:focus-within {
    background: #ffffff;
    border-color: #ac0060;
    box-shadow: 0 0 0 4px rgba(172, 0, 96, 0.1);
}

.shop-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
    color: #2a1712;
    font-size: 13.5px;
    background: transparent;
    border: 0;
    outline: none;
}

.shop-search button {
    width: 42px;
    height: 100%;
    color: #ac0060;
    background: none;
    border: 0;
}

.shop-options {
    display: grid;
    gap: 4px;
}

.shop-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    margin: 0 -8px;
    color: #3d3431;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.shop-option:hover {
    background: #fbf5e9;
}

.shop-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shop-check {
    display: grid;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    place-items: center;
    color: transparent;
    font-size: 10px;
    background: #ffffff;
    border: 1.5px solid #d6cabd;
    border-radius: 5px;
    transition: 0.15s ease;
}

.shop-option input:checked + .shop-check {
    color: #ffffff;
    background: #ac0060;
    border-color: #ac0060;
}

.shop-option input:focus-visible + .shop-check {
    box-shadow: 0 0 0 4px rgba(172, 0, 96, 0.15);
}

.shop-option-icon {
    width: 16px;
    color: #cd9c2a;
    font-size: 13px;
    text-align: center;
}

.shop-option-label {
    flex: 1;
}

.shop-option-count {
    min-width: 26px;
    padding: 1px 8px;
    color: #8a7f7b;
    font-size: 11.5px;
    text-align: center;
    background: #f5efe6;
    border-radius: 20px;
}

.shop-price {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.shop-price label {
    flex: 1;
    min-width: 0;
}

.shop-price label span {
    display: block;
    margin-bottom: 4px;
    color: #8a7f7b;
    font-size: 11.5px;
}

.shop-price input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    color: #2a1712;
    font-size: 13.5px;
    background: #fdfbf8;
    border: 1.5px solid #e9e0d4;
    border-radius: 10px;
    outline: none;
}

.shop-price input:focus {
    border-color: #ac0060;
}

.shop-price-dash {
    padding-bottom: 10px;
    color: #b3a8a2;
}

.shop-price button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: #ac0060;
    border: 0;
    border-radius: 10px;
}

.shop-ranges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.shop-ranges a {
    padding: 5px 12px;
    color: #5c514d;
    font-size: 12.5px;
    background: #fbf5e9;
    border: 1px solid #efe5d8;
    border-radius: 30px;
    transition: 0.15s ease;
}

.shop-ranges a:hover,
.shop-ranges a.active {
    color: #ffffff;
    background: #ac0060;
    border-color: #ac0060;
}

.shop-apply {
    display: none;
    width: 100%;
    height: 48px;
    margin-top: 10px;
    color: #ffffff;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 500;
    background: #ac0060;
    border: 0;
    border-radius: 50px;
}

.shop-filters-backdrop {
    display: none;
}

/* ---------- Products page: results ---------- */

.shop-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.shop-count {
    flex: 1;
    margin: 0;
    color: #7a6f6b;
    font-size: 13.5px;
}

.shop-count strong {
    color: #2a1712;
    font-weight: 600;
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #8a7f7b;
    font-size: 13px;
}

.shop-sort select {
    height: 42px;
    padding: 0 36px 0 14px;
    color: #2a1712;
    font-family: "Poppins", sans-serif;
    font-size: 13.5px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23ac0060' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1.5px solid #e9e0d4;
    border-radius: 12px;
    appearance: none;
    cursor: pointer;
}

.shop-sort select:focus {
    border-color: #ac0060;
    outline: none;
}

.shop-filters-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    color: #2a1712;
    font-size: 14px;
    background: #ffffff;
    border: 1.5px solid #e2d6c8;
    border-radius: 12px;
}

.shop-filters-toggle em {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 6px;
    color: #ffffff;
    font-size: 11px;
    font-style: normal;
    background: #ac0060;
    border-radius: 20px;
}

.shop-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.shop-chips a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: #8a004d;
    font-size: 12.5px;
    background: #fbe8f2;
    border-radius: 30px;
}

.shop-chips a:hover {
    background: #f6d3e5;
}

.shop-chips a.shop-chips-clear {
    color: #6f6460;
    background: none;
    text-decoration: underline !important;
}

.shop-empty {
    padding: 56px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #efe5d8;
    border-radius: 18px;
}

.shop-empty i {
    color: #d6c8bd;
    font-size: 38px;
}

.shop-empty h3 {
    margin: 14px 0 6px;
    color: #2a1712;
    font-family: "DM Serif Display", serif;
    font-size: 22px;
    font-weight: 400;
}

.shop-empty p {
    margin: 0 0 16px;
    color: #7a6f6b;
    font-size: 14px;
}

.shop-empty a {
    color: #ac0060;
    font-weight: 600;
}

.shop-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
}

.shop-pagination a,
.shop-pagination span {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    padding: 0 12px;
    color: #2a1712;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #efe5d8;
    border-radius: 12px;
    transition: 0.15s ease;
}

.shop-pagination a:hover {
    color: #ac0060;
    border-color: #ac0060;
}

.shop-pagination .is-current {
    color: #ffffff;
    background: #ac0060;
    border-color: #ac0060;
}

.shop-pagination .is-disabled {
    opacity: 0.4;
}

.shop-pagination .is-gap {
    background: none;
    border: 0;
}

@media (max-width: 991px) {
    .shop-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-filters {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1060;
        width: min(340px, 88vw);
        overflow-y: auto;
        border-radius: 0 18px 18px 0;
        transform: translateX(-105%);
        transition: transform 0.3s ease;
    }

    .shop-filters-open .shop-filters {
        transform: translateX(0);
    }

    .shop-filters-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1055;
        background: rgba(42, 23, 18, 0.45);
    }

    .shop-filters-open .shop-filters-backdrop {
        display: block;
    }

    .shop-filters-close,
    .shop-apply,
    .shop-filters-toggle {
        display: inline-flex;
    }

    .shop-apply {
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 575px) {
    .shop-toolbar {
        flex-wrap: wrap;
    }

    .shop-count {
        order: 3;
        flex-basis: 100%;
    }

    .shop-sort span {
        display: none;
    }
}

/* ---------- Checkout: saved addresses ---------- */

.checkout-addresses {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    font-family: "Poppins", sans-serif;
}

.checkout-address {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    font-size: 13px;
    color: #6f6460;
    line-height: 1.6;
    background: #fdfbf8;
    border: 1.5px solid #e9e0d4;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.checkout-address:hover {
    border-color: #d8b9ca;
}

.checkout-address:has(input:checked) {
    background: #fdf1f7;
    border-color: #ac0060;
    box-shadow: 0 6px 18px rgba(172, 0, 96, 0.08);
}

.checkout-address input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #ac0060;
}

.checkout-address-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.checkout-address-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 4px;
}

.checkout-address-head strong {
    color: #2a1712;
    font-size: 14.5px;
    font-weight: 600;
}

.checkout-address-head strong i {
    margin-right: 4px;
    color: #ac0060;
    font-size: 12px;
}

.checkout-address-head em {
    padding: 2px 9px;
    color: #ac0060;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: #ffffff;
    border: 1px solid #f1d3e3;
    border-radius: 20px;
}

.checkout-address-head em.checkout-address-label {
    color: #8a6d2e;
    background: #faf1dd;
    border-color: #f0e2c1;
}

.checkout-address-line {
    overflow-wrap: anywhere;
}

.checkout-address-phone {
    margin-top: 6px;
    color: #2a1712;
    font-size: 12.5px;
}

.checkout-address-phone i {
    margin-right: 4px;
    color: #b5a89f;
    font-size: 11px;
}

.checkout-address-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    background: #ac0060;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.checkout-address:has(input:checked) .checkout-address-check {
    opacity: 1;
    transform: none;
}

.checkout-address-new {
    background: #ffffff;
    border-style: dashed;
}

.checkout-address-form[hidden] {
    display: none !important;
}

.checkout-address-form-title {
    grid-column: 1 / -1;
    margin: 0;
    color: #2a1712;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.checkout-addresses + .checkout-address-form {
    padding-top: 6px;
}

/* Contact fields follow either the saved-address list or the address form */
.checkout-contact {
    padding-top: 6px;
}

.checkout-address-form:not([hidden]) + .checkout-contact {
    padding-top: 23px;
}

.checkout-save {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 400 !important;
    cursor: pointer;
}

.checkout-save input {
    width: 17px;
    height: 17px;
    accent-color: #ac0060;
}

/* ---------- Cart: savings and clear ---------- */

.cart-savings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: -4px 0 18px;
    padding: 10px 14px;
    line-height: 1.4;
    text-align: center;
    color: #1f6f43;
    font-size: 13px;
    font-weight: 500;
    background: #e5f4ea;
    border-radius: 10px;
}

.cart-savings strong {
    font-weight: 700;
}

.cart-savings[hidden] {
    display: none;
}

.cart-clear {
    margin: 10px 0 0;
    text-align: center;
}

.cart-clear button {
    padding: 0;
    color: #8a7f7b;
    font-size: 13px;
    background: none;
    border: 0;
    cursor: pointer;
}

.cart-clear button:hover {
    color: #b42318;
}
