/* ----------------------
/ File: assets/css/product-single-mobile.css
/ Theme: Artender
/ Developer: sepehrdarvishii
/ Section: Single Product - Mobile Only
/ -------------------- */

:root {
    --artender-product-text: #111827;
    --artender-product-muted: #6b7280;
    --artender-product-border: #e5e9ef;
    --artender-product-soft: #f8fbff;
    --artender-product-success: #16a34a;
    --artender-product-radius: 14px;
}

html.artender-lightbox-open,
html.artender-lightbox-open body {
    overflow: hidden !important;
}

body.single-product .artender-single-product-page {
    width: calc(100% - 12px);
    max-width: 100%;
    margin: 8px auto 22px;
    padding-bottom: 92px;
}

.artender-product-layout,
.artender-product-layout *,
.artender-product-layout *::before,
.artender-product-layout *::after {
    box-sizing: border-box;
}

.artender-product-layout {
    width: 100%;
    min-width: 0;
    direction: rtl;
    color: var(--artender-product-text);
}

/* ----------------------
/ Mobile layout
/ -------------------- */
.artender-product-top-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.artender-product-gallery-column,
.artender-product-summary-column {
    width: 100%;
    min-width: 0;
}

.artender-product-gallery-column {
    order: 1;
    padding: 7px 7px 6px;
    border: 1px solid var(--artender-product-border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.055);
    overflow: hidden;
}

