/* =========================================================
   AESPL PRODUCT DETAILS
   Description / Additional Info / Reviews
   ========================================================= */

.aespl-product-details {
    position: relative;
    width: 100%;
    padding: 76px 0 82px;
    background: #ffffff;
}

.aespl-product-details__inner {
    width: 100%;
}


/* =========================================================
   TABS
   ========================================================= */

.aespl-product-details__tabs {
    display: flex;
    align-items: center;
    justify-content: center !important;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    width: 100%;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(13, 61, 47, 0.12);
}

.aespl-product-details__tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 180px;
    padding: 18px 26px;
    border: 0;
    background: transparent;
    color: #8a8a82;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.015em;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.aespl-product-details__tab::after {
    content: "";

    position: absolute;

    right: 16px;
    bottom: -1px;
    left: 16px;

    height: 2px;

    background: var(--aespl-primary);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}

.aespl-product-details__tab:hover {
    color: var(--aespl-primary);
}

.aespl-product-details__tab.is-active {
    color: var(--aespl-primary);

    font-weight: 800;
}

.aespl-product-details__tab.is-active::after {
    transform: scaleX(1);
}


/* =========================================================
   REVIEW COUNT
   ========================================================= */

.aespl-product-details__review-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 21px;
    height: 21px;

    padding: 0 6px;

    border-radius: 50px;

    background: #edf4eb;

    color: var(--aespl-primary);

    font-size: 9px;
    font-style: normal;
    font-weight: 800;

    line-height: 1;
}


/* =========================================================
   TAB CONTENT
   ========================================================= */

.aespl-product-details__content {
    width: 100%;
}

.aespl-product-details__panel {
    width: 100%;

    animation: aesplProductTabIn 0.3s ease both;
}

.aespl-product-details__panel[hidden] {
    display: none;
}

@keyframes aesplProductTabIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   COMMON HEADING
   ========================================================= */

.aespl-product-details__heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.aespl-product-details__eyebrow {
    display: block;

    margin-bottom: 10px;

    color: #7c8c80;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.22em;
    line-height: 1.2;

    text-transform: uppercase;
}

.aespl-product-details__heading h2 {
    margin: 0;

    color: var(--aespl-primary);

    font-family:
        "Fraunces",
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(28px, 3vw, 40px);
    font-weight: 500;

    line-height: 1.15;
    letter-spacing: -0.025em;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.aespl-product-details__description-wrap {
    max-width: 900px;
}

.aespl-product-details__description-content {
    position: relative;

    max-width: 900px;

    color: #65665f;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.8;
}

.aespl-product-details__description-content p {
    margin: 0 0 18px;
}

.aespl-product-details__description-content p:last-child {
    margin-bottom: 0;
}

.aespl-product-details__description-content h1,
.aespl-product-details__description-content h2,
.aespl-product-details__description-content h3,
.aespl-product-details__description-content h4,
.aespl-product-details__description-content h5,
.aespl-product-details__description-content h6 {
    margin: 28px 0 12px;

    color: var(--aespl-primary);

    font-family:
        "Fraunces",
        Georgia,
        "Times New Roman",
        serif;

    line-height: 1.25;
}

.aespl-product-details__description-content ul,
.aespl-product-details__description-content ol {
    margin: 18px 0;
    padding-left: 22px;
}

.aespl-product-details__description-content li {
    margin-bottom: 8px;
}

.aespl-product-details__description-content strong {
    color: var(--aespl-primary);
    font-weight: 800;
}

.aespl-product-details__description-content a {
    color: var(--aespl-primary);

    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   DESCRIPTION - COLLAPSED
   ========================================================= */

.aespl-product-details__description-wrap.is-collapsed
.aespl-product-details__description-content {
    max-height: 250px;

    overflow: hidden;
}


/* =========================================================
   DESCRIPTION - BOTTOM FADE
   ========================================================= */

.aespl-product-details__description-wrap.is-collapsed
.aespl-product-details__description-content::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 75px;

    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        #ffffff
    );

    pointer-events: none;
}


/* =========================================================
   READ MORE / READ LESS
   ========================================================= */

.aespl-product-details__read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 17px;
    padding: 0;

    border: 0;
    background: transparent;

    color: var(--aespl-primary);

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: 0.02em;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.aespl-product-details__read-more:hover {
    opacity: 0.78;
}

