/* ----------------------
/ File: assets/css/product-single-desktop.css
/ Theme: Artender
/ Developer: Artender
/ Section: Single Product - Desktop / Tablet Only
/ Applies at min-width: 769px via wp_enqueue_style media attribute.
/ -------------------- */

:root {
    --artender-product-border: #e7ebf0;
    --artender-product-soft: #f7f9fb;
    --artender-product-text: #111827;
    --artender-product-muted: #6b7280;
    --artender-product-success: #0aa64b;
    --artender-product-shadow: 0 8px 28px rgba(15, 23, 42, 0.065);
}

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

body.single-product .artender-single-product-page {
    width: calc(100% - (var(--artender-site-side-padding, 16px) * 2));
    max-width: var(--artender-site-max-width, 1300px);
    margin: 16px auto 34px;
}

body.single-product .woocommerce-notices-wrapper:empty {
    display: none;
}

body.single-product .woocommerce-message,
body.single-product .woocommerce-error,
body.single-product .woocommerce-info {
    margin: 0 0 12px !important;
    border-radius: 12px;
}

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

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

/* ----------------------
/ Top Product Card
/ -------------------- */
.artender-product-top-card {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(250px, 0.8fr);
    grid-template-areas: "gallery summary purchase";
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--artender-product-border);
    border-radius: 18px;
    box-shadow: var(--artender-product-shadow);
    overflow: visible;
}

.artender-product-gallery-column {
    grid-area: gallery;
    min-width: 0;
}

.artender-product-summary-column {
    grid-area: summary;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 16px 20px;
    direction: rtl;
    text-align: right;
    border: 1px solid #edf0f3;
    border-radius: 14px;
    background: #ffffff;
}

.artender-product-purchase-column {
    grid-area: purchase;
    min-width: 0;
    display: flex;
    align-items: stretch;
    padding: 12px;
    border: 1px solid #e3e7ec;
    border-radius: 14px;
    background: #f4f5f7;
    direction: rtl;
    text-align: right;
}

/* ----------------------
/ Gallery
/ -------------------- */
.artender-single-gallery {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.artender-single-gallery-main-wrap {
    position: relative;
    width: 100%;
    min-height: 350px;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
}

.artender-single-gallery-main {
    width: 100%;
    height: 100%;
    min-height: 350px;
    padding: 14px;
    border: 0;
    outline: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

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

.artender-single-gallery-zoom {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e9edf2;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
    pointer-events: none;
}

.artender-single-gallery-zoom svg {
    width: 19px;
    height: 19px;
}

.artender-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    padding: 0;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.07);
}

.artender-gallery-nav:hover {
    border-color: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.28);
    color: var(--artender-primary-color, #f50000);
}

.artender-gallery-nav svg {
    width: 20px;
    height: 20px;
}

.artender-gallery-nav-prev {
    left: 8px;
}

.artender-gallery-nav-next {
    right: 8px;
}

.artender-single-gallery-thumbs {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.artender-single-gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 58px;
    padding: 4px;
    border: 1px solid #e4e8ed;
    border-radius: 9px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.artender-single-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.artender-single-gallery-thumb.is-active {
    border-color: var(--artender-primary-color, #f50000);
    box-shadow: 0 0 0 2px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.08);
}

/* ----------------------
/ Product Title + Highlights
/ -------------------- */
.artender-product-title-wrap {
    width: 100%;
    margin-bottom: 14px;
    text-align: right;
}

.artender-single-product-title {
    margin: 0;
    padding: 0 4px;
    color: var(--artender-product-text);
    font-size: clamp(15px, 1.2vw, 24px);
    font-weight: 950;
    line-height: 1.65;
    text-align: right;
    word-break: normal;
    overflow-wrap: anywhere;
}

.artender-product-title-line {
    display: block;
    width: 132px;
    height: 2px;
    margin: 12px 0 0 auto;
    border-radius: 999px;
    background: var(--artender-primary-color, #f50000);
}

.artender-product-highlights {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 4px 2px 0;
}

.artender-product-highlights ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.artender-product-highlights li {
    position: relative;
    margin: 0;
    padding: 0 20px 0 0;
    color: #2f3743;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.75;
    text-align: right;
}

.artender-product-highlights li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.86em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--artender-primary-color, #f50000);
    box-shadow: 0 0 0 4px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.10);
    transform: translateY(-50%);
}

.artender-product-short-copy {
    color: #4b5563;
    font-size: 13px;
    line-height: 2;
    text-align: justify;
}

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

