/**
 * Внутренняя страница товара
 *
 * @package Magic_Jewelry
 */

.single-product-page {
    font-family: Arial, sans-serif;
    color: #333333;
}

.single-product-page h1,
.single-product-page h2,
.single-product-page h3,
.single-product-page h4,
.single-product-page p,
.single-product-page a,
.single-product-page span,
.single-product-page button {
    font-family: Arial, sans-serif;
}
/* =========================================================
   PAGE
   ========================================================= */

.single-product-page {
    width: 100%;
    background: #ffffff;
}


/* =========================================================
   ARTICLE
   ========================================================= */

.single-product-article {
    width: 100%;
    padding: 82px 0 105px;
}


.single-product-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.single-product-header {
    position: relative;

    margin-bottom: 48px;
    padding-bottom: 28px;
}


.single-product-header::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #c9a23a 0,
            #c9a23a 72px,
            rgba(92, 26, 79, 0.10) 72px,
            rgba(92, 26, 79, 0.10) 100%
        );
}


/* =========================================================
   TAGS
   ========================================================= */

.single-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 17px;
}


.single-product-tag {
    display: inline-flex;
    align-items: center;

    min-height: 27px;

    padding: 5px 11px;

    border: 1px solid rgba(201, 162, 58, 0.28);
    border-radius: 999px;

    background: rgba(201, 162, 58, 0.055);

    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;

    color: #6a5964;
}


/* =========================================================
   TITLE
   ========================================================= */

.single-product-title {
    max-width: 1050px;

    margin: 0;

    font-size: 46px;
    line-height: 1.08;
    font-weight: 600;

    letter-spacing: -0.045em;

    color: #171717;

    text-shadow:
        0 2px 16px rgba(92, 26, 79, 0.055);
}


/* =========================================================
   INTRO
   ========================================================= */

.single-product-intro {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(340px, 0.75fr);

    gap: 70px;

    align-items: start;
}


/* =========================================================
   GALLERY
   ========================================================= */

.single-product-gallery {
    min-width: 0;
}


.single-product-main-image {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #f4edf1,
            #eee4e9
        );

    box-shadow:
        0 25px 65px rgba(45, 20, 38, 0.12);
}


.single-product-main-img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 680px;

    object-fit: contain;

    transition:
        opacity 0.25s ease;
}


.single-product-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    aspect-ratio: 1 / 1;

    color: #c9a23a;

    font-size: 46px;
}


/* =========================================================
   THUMBNAILS
   ========================================================= */

.single-product-thumbnails {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 14px;
}


.single-product-thumbnail {
    display: block;

    width: 78px;
    height: 78px;

    padding: 0;

    overflow: hidden;

    border: 1px solid rgba(92, 26, 79, 0.10);
    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;

    opacity: 0.62;

    transition:
        opacity 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.single-product-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.single-product-thumbnail:hover {
    opacity: 0.9;

    transform: translateY(-2px);
}


.single-product-thumbnail.is-active {
    opacity: 1;

    border-color: #c9a23a;

    box-shadow:
        0 0 0 2px rgba(201, 162, 58, 0.10);
}


/* =========================================================
   PRODUCT INFO
   ========================================================= */

.single-product-info {
    position: sticky;

    top: 35px;

    padding-top: 10px;
}


.single-product-price {
    margin-bottom: 26px;

    font-size: 31px;
    line-height: 1.15;
    font-weight: 600;

    letter-spacing: -0.025em;

    color: #5c1a4f;
}


.single-product-short-description {
    margin-bottom: 34px;

    font-size: 16px;
    line-height: 1.75;

    color: #4b474a;
}


.single-product-short-description p {
    margin: 0 0 1em;
}


.single-product-short-description p:last-child {
    margin-bottom: 0;
}


.single-product-short-description strong,
.single-product-short-description b {
    font-weight: 600;

    color: #242124;
}


.single-product-short-description ul {
    margin: 18px 0;
    padding: 0;

    list-style: none;
}


.single-product-short-description li {
    position: relative;

    margin-bottom: 8px;

    padding-left: 22px;
}


.single-product-short-description li::before {
    content: "";

    position: absolute;

    left: 2px;
    top: 10px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #c9a23a;
}


/* =========================================================
   ACTION
   ========================================================= */

.single-product-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 50px;

    padding: 12px 22px;

    border: 1px solid #c9a23a;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #5c1a4f,
            #45153c
        );

    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;

    letter-spacing: 0.02em;

    color: #ffffff;

    text-decoration: none;

    box-shadow:
        0 12px 30px rgba(92, 26, 79, 0.16);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.single-product-action span {
    font-size: 17px;

    color: #c9a23a;
}