.aespl-product-details__read-more:focus-visible {
    outline: 2px solid var(--aespl-primary);
    outline-offset: 4px;

    border-radius: 3px;
}

.aespl-read-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    border: 1px solid rgba(13, 61, 47, 0.25);
    border-radius: 50%;

    font-size: 15px;
    font-weight: 500;

    line-height: 1;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.aespl-product-details__read-more:hover
.aespl-read-more-icon {
    transform: rotate(90deg);

    background: #edf4eb;
}


/* =========================================================
   ADDITIONAL INFORMATION
   ========================================================= */

.aespl-product-attributes {
    width: 100%;
    max-width: 900px;

    border-top: 1px solid rgba(13, 61, 47, 0.1);
}

.aespl-product-attribute {
    display: grid;

    grid-template-columns: 220px minmax(0, 1fr);

    min-height: 58px;

    border-bottom: 1px solid rgba(13, 61, 47, 0.1);
}

.aespl-product-attribute__label {
    display: flex;
    align-items: center;

    padding: 14px 20px 14px 0;

    color: var(--aespl-primary);

    font-size: 12px;
    font-weight: 800;

    line-height: 1.4;
}

.aespl-product-attribute__value {
    display: flex;
    align-items: center;

    padding: 14px 0 14px 20px;

    border-left: 1px solid rgba(13, 61, 47, 0.08);

    color: #71726b;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.5;
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.aespl-product-details__empty {
    margin: 0;

    color: #898980;

    font-size: 13px;
}

.aespl-product-details__empty-box {
    max-width: 700px;

    padding: 24px 26px;

    border: 1px solid rgba(13, 61, 47, 0.08);
    border-radius: 12px;

    background: #fafaf6;
}

.aespl-product-details__empty-box p {
    margin: 0;

    color: #777870;

    font-size: 13px;
}


/* =========================================================
   REVIEW SUMMARY
   ========================================================= */

.aespl-review-summary {
    max-width: 900px;

    margin-bottom: 35px;
    padding: 24px 28px;

    border: 1px solid rgba(13, 61, 47, 0.09);
    border-radius: 14px;

    background: #fafaf6;
}

.aespl-review-summary__rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.aespl-review-summary__rating > strong {
    color: var(--aespl-primary);

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-size: 34px;
    font-weight: 600;

    line-height: 1;
}

.aespl-review-summary__stars {
    display: flex;
    align-items: center;
    gap: 2px;

    font-size: 18px;
    line-height: 1;
}

.aespl-review-summary__stars span {
    display: inline-block;
}

.aespl-review-summary__stars .is-full {
    color: #d5a548;
}

.aespl-review-summary__stars .is-empty {
    color: #ddd9cf;
}

.aespl-review-summary__stars .is-half {
    position: relative;

    color: #ddd9cf;
}

.aespl-review-summary__stars .is-half::before {
    content: "★";

    position: absolute;

    top: 0;
    left: 0;

    width: 50%;

    overflow: hidden;

    color: #d5a548;
}

.aespl-review-summary__count {
    color: #81827a;

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   NATIVE WOOCOMMERCE REVIEWS
   ========================================================= */

.aespl-product-reviews__native {
    max-width: 900px;
}


/*
|--------------------------------------------------------------------------
| Main Review Wrapper
|--------------------------------------------------------------------------
*/

.aespl-product-reviews__native #reviews {
    margin: 0;
}

.aespl-product-reviews__native #reviews > h2 {
    margin: 0 0 24px;

    color: var(--aespl-primary);

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-size: 24px;
    font-weight: 500;
}


/*
|--------------------------------------------------------------------------
| Review List
|--------------------------------------------------------------------------
*/

.aespl-product-reviews__native #comments {
    margin: 0 0 35px;
}

.aespl-product-reviews__native #comments ol.commentlist {
    margin: 0;
    padding: 0;

    list-style: none;
}

.aespl-product-reviews__native #comments ol.commentlist > li {
    margin: 0;

    padding: 24px 0;

    border-bottom: 1px solid rgba(13, 61, 47, 0.1);
}

.aespl-product-reviews__native #comments ol.commentlist > li:first-child {
    padding-top: 0;
}

.aespl-product-reviews__native #comments .comment-text {
    margin: 0;
    padding: 0;

    border: 0;
}

.aespl-product-reviews__native #comments .avatar {
    width: 42px;
    height: 42px;

    margin-right: 12px;

    border-radius: 50%;
}