.artender-product-mobile-facts {
    display: none;
}

/* ----------------------
/ Purchase Box
/ -------------------- */
.artender-product-purchase {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    direction: rtl;
    text-align: right;
    align-items: stretch;
}

.artender-product-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    direction: rtl;
}

.artender-product-badge {
    min-width: 0;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--artender-primary-color, #f50000);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    overflow: hidden;
}

.artender-product-badge strong {
    font-weight: 950;
}

.artender-product-assurance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    direction: rtl;
}

.artender-product-assurance-box {
    min-width: 0;
    min-height: 54px;
    padding: 7px 8px;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    background: #f1f3f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
}

.artender-product-assurance-box span {
    color: #7b8490;
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1.4;
}

.artender-product-assurance-box strong {
    color: #222a35;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.artender-product-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    direction: rtl;
}

.artender-product-meta-box {
    min-width: 0;
    min-height: 66px;
    padding: 9px 8px;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    background: #e9ebee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.55;
}

.artender-product-meta-box span {
    color: #7b8490;
    font-size: 12.5px;
    font-weight: 750;
    text-align: center;
}

.artender-product-meta-box strong {
    min-width: 0;
    color: #222a35;
    font-size: 12.5px;
    font-weight: 900;
    text-align: center;
    overflow-wrap: anywhere;
}

.artender-product-meta-box strong.is-in-stock,
.artender-product-mobile-fact strong.is-in-stock {
    color: var(--artender-product-success);
}

.artender-product-meta-box strong.is-out-of-stock,
.artender-product-mobile-fact strong.is-out-of-stock {
    color: #dc2626;
}

.artender-product-price-card {
    position: relative;
    min-height: 92px;
    padding: 12px 12px 10px;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    background: #e9ebee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.artender-product-sale-offer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.artender-product-sale-badge-row {
    width: 100%;
    display: flex;
    justify-content: center;
    direction: rtl;
}

.artender-product-sale-badge {
    position: static;
    width: 100%;
    min-height: 34px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--artender-primary-color, #f50000);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.5;
}

.artender-product-sale-countdown {
    width: 100%;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.18);
    border-radius: 8px;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.055);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
    direction: rtl;
}

.artender-product-sale-countdown strong {
    color: var(--artender-primary-color, #f50000);
    font-size: 10.5px;
    font-weight: 950;
}

.artender-product-sale-countdown span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
}

.artender-product-price-label {
    width: 100%;
    margin-bottom: 3px;
    text-align: center;
    color: #7b8490;
    font-size: 10px;
    font-weight: 700;
}

.artender-product-main-price {
    width: 100%;
    direction: rtl;
    color: var(--artender-product-text);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.45;
    text-align: center;
}

.artender-product-main-price p.price {
    margin: 0 !important;
}

