
/* ===============================
   🧾 Buy Box Meta Info
=============================== */

.product-buy-meta {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  font-size: 12px;
  background-color: #fafafa;
  padding: 1rem;
  border-radius: 20px;
}

.product-buy-meta .meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
}

.product-buy-meta .meta-label {
    color: #6b7280;
    font-weight: 300;
}

.product-buy-meta .meta-value {
    font-weight: 500;
    color: #111;
}

.product-buy-meta .meta-value.success {
    color: #0d6efd;
}

.product-buy-meta .meta-value.danger {
    color: #dc2626;
}

.product-social-proof-product {
    display: flex;
    gap: 16px;
    margin: 10px 0 16px;
    flex-wrap: wrap;
}

.proof-item-product {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #444;
    background: #fafafa;
    padding: 6px 10px;
    border-radius: 10px;
}

.proof-item-product svg {
  width: 20px;
  height: 20px;
  color: #0d6efd;
}

.proof-item-product.reviews svg {
    stroke: #6b7280;
}

.proof-text-product {
    font-family: 'YekanBakhFaNum', 'YekanBakh', sans-serif;
    line-height: 1;
}

.badge-item span {
  width: 25px;
  height: 25px;
  padding: 0;
  border-radius: 50%;
  background: #0d6efd;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.45);
  transition: all .2s ease;
}

/* ===============================
   Ultra Product Icon Actions
=============================== */

.product-icon-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 14px 0 18px;
}

.icon-action {
    position: relative;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s ease;
}

.icon-action svg {
    width: 18px;
    height: 18px;
    color: #0d6efd;

}

.icon-action:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.icon-action:hover svg {
    stroke: var(--primary);
}

/* ✅ Tooltip */
.icon-action::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%) translateY(6px);
    background: #111;
    color: #fff;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all .2s ease;
}

.icon-action::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    right: 50%;
    transform: translateX(50%);
    border: 6px solid transparent;
    border-top-color: #111;
    opacity: 0;
    transition: opacity .2s ease;
}

.icon-action:hover::after,
.icon-action:hover::before {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .icon-action {
        height: 40px;
    }
}
.icon-action.active {
    background: #fee2e2;
}
.icon-action.active svg {
    stroke: #ef4444;
}

/* ======================
   Ultra Modal
====================== */
.ultra-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.ultra-modal.open { display: flex; }
.ultra-modal h3 {
  font-size: 12px;
  font-weight: 600;
}
.ultra-modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    width: 90%;
    max-width: 360px;
}

.share-link {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}
.share-link input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    font-size: 12px;
}
.share-link button {
    border-radius: 10px;
    padding: 0 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
}

.share-socials {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
}
.share-socials .social {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    font-size: 12px;
}

/* =====================================
   SORTING (Digikala style)
===================================== */

.woocommerce-ordering {
    margin-bottom: 16px;
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

/* =======================================
   Sheikhi Card Rating Alignment Fix
======================================= */

.thumb-wrap {
    position: relative;
}

/* ⭐ Rating – Top Left */
.sheikhi-rating {
    position: absolute;
    left: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    padding: 4px 6px;
    border-radius: 6px;
    z-index: 2;

}

.sheikhi-rating .star {
    font-size: 18px;
    color: #f0bb40;
    line-height: 1;
}

.sheikhi-rating .rating-number {
  font-size: 10px;
  color: #333;
  line-height: 1;
  font-weight: bold;
}

/* 🔴 Discount – Top Right */
.discount-badge {
    position: absolute;
    background: #ef394e;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0px 5px 15px 0px rgba(230, 14, 14, 0.42);
    border-radius: 12px 12px 4px 12px;
    font-weight: 700;
}

/* Image */
.product-thumb img {
    max-height: 250px;
    object-fit: contain;
    display: block;
	margin: auto;
}


.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.sheikhi-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}
/* Price next to Cart (Exact like Image) */
.price-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}
.product-card:hover .product-title a {
    color: #333;
}