.aespl-product-reviews__native #comments .meta {
    margin: 0 0 8px;

    color: #888980;

    font-size: 11px;
    line-height: 1.5;
}

.aespl-product-reviews__native #comments .woocommerce-review__author {
    color: var(--aespl-primary);

    font-size: 13px;
    font-weight: 800;
}

.aespl-product-reviews__native #comments .description {
    color: #686961;

    font-size: 13px;
    line-height: 1.7;
}

.aespl-product-reviews__native #comments .description p {
    margin: 0 0 10px;
}


/*
|--------------------------------------------------------------------------
| Review Star Rating
|--------------------------------------------------------------------------
*/

.aespl-product-reviews__native #comments .star-rating {
    margin-bottom: 8px;
}


/*
|--------------------------------------------------------------------------
| Review Form
|--------------------------------------------------------------------------
*/

.aespl-product-reviews__native #review_form_wrapper {
    margin-top: 30px;
    padding-top: 32px;

    border-top: 1px solid rgba(13, 61, 47, 0.1);
}

.aespl-product-reviews__native #review_form_wrapper h3 {
    margin: 0 0 22px;

    color: var(--aespl-primary);

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-size: 24px;
    font-weight: 500;
}

.aespl-product-reviews__native #review_form .comment-form {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.aespl-product-reviews__native #review_form .comment-form-rating,
.aespl-product-reviews__native #review_form .comment-form-comment,
.aespl-product-reviews__native #review_form .form-submit,
.aespl-product-reviews__native #review_form .comment-notes {
    grid-column: 1 / -1;
}

.aespl-product-reviews__native #review_form label {
    display: block;

    margin-bottom: 7px;

    color: var(--aespl-primary);

    font-size: 11px;
    font-weight: 800;
}

.aespl-product-reviews__native #review_form textarea,
.aespl-product-reviews__native #review_form input[type="text"],
.aespl-product-reviews__native #review_form input[type="email"] {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid rgba(13, 61, 47, 0.13);
    border-radius: 8px;

    background: #ffffff;

    color: #44453f;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.aespl-product-reviews__native #review_form textarea {
    min-height: 130px;

    resize: vertical;
}

.aespl-product-reviews__native #review_form textarea:focus,
.aespl-product-reviews__native #review_form input:focus {
    border-color: rgba(13, 61, 47, 0.4);

    box-shadow:
        0 0 0 3px rgba(13, 61, 47, 0.05);
}

.aespl-product-reviews__native #review_form .form-submit {
    margin: 4px 0 0;
}

.aespl-product-reviews__native
#review_form
.form-submit
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 25px;

    border: 0;
    border-radius: 7px;

    background: var(--aespl-primary);

    color: #ffffff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.aespl-product-reviews__native
#review_form
.form-submit
input[type="submit"]:hover {
    transform: translateY(-1px);

    opacity: 0.92;
}


/* =========================================================
   TABLET
   821px - 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .aespl-product-details {
        padding: 68px 0 74px;
    }

    .aespl-product-details__tabs {
        margin-bottom: 44px;
    }

    .aespl-product-details__tab {
        min-width: 165px;

        padding: 17px 22px;

        font-size: 19px;
    }

    .aespl-product-details__tab.is-active {
        font-weight: 800;
    }

    .aespl-product-attribute {
        grid-template-columns: 200px minmax(0, 1fr);
    }

}


/* =========================================================
   TABLET
   641px - 820px
   ========================================================= */