.artender-product-main-price .price,
.artender-product-main-price > span,
.artender-product-main-price .woocommerce-Price-amount,
.artender-product-main-price bdi {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.artender-product-main-price del {
    display: block;
    margin-bottom: 2px;
    color: #9ca3af !important;
    opacity: 1 !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration-thickness: 1px;
    text-align: center;
}

.artender-product-main-price ins {
    display: block;
    color: var(--artender-primary-color, #f50000) !important;
    text-decoration: none !important;
    font-size: 20px;
    font-weight: 950;
    text-align: center;
}

.artender-product-main-price.is-contact-price {
    color: var(--artender-primary-color, #f50000);
    font-size: 17px;
}

.artender-product-main-price .woocommerce-Price-amount {
    display: inline-flex !important;
    align-items: baseline;
    direction: rtl !important;
    gap: 4px;
}

.artender-product-main-price .woocommerce-Price-amount bdi {
    display: inline-flex !important;
    align-items: baseline;
    direction: rtl !important;
    flex-direction: row !important;
    gap: 4px;
    white-space: nowrap;
}

.artender-product-main-price .woocommerce-Price-currencySymbol {
    order: 2 !important;
    margin: 0 !important;
    direction: rtl;
}

.artender-product-cart-area .stock {
    display: none !important;
}

/* ----------------------
/ WooCommerce Add To Cart
/ -------------------- */
.artender-product-cart-area {
    width: 100%;
    min-width: 0;
}

.artender-product-cart-area form.cart {
    width: 100%;
    margin: 0 !important;
}

.artender-product-cart-area form.cart:not(.variations_form):not(.grouped_form) {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}

.artender-product-cart-area .quantity {
    width: 86px;
    height: 42px;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    align-items: center;
    border: 1px solid #e5e9ee;
    border-radius: 10px;
    background: #f7f8fa;
    overflow: hidden;
}

.artender-product-cart-area .quantity input.qty {
    width: 100% !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-align: center !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

.artender-product-cart-area .quantity input.qty::-webkit-outer-spin-button,
.artender-product-cart-area .quantity input.qty::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.artender-qty-btn {
    width: 26px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.artender-qty-btn:hover {
    color: var(--artender-primary-color, #f50000);
}

.artender-product-cart-area .single_add_to_cart_button,
.artender-product-contact-price {
    width: 100%;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--artender-secondary-color, #111827) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
    text-align: center;
    box-shadow: none !important;
}

.artender-product-cart-area .single_add_to_cart_button:hover,
.artender-product-contact-price:hover {
    background: var(--artender-secondary-hover-color, #0f172a) !important;
}

.artender-product-cart-area .variations {
    width: 100% !important;
    margin: 0 0 8px !important;
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
}

.artender-product-cart-area .variations tr,
.artender-product-cart-area .variations th,
.artender-product-cart-area .variations td {
    border: 0 !important;
}

.artender-product-cart-area .variations th,
.artender-product-cart-area .variations td {
    padding: 0 !important;
    vertical-align: middle !important;
}

.artender-product-cart-area .variations th {
    width: 64px;
    padding-left: 7px !important;
    color: #4b5563;
    font-size: 10.5px;
    font-weight: 850;
}

.artender-product-cart-area .variations select {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #e4e8ed;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    font-size: 11px;
    outline: 0;
}

.artender-product-cart-area .reset_variations {
    display: inline-block;
    margin-top: 5px;
    color: var(--artender-primary-color, #f50000) !important;
    font-size: 10px;
    font-weight: 800;
}

.artender-product-cart-area .single_variation_wrap .woocommerce-variation-price {
    margin-bottom: 8px;
    text-align: center;
}

.artender-product-cart-area .single_variation_wrap .woocommerce-variation-price .price {
    color: var(--artender-primary-color, #f50000);
    font-size: 15px;
    font-weight: 950;
}

.artender-product-cart-area .woocommerce-variation-add-to-cart {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
}

.artender-product-cart-area .group_table {
    width: 100%;
    margin-bottom: 8px;
}

.artender-product-unavailable {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #fff1f2;
    color: #be123c;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: 850;
}

.artender-product-consult-box {
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--artender-primary-color, #f50000);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none !important;
}

.artender-product-consult-icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artender-product-consult-icon svg {
    width: 15px;
    height: 15px;
}

.artender-product-consult-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
}

.artender-product-consult-content strong {
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 950;
    line-height: 1.4;
}

.artender-product-consult-content small {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.92);
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1.35;
    direction: ltr;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----------------------
/ Content Cards
/ -------------------- */
.artender-product-content-card {
    width: 100%;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.14);
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(var(--artender-primary-rgb, 245, 0, 0), 0.02) 0%,
        #ffffff 30%
    );
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
}

.artender-product-section-heading {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.artender-product-section-heading .artender-product-section-title {
    flex: 0 0 auto;
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.5;
}

.artender-product-section-heading > span {
    flex: 1 1 auto;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to left, var(--artender-primary-color, #f50000), rgba(var(--artender-primary-rgb, 245, 0, 0), 0.04));
}

.artender-product-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.artender-product-feature-row {
    min-width: 0;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid #e9edf2;
    border-radius: 10px;
    background: #fafbfd;
    display: grid;
    grid-template-columns: minmax(80px, 0.32fr) minmax(0, 0.68fr);
    align-items: center;
    gap: 12px;
}

.artender-product-feature-label {
    color: #667085;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.55;
}

.artender-product-feature-value {
    min-width: 0;
    color: #111827;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.65;
    text-align: right;
    overflow-wrap: anywhere;
}

.artender-product-description-content {
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    line-height: 2.15;
    text-align: justify;
}

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

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

.artender-product-description-content img {
    height: auto;
    border-radius: 12px;
}

/* ----------------------
/ Related Products
/ -------------------- */
.artender-related-products-card {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.14);
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(var(--artender-primary-rgb, 245, 0, 0), 0.018) 0%,
        #ffffff 24%
    );
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
}

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

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

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

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

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

.artender-related-products-line {
    flex: 0 0 34px;
    width: 34px;
    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: 10px;
    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.16);
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.artender-related-product-card:hover {
    border-color: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.34);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.artender-related-product-image {
    width: 100%;
    aspect-ratio: 1.35 / 1;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.016);
    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: 9px;
    display: flex;
    flex-direction: column;
}

.artender-related-product-name {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    color: #111827 !important;
    font-size: 12.5px;
    font-weight: 800;
    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: 44px;
    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: 12.5px;
    font-weight: 900;
    line-height: 1.5;
}

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

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

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

.artender-related-product-button:hover {
    color: #ffffff !important;
    filter: brightness(0.96);
}

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

/* ----------------------
/ 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: 22px;
}

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

.artender-product-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 92vw);
    height: min(760px, 88vh);
    padding: 26px;
    border-radius: 18px;
    background: #ffffff;
    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%;
    height: 100%;
    object-fit: contain;
}

.artender-product-lightbox-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e6e9ed;
    border-radius: 11px;
    background: #ffffff;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

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

.artender-product-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    padding: 0;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.artender-product-lightbox-nav:hover,
.artender-product-lightbox-nav:focus-visible {
    color: var(--artender-primary-color, #f50000);
    border-color: var(--artender-primary-color, #f50000);
    box-shadow: 0 10px 26px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.13);
    outline: 0;
}

.artender-product-lightbox-nav:active {
    transform: scale(0.96);
}

.artender-product-lightbox-nav svg {
    width: 23px;
    height: 23px;
}

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

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

.artender-product-lightbox-counter {
    position: absolute;
    right: 50%;
    bottom: 12px;
    z-index: 3;
    min-width: 58px;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--artender-primary-color, #f50000);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    transform: translateX(50%);
    box-shadow: 0 6px 18px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.2);
}

/* ----------------------
/ Tablet
/ -------------------- */
@media (max-width: 1100px) and (min-width: 769px) {
    .artender-product-top-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(230px, 0.72fr);
        gap: 12px;
        padding: 14px;
    }

    .artender-single-gallery-main-wrap,
    .artender-single-gallery-main {
        min-height: 310px;
    }

    .artender-single-gallery-main img {
        max-height: 340px;
    }

    .artender-product-highlights li {
        font-size: 12.5px;
    }

    .artender-product-badge {
        font-size: 9.5px;
    }

    .artender-product-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ----------------------
/ Mobile-only gallery progress helper
/ -------------------- */
.artender-mobile-gallery-progress {
    display: none !important;
}

/* ----------------------
/ Mobile-specific product information is intentionally hidden on desktop.
/ -------------------- */
.artender-mobile-product-info {
    display: none !important;
}

/* ----------------------
/ Product Description + Specifications
/ -------------------- */
.artender-product-description-wrap {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.14);
    border-radius: 12px;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.025);
}

.artender-product-description-fade,
.artender-product-expand-button {
    display: none !important;
}

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

.artender-product-spec-head,
.artender-product-spec-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
    min-height: 44px;
    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: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
}

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

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

.artender-product-spec-row:nth-child(even) {
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.03);
}

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

.artender-product-spec-label {
    color: #4b5563;
    font-size: 12px;
    font-weight: 750;
}

.artender-product-spec-value {
    color: #111827;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.7;
}

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


/* Desktop purchase cleanup: consultation is intentionally hidden here. */
.artender-product-consult-box {
    display: none !important;
}


/* Desktop refinements: hide purchase consultation entirely */
.artender-desktop-purchase-only .artender-product-consult-box {
    display: none !important;
}


/* ----------------------
/ Desktop Details: Description 70% + Specifications 30%
/ -------------------- */
.artender-product-details-grid {
    width: 100%;
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
    gap: 14px;
    align-items: start;
    direction: rtl;
}

.artender-product-details-grid .artender-product-content-card {
    margin-top: 0;
    min-width: 0;
}

.artender-product-description-card .artender-product-description-wrap {
    position: relative;
    max-height: 360px;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.artender-product-description-card:not(.is-expanded) .artender-product-description-fade {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 74px;
    display: block !important;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff 82%);
}

.artender-product-description-card.is-expanded .artender-product-description-wrap {
    max-height: none;
}

.artender-product-description-card.is-expanded .artender-product-description-fade {
    display: none !important;
}

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

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

.artender-product-expand-button {
    width: 100%;
    min-height: 40px;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.24);
    border-radius: 10px;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.045);
    color: var(--artender-primary-color, #f50000);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.4;
    cursor: pointer;
}