.artender-product-summary-column {
    order: 2;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.artender-desktop-product-summary,
.artender-desktop-purchase-only,
.artender-product-purchase-column {
    display: none !important;
}

/* ----------------------
/ Compact gallery
/ -------------------- */
.artender-single-gallery {
    width: 100%;
    min-width: 0;
}

.artender-single-gallery.has-gallery-thumbs {
    display: block;
}

.artender-single-gallery.has-gallery-thumbs .artender-single-gallery-main-wrap {
    display: none !important;
}

.artender-single-gallery.has-gallery-thumbs .artender-single-gallery-thumbs {
    width: 100%;
    margin: 0;
    padding: 3px 3px 6px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    direction: rtl;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.artender-single-gallery.has-gallery-thumbs .artender-single-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.artender-single-gallery.has-gallery-thumbs .artender-single-gallery-thumb {
    flex: 0 0 calc((100% - 16px) / 3);
    width: calc((100% - 16px) / 3);
    min-width: calc((100% - 16px) / 3);
    height: 90px;
    margin: 0;
    padding: 4px;
    border: 0;
    outline: 0;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: none;
}

.artender-single-gallery.has-gallery-thumbs .artender-single-gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.artender-single-gallery.has-gallery-thumbs .artender-single-gallery-thumb:active {
    transform: scale(0.985);
}

.artender-mobile-gallery-progress {
    --artender-mobile-gallery-progress-position: 50%;
    position: relative;
    width: 46px;
    height: 4px;
    margin: 2px auto 0;
    border-radius: 999px;
    background: transparent;
}

.artender-mobile-gallery-progress > span {
    position: absolute;
    top: 0;
    left: var(--artender-mobile-gallery-progress-position);
    width: 25px;
    height: 4px;
    border-radius: 999px;
    background: var(--artender-primary-color, #f50000);
    transform: translateX(-50%);
    transition: left 0.12s linear;
}

/* Single image stays small and centered. */
.artender-single-gallery.is-single-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.artender-single-gallery.is-single-image .artender-single-gallery-main-wrap {
    width: 100%;
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: visible;
}

.artender-single-gallery.is-single-image .artender-single-gallery-main {
    width: calc((100% - 16px) / 3);
    min-width: calc((100% - 16px) / 3);
    max-width: 108px;
    height: 86px;
    min-height: 86px;
    margin: 0 auto;
    padding: 4px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.artender-single-gallery.is-single-image .artender-single-gallery-main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.artender-single-gallery.is-single-image .artender-single-gallery-zoom,
.artender-gallery-nav {
    display: none !important;
}

/* ----------------------
/ Product information
/ -------------------- */
.artender-mobile-product-info {
    width: 100%;
    min-width: 0;
    display: block;
    direction: rtl;
    text-align: right;
}

.artender-mobile-product-title-box {
    width: 100%;
    margin: 0 0 6px;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 2px 9px rgba(15, 23, 42, 0.075);
    overflow: hidden;
}

.artender-mobile-product-title {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #171717;
    font-size: 14.5px;
    font-weight: 750;
    line-height: 1.55;
    text-align: center;
    direction: rtl;
    unicode-bidi: plaintext;
    overflow-wrap: anywhere;
}

.artender-mobile-product-info.is-title-medium .artender-mobile-product-title {
    font-size: 13.8px;
}

.artender-mobile-product-info.is-title-long .artender-mobile-product-title {
    font-size: 12.8px;
    line-height: 1.5;
}

.artender-mobile-product-meta-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1.28fr;
    gap: 5px;
    align-items: stretch;
}

.artender-mobile-product-meta-box {
    min-width: 0;
    min-height: 33px;
    padding: 5px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #161616;
    font-size: 11.8px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.artender-mobile-product-meta-label,
.artender-mobile-product-meta-value {
    min-width: 0;
}

.artender-mobile-product-meta-value {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artender-mobile-product-info.is-meta-compact .artender-mobile-product-meta-box {
    padding-right: 4px;
    padding-left: 4px;
    gap: 2px;
    font-size: 11px;
}

.artender-mobile-product-info.is-meta-tight .artender-mobile-product-meta-box {
    padding-right: 3px;
    padding-left: 3px;
    gap: 1px;
    font-size: 10.2px;
}

.artender-mobile-product-short-section,
.artender-mobile-product-feature-section,
.artender-product-content-card {
    width: 100%;
    margin: 8px 0 0;
    padding: 10px 9px 11px;
    border: 0;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045), 0 1px 3px rgba(15, 23, 42, 0.025);
}

.artender-mobile-product-section-heading,
.artender-product-section-heading {
    width: 100%;
    margin: 0 0 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    direction: rtl;
    text-align: right;
}

.artender-mobile-product-section-line,
.artender-product-section-line {
    flex: 0 0 22px;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: var(--artender-primary-color, #f50000);
}

.artender-mobile-product-section-heading .artender-product-section-title,
.artender-product-section-heading .artender-product-section-title {
    margin: 0;
    color: #111111;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-align: right;
}

/* ----------------------
/ Short description
/ -------------------- */
.artender-mobile-product-short-copy {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.18);
    border-radius: 9px;
    background: linear-gradient(
        180deg,
        rgba(var(--artender-primary-rgb, 245, 0, 0), 0.045) 0%,
        rgba(var(--artender-primary-rgb, 245, 0, 0), 0.018) 100%
    );
    color: #22252a;
    font-size: 12px;
    font-weight: 450;
    line-height: 1.9;
    text-align: justify;
}

.artender-mobile-product-short-copy > :first-child {
    margin-top: 0;
}

.artender-mobile-product-short-copy > :last-child {
    margin-bottom: 0;
}

.artender-mobile-product-short-copy p {
    margin: 0 0 6px;
}

.artender-mobile-product-short-copy ul,
.artender-mobile-product-short-copy ol {
    margin: 4px 16px 4px 0;
    padding: 0 12px 0 0;
}

/* ----------------------
/ Product features - mobile short description rows
/ -------------------- */
.artender-mobile-product-feature-section {
    width: 100%;
    margin-top: 8px;
    padding: 9px 8px 8px;
    border: 0;
    border-radius: 13px;
    background: #ffffff;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        rgba(var(--artender-primary-rgb, 245, 0, 0), 0.012) 100%
    );
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.025);
}

.artender-mobile-product-feature-section .artender-mobile-product-section-heading {
    width: 100%;
    margin: 0 0 7px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    direction: rtl;
    text-align: right;
}

.artender-mobile-product-feature-section .artender-mobile-product-section-line {
    flex: 0 0 22px;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: var(--artender-primary-color, #14b8a6);
}

.artender-mobile-product-feature-section .artender-mobile-product-section-heading .artender-product-section-title {
    margin: 0 !important;
    color: #0f172a;
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1.4;
    text-align: right;
}

.artender-mobile-product-feature-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.artender-mobile-product-feature-row {
    width: 100%;
    min-height: 34px;
    padding: 5px 9px;
    display: grid;
    grid-template-columns: minmax(92px, 33%) minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.12);
    border-radius: 8px;
    background: #ffffff;
    background: linear-gradient(
        90deg,
        rgba(var(--artender-primary-rgb, 245, 0, 0), 0.055) 0%,
        rgba(var(--artender-primary-rgb, 245, 0, 0), 0.018) 100%
    );
    direction: rtl;
    text-align: right;
}

.artender-mobile-product-feature-row--short-desc {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    min-height: 34px;
    padding: 5px 9px;
}

.artender-mobile-product-feature-row--short-desc.has-label {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
    direction: rtl;
    text-align: right;
}

.artender-mobile-product-feature-short-label,
.artender-mobile-product-feature-short-value {
    min-width: 0;
    font-size: 12px;
    line-height: 1.6;
    text-align: right;
}

.artender-mobile-product-feature-short-label {
    width: 118px;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow-wrap: normal;
}

.artender-mobile-product-feature-short-value {
    width: 100%;
    color: #111827;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.artender-mobile-product-feature-label {
    min-width: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
}

.artender-mobile-product-feature-value {
    min-width: 0;
    color: #111827;
    font-size: 12.4px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
    unicode-bidi: plaintext;
    overflow-wrap: anywhere;
}

.artender-mobile-product-feature-value--full {
    display: block;
    width: 100%;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: 0;
}

.artender-mobile-product-feature-text {
    display: block;
    width: 100%;
    min-width: 0;
    color: #111827;
    font-size: 12.3px;
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
    unicode-bidi: plaintext;
    overflow-wrap: anywhere;
}

@media (max-width: 360px) {
    .artender-mobile-product-feature-section {
        padding: 8px 7px 7px;
    }

    .artender-mobile-product-feature-section .artender-mobile-product-section-heading {
        margin-bottom: 7px;
        gap: 6px;
    }

    .artender-mobile-product-feature-section .artender-mobile-product-section-heading .artender-product-section-title {
        font-size: 13px !important;
    }

    .artender-mobile-product-feature-section .artender-mobile-product-section-line {
        flex-basis: 20px;
        width: 20px;
        height: 3px;
    }

    .artender-mobile-product-feature-row {
        min-height: 32px;
        padding: 5px 8px;
        grid-template-columns: minmax(84px, 34%) minmax(0, 1fr);
        column-gap: 8px;
        border-radius: 8px;
    }

    .artender-mobile-product-feature-row--short-desc {
        min-height: 32px;
        padding: 5px 8px;
    }

    .artender-mobile-product-feature-row--short-desc.has-label {
        grid-template-columns: 105px minmax(0, 1fr);
        column-gap: 5px;
    }

    .artender-mobile-product-feature-short-label {
        width: 105px;
        font-size: 10.6px;
        white-space: nowrap;
    }

    .artender-mobile-product-feature-label,
    .artender-mobile-product-feature-value,
    .artender-mobile-product-feature-text,
    .artender-mobile-product-feature-value--full,
    .artender-mobile-product-feature-short-label,
    .artender-mobile-product-feature-short-value {
        font-size: 11.2px;
    }

    .artender-mobile-product-feature-row--short-desc.has-label {
        gap: 5px;
    }
}

/* ----------------------
/ Full description
/ -------------------- */
.artender-product-content-card {
    margin-top: 9px;
}

.artender-product-description-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 9px;
}

.artender-product-description-content {
    width: 100%;
    max-height: 210px;
    overflow: hidden;
    padding: 10px 11px 30px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.035);
    color: #22252a;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 2;
    text-align: justify;
    transition: max-height 0.2s ease;
}