/* Price */
.price-cart-row .product-price {
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}
.woocommerce-Price-currencySymbol {
  font-size: 8px;
  padding: 2px;
  font-weight: 300;
}
.price-cart-row .product-price del {
  font-size: 12px;
  color: #9aa3af;
  font-weight: 300;
}
.price-cart-row .product-price ins {
    text-decoration: none;
    color: #111;
}

/* Cart Button */
.price-cart-row .add-to-cart-btn {
    width: 44px;
    height: 44px;
    background: #ef394e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0px 5px 15px 0px rgba(230, 14, 14, 0.42);
}

.price-cart-row .add-to-cart-btn svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

/* =====================================
   SHOP TOP BAR (Breadcrumb + Sorting)
===================================== */

.shop-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* Breadcrumb */
.ultra-breadcrumb {
    font-size: 12px;
    color: #777;
}

.ultra-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.ultra-breadcrumb a:hover {
    color: var(--primary);
}

.ultra-breadcrumb span {
    margin: 0 6px;
}

/* Sorting */
.shop-sorting .woocommerce-ordering {
    margin: 0;
}

.shop-sorting select {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

/* Category Description */
.category-description {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 2;
    color: #555;
}

/* Mobile */
@media (max-width: 768px) {
    .shop-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Product Views (SVG Eye) */
.product-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #777;
}

.product-views svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}
/* Product title – one line with ellipsis */
.product-title {
    font-size: 13px;
    font-weight: 500;
    margin: 8px 0 6px;
    line-height: 1.6;
}

.product-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    /* فقط یک خط */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    color: #111;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary);
}


/* Price styles */
.price del {
    color: #999;
    font-size: 12px;
    margin-left: 6px;
}

.price ins {
    text-decoration: none;
    color: #ef394e;
    font-weight: 700;
    font-size: 14px;
}
/* Price under title */
.product-price-top {
    margin: 6px 0 10px;
    font-size: 12px;
}

.product-price-top del {
    color: #999;
    font-size: 9px;
    margin-left: 6px;
}

.product-price-top ins {
    text-decoration: none;
    color: #ef394e;
    font-weight: 400;
    font-size: 12px;
}

/* Bottom area */
.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.product-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #555;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Card fix */
.product-card {
    position: relative;
}

.shop-description {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 14px;
    font-size: 14px;
    line-height: 2;
    color: #444;
}

.shop-description h2,
.shop-description h3 {
    margin-bottom: 12px;
    font-weight: 700;
}

.entry-title {
  font-size: 18px;
}

/* ===============================
   Single Product Hero - Fixed Layout
=============================== */

.product-hero-main {
    display: grid;
    grid-template-columns: 3fr 4.5fr 2.5fr; 
    gap: 25px;
    align-items: start;
    margin: 20px 0 50px;
    width: 100%;
    box-sizing: border-box;
}


.product-hero-info {
    padding: 0 10px;
}

.product-main-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text);
}

.product-short-description {
    font-size: 12px;
    line-height: 1.9;
    color: #444;
    text-align: justify;
}

.product-interaction-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #ebebeb;
    position: sticky;
    top: 90px; 
    z-index: 10;
}

.product-price-box {
  margin: 15px 0;
  font-weight: 600;
  font-size: 18px;
  color: #111;
  display: grid;
}

.product-price-box {
    text-align: center;         
    justify-items: center;      
    align-items: center;
}

.product-price-box del {
  font-size: 12px;
  font-weight: 300;
  color: #a2a2a2;
}

.ultra-header {
    z-index: 1000 !important; /* هدر همیشه رو باشد */
}

/* 📱 واکنش‌گرا (موبایل) */
@media (max-width: 1024px) {
    .product-hero-main {
        grid-template-columns: 1fr; /* در موبایل همه زیر هم */
        gap: 20px;
    }
    
    .product-interaction-card {
        position: static;
        width: 100%;
    }
}


/* =========================================================
   ✅ SINGLE PRODUCT – QTY + ADD TO CART INLINE
========================================================= */

/* Wrapper */
.single-product .product-actions-box form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* Quantity */
.single-product .product-actions-box .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    height: 46px;
}

