/* ═══════════════════════════════════════════════════════════════════════
   ZamaniAuto Shop — استایل فروشگاه (extends style.css اصلی سایت)
   ─────────────────────────────────────────────────────────────────
   این فایل فقط شامل استایل‌های اختصاصی فروشگاه است.
   تمام متغیرهای CSS (--navy, --teal, --yellow, ...) از style.css اصلی
   سایت به ارث می‌رسند. هیچ متغیر جدیدی تعریف نشده تا هماهنگی برند حفظ شود.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── فضای بالای صفحه (زیر نوار ناوبری ثابت) ───────────────────── */
.shop-page-wrap {
    padding-top: 76px; /* navbar 64px + 12px */         /* نوار navbar ثابت = 90px + مقداری فاصله */
    padding-bottom: 60px;
    min-height: calc(100vh - 200px);
    direction: rtl;
    background: linear-gradient(180deg, #40E0D0 0%, #5EEAD4 30%, #40E0D0 60%, #2DD4BF 100%);
}
[dir="ltr"] .shop-page-wrap { direction: ltr; }

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    padding: 12px 0 20px;
    color: rgba(10,22,40,0.7);
    font-weight: 600;
}
.shop-breadcrumb a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.4);
}
.shop-breadcrumb a:hover { color: var(--teal); background: rgba(255,255,255,0.7); }
.shop-breadcrumb .sep { color: rgba(10,22,40,0.35); font-weight: 700; }
.shop-breadcrumb .current { color: var(--teal); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════════
   صفحه لیست محصولات (shop.php)
   ═══════════════════════════════════════════════════════════════════════ */

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

/* ── سایدبار فیلترها ───────────────────────────────────────────── */
.shop-filters {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 4px 24px rgba(10,22,40,0.08);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.shop-filters h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(13,115,119,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}
.shop-filters h3::before { content: '🔍'; font-size: 1rem; }
.filter-group { margin-bottom: 18px; }
.filter-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.filter-group-title::after {
    content: '▾';
    color: var(--teal);
    transition: transform 0.2s;
}
.filter-group.collapsed .filter-group-title::after { transform: rotate(-90deg); }
.filter-group.collapsed .filter-group-body { display: none; }
.filter-group-body { display: flex; flex-direction: column; gap: 6px; }

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #1E293B;
    cursor: pointer;
    transition: background 0.15s;
    font-weight: 600;
}
.filter-check:hover { background: rgba(13,115,119,0.06); }
.filter-check input[type="checkbox"] {
    accent-color: var(--teal);
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.filter-check .count {
    margin-inline-start: auto;
    font-size: 0.72rem;
    color: #64748B;
    background: rgba(148,163,184,0.15);
    padding: 1px 8px;
    border-radius: 50px;
}

/* Price range slider */
.price-range { padding: 8px 4px; }
.price-range input[type="number"] {
    width: 100%;
    padding: 6px 10px;
    border: 1.5px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.82rem;
    background: var(--off-white);
    text-align: center;
    margin-bottom: 6px;
}
.price-range input:focus { outline: none; border-color: var(--teal); }
.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748B;
    margin-top: 4px;
}

.btn-apply-filters {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-apply-filters:hover { background: var(--teal-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,115,119,0.3); }
.btn-clear-filters {
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    background: transparent;
    color: #64748B;
    border: 1px solid rgba(100,116,139,0.25);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-clear-filters:hover { border-color: var(--teal); color: var(--teal); }

/* ── نوار مرتب‌سازی و توضیح نتایج ──────────────────────────────── */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.shop-toolbar-info {
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 700;
}
.shop-toolbar-info b { color: var(--teal); }
.shop-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.shop-sort label {
    font-size: 0.82rem;
    color: var(--navy);
    font-weight: 600;
}
.shop-sort select {
    padding: 8px 32px 8px 14px;
    border: 1.5px solid var(--light-gray);
    border-radius: 50px;
    background: var(--white);
    font-family: inherit;
    font-size: 0.82rem;
    color: var(--navy);
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%230D7377' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}
.shop-sort select:focus { outline: none; border-color: var(--teal); }

/* ── گرید محصولات ──────────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    direction: rtl;
}
[dir="ltr"] .products-grid { direction: ltr; }

/* ── کارت محصول (مطابق service-card سایت) ─────────────────────── */
.product-card {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        0 4px 24px rgba(10,22,40,0.08),
        0 0 0 1px rgba(255,255,255,0.5),
        inset 0 1px 0 rgba(255,255,255,0.4);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
}
/* نوار teal گوشه (همان الگوی service-card) */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 48px;
    background: linear-gradient(180deg, var(--teal), var(--turquoise-dark));
    border-radius: 0 0 0 8px;
    transition: height 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 2;
}
.product-card:hover::after { height: 100%; border-radius: 0 0 0 16px; }
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(10,22,40,0.14), 0 0 0 1px rgba(13,115,119,0.2), 0 0 0 6px rgba(13,115,119,0.04);
    border-color: rgba(13,115,119,0.3);
    background: rgba(255,255,255,0.85);
}

.product-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #F0F4F8, #E2E8F0);
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1);
}
.product-card:hover .product-card-image img { transform: scale(1.06); }