.artender-product-description-content > :first-child {
    margin-top: 0;
}

.artender-product-description-content > :last-child {
    margin-bottom: 0;
}

.artender-product-description-content p {
    margin: 0 0 8px;
}

.artender-product-description-content img,
.artender-product-description-content video,
.artender-product-description-content iframe {
    max-width: 100%;
    height: auto;
}

.artender-product-description-fade {
    position: absolute;
    right: 1px;
    left: 1px;
    bottom: 1px;
    height: 66px;
    pointer-events: none;
    border-radius: 0 0 9px 9px;
    background: linear-gradient(
        to bottom,
        rgba(var(--artender-primary-rgb, 245, 0, 0), 0),
        rgba(var(--artender-primary-rgb, 245, 0, 0), 0.035) 58%,
        rgba(255, 255, 255, 0.98) 100%
    );
    opacity: 0;
}

.artender-product-description-card.has-overflow .artender-product-description-fade {
    opacity: 1;
}

.artender-product-description-card.is-expanded .artender-product-description-content {
    max-height: none;
    padding-bottom: 10px;
}

.artender-product-description-card.is-expanded .artender-product-description-fade {
    opacity: 0;
}

/* ----------------------
/ Specifications table
/ -------------------- */
.artender-product-spec-table {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.18);
    border-radius: 10px;
    background: #ffffff;
}