/* Qty input */
.single-product .product-actions-box .quantity input.qty {
    width: 56px;
    height: 46px;
    border: none;
    text-align: center;
    font-size: 15px;
    outline: none;
}

/* Add to cart button */
.single-product .product-actions-box .single_add_to_cart_button {
  flex: 1;
  height: 46px;
  border-radius: 14px;
  border: none;
  background: #0d6efd;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  font-weight: 300;
  box-shadow: 0px 5px 15px 0px rgba(14, 68, 230, 0.42) !important;
}

.single-product .product-actions-box .single_add_to_cart_button:hover {
    transform: translateY(-1px);
}

/* Disabled */
.single-product .product-actions-box .single_add_to_cart_button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* =========================================================
   ✅ MOBILE
========================================================= */

@media (max-width: 768px) {

    .single-product .product-actions-box form.cart {
        flex-direction: row;
        gap: 8px;
    }

    .single-product .product-actions-box .single_add_to_cart_button {
        font-size: 14px;
    }
}

/* =========================================================
   ✅ MOBILE STICKY ADD TO CART (Single Product)
========================================================= */

.mobile-sticky-ctatwo {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;

    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

.sticky-price-mobiletwo {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  display: grid;
}

.sticky-price-mobiletwo del {
  color: #9ca3af;
  font-size: 10px;
  text-align: center;
  font-weight: 300;
}

.sticky-price-mobiletwo ins {
    text-decoration: none;
    color: #111;
    font-weight: 700;
}

/* ✅ Buy Button */
.btn-buy-mobiletwo {
    flex: 1;
    height: 44px;

    border: none;
    border-radius: 14px;
    background: #0d6efd;
    color: #fff;

    font-size: 14px;
    font-weight: 300;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background .2s ease, transform .15s ease;
}

.btn-buy-mobiletwo:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

/* ✅ Desktop: hidden */
@media (min-width: 769px) {
    .mobile-sticky-ctatwo {
        display: none;
    }
}

/* ✅ Prevent content being hidden behind sticky bar */
@media (max-width: 768px) {
    body.single-product {
        padding-bottom: 76px;
    }
}

/* ======================================
   ✅ SINGLE PRODUCT – TABS (ULTRA)
====================================== */

.product-tabs-section {
    background: #fff;
    border-radius: 18px;
    padding: 26px 22px 30px;
    margin-top: 28px;
    border: 1px solid #eee;
}
.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 28px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
    border-bottom: 1px solid #eee;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 10px 4px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color .2s ease;
}
.woocommerce-tabs ul.tabs li.active a {
    color: var(--primary);
}

.woocommerce-tabs ul.tabs li.active a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
}
.woocommerce-tabs .panel {
    font-size: 14px;
    line-height: 2;
    color: #333;
}
.woocommerce-tabs strong {
  font-weight: 600;
}

.woocommerce-tabs .panel p {
    margin-bottom: 14px;
}

/* ===============================
   Product Attributes – Ultra
=============================== */

.single-product .woocommerce-product-attributes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
    font-size: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
}

/* rows */
.single-product .woocommerce-product-attributes tr {
    background: #fff;
}

.single-product .woocommerce-product-attributes tr:nth-child(even) {
    background: #fafafa;
}

/* label */
.single-product .woocommerce-product-attributes th {
    width: 30%;
    padding: 14px 16px;
    border: none;
    border-left: 1px solid #eee;
    font-weight: 600;
    color: #444;
    text-align: right;
    white-space: nowrap;
}

/* value */
.single-product .woocommerce-product-attributes td {
    padding-right: 10px;
    border: none;
    color: #222;
    line-height: 1.9;
}

/* links inside attributes */
.single-product .woocommerce-product-attributes a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.single-product .woocommerce-product-attributes a:hover {
    text-decoration: underline;
}

/* mobile */
@media (max-width: 768px) {
    .single-product .woocommerce-product-attributes {
        font-size: 12px;
    }

    .single-product .woocommerce-product-attributes th {
        width: 38%;
        padding: 12px;
    }

    .single-product .woocommerce-product-attributes td {
        padding: 12px;
    }
}
/* ===============================
   ⭐ Ultra SVG Rating – Centered
=============================== */

