/* ----------------------
/ File: assets/css/product-single-desktop.css
/ Theme: Artender
/ Developer: sepehrdarvishii
/ 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(350px, 0.95fr) minmax(350px, 1.05fr) minmax(280px, 0.72fr);
    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: 6px 2px;
}

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

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

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

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

.artender-product-highlights {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 3px 10px 0;
}

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

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

.artender-product-highlights li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--artender-primary-color, #f50000);
    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: 2px;
}

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

.artender-product-badge {
    min-width: 0;
    min-height: 30px;
    padding: 5px 9px;
    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-meta-card {
    border: 1px solid #edf0f3;
    border-radius: 12px;
    background: #fbfcfd;
    overflow: hidden;
}

.artender-product-meta-row {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 11px;
    border-bottom: 1px solid #edf0f3;
    font-size: 11px;
    line-height: 1.5;
}

.artender-product-meta-row:last-child {
    border-bottom: 0;
}

.artender-product-meta-row span {
    color: #7b8490;
    font-weight: 650;
}

.artender-product-meta-row strong {
    min-width: 0;
    color: #222a35;
    font-weight: 900;
    text-align: left;
    overflow-wrap: anywhere;
}

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

.artender-product-meta-row 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 #edf0f3;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.artender-product-sale-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 7px;
    background: var(--artender-primary-color, #f50000);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 900;
    line-height: 1.5;
}

.artender-product-price-label {
    margin-bottom: 3px;
    color: #7b8490;
    font-size: 10px;
    font-weight: 700;
}

.artender-product-main-price {
    width: 100%;
    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;
}

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

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

/* ----------------------
/ 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(300px, 0.9fr) minmax(310px, 1fr) minmax(250px, 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;
}