.artender-product-spec-head,
.artender-product-spec-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 36px;
    direction: rtl;
}

.artender-product-spec-head {
    background: var(--artender-primary-color, #f50000);
}

.artender-product-spec-head > div,
.artender-product-spec-row > div {
    min-width: 0;
    padding: 7px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.artender-product-spec-head > div {
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 750;
}

.artender-product-spec-row {
    border-top: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.12);
    background: #ffffff;
}

.artender-product-spec-row:nth-child(even) {
    background: var(--artender-product-soft);
}

.artender-product-spec-row > div:first-child,
.artender-product-spec-head > div:first-child {
    border-left: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.12);
}

.artender-product-spec-label {
    color: #333842;
    font-weight: 650;
}

.artender-product-spec-value {
    color: #111111;
    font-weight: 500;
}

.artender-product-spec-row.is-extra {
    display: none;
}

.artender-product-specs-card.is-expanded .artender-product-spec-row.is-extra {
    display: grid;
}

/* ----------------------
/ Expand buttons
/ -------------------- */
.artender-product-expand-button {
    width: 100%;
    min-height: 40px;
    margin: 8px 0 0;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #111111;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    cursor: pointer;
}

.artender-product-expand-button.is-visible {
    display: flex;
}

.artender-product-expand-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.08);
    color: var(--artender-primary-color, #f50000);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    transition: transform 0.18s ease;
}

.artender-product-description-card.is-expanded .artender-product-expand-icon,
.artender-product-specs-card.is-expanded .artender-product-expand-icon {
    transform: rotate(180deg);
}

/* ----------------------
/ Lightbox
/ -------------------- */
.artender-product-lightbox[hidden] {
    display: none !important;
}

.artender-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.artender-product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(8px);
}

.artender-product-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(94vw, 560px);
    min-height: 58vw;
    max-height: 82vh;
    padding: 42px 38px 44px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.artender-product-lightbox-dialog img {
    width: 100%;
    max-width: 100%;
    max-height: 72vh;
    display: block;
    object-fit: contain;
}

.artender-product-lightbox-close,
.artender-product-lightbox-nav {
    position: absolute;
    z-index: 3;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.12);
}

.artender-product-lightbox-close {
    top: 8px;
    left: 8px;
}

.artender-product-lightbox-prev,
.artender-product-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.artender-product-lightbox-prev {
    left: 8px;
}

.artender-product-lightbox-next {
    right: 8px;
}

.artender-product-lightbox-close svg,
.artender-product-lightbox-nav svg {
    width: 20px;
    height: 20px;
}

.artender-product-lightbox-counter {
    position: absolute;
    right: 50%;
    bottom: 9px;
    z-index: 3;
    min-width: 54px;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--artender-primary-color, #f50000);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    transform: translateX(50%);
}

/* ----------------------
/ Existing Artender mobile bottom bar
/ -------------------- */
body.single-product .artender-mobile-product-bar {
    right: 6px !important;
    left: 6px !important;
    bottom: 6px !important;
    border-radius: 13px !important;
    border-color: #e5e9ee !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.13) !important;
}