.artender-product-expand-button:hover {
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.08);
}

.artender-product-expand-icon {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}

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

@media (max-width: 1100px) and (min-width: 769px) {
    .artender-product-details-grid {
        grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
        gap: 12px;
    }
}

/* ----------------------
/ RTL alignment for desktop product description + specifications
/ -------------------- */
@media screen and (min-width: 769px) {
    .artender-product-details-grid,
    .artender-product-details-grid .artender-product-content-card,
    .artender-product-description-wrap,
    .artender-product-description-content,
    .artender-product-description-content p,
    .artender-product-description-content ul,
    .artender-product-description-content ol,
    .artender-product-description-content li,
    .artender-product-description-content blockquote,
    .artender-product-spec-table,
    .artender-product-spec-head,
    .artender-product-spec-row,
    .artender-product-spec-label,
    .artender-product-spec-value {
        direction: rtl !important;
        text-align: right !important;
    }

    .artender-product-description-content ul,
    .artender-product-description-content ol {
        padding-right: 22px !important;
        padding-left: 0 !important;
    }

    .artender-product-spec-head > div,
    .artender-product-spec-row > div {
        justify-content: flex-start !important;
        text-align: right !important;
    }

    .artender-product-expand-button {
        direction: rtl !important;
        text-align: right !important;
        justify-content: flex-start !important;
    }
}