.single-product-action:hover {
    color: #ffffff;

    transform: translateY(-2px);

    border-color: #d5b24f;

    box-shadow:
        0 17px 35px rgba(92, 26, 79, 0.22);
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.single-product-description {
    width: min(920px, 100%);

    margin: 100px auto 0;

    padding-top: 42px;

    border-top: 1px solid rgba(92, 26, 79, 0.10);
}


.single-product-description-heading {
    margin-bottom: 38px;
}


.single-product-section-kicker {
    display: block;

    margin-bottom: 10px;

    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #5c1a4f;
}


.single-product-description-heading h2 {
    position: relative;

    margin: 0;
    padding-bottom: 15px;

    font-size: 31px;
    line-height: 1.2;
    font-weight: 600;

    letter-spacing: -0.035em;

    color: #171717;
}


.single-product-description-heading h2::after {
    content: "";

    display: block;

    width: 38px;
    height: 2px;

    margin-top: 13px;

    background: #c9a23a;
}


/* =========================================================
   FULL CONTENT
   ========================================================= */

.single-product-content {
    font-size: 17px;
    line-height: 1.82;

    color: #3c3a3b;
}


.single-product-content p {
    margin: 0 0 1.45em;
}


.single-product-content > *:first-child {
    margin-top: 0;
}


.single-product-content > *:last-child {
    margin-bottom: 0;
}


.single-product-content h2,
.single-product-content h3,
.single-product-content h4 {
    color: #171717;

    letter-spacing: -0.03em;
}


.single-product-content h2 {
    margin: 2.4em 0 0.85em;
    padding-bottom: 13px;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
}


.single-product-content h2::after {
    content: "";

    display: block;

    width: 32px;
    height: 2px;

    margin-top: 12px;

    background: #c9a23a;
}


.single-product-content h3 {
    margin: 2em 0 0.7em;

    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
}


.single-product-content h3::before {
    content: "";

    display: inline-block;

    width: 19px;
    height: 1px;

    margin:
        0 11px
        5px 0;

    background: #c9a23a;

    vertical-align: middle;
}


.single-product-content h4 {
    margin: 1.8em 0 0.7em;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;

    color: #5c1a4f;
}


/* =========================================================
   LISTS
   ========================================================= */

.single-product-content ul {
    margin: 1.5em 0;
    padding: 0;

    list-style: none;
}


.single-product-content ul li {
    position: relative;

    padding: 10px 0 10px 30px;

    border-bottom: 1px solid rgba(92, 26, 79, 0.08);
}


.single-product-content ul li:first-child {
    border-top: 1px solid rgba(92, 26, 79, 0.08);
}


.single-product-content ul li::before {
    content: "";

    position: absolute;

    left: 3px;
    top: 20px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #c9a23a;
}


/* =========================================================
   BLOCKQUOTE
   ========================================================= */

.single-product-content blockquote {
    position: relative;

    margin: 2.4em 0;

    padding: 29px 35px 30px 46px;

    border: 1px solid rgba(201, 162, 58, 0.18);
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(92, 26, 79, 0.07),
            rgba(201, 162, 58, 0.045)
        );

    box-shadow:
        0 18px 42px rgba(60, 30, 50, 0.06);
}


.single-product-content blockquote::before {
    content: "“";

    position: absolute;

    left: 17px;
    top: 11px;

    font-family: Georgia, serif;
    font-size: 46px;

    color: rgba(201, 162, 58, 0.48);
}


.single-product-content blockquote p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   LINKS
   ========================================================= */

.single-product-content a {
    color: #5c1a4f;

    text-decoration-color: rgba(201, 162, 58, 0.65);
    text-underline-offset: 4px;
}


.single-product-content a:hover {
    color: #c9a23a;
}


/* =========================================================
   CONTENT IMAGES
   ========================================================= */

.single-product-content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 38px auto;

    border-radius: 16px;

    box-shadow:
        0 20px 50px rgba(45, 20, 38, 0.10);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .single-product-article {
        padding: 68px 0 82px;
    }

    .single-product-inner {
        width: min(100% - 36px, 760px);
    }

    .single-product-title {
        font-size: 38px;
    }

    .single-product-intro {
        grid-template-columns: 1fr;

        gap: 38px;
    }

    .single-product-info {
        position: static;

        padding-top: 0;
    }

    .single-product-description {
        margin-top: 72px;
    }

    .single-product-content {
        font-size: 16px;
    }
}


@media (max-width: 600px) {

    .single-product-article {
        padding: 52px 0 64px;
    }

    .single-product-inner {
        width: calc(100% - 24px);
    }

    .single-product-header {
        margin-bottom: 34px;
        padding-bottom: 22px;
    }

    .single-product-title {
        font-size: 30px;
        line-height: 1.16;
    }

    .single-product-tags {
        gap: 5px;
        margin-bottom: 13px;
    }

    .single-product-tag {
        min-height: 25px;

        padding: 4px 9px;

        font-size: 11px;
    }

    .single-product-main-image {
        border-radius: 13px;
    }

    .single-product-thumbnails {
        gap: 7px;
        margin-top: 9px;
    }

    .single-product-thumbnail {
        width: 60px;
        height: 60px;

        border-radius: 8px;
    }

    .single-product-price {
        margin-bottom: 20px;

        font-size: 27px;
    }

    .single-product-short-description {
        margin-bottom: 26px;

        font-size: 14px;
        line-height: 1.7;
    }

    .single-product-action {
        width: 100%;
        box-sizing: border-box;
    }

    .single-product-description {
        margin-top: 60px;
        padding-top: 32px;
    }

    .single-product-description-heading {
        margin-bottom: 28px;
    }

    .single-product-description-heading h2 {
        font-size: 25px;
    }

    .single-product-content {
        font-size: 14px;
        line-height: 1.72;
    }

    .single-product-content h2 {
        font-size: 23px;
    }

    .single-product-content h3 {
        font-size: 19px;
    }

    .single-product-content blockquote {
        padding:
            24px 20px
            25px 36px;

        border-radius: 12px;
    }

    .single-product-content img {
        margin: 28px auto;
        border-radius: 12px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .single-product-page *,
    .single-product-page *::before,
    .single-product-page *::after {
        transition: none !important;
    }
}

/* =====================================================
   TYPOGRAPHY
   Единый шрифт темы
   ===================================================== */

.single-product-page,
.single-product-page *,
.single-product-page button,
.single-product-page input,
.single-product-page textarea {
    font-family: inherit;
}

.single-product-page {
    color: #241b22;
}

.single-product-title,
.single-product-price,
.single-product-content,
.single-product-short-description,
.single-product-tag,
.single-product-action,
.single-product-section-kicker {
    font-family: inherit;
}