/* ==========================================================
   LAYERS MED — LOWER PRODUCT SECTIONS
   Version 1.5.0

   These styles intentionally live outside product-page.css so
   the completed top product section remains stable.
========================================================== */

.lm-lower-section {
    width: 100%;
}

.lm-lower-inner {
    width: 100%;
/*     padding-left: 30px; */
/*     padding-right: 30px; */
}

.lm-section-heading {
    margin-bottom: 22px;
}

.lm-section-heading h2,
.lm-reviews-header h2 {
    margin: 0;
    color: var(--lm-purple, #4b2b91);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
}

.lm-section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* ==========================================================
   WHY LAYERS MED / FABRIC BENEFITS
========================================================== */

.lm-benefits-section {
    background: #82a9d2;
}

.lm-benefits-section .lm-lower-inner {
    padding-top: 34px;
    padding-bottom: 36px;
}

.lm-benefits-section .lm-section-heading {
    margin-bottom: 24px;
}

.lm-benefits-section .lm-section-heading h2 {
    color: #2d1e66;
}

.lm-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
/*     border-top: 1px solid rgba(45, 30, 102, .34); */
/*     border-bottom: 1px solid rgba(45, 30, 102, .34); */
}

.lm-benefit-item {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 25px 18px;
    text-align: center;
}

.lm-benefit-item + .lm-benefit-item {
    border-left: 1px solid rgba(45, 30, 102, .45);
}

.lm-benefit-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b2b91;
}

.lm-benefit-icon svg {
    width: 64px;
    height: 64px;
    fill: #fff2bf;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lm-benefit-title {
    color: #251853;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}


/* ==========================================================
   YOU MAY ALSO LIKE
========================================================== */

.lm-related-section {
    background: #fff;
}

.lm-related-section .lm-lower-inner {
    padding-top: 42px;
    padding-bottom: 48px;
}
/* 
.lm-related-nav {
    display: flex;
    gap: 8px;
}

.lm-related-arrow {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfc8df;
    border-radius: 50%;
    background: #fff;
    color: var(--lm-purple, #4b2b91);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color .2s ease,
        background .2s ease,
        opacity .2s ease;
}

.lm-related-arrow:hover {
    border-color: var(--lm-purple, #4b2b91);
    background: #f8f5ff;
}

.lm-related-arrow:disabled {
    opacity: .35;
    cursor: default;
} */


/* ==========================================================
   YOU MAY ALSO LIKE - EXACT SVG ARROWS
========================================================== */

.lm-related-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 16px;
}


/* Exact arrow button dimensions */
.lm-related-section .lm-related-arrow,
.lm-related-section .lm-related-arrow:hover,
.lm-related-section .lm-related-arrow:focus,
.lm-related-section .lm-related-arrow:focus-visible,
.lm-related-section .lm-related-arrow:active {

    -webkit-appearance: none !important;
    appearance: none !important;

    width: 38px !important;
    min-width: 38px !important;

    height: 30px !important;
    min-height: 30px !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    box-shadow: none !important;
    outline: none !important;

    color: #4b2b91 !important;

    cursor: pointer;

    transform: none !important;

    transition:
        opacity .2s ease !important;
}


/* Exact SVG dimensions requested */
.lm-related-section .lm-related-arrow svg {
    display: block;

    width: 28px !important;
    height: 28px !important;

    flex: 0 0 28px;

    overflow: visible;

    pointer-events: none;
}


/* Thin premium open-arrow stroke */
.lm-related-section .lm-related-arrow svg path {
    fill: none;

    stroke: currentColor;

    stroke-width: 2.2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Active arrow hover */
.lm-related-section .lm-related-arrow:hover:not(:disabled) {
    opacity: .72 !important;
}


/* Disabled previous arrow becomes light purple */
.lm-related-section .lm-related-arrow:disabled {
    opacity: .28 !important;

    cursor: default;
}


.lm-related-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 4);
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 5px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.lm-related-rail::-webkit-scrollbar {
    display: none;
}

.lm-related-card {
    min-width: 0;
    scroll-snap-align: start;
}

.lm-related-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.lm-related-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #f5f4f6;
}

.lm-related-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    transition:
        opacity .35s ease,
        transform .45s ease;
}

.lm-related-image-primary {
    opacity: 1;
}

.lm-related-image-secondary {
    opacity: 0;
}

.lm-related-card:hover .lm-related-image-primary {
    opacity: 0;
}

.lm-related-card:hover .lm-related-image-secondary {
    opacity: 1;
}

.lm-related-card:hover .lm-related-image {
    transform: scale(1.015);
}

.lm-related-card-content {
    padding-top: 12px;
}