/* ----------------------
/ Desktop Product Details Polish
/ RTL content, equal-height cards, centered equal toggles,
/ section-like strong titles and theme-aware content tables.
/ -------------------- */
@media screen and (min-width: 769px) {
    .artender-product-details-grid {
        align-items: stretch !important;
    }

    .artender-product-details-grid .artender-product-content-card {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        direction: rtl !important;
        text-align: right !important;
    }

    .artender-product-description-card .artender-product-description-wrap,
    .artender-product-specs-card .artender-product-spec-table {
        width: 100% !important;
        direction: rtl !important;
        text-align: right !important;
    }

    .artender-product-description-card .artender-product-description-wrap {
        flex: 1 1 auto;
    }

    .artender-product-specs-card .artender-product-spec-table {
        flex: 1 1 auto;
        align-self: stretch;
    }

    .artender-product-description-content,
    .artender-product-description-content p,
    .artender-product-description-content li,
    .artender-product-description-content blockquote,
    .artender-product-description-content div {
        direction: rtl !important;
        text-align: right !important;
    }

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

    /* Titles entered as: <p><strong>Title</strong></p> */
    .artender-product-description-content p:has(> strong:only-child) {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        margin: 20px 0 10px !important;
        color: #111827 !important;
        text-align: right !important;
    }

    .artender-product-description-content p:has(> strong:only-child)::before {
        content: "";
        width: 10px;
        height: 10px;
        flex: 0 0 10px;
        border-radius: 50%;
        background: var(--artender-primary-color, #f50000);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--artender-primary-color, #f50000) 14%, #ffffff);
    }

    .artender-product-description-content p:has(> strong:only-child) > strong {
        color: #111827 !important;
        font-size: 16px !important;
        font-weight: 900 !important;
        line-height: 1.8 !important;
        text-align: right !important;
    }

    /* Theme-aware tables inside the product description */
    .artender-product-description-content {
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--artender-primary-color, #f50000) #eef2f7;
    }

    .artender-product-description-content table {
        width: 100% !important;
        min-width: 640px;
        margin: 18px 0 20px !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        color: #111827 !important;
        font-size: 13.5px !important;
        line-height: 1.9 !important;
        direction: rtl !important;
        text-align: right !important;
    }

    .artender-product-description-content table thead th,
    .artender-product-description-content table tr:first-child th {
        background: var(--artender-primary-color, #f50000) !important;
        color: #ffffff !important;
        font-weight: 900 !important;
        border-color: transparent !important;
        text-align: right !important;
    }

    .artender-product-description-content table th,
    .artender-product-description-content table td {
        padding: 11px 12px !important;
        border-left: 1px solid #e5e7eb !important;
        border-bottom: 1px solid #e5e7eb !important;
        vertical-align: middle !important;
        direction: rtl !important;
        text-align: right !important;
    }

    .artender-product-description-content table th:last-child,
    .artender-product-description-content table td:last-child {
        border-left: 0 !important;
    }

    .artender-product-description-content table tbody tr:nth-child(odd) td {
        background: #ffffff !important;
    }

    .artender-product-description-content table tbody tr:nth-child(even) td {
        background: #f7f9fc !important;
        background: color-mix(in srgb, var(--artender-primary-color, #f50000) 5%, #ffffff) !important;
    }

    .artender-product-description-content table tbody tr:hover td {
        background: #f2f6ff !important;
        background: color-mix(in srgb, var(--artender-primary-color, #f50000) 9%, #ffffff) !important;
    }

    /* Native specifications table stays RTL */
    .artender-product-spec-head,
    .artender-product-spec-row,
    .artender-product-spec-label,
    .artender-product-spec-value,
    .artender-product-spec-head > div,
    .artender-product-spec-row > div {
        direction: rtl !important;
        text-align: right !important;
        justify-content: flex-start !important;
    }

    /* Same-size centered expand buttons for both cards */
    .artender-product-details-grid .artender-product-expand-button {
        width: min(220px, 100%) !important;
        min-width: 180px;
        min-height: 42px !important;
        margin: 14px auto 0 !important;
        padding: 8px 18px !important;
        align-self: center !important;
        direction: rtl !important;
        text-align: center !important;
        justify-content: center !important;
        flex: 0 0 auto;
    }
}

/* ----------------------
/ Desktop details final alignment + independent expansion
/ -------------------- */
@media screen and (min-width: 769px) {
    /* Each card keeps its own height when the other one expands. */
    .artender-product-details-grid {
        align-items: start !important;
    }

    .artender-product-details-grid .artender-product-content-card {
        height: auto !important;
        min-height: 560px !important;
        align-self: start !important;
    }

    /* Section labels on the right, decorative line continuing to the left. */
    .artender-product-section-heading {
        direction: ltr !important;
    }

    .artender-product-section-heading .artender-product-section-title {
        direction: rtl !important;
        text-align: right !important;
    }

    /* Larger, easier-to-read main product description copy. */
    .artender-product-description-content,
    .artender-product-description-content p,
    .artender-product-description-content li,
    .artender-product-description-content blockquote,
    .artender-product-description-content div {
        font-size: 15px !important;
        line-height: 2.1 !important;
    }

    /* Intro / review sentence at the beginning of the description. */
    .artender-product-description-content > p:first-child:not(:has(> strong:only-child)) {
        text-align: center !important;
        font-weight: 650 !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    /* Keep semantic section headings larger than body copy. */
    .artender-product-description-content p:has(> strong:only-child) > strong {
        font-size: 17px !important;
        line-height: 1.8 !important;
    }

    /* Equal collapsed presentation without coupling expanded heights. */
    .artender-product-description-card:not(.is-expanded) .artender-product-description-wrap {
        max-height: 450px !important;
    }

    .artender-product-description-card.is-expanded,
    .artender-product-specs-card.is-expanded {
        min-height: 560px !important;
    }
}


/* ----------------------
/ Product description list cards + full black text
/ -------------------- */
@media screen and (min-width: 769px) {
    .artender-product-description-content,
    .artender-product-description-content p,
    .artender-product-description-content li,
    .artender-product-description-content li strong,
    .artender-product-description-content blockquote,
    .artender-product-description-content div,
    .artender-product-description-content span,
    .artender-product-description-content td,
    .artender-product-description-content th {
        color: #000000 !important;
    }

    .artender-product-description-content ul {
        list-style: none !important;
        margin: 18px 0 22px !important;
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        direction: rtl !important;
    }

    .artender-product-description-content ul > li {
        position: relative !important;
        margin: 0 !important;
        padding: 14px 42px 14px 14px !important;
        min-height: 78px !important;
        border: 1px solid #e3e8ef !important;
        border-right: 3px solid var(--artender-primary-color, #f50000) !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05) !important;
        color: #000000 !important;
        font-size: 14.5px !important;
        font-weight: 500 !important;
        line-height: 1.95 !important;
        text-align: right !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    }

    .artender-product-description-content ul > li::before {
        content: "" !important;
        position: absolute !important;
        top: 18px !important;
        right: 16px !important;
        width: 10px !important;
        height: 10px !important;
        border-radius: 50% !important;
        background: var(--artender-primary-color, #f50000) !important;
        box-shadow: 0 0 0 5px color-mix(in srgb, var(--artender-primary-color, #f50000) 12%, #ffffff) !important;
    }

    .artender-product-description-content ul > li:hover {
        transform: translateY(-1px) !important;
        border-color: color-mix(in srgb, var(--artender-primary-color, #f50000) 30%, #e3e8ef) !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
    }

    .artender-product-description-content ul > li > strong:first-child {
        color: #000000 !important;
        font-size: 15px !important;
        font-weight: 950 !important;
    }
}