.product-rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
    text-align: center;
}

/* stars wrapper */
.product-rating-box .ultra-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl; 
}

/* single star */
.product-rating-box .ultra-star {
    width: 25px;
    height: 25px;
    color: #d1d5db; 
    flex-shrink: 0;
}

/* filled stars (integer) */
.ultra-stars[data-rating^="1"] .ultra-star:nth-child(-n+1),
.ultra-stars[data-rating^="2"] .ultra-star:nth-child(-n+2),
.ultra-stars[data-rating^="3"] .ultra-star:nth-child(-n+3),
.ultra-stars[data-rating^="4"] .ultra-star:nth-child(-n+4),
.ultra-stars[data-rating^="5"] .ultra-star:nth-child(-n+5) {
    color: #f5c518;
}

/* filled stars (decimal support) */
.ultra-stars[data-rating^="4."] .ultra-star:nth-child(-n+4),
.ultra-stars[data-rating^="3."] .ultra-star:nth-child(-n+3),
.ultra-stars[data-rating^="2."] .ultra-star:nth-child(-n+2),
.ultra-stars[data-rating^="1."] .ultra-star:nth-child(-n+1) {
    color: #f5c518;
}

/* rating text under stars */
.product-rating-box .rating-text {
    font-size: 12px;
    font-weight: 300;
    color: #6b7280;
    line-height: 1;
}

/* ===============================
   ⭐ Ultra Product Reviews
=============================== */