/* ----------------------
/ Small screens
/ -------------------- */
@media (max-width: 390px) {
    .artender-single-gallery.has-gallery-thumbs .artender-single-gallery-thumb {
        height: 84px;
    }

    .artender-single-gallery.is-single-image .artender-single-gallery-main {
        max-width: 102px;
        height: 84px;
        min-height: 84px;
    }

    .artender-mobile-product-title {
        font-size: 13.5px;
    }

    .artender-mobile-product-info.is-title-medium .artender-mobile-product-title {
        font-size: 12.9px;
    }

    .artender-mobile-product-info.is-title-long .artender-mobile-product-title {
        font-size: 12px;
    }

    .artender-mobile-product-meta-box {
        font-size: 10.8px;
    }

    .artender-mobile-product-section-heading .artender-product-section-title,
    .artender-product-section-heading .artender-product-section-title {
        font-size: 15px;
    }

    .artender-mobile-product-feature-row {
        grid-template-columns: minmax(62px, 30%) minmax(0, 1fr);
    }

    .artender-mobile-product-feature-label,
    .artender-mobile-product-feature-value {
        font-size: 11.5px;
    }

    .artender-mobile-product-short-copy,
    .artender-product-description-content {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .artender-product-layout * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* ----------------------
/ Related products - mobile
/ Same-category products, 3 cards in one row.
/ -------------------- */
.artender-related-products-card {
    width: 100%;
    margin-top: 9px;
    padding: 10px 8px 9px;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.14);
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        rgba(var(--artender-primary-rgb, 245, 0, 0), 0.018) 0%,
        #ffffff 24%
    );
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.artender-related-products-heading {
    width: 100%;
    margin: 0 0 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    direction: rtl;
}

.artender-related-products-heading-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.artender-related-products-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.16);
    border-radius: 8px;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.045);
    color: var(--artender-primary-color, #f50000);
}

.artender-related-products-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.artender-related-products-title {
    color: #111827;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.4;
    white-space: nowrap;
}

.artender-related-products-line {
    flex: 0 0 24px;
    width: 24px;
    height: 3px;
    margin-right: auto;
    border-radius: 999px;
    background: var(--artender-primary-color, #f50000);
}

.artender-related-products-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
}

.artender-related-product-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.18);
    border-radius: 10px;
    background: #ffffff;
}

.artender-related-product-image {
    width: 100%;
    aspect-ratio: 1 / 0.92;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.018);
    text-decoration: none !important;
}

.artender-related-product-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
    border: 0 !important;
    box-shadow: none !important;
}

.artender-related-product-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 5px 5px;
    display: flex;
    flex-direction: column;
}

.artender-related-product-name {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    color: #111827 !important;
    font-size: 9.8px;
    font-weight: 750;
    line-height: 1.75;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

.artender-related-product-price-wrap {
    margin-top: auto;
    min-height: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    text-align: center;
}

.artender-related-product-current-price {
    color: var(--artender-primary-color, #f50000);
    font-size: 9.6px;
    font-weight: 900;
    line-height: 1.5;
    white-space: normal;
}

.artender-related-product-price-prefix {
    margin-left: 2px;
}

.artender-related-product-regular-price {
    color: #9ca3af;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: line-through;
}

.artender-related-product-button {
    width: 100%;
    min-height: 30px;
    margin-top: 6px;
    padding: 5px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 7px;
    background: var(--artender-primary-color, #f50000);
    color: #ffffff !important;
    font-size: 8.7px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none !important;
}

.artender-related-product-button svg {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 360px) {
    .artender-related-products-card {
        padding-right: 6px;
        padding-left: 6px;
    }

    .artender-related-products-grid {
        gap: 5px;
    }

    .artender-related-product-name {
        font-size: 9px;
        line-height: 1.7;
    }

    .artender-related-product-current-price {
        font-size: 8.9px;
    }

    .artender-related-product-button {
        min-height: 29px;
        font-size: 8px;
    }
}