.lm-related-card-title {
    margin: 0 0 7px;
    color: #181818;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lm-related-card-price {
    color: #111;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

.lm-related-card-price del {
    margin-right: 5px;
    opacity: .45;
    font-weight: 400;
}

.lm-related-card-price ins {
    text-decoration: none;
}


/* ==========================================================
   REAL WOOCOMMERCE REVIEWS
========================================================== */

.lm-reviews-section {
    border-top: 1px solid #eeeaf4;
    background: #fafafa;
}

.lm-reviews-section .lm-lower-inner {
    padding-top: 44px;
    padding-bottom: 64px;
}

.lm-reviews-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.lm-reviews-subtitle {
    margin: 7px 0 0;
    color: #777;
    font-size: 13px;
}

.lm-write-review-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 22px;
    border: 1px solid var(--lm-purple, #4b2b91);
    border-radius: 4px;
    background: var(--lm-purple, #4b2b91);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition:
        background .2s ease,
        border-color .2s ease;
}

.lm-write-review-button:hover {
    background: var(--lm-purple-dark, #38206f);
    border-color: var(--lm-purple-dark, #38206f);
}

.lm-review-summary {
    display: grid;
    grid-template-columns: 220px minmax(280px, 520px);
    align-items: center;
    gap: 48px;
    margin-bottom: 36px;
}

.lm-review-score-number {
    color: #171717;
    font-size: 38px;
    line-height: 1;
    font-weight: 600;
}

.lm-review-score-stars {
    margin: 10px 0 8px;
}

.lm-review-score-stars .star-rating {
    color: #ef7e6f;
    font-size: 1.1em;
}

.lm-review-score-count {
    color: #666;
    font-size: 12px;
}

.lm-review-breakdown {
    width: 100%;
}

.lm-review-breakdown-row {
    display: grid;
    grid-template-columns: 35px minmax(120px, 1fr) 35px;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.lm-review-breakdown-label,
.lm-review-breakdown-count {
    color: #666;
    font-size: 11px;
}

.lm-review-breakdown-count {
    text-align: right;
}

.lm-review-breakdown-track {
    position: relative;
    display: block;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 20px;
    background: #e6e1eb;
}

.lm-review-breakdown-fill {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    border-radius: inherit;
    background: #ef8b7c;
}


/* WooCommerce's native review system, restyled */
.lm-native-reviews #reviews {
    width: 100%;
}

.lm-native-reviews
.woocommerce-Reviews-title {
    display: none;
}

.lm-native-reviews #comments {
    width: 100%;
}

.lm-native-reviews
ol.commentlist {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 32px !important;
    padding: 0 !important;
    list-style: none !important;
}

.lm-native-reviews
ol.commentlist
li.review {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.lm-native-reviews
.comment_container {
    height: 100%;
    padding: 20px;
    border: 1px solid #ece8ef;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 3px 16px rgba(40, 24, 76, .04);
}

.lm-native-reviews
.comment_container
img.avatar {
    position: static !important;
    float: left !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 10px 7px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
}

.lm-native-reviews
.comment-text {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.lm-native-reviews
.comment-text
.star-rating {
    float: none !important;
    margin: 0 0 10px !important;
    color: #ef7e6f;
}

.lm-native-reviews
.comment-text
.meta {
    margin: 0 0 12px !important;
    color: #666 !important;
    font-size: 11px !important;
}

.lm-native-reviews
.comment-text
.description {
    clear: both;
    color: #444;
    font-size: 13px;
    line-height: 1.6;
}

.lm-native-reviews
.comment-text
.description p:last-child {
    margin-bottom: 0;
}


/* Review form */
.lm-native-reviews
#review_form_wrapper {
    margin-top: 32px;
/*     padding: 24px; */
	 padding: 0px;
    border: 1px solid #ece8ef;
    border-radius: 7px;
    background: #fff;
    scroll-margin-top: 110px;
}

.lm-native-reviews
#reply-title {
    display: block;
    margin-bottom: 14px;
    color: #171717;
    font-size: 20px;
    font-weight: 600;
}

.lm-native-reviews
.comment-form-rating {
    margin-bottom: 14px;
}

.lm-native-reviews
.stars a {
    color: #ef7e6f !important;
}

.lm-native-reviews
textarea,
.lm-native-reviews
input[type="text"],
.lm-native-reviews
input[type="email"] {
    width: 100%;
    border: 1px solid #dcd7e4 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.lm-native-reviews
textarea {
    min-height: 130px;
}

.lm-native-reviews
.form-submit
.submit {
    min-height: 42px !important;
    padding: 10px 22px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: var(--lm-purple, #4b2b91) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1024px) {

    .lm-lower-inner {
/*         padding-left: 20px; */
/*         padding-right: 20px; */
    }

    .lm-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lm-benefit-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(45, 30, 102, .45);
    }

    .lm-benefit-item:nth-child(4) {
        border-top: 1px solid rgba(45, 30, 102, .45);
    }

    .lm-related-rail {
        grid-auto-columns: calc((100% - 32px) / 3);
    }

    .lm-native-reviews
    ol.commentlist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .lm-lower-inner {
/*         padding-left: 15px; */
/*         padding-right: 15px; */
    }

    .lm-section-heading h2,
    .lm-reviews-header h2 {
        font-size: 22px;
    }

    .lm-benefits-section .lm-lower-inner {
        padding-top: 28px;
        padding-bottom: 30px;
    }

    .lm-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lm-benefit-item {
        min-height: 145px;
        padding: 20px 10px;
    }

    .lm-benefit-icon {
        width: 58px;
        height: 58px;
    }

    .lm-benefit-icon svg {
        width: 52px;
        height: 52px;
    }

    .lm-benefit-title {
        font-size: 12px;
    }

    .lm-related-section .lm-lower-inner {
        padding-top: 32px;
        padding-bottom: 38px;
    }

    .lm-related-nav {
        display: none;
    }

    .lm-related-rail {
        grid-auto-columns: minmax(210px, 76vw);
        gap: 12px;
        margin-right: -15px;
        padding-right: 15px;
    }

    .lm-related-card-title,
    .lm-related-card-price {
        font-size: 13px;
    }

    .lm-reviews-section .lm-lower-inner {
        padding-top: 34px;
        padding-bottom: 24px;
    }

    .lm-reviews-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .lm-review-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 28px;
    }

    .lm-review-score-number {
        font-size: 34px;
    }

    .lm-native-reviews
    ol.commentlist {
        display: flex !important;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 5px !important;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .lm-native-reviews
    ol.commentlist::-webkit-scrollbar {
        display: none;
    }

    .lm-native-reviews
    ol.commentlist
    li.review {
        flex: 0 0 82vw;
        scroll-snap-align: start;
    }

    .lm-native-reviews
    #review_form_wrapper {
        padding: 0px;
		 border-radius: 7px;
    }
}


/* ==========================================================
   V1.6 — WHY LAYERS MED REFERENCE STRIP
========================================================== */

.lm-benefits-section {
    background: #82a9d2;
}

.lm-benefits-section .lm-lower-inner {
    padding-top: 20px;
    padding-bottom: 20px;
}

.lm-benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lm-benefit-item {
    min-height: 255px;
    gap: 18px;

    padding: 32px 18px;
}

.lm-benefit-item + .lm-benefit-item {
    border-left:
        1px solid rgba(75, 43, 145, .55);
}

.lm-benefit-icon {
    width: 76px;
    height: 76px;

    color: #4b2b91;
}

.lm-benefit-icon svg {
    width: 70px;
    height: 70px;

    fill: #fff1b9;
    stroke: currentColor;

    stroke-width: 2.25;
}

.lm-benefit-title {
    color: #251853;

    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
}


/* ==========================================================
   V1.6 — YOU MAY ALSO LIKE PRODUCT CARDS
========================================================== */

.lm-related-card-content {
    padding-top: 10px;
}

.lm-related-card-category {
    display: flex;
    align-items: center;
    gap: 5px;

    width: fit-content;

    margin-bottom: 7px;

    color: #555;

    font-size: 13px;
    line-height: 1.2;

    text-decoration: underline;
    text-underline-offset: 2px;
}

.lm-related-card-info {
    width: 15px;
    height: 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #777;
    border-radius: 50%;

    font-size: 10px;
    font-style: normal;
    line-height: 1;

    text-decoration: none;
}

.lm-related-card-title {
    margin-bottom: 7px;

    color: #171b27;

    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
}

.lm-related-card-price {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
}

.lm-related-card-swatches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 14px;
}

.lm-related-card-swatch {
    width: 27px;
    height: 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 3px;

    border: 1px solid #282828;
    border-radius: 50%;

    background: #fff;
}

.lm-related-card-swatch > span {
    display: block;

    width: 17px;
    height: 17px;

    border: 1px solid
        rgba(0, 0, 0, .12);

    border-radius: 50%;
}

.lm-related-card-more-colors {
    margin-left: 2px;

    color: #7a7a83;

    font-size: 12px;
    line-height: 1;
}


/* ==========================================================
   V1.6 — REVIEWS + NEWSLETTER
========================================================== */

.lm-reviews-section {
    background: #fff !important;
}

.lm-product-newsletter-section {
    width: 100%;

    padding: 30px 0px 55px;

    background: #fff;
}


/* ==========================================================
   V1.6 — RESPONSIVE LOWER SECTIONS
========================================================== */

@media (max-width: 1024px) {

    .lm-benefit-item {
        min-height: 190px;
    }

    .lm-benefit-title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {

    .lm-benefits-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .lm-benefit-item {
        min-height: 155px;

        padding: 22px 10px;

        border-top: 0;
    }

    .lm-benefit-item:nth-child(3),
    .lm-benefit-item:nth-child(4) {
        border-top:
            1px solid rgba(75, 43, 145, .55);
    }

    .lm-benefit-icon {
        width: 58px;
        height: 58px;
    }

    .lm-benefit-icon svg {
        width: 54px;
        height: 54px;
    }

    .lm-benefit-title {
        font-size: 16px;
    }

    .lm-related-card-category {
        font-size: 12px;
    }

    .lm-related-card-title,
    .lm-related-card-price {
        font-size: 14px;
    }

    .lm-related-card-swatch {
        width: 24px;
        height: 24px;
    }

    .lm-related-card-swatch > span {
        width: 15px;
        height: 15px;
    }

    .lm-product-newsletter-section {
        padding:
            22px 0px
            40px;
    }
}