.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .reviews-layout {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   🔥 Product Sale Countdown
=============================== */


.ultra-sale-urgent {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.urgent-text {
    display: flex;
    flex-direction: column;
}

.urgent-title {
    font-size: 12px;
    font-weight: 300;
    color: #111;
}

.urgent-sub {
    font-size: 14px;
    color: #444;
}

.urgent-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    direction: ltr;
    color: #111;
}

.urgent-timer .time {
    min-width: 22px;
    text-align: center;
}

.urgent-timer .highlight {
  background: #0d6efd;
  color: #fff;
  padding: 3px 5px;
  border-radius: 11px;
  min-width: 30px;
  box-shadow: 0px 5px 15px 0px rgba(14, 68, 230, 0.42);
}

/* ===============================
   Ultra Reviews – Digikala Style
=============================== */

.ultra-review-summary {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.ultra-summary-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ultra-summary-box {
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    display: grid;
}

.ultra-summary-box strong {
    font-size: 15px;
    font-weight: 600;
    color: #2563eb;
    display: block;
}

.ultra-summary-box span {
    font-size: 12px;
}

.ultra-summary-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ultra-rating-row {
    display: grid;
    grid-template-columns: 120px 1fr 30px;
    align-items: center;
    gap: 12px;
}

.ultra-rating-stars {
    display: flex;
    gap: 4px;
}

.ultra-star-wrap {
    width: 14px;
    height: 14px;
    color: #d1d5db;
}

.ultra-star-wrap.active {
    color: #f5c518; 
}

.ultra-progress {
    height: 6px;
    background: #eef2f7;
    border-radius: 6px;
    overflow: hidden;
}

.ultra-progress span {
    display: block;
    height: 100%;
    background: #f5c518;
    border-radius: 6px;
}
.ultra-review-form button {
  padding: 5px 15px 5px 15px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  box-shadow: 0px 5px 15px 0px rgba(14, 68, 230, 0.42);
  cursor: pointer;
}

.ultra-review-form button:hover {
    opacity: .9;
}
/* ===============================
   🧾 REVIEW LIST
=============================== */

.commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.commentlist > li {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 18px 20px;
}


/* =====================================
   🧾 Ultra Review Item (List)
===================================== */

.ultra-review-item {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ultra-review-item .review-container {
    background: #fff;
    border-bottom: 1px solid #f0f0f1;
    padding: 24px 0;
}

/* Header (Author + Date) */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-header strong {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.review-date {
    font-size: 12px;
    color: #9ca3af;
}

/* ⭐ Rating Stars */
.comment-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.comment-rating .ultra-star-wrap svg {
    width: 16px;
    height: 16px;
    fill: #e0e0e2;
}

.comment-rating .ultra-star-wrap.active svg {
    fill: #fbbf24; /* طلایی */
}

/* Review Text */
.review-content {
    font-size: 14px;
    line-height: 2;
    color: #374151;
    margin-bottom: 12px;
}

/* =====================================
   ✍️ Ultra Review Form
===================================== */

.ultra-review-form {
    margin-top: 20px;
}

/* Label */
.ultra-review-form label {
  font-size: 12px;
  font-weight: 300;
  margin-bottom: 8px;
  display: block;
}

/* ⭐ Form Stars */
.ultra-form-stars {
    display: flex;
    gap: 6px;
    margin-bottom: 30px;
    cursor: pointer;
}

.ultra-form-stars .ultra-star-wrap svg {
    width: 22px;
    height: 22px;
    fill: #d1d5db;
    transition: 0.2s;
}

.ultra-form-stars .ultra-star-wrap.active svg,
.ultra-form-stars .ultra-star-wrap:hover svg {
    fill: #fbbf24;
}

.ultra-review-form input,
.ultra-review-form textarea {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 12px;
    background: #fff;
    margin-bottom: 10px;
}

.ultra-review-form textarea {
    min-height: 110px;
    resize: vertical;
}

.ultra-review-form textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}

/* ===============================
   DESKTOP ENHANCEMENT
=============================== */


@media (max-width: 768px) {

    .ultra-review-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Summary Boxes (Average / Count) */
    .ultra-summary-right {
        flex-direction: row;
        gap: 12px;
    }

    .ultra-summary-box {
        flex: 1;
        padding: 12px 8px;
    }

    .ultra-summary-number {
        font-size: 14px;
    }

    /* Rating Rows */
    .ultra-rating-row {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
    }

    .ultra-rating-stars {
        gap: 2px;
    }

    .ultra-rating-stars .ultra-star-wrap svg {
        width: 12px;
        height: 12px;
    }

    .ultra-progress {
        height: 5px;
    }

}

/* ===============================
   ✅ ULTRA PRODUCT GALLERY
=============================== */

.ultra-gallery-main img {
    width: 100%;
    max-height: 330px;
    object-fit: contain;
    cursor: zoom-in;
}

.ultra-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 4px;
}

.ultra-thumb {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 4px;
    background: #fff;
    cursor: pointer;
    flex: 0 0 auto;
}

.ultra-thumb.active {
    border-color: var(--primary);
}

.ultra-thumb img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* ===============================
   ✅ LIGHTBOX
=============================== */

.ultra-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.ultra-lightbox.active {
    display: flex;
}

.ultra-lightbox-img {
    max-width: 90%;
    max-height: 90%;
}


/* ✅ FIX: Lightbox Controls Clickable */
.ultra-lightbox-img {
    pointer-events: none;
}

.ultra-prev,
.ultra-next,
.ultra-close {
    z-index: 10;
}

/* ===============================
   ✅ Ultra Lightbox Controls – Final UI
=============================== */

.ultra-prev,
.ultra-next,
.ultra-close {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #0d6efd; /* primary */
    border: none;
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.45);
    transition: all .2s ease;
}

/* Hover */
.ultra-prev:hover,
.ultra-next:hover,
.ultra-close:hover {
    background: #0b5ed7;
    transform: scale(1.08);
}

/* Positions */
.ultra-close {
    top: 24px;
    right: 24px;
    font-size: 26px;
}

.ultra-prev {
    left: 24px;
}

.ultra-next {
    right: 24px;
}

/* Mobile */
@media (max-width: 768px) {
    .ultra-prev,
    .ultra-next,
    .ultra-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ===============================
   ✅ Product Card – Stable Height
=============================== */

.product-card,
.sheikhi-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image */
.product-thumb {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
   ✅ Card Hover – No CLS
=============================== */

.product-card,
.sheikhi-card {
    transition: box-shadow .25s ease, transform .25s ease;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid #eee;
}

.product-card:hover,
.sheikhi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

/* ===============================
   ✅ Responsive 
=============================== */

/* 1. main.shop-archive becomes layout grid */
main.shop-archive.container {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;

    max-width: 1200px;
    margin-inline: auto;
    box-sizing: border-box;
    align-items: start;
}

/* 2. Prevent content overflow */
.shop-content {
    min-width: 0;
    max-width: 100%;
}

/* 3. Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

/* Desktop products */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* Tablet */
    }
}

/* 4. Responsive sidebar */
@media (max-width: 1200px) {
    main.shop-archive.container {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        order: 2;
        width: 100%;
    }

    .shop-content {
        order: 1;
    }
}

/* 5. Absolute safety guard */
.shop-archive,
.shop-content,
.products-grid {
    overflow-x: clip;
    max-width: 100%;
}

@media (max-width: 992px) {

    .shop-sidebar {
        position: static;
    }

}
/* ===============================
   Ultra Price Filter
=============================== */

.ultra-price-filter .price-fields {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ultra-price-filter input {
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #e5e7eb;
    background: #fff;
    font-family: inherit;
}

.ultra-price-filter input:focus {
    outline: none;
    border-color: var(--primary);
}

.ultra-price-filter .dash {
    font-size: 12px;
    color: var(--muted);
}
/* ===============================
   Ultra Category Filter
=============================== */

.ultra-category-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ultra-check-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    cursor: pointer;
}

.ultra-check-row input {
    accent-color: var(--primary);
}
/* ===============================
   Ultra Rating Filter (FIXED)
=============================== */

.ultra-rating-row input {
    display: none;
}

/* ⭐⭐⭐⭐⭐ container */
.ultra-rating-row .stars {
    display: inline-flex;
    gap: 2px;
}

/* ⭐ default = EMPTY */
.ultra-rating-row .star {
    color: #d1d5db; /* خاکستری */
}

/* ⭐ filled only */
.ultra-rating-row .star.filled {
    color: #fbbf24; /* زرد */
}

/* svg size */
.ultra-rating-row .star svg {
    width: 14px;
    height: 14px;
}

/* hover effect */
.ultra-rating-row:hover .star.filled {
    color: #f59e0b;
}

/* checked state */
.ultra-rating-row input:checked ~ .stars .star {
    color: #d1d5db;
}

.ultra-rating-row input:checked ~ .stars .star.filled {
    color: #fbbf24;
}


/* =================================
   Shop Sidebar – Ultra (FINAL)
================================= */

.shop-sidebar {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid #eee;
}

.shop-sidebar .sidebar-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Widget spacing */
.shop-sidebar .widget,
.shop-sidebar .ultra-filter-box {
    margin-bottom: 18px;
}

.shop-sidebar .filter-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* ===============================
   Mobile Toggle (Blog Style)
=============================== */
@media (max-width: 768px) {

    /* Hidden by default */
    .shop-sidebar {
        display: none;
        animation: fadeDown .25s ease;
    }

    /* Show on toggle */
    .shop-sidebar.active {
        display: block;
        margin: 0;
    }

    .shop-filter-toggle {
        display: block;
        width: 100%;
        padding: 12px;
        font-size: 13px;
        background: var(--surface);
        border: 1px solid #eee;
        border-radius: var(--radius-md);
        cursor: pointer;
        margin-top: 20px;
        margin-bottom: 0;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .shop-filter-toggle {
        display: none;
    }
}

/* Smooth animation */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.products-grid.loading {
    opacity: .5;
    pointer-events: none;
    transition: opacity .2s ease;
}
.filter-reset {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    border-radius: 6px;
}

.meta-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 8px;
  background-color: #fb1c1c;
  display: inline-block;
  margin-left: 7px;
  box-shadow: 0px 5px 5px 0px rgba(230, 14, 14, 0.42);
}

.ultra-rating-filter .rating-text {
  font-size: 12px;
  font-weight: 300;
  color: #6b7280;
  line-height: 1;
}