@media (max-width: 820px) {

    .aespl-product-details {
        padding: 62px 0 68px;
    }

    .aespl-product-details__tabs {
        margin-bottom: 40px;
    }

    .aespl-product-details__tab {
        min-width: 155px;

        padding: 16px 20px;

        font-size: 18px;
        font-weight: 700;

        letter-spacing: 0.015em;
    }

    .aespl-product-details__tab.is-active {
        font-weight: 800;
    }

    .aespl-product-details__tab::after {
        right: 14px;
        left: 14px;
    }

    .aespl-product-attribute {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .aespl-product-attribute__label {
        font-size: 11px;
    }

    .aespl-product-attribute__value {
        font-size: 12px;
    }

    .aespl-product-details__description-content {
        font-size: 13px;
        line-height: 1.75;
    }

    .aespl-product-details__read-more {
        font-size: 11px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .aespl-product-details {
        padding: 45px 0 52px;
    }


    /* -----------------------------------------------------
       Horizontal Tabs
       ----------------------------------------------------- */

    .aespl-product-details__tabs {
        justify-content: flex-start;

        margin-bottom: 34px;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }

    .aespl-product-details__tabs::-webkit-scrollbar {
        display: none;
    }

    .aespl-product-details__tab {
        flex: 0 0 auto;

        min-width: auto;

        padding: 15px 18px;

        font-size: 15px;
        font-weight: 700;

        white-space: nowrap;
    }

    .aespl-product-details__tab.is-active {
        font-weight: 800;
    }

    .aespl-product-details__tab::after {
        right: 10px;
        left: 10px;
    }


    /* -----------------------------------------------------
       Review Count
       ----------------------------------------------------- */

    .aespl-product-details__review-count {
        min-width: 19px;
        height: 19px;

        font-size: 8px;
    }


    /* -----------------------------------------------------
       Heading
       ----------------------------------------------------- */

    .aespl-product-details__heading {
        margin-bottom: 24px;
    }

    .aespl-product-details__eyebrow {
        margin-bottom: 8px;

        font-size: 8px;
        letter-spacing: 0.17em;
    }

    .aespl-product-details__heading h2 {
        font-size: 27px;
    }


    /* -----------------------------------------------------
       Description
       ----------------------------------------------------- */

    .aespl-product-details__description-content {
        font-size: 12px;
        line-height: 1.75;
    }

    .aespl-product-details__description-wrap.is-collapsed
    .aespl-product-details__description-content {
        max-height: 210px;
    }

    .aespl-product-details__read-more {
        margin-top: 15px;

        font-size: 11px;
    }

    .aespl-read-more-icon {
        width: 17px;
        height: 17px;

        font-size: 14px;
    }


    /* -----------------------------------------------------
       Additional Information
       ----------------------------------------------------- */

    .aespl-product-attribute {
        grid-template-columns: 42% minmax(0, 58%);

        min-height: 54px;
    }

    .aespl-product-attribute__label {
        padding: 12px 12px 12px 0;

        font-size: 10px;
    }

    .aespl-product-attribute__value {
        padding: 12px 0 12px 13px;

        font-size: 10px;
    }


    /* -----------------------------------------------------
       Review Summary
       ----------------------------------------------------- */

    .aespl-review-summary {
        margin-bottom: 28px;

        padding: 19px 18px;
    }

    .aespl-review-summary__rating {
        gap: 9px;
    }

    .aespl-review-summary__rating > strong {
        font-size: 29px;
    }

    .aespl-review-summary__stars {
        font-size: 16px;
    }

    .aespl-review-summary__count {
        width: 100%;

        margin-top: 2px;

        font-size: 10px;
    }


    /* -----------------------------------------------------
       Review Form
       ----------------------------------------------------- */

    .aespl-product-reviews__native
    #review_form
    .comment-form {
        grid-template-columns: 1fr;
    }

    .aespl-product-reviews__native
    #review_form
    .comment-form > * {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .aespl-product-details {
        padding-top: 38px;
        padding-bottom: 45px;
    }

    .aespl-product-details__tab {
        padding-right: 14px;
        padding-left: 14px;

        font-size: 13px;
    }

    .aespl-product-details__heading h2 {
        font-size: 24px;
    }

    .aespl-product-details__description-content {
        font-size: 11px;
    }

    .aespl-product-attribute__label,
    .aespl-product-attribute__value {
        font-size: 9px;
    }

    .aespl-review-summary__rating > strong {
        font-size: 26px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 340px) {

    .aespl-product-details__tab {
        padding-right: 12px;
        padding-left: 12px;

        font-size: 9.5px;
    }

    .aespl-product-details__tab::after {
        right: 7px;
        left: 7px;
    }

    .aespl-product-details__heading h2 {
        font-size: 22px;
    }

    .aespl-product-details__eyebrow {
        font-size: 7px;
    }

    .aespl-product-details__description-content {
        font-size: 10.5px;
    }

    .aespl-product-attribute__label,
    .aespl-product-attribute__value {
        font-size: 8.5px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .aespl-product-details__panel {
        animation: none;
    }

    .aespl-product-details__tab::after {
        transition: none;
    }

    .aespl-product-details__read-more,
    .aespl-read-more-icon {
        transition: none;
    }

}