/* Badges (تخفیف / موجودی / پیشنهاد ویژه) */
.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.p-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.p-badge-sale     { background: linear-gradient(135deg, #EF4444, #DC2626); color: #fff; box-shadow: 0 3px 12px rgba(239,68,68,0.35); }
.p-badge-hot      { background: linear-gradient(135deg, var(--yellow), var(--yellow-light)); color: var(--navy); box-shadow: 0 3px 12px rgba(230,194,0,0.35); }
.p-badge-new      { background: var(--teal); color: #fff; }
.p-badge-out      { background: rgba(148,163,184,0.9); color: #fff; }

/* دکمه wishlist در گوشه */
.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.wishlist-btn:hover { color: #EF4444; transform: scale(1.1); background: #fff; }
.wishlist-btn.active { color: #EF4444; background: rgba(239,68,68,0.1); }

.product-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    text-align: right;
    direction: rtl;
}
[dir="ltr"] .product-card-body { text-align: left; direction: ltr; }
.product-card-brand {
    font-size: 0.72rem;
    color: var(--teal);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.product-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.6;
    margin: 0;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
    transition: color 0.2s;
}
.product-card-title:hover { color: var(--teal); }

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #64748B;
    font-weight: 600;
}
.rating-stars { color: var(--yellow); font-size: 0.85rem; letter-spacing: 1px; }
.rating-count { color: #64748B; font-size: 0.72rem; }

.product-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}
.price-current {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
}
.price-old {
    font-size: 0.85rem;
    color: #94A3B8;
    text-decoration: line-through;
    font-weight: 600;
}
.price-unit { font-size: 0.72rem; color: #64748B; font-weight: 600; }

.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.btn-add-cart {
    flex: 1;
    padding: 10px 14px;
    background: var(--yellow);
    color: var(--navy);
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}
.btn-add-cart:hover:not(:disabled) { background: var(--yellow-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,194,0,0.4); }
.btn-add-cart:disabled { background: #E2E8F0; color: #94A3B8; cursor: not-allowed; }
.btn-quick-view {
    width: 42px;
    padding: 10px;
    background: transparent;
    color: var(--teal);
    border: 1.5px solid rgba(13,115,119,0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
}
.btn-quick-view:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Skeleton loader هنگام بارگذاری */
.product-card.skeleton {
    pointer-events: none;
}
.product-card.skeleton .product-card-image,
.product-card.skeleton .product-card-title,
.product-card.skeleton .price-current {
    background: linear-gradient(90deg, rgba(226,232,240,0.5) 0%, rgba(226,232,240,0.9) 50%, rgba(226,232,240,0.5) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
    color: transparent;
    border-radius: 8px;
}
@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── صفحه‌بندی ─────────────────────────────────────────────────── */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    direction: ltr;
}
.shop-pagination a,
.shop-pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}
.shop-pagination a:hover { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateY(-2px); }
.shop-pagination .active {
    background: var(--yellow);
    color: var(--navy);
    border-color: var(--yellow);
    box-shadow: 0 4px 14px rgba(230,194,0,0.3);
}
.shop-pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════════════
   صفحه جزئیات محصول (product.php)
   ═══════════════════════════════════════════════════════════════════════ */

.product-page {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(10,22,40,0.1);
    padding: 28px;
    margin-bottom: 24px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    direction: rtl;
}
[dir="ltr"] .product-detail { direction: ltr; }

/* گالری تصاویر */
.product-gallery { position: relative; }
.gallery-main {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #F0F4F8, #E2E8F0);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    border: 1px solid rgba(13,115,119,0.1);
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.gallery-main.zoomed img { transform: scale(1.8); cursor: zoom-out; }

/* دکمه‌های قبلی/بعدی گالری */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(13,115,119,0.15);
    color: var(--navy);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(10,22,40,0.1);
}
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-nav-prev { right: 12px; }
.gallery-nav-next { left: 12px; }
[dir="ltr"] .gallery-nav-prev { right: auto; left: 12px; }
[dir="ltr"] .gallery-nav-next { left: auto; right: 12px; }

/* بندانگشتی ویدیو */
.gallery-thumb { position: relative; }
.gallery-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gallery-thumb-video-wrap { background: #0A1628; }
.gallery-thumb-video {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #0A1628; color: #fff; font-size: 1.2rem;
}
.gallery-thumb-badge {
    position: absolute;
    top: 2px; right: 2px;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    pointer-events: none;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
}
.gallery-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #F0F4F8;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: rgba(13,115,119,0.4); }
.gallery-thumb.active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,115,119,0.15); }

/* اطلاعات محصول */
.product-info h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
    margin: 0 0 8px;
}
.product-info-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: #475569;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(226,232,240,0.8);
}
.product-info-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.product-info-meta .meta-item b { color: var(--teal); font-weight: 700; }

.product-short-desc {
    color: #1E293B;
    font-size: 0.9rem;
    line-height: 1.85;
    margin-bottom: 18px;
    font-weight: 500;
    background: rgba(13,115,119,0.06);
    border-right: 3px solid var(--teal);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
}
[dir="ltr"] .product-short-desc { border-right: none; border-left: 3px solid var(--teal); border-radius: 8px 0 0 8px; }

.product-price-box {
    background: linear-gradient(135deg, rgba(230,194,0,0.08), rgba(13,115,119,0.05));
    border: 1px solid rgba(230,194,0,0.2);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.price-box-label {
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 6px;
}
.price-box-value {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.price-box-value .price-current { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.price-box-value .price-old { font-size: 1rem; }
.price-box-value .price-discount {
    background: #EF4444;
    color: #fff;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.stock-in     { background: rgba(34,197,94,0.12); color: #16A34A; border: 1px solid rgba(34,197,94,0.25); }
.stock-low    { background: rgba(230,194,0,0.15); color: #B89700;  border: 1px solid rgba(230,194,0,0.3); }
.stock-out    { background: rgba(239,68,68,0.1); color: #DC2626;  border: 1px solid rgba(239,68,68,0.25); }
.stock-indicator .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: currentColor;
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Qty selector + Add to cart */
.product-buy-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 16px;
}
.qty-selector {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--light-gray);
    border-radius: 50px;
    overflow: hidden;
}
.qty-selector button {
    width: 42px; height: 100%;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--teal);
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}
.qty-selector button:hover:not(:disabled) { background: rgba(13,115,119,0.08); }
.qty-selector button:disabled { color: #CBD5E1; cursor: not-allowed; }
.qty-selector input {
    width: 44px;
    height: 44px;
    border: none;
    text-align: center;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    background: transparent;
    -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-add-cart-large {
    flex: 1;
    padding: 14px 24px;
    background: var(--yellow);
    color: var(--navy);
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(230,194,0,0.3);
}
.btn-add-cart-large::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 54px;
    border: 2px solid rgba(230,194,0,0.35);
    animation: ctaPulseRing 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}
.btn-add-cart-large:hover:not(:disabled) { background: var(--yellow-light); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(230,194,0,0.4); }
.btn-add-cart-large:disabled { background: #E2E8F0; color: #94A3B8; cursor: not-allowed; box-shadow: none; }

.btn-wishlist-large {
    padding: 14px 18px;
    background: transparent;
    color: #EF4444;
    border: 1.5px solid rgba(239,68,68,0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-wishlist-large:hover { background: rgba(239,68,68,0.08); border-color: #EF4444; }
.btn-wishlist-large.active { background: #EF4444; color: #fff; border-color: #EF4444; }

/* ── برچسب‌های روی تصویر گالری (تخفیف / ناموجود / کم‌بود) ────── */
.gallery-main { isolation: isolate; }
.gallery-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(10,22,40,0.2);
    letter-spacing: 0.3px;
}
[dir="ltr"] .gallery-badge { right: auto; left: 14px; }
.gallery-badge-discount {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    animation: badgePulse 2s ease-in-out infinite;
}
.gallery-badge-soldout {
    background: linear-gradient(135deg, #64748B, #475569);
}
.gallery-badge-lowstock {
    background: linear-gradient(135deg, #E6C200, #F59E0B);
    color: #0A1628;
}
@keyframes badgePulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* ── دکمه خرید فوری ─────────────────────────────────────────── */
.btn-buy-now {
    width: 100%;
    margin-top: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(13,115,119,0.3);
}
.btn-buy-now:hover { background: linear-gradient(135deg, #14A3A8, #0D7377); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(13,115,119,0.4); }
.btn-buy-now:active { transform: translateY(-1px); }

/* ── جعبه مشاوره فنی ────────────────────────────────────────── */
.product-tech-consult {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(230,194,0,0.12), rgba(251,191,36,0.08));
    border: 1px solid rgba(230,194,0,0.3);
    border-radius: 14px;
}
.tech-consult-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(230,194,0,0.2);
    border-radius: 12px;
}
.tech-consult-body { flex: 1; }
.tech-consult-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0A1628;
    margin: 0 0 4px;
    line-height: 1.5;
}
.tech-consult-sub {
    font-size: 0.8rem;
    color: #8a7c1f;
    margin: 0 0 10px;
}
.tech-consult-phone {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--teal);
    text-decoration: none;
    direction: ltr;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.tech-consult-phone:hover { text-decoration: underline; }
.tech-consult-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--yellow);
    color: var(--navy);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}
.tech-consult-btn:hover { background: var(--yellow-light); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(230,194,0,0.35); }

/* trust icons row زیر دکمه‌ها */
.buy-trust-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(13,115,119,0.15);
}
.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(13,115,119,0.06);
    color: var(--teal);
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid rgba(13,115,119,0.12);
}
.trust-chip .icon { font-size: 0.95rem; }

/* اشتراک‌گذاری */
.product-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.82rem;
    color: #64748B;
    font-weight: 600;
}
.product-share a {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13,115,119,0.08);
    color: var(--teal);
    transition: all 0.2s;
    text-decoration: none;
}
.product-share a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }

/* ── تب‌های اطلاعات (توضیحات، مشخصات، نظرات) ─────────────────── */
.product-tabs {
    margin-top: 32px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    overflow: hidden;
}
.product-tabs-nav {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: rgba(13,115,119,0.06);
    border-bottom: 1px solid rgba(13,115,119,0.1);
    overflow-x: auto;
}
.product-tabs-nav button {
    padding: 10px 20px;
    background: transparent;
    color: #64748B;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}
.product-tabs-nav button:hover { color: var(--navy); background: rgba(255,255,255,0.5); }
.product-tabs-nav button.active {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 2px 10px rgba(10,22,40,0.08);
}
.product-tabs-body { padding: 24px; direction: rtl; }
[dir="ltr"] .product-tabs-body { direction: ltr; }
.product-tab-panel { display: none; animation: tabFadeIn 0.3s ease-out; }
.product-tab-panel.active { display: block; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.product-tab-panel h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── ویدیوهای محصول ─────────────────────────────────────────── */
.product-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 640px) {
    .product-videos-grid { grid-template-columns: 1fr; }
}
.product-video-item {
    background: #0A1628;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(13,115,119,0.15);
}
.product-video-item video {
    width: 100%;
    display: block;
    background: #000;
    max-height: 360px;
}
.product-video-item .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.product-video-item .video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.product-video-label {
    padding: 10px 14px;
    color: #E2E8F0;
    font-size: 0.82rem;
    font-weight: 700;
    background: #0D1F3C;
}
.product-tab-panel p, .product-tab-panel li {
    color: #1E293B;
    font-size: 0.9rem;
    line-height: 1.9;
    font-weight: 500;
}

/* ── جدول مشخصات فنی ──────────────────────────────────────────── */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(10,22,40,0.06);
}
.specs-table tr { border-bottom: 1px solid #F1F5F9; }
.specs-table tr:last-child { border-bottom: none; }
.specs-table tr:nth-child(even) { background: #F8FAFC; }
.specs-table th, .specs-table td {
    padding: 12px 18px;
    text-align: right;
    font-size: 0.87rem;
}
[dir="ltr"] .specs-table th, [dir="ltr"] .specs-table td { text-align: left; }
.specs-table th {
    width: 200px;
    color: #64748B;
    font-weight: 700;
    background: rgba(13,115,119,0.05);
}
.specs-table td { color: var(--navy); font-weight: 600; }
.specs-group-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light)) ;
    color: #fff ;
    font-weight: 800 ;
    text-align: right ;
    padding: 10px 18px ;
    font-size: 0.85rem ;
    letter-spacing: 0.3px;
}

/* ── امتیاز و نظرات ───────────────────────────────────────────── */
.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(226,232,240,0.7);
    align-items: center;
}
.reviews-avg {
    text-align: center;
    padding: 16px;
    background: rgba(230,194,0,0.08);
    border: 1px solid rgba(230,194,0,0.2);
    border-radius: 12px;
}
.reviews-avg .big-score {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}
.reviews-avg .big-stars {
    color: var(--yellow);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin: 4px 0;
}
.reviews-avg .total { font-size: 0.78rem; color: #64748B; font-weight: 600; }

.review-bar {
    display: grid;
    grid-template-columns: 30px 1fr 40px;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
}
.review-bar-track {
    height: 8px;
    background: #F1F5F9;
    border-radius: 50px;
    overflow: hidden;
}
.review-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--yellow-light));
    border-radius: 50px;
    transition: width 0.6s ease;
}

.review-item {
    padding: 16px;
    border: 1px solid rgba(226,232,240,0.7);
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.5);
}
.review-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.review-author { font-weight: 700; color: var(--navy); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.review-author .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--turquoise)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.review-date { color: #64748B; font-size: 0.75rem; font-weight: 600; }
.review-stars { color: var(--yellow); letter-spacing: 1px; font-size: 0.85rem; }
.review-body { color: #1E293B; font-size: 0.87rem; line-height: 1.85; font-weight: 500; }

.review-form {
    margin-top: 20px;
    padding: 20px;
    background: rgba(13,115,119,0.05);
    border: 1px solid rgba(13,115,119,0.15);
    border-radius: 12px;
}
.review-form h4 { margin-bottom: 14px; color: var(--navy); font-weight: 800; font-size: 1rem; }
.rating-input { display: flex; gap: 4px; direction: ltr; margin-bottom: 12px; }
.rating-input input { display: none; }
.rating-input label {
    font-size: 1.8rem;
    color: #E2E8F0;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--yellow); }
.rating-input label:hover { transform: scale(1.15); }

/* ── محصولات مرتبط ────────────────────────────────────────────── */
.related-products {
    margin-top: 32px;
}
.related-products h2 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════
   سبد خرید (cart.php)
   ═══════════════════════════════════════════════════════════════════════ */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.cart-items {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(10,22,40,0.1);
    overflow: hidden;
}
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid rgba(226,232,240,0.5);
    align-items: center;
    direction: rtl;
    transition: background 0.2s;
}
[dir="ltr"] .cart-item { direction: ltr; }
.cart-item:hover { background: rgba(13,115,119,0.03); }
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
    width: 100px; height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #F0F4F8;
    flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
    line-height: 1.5;
}
.cart-item-info h3 a { color: inherit; text-decoration: none; }
.cart-item-info h3 a:hover { color: var(--teal); }
.cart-item-brand { font-size: 0.75rem; color: var(--teal); font-weight: 700; margin-bottom: 6px; }
.cart-item-price { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.cart-item-old-price { font-size: 0.75rem; color: #94A3B8; text-decoration: line-through; margin-inline-start: 6px; font-weight: 500; }

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: end;
}
.cart-item-total {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    white-space: nowrap;
}
.btn-remove {
    background: transparent;
    border: 1px solid rgba(239,68,68,0.25);
    color: #EF4444;
    padding: 4px 10px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-remove:hover { background: #EF4444; color: #fff; }

/* Empty state */
.cart-empty {
    padding: 60px 24px;
    text-align: center;
}
.cart-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13,115,119,0.08), rgba(230,194,0,0.05));
    border-radius: 50%;
    font-size: 3.5rem;
    color: var(--teal);
}
.cart-empty h3 { color: var(--navy); font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.cart-empty p { color: #64748B; font-size: 0.9rem; margin-bottom: 20px; font-weight: 500; }

/* Order summary */
.cart-summary {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(10,22,40,0.1);
    position: sticky;
    top: 100px;
}
.cart-summary h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px dashed rgba(13,115,119,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-summary h3::before { content: '📋'; font-size: 1.1rem; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.87rem;
    color: #475569;
    font-weight: 600;
}
.summary-row.discount { color: #16A34A; }
.summary-row.total {
    font-size: 1.05rem;
    color: var(--navy);
    font-weight: 800;
    padding: 14px 0 0;
    margin-top: 6px;
    border-top: 2px solid rgba(13,115,119,0.15);
}
.summary-row .val { direction: ltr; font-family: inherit; }

.coupon-box {
    margin: 16px 0;
    padding: 12px;
    background: rgba(230,194,0,0.06);
    border: 1px dashed rgba(230,194,0,0.3);
    border-radius: 10px;
}
.coupon-box label { display: block; font-size: 0.78rem; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.coupon-input-row { display: flex; gap: 6px; }
.coupon-input-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--light-gray);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.82rem;
    background: #fff;
    direction: ltr;
    text-align: center;
}
.coupon-input-row input:focus { outline: none; border-color: var(--teal); }
.coupon-input-row button {
    padding: 8px 16px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.coupon-input-row button:hover { background: var(--teal-light); }
.coupon-message { font-size: 0.75rem; margin-top: 6px; font-weight: 600; }
.coupon-message.ok { color: #16A34A; }
.coupon-message.err { color: #DC2626; }

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: var(--yellow);
    color: var(--navy);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(230,194,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.btn-checkout:hover { background: var(--yellow-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(230,194,0,0.4); }
.btn-checkout:disabled { background: #E2E8F0; color: #94A3B8; cursor: not-allowed; box-shadow: none; }

.ssl-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.72rem;
    color: #16A34A;
    font-weight: 700;
    padding: 8px;
    background: rgba(34,197,94,0.06);
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Checkout (checkout.php)
   ═══════════════════════════════════════════════════════════════════════ */

.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

.checkout-form-box {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(10,22,40,0.1);
}
.checkout-form-box h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-form-box h3 .step-num {
    display: inline-flex;
    width: 28px;
    height: 28px;
    background: var(--yellow);
    color: var(--navy);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
    font-size: 0.8rem;
    color: var(--navy);
    font-weight: 700;
}
.form-field input, .form-field select, .form-field textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--light-gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.87rem;
    background: #fff;
    color: var(--navy);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13,115,119,0.1);
}
.form-field.error input, .form-field.error select { border-color: #EF4444; }
.form-field .err-msg { font-size: 0.72rem; color: #DC2626; font-weight: 600; display: none; }
.form-field.error .err-msg { display: block; }

/* روش ارسال */
.ship-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ship-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F8FAFC;
    border: 1.5px solid var(--light-gray);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.ship-method:hover { border-color: rgba(13,115,119,0.3); background: rgba(13,115,119,0.03); }
.ship-method input[type="radio"] { accent-color: var(--teal); width: 18px; height: 18px; }
.ship-method:has(input:checked) { border-color: var(--teal); background: rgba(13,115,119,0.06); box-shadow: 0 4px 14px rgba(13,115,119,0.1); }
.ship-method-info { flex: 1; }
.ship-method-name { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.ship-method-desc { font-size: 0.75rem; color: #64748B; margin-top: 2px; }
.ship-method-cost { font-weight: 800; color: var(--teal); font-size: 0.9rem; white-space: nowrap; }

/* درگاه پرداخت */
.payment-methods { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.payment-method {
    flex: 1;
    min-width: 140px;
    padding: 14px;
    background: #F8FAFC;
    border: 1.5px solid var(--light-gray);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.payment-method:hover { border-color: rgba(13,115,119,0.3); }
.payment-method:has(input:checked) { border-color: var(--teal); background: rgba(13,115,119,0.06); }
.payment-method input[type="radio"] { display: none; }
.payment-method-logo { font-size: 1.6rem; }
.payment-method-name { font-weight: 700; color: var(--navy); font-size: 0.82rem; }
.payment-method-desc { font-size: 0.7rem; color: #64748B; }

/* ═══════════════════════════════════════════════════════════════════════
   Order success (order-success.php)
   ═══════════════════════════════════════════════════════════════════════ */
.order-success-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(10,22,40,0.12);
}
.success-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    box-shadow: 0 8px 28px rgba(34,197,94,0.35);
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.order-success-card h1 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.order-success-card p { color: #475569; font-size: 0.9rem; margin-bottom: 20px; line-height: 1.8; }
.order-number-box {
    background: rgba(13,115,119,0.06);
    border: 1px dashed rgba(13,115,119,0.3);
    border-radius: 12px;
    padding: 14px;
    margin: 20px 0;
    font-family: inherit;
}
.order-number-box .label { font-size: 0.78rem; color: #64748B; font-weight: 600; }
.order-number-box .num { font-size: 1.2rem; font-weight: 800; color: var(--navy); direction: ltr; letter-spacing: 1px; margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════════════
   Account (account.php) — تب‌های حساب کاربری
   ═══════════════════════════════════════════════════════════════════════ */
.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}
.account-sidebar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 100px;
}
.account-user-box {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed rgba(13,115,119,0.15);
}
.account-avatar {
    width: 64px; height: 64px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, var(--teal), var(--turquoise));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(13,115,119,0.25);
}
.account-user-name { font-weight: 800; color: var(--navy); font-size: 0.95rem; }
.account-user-mobile { font-size: 0.78rem; color: #64748B; direction: ltr; margin-top: 2px; }

.account-tabs { display: flex; flex-direction: column; gap: 4px; }
.account-tab {
    padding: 10px 14px;
    background: transparent;
    color: #475569;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.87rem;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
[dir="ltr"] .account-tab { text-align: left; }
.account-tab:hover { background: rgba(13,115,119,0.06); color: var(--navy); }
.account-tab.active { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(13,115,119,0.25); }
.account-tab .icon { font-size: 1rem; }
.account-tab.logout { color: #EF4444; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(226,232,240,0.5); }
.account-tab.logout:hover { background: rgba(239,68,68,0.08); }

.account-panel {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 16px;
    padding: 24px;
    min-height: 400px;
}
.account-panel h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(13,115,119,0.1);
}

/* لیست سفارش‌ها */
.order-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.2s;
}
.order-row:hover { background: #fff; border-color: rgba(13,115,119,0.2); box-shadow: 0 4px 14px rgba(10,22,40,0.06); }
.order-row-info .num { font-weight: 800; color: var(--navy); font-size: 0.9rem; direction: ltr; }
.order-row-info .date { font-size: 0.75rem; color: #64748B; margin-top: 2px; font-weight: 600; }
.order-row-total { font-weight: 800; color: var(--navy); font-size: 0.95rem; white-space: nowrap; }
.order-status-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.order-status-badge.pending    { background: rgba(230,194,0,0.15); color: #B89700; }
.order-status-badge.paid       { background: rgba(13,115,119,0.12); color: var(--teal); }
.order-status-badge.processing { background: rgba(59,130,246,0.12); color: #3B82F6; }
.order-status-badge.shipped    { background: rgba(139,92,246,0.12); color: #7C3AED; }
.order-status-badge.delivered  { background: rgba(34,197,94,0.12); color: #16A34A; }
.order-status-badge.cancelled  { background: rgba(239,68,68,0.1); color: #DC2626; }

/* ═══════════════════════════════════════════════════════════════════════
   Toast notification
   ═══════════════════════════════════════════════════════════════════════ */
.shop-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--navy);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(10,22,40,0.35);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
}
.shop-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.shop-toast.success { background: #16A34A; }
.shop-toast.error { background: #DC2626; }
.shop-toast .icon { font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════════════════════════
   نشان اعتماد اینماد در فوتر فروشگاه (append در footer.php)
   ═══════════════════════════════════════════════════════════════════════ */
.enamad-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 20px auto 8px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: 1100px;
}
.enamad-item {
    width: 84px;
    height: 84px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s;
}
.enamad-item:hover { transform: translateY(-3px); }
.enamad-item img { max-width: 100%; max-height: 100%; }

/* ═══════════════════════════════════════════════════════════════════════
   Responsive breakpoints
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Off-canvas filter overlay (mobile) ───────────────────────── */
.shop-filters-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
}
.shop-filters-overlay.open { display: block; }

@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-layout { grid-template-columns: 220px 1fr; }
    .cart-layout, .checkout-layout, .account-layout { grid-template-columns: 1fr; }
    .cart-summary, .account-sidebar, .shop-filters { position: static; }
}

@media (max-width: 768px) {
    .shop-page-wrap { padding-top: 80px; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-filters {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 300px;
        max-width: 85vw;
        max-height: 100vh;
        z-index: 9999;
        border-radius: 0;
        transform: translateX(100%);
        transition: transform 0.35s ease;
    }
    .shop-filters.open { transform: translateX(0); }
    [dir="ltr"] .shop-filters { right: auto; left: 0; transform: translateX(-100%); }
    [dir="ltr"] .shop-filters.open { transform: translateX(0); }
    .btn-open-filters {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        background: var(--teal);
        color: #fff;
        border: none;
        border-radius: 50px;
        font-family: inherit;
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
    }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-detail { grid-template-columns: 1fr; }
    .product-info h1 { font-size: 1.2rem; }
    .form-grid { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 80px 1fr; }
    .cart-item-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
    .reviews-summary { grid-template-columns: 1fr; }
    .order-row { grid-template-columns: 1fr; text-align: right; }
}

@media (max-width: 480px) {
    .shop-container { padding: 0 12px; }
    .products-grid { grid-template-columns: 1fr; }
    .btn-open-filters { width: 100%; justify-content: center; }
    .product-card-title { font-size: 0.9rem; }
    .price-current { font-size: 1rem; }
    .product-tabs-nav button { padding: 8px 14px; font-size: 0.8rem; }
    .specs-table th { width: 130px; padding: 10px 12px; font-size: 0.78rem; }
    .specs-table td { padding: 10px 12px; font-size: 0.8rem; }
    .product-buy-row { flex-wrap: wrap; }
    .btn-add-cart-large { flex: 1 1 100%; order: 2; }
    .product-tech-consult { flex-direction: column; gap: 10px; }
    .tech-consult-btn { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════════════════
   Shop Trust Footer — اینماد، لینک‌ها، تماس، پرداخت
   ═══════════════════════════════════════════════════════════════════════ */
.shop-trust-footer {
    background: linear-gradient(180deg, rgba(10,22,40,0.03), rgba(10,22,40,0.08));
    border-top: 1px solid rgba(13,115,119,0.12);
    padding: 40px 0 20px;
    margin-top: 40px;
    direction: rtl;
}
[dir="ltr"] .shop-trust-footer { direction: ltr; }
.shop-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.shop-trust-col h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(13,115,119,0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}
/* اینماد placeholder */
.shop-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shop-enamad {
    display: block;
    text-decoration: none;
    transition: transform 0.25s;
}
.shop-enamad:hover { transform: translateY(-3px); }
.shop-enamad-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(13,115,119,0.08), rgba(230,194,0,0.06));
    border: 2px dashed rgba(13,115,119,0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s;
}
.shop-enamad-placeholder:hover {
    border-color: var(--teal);
    background: rgba(13,115,119,0.12);
}
.shop-enamad-star {
    font-size: 1.6rem;
    color: var(--teal);
}
.shop-enamad-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--navy);
}
.shop-trust-ssl {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #16A34A;
}
.shop-trust-ssl-icon { font-size: 1.1rem; }

/* لینک‌های قانونی */
.shop-trust-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shop-trust-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.shop-trust-links a:hover { color: var(--teal); }

/* اطلاعات تماس */
.shop-trust-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.shop-contact-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.82rem;
}
.shop-contact-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.shop-contact-item strong {
    display: block;
    font-size: 0.72rem;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 2px;
}
.shop-contact-item a, .shop-contact-item span {
    color: #1E293B;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
}
.shop-contact-item a:hover { color: var(--teal); }

/* پرداخت امن */
.shop-payment-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shop-payment-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(13,115,119,0.06);
    border: 1px solid rgba(13,115,119,0.12);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
}
.payment-logo { font-size: 1.2rem; }
.shop-payment-note {
    font-size: 0.72rem;
    color: #64748B;
    font-weight: 600;
    line-height: 1.7;
    margin: 0;
}

/* ── Responsive shop-trust-footer ── */
@media (max-width: 1024px) {
    .shop-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .shop-trust-grid { grid-template-columns: 1fr; }
    .shop-trust-footer { padding: 28px 0 16px; }
    .shop-enamad-placeholder { width: 80px; height: 80px; }
}

/* ── Skeleton image loading ───────────────────────────────────── */
.product-card-image.skeleton-img {
    position: relative;
}
.product-card-image.skeleton-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(226,232,240,0.4) 0%, rgba(226,232,240,0.8) 50%, rgba(226,232,240,0.4) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
    z-index: 1;
    border-radius: inherit;
}
.product-card-image.skeleton-img-error::before {
    content: '🖼';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #F0F4F8, #E2E8F0);
    animation: none;
}
