/* ============================================
   RAYKA Public Site - Design System
   ============================================ */

:root {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FFF7ED;
    --success: #10B981;
    --danger: #DC2626;
    --warning: #FBBF24;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --font: 'Vazirmatn', -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}


*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.public-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-900);
    font-weight: 700;
}

.header-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-text {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.header-nav .nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.header-nav a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
}

.header-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
}

.cart-count {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 20px;
    height: 20px;
    background: var(--danger);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

/* ---------- Page Hero ---------- */
.page-hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    text-align: center;
}

.page-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.page-hero-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
}

/* ---------- Products Section ---------- */
.products-section {
    padding: 3rem 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.filter-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.category-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.category-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.category-count {
    font-size: 0.75rem;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 100px;
}

/* ---------- Products Grid ---------- */
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.products-count {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    background: var(--white);
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.products-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ---------- Product Card ---------- */
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-card-link {
    display: block;
    color: inherit;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-100);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 3rem;
}

.discount-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--danger);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--warning);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-body {
    padding: 1rem;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-old {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.price-new {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.price-currency {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-nav {
    padding: 1rem 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-right: 0.5rem;
    color: var(--gray-300);
}

.breadcrumb a {
    color: var(--gray-600);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .active {
    color: var(--gray-900);
    font-weight: 500;
}

/* ---------- Product Detail ---------- */
.product-detail {
    padding: 3rem 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* ---------- Gallery ---------- */
.gallery-main {
    aspect-ratio: 1;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    gap: 1rem;
}

.gallery-placeholder i {
    font-size: 4rem;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.gallery-thumb {
    aspect-ratio: 1;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: var(--transition);
}

.gallery-thumb:hover {
    border-color: var(--primary);
}

.gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Product Info ---------- */
.product-category-link {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-short-description {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ---------- Price Box ---------- */
.product-price-box {
    background: linear-gradient(135deg, var(--primary-light), var(--white));
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.price-display .price-old {
    font-size: 1.125rem;
}

.price-display .price-new {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.discount-percent {
    background: var(--danger);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.stock-status.in-stock {
    color: var(--success);
}

.stock-status.out-of-stock {
    color: var(--danger);
}

/* ---------- Pricing Calculator ---------- */
.pricing-calculator {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.calculator-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculator-title i {
    color: var(--primary);
}

.pricing-option {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-option:last-child {
    border-bottom: none;
}

.option-label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.option-label .required {
    color: var(--danger);
}

.option-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.factor-input-group {
    margin-bottom: 1rem;
}

.factor-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.factor-select,
.factor-number,
.factor-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    background: var(--white);
    transition: var(--transition);
}

.factor-select:focus,
.factor-number:focus,
.factor-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label,
.checkbox-label-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.radio-label:hover,
.checkbox-label-custom:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.radio-label input:checked + .radio-custom + .radio-text,
.checkbox-label-custom input:checked + .checkbox-custom + .checkbox-text {
    color: var(--primary);
    font-weight: 600;
}

.radio-text small,
.checkbox-text small {
    color: var(--success);
    font-weight: 500;
    margin-right: 0.25rem;
}

.number-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-unit {
    position: absolute;
    left: 0.875rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    pointer-events: none;
}

.number-input-group input {
    padding-left: 4rem;
}

/* ---------- Price Breakdown ---------- */
.price-breakdown {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.price-breakdown h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

/* ---------- Product Actions ---------- */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 48px;
    background: var(--gray-50);
    border: none;
    cursor: pointer;
    color: var(--gray-700);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.qty-input {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
}

.btn-add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-to-cart:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-add-to-cart:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

/* ---------- Product Meta ---------- */
.product-meta {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.product-meta h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.meta-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.meta-list li {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.meta-label {
    color: var(--gray-500);
    font-weight: 500;
}

.meta-value {
    color: var(--gray-900);
}

/* ---------- Description Section ---------- */
.product-description-section {
    padding: 3rem 0;
    border-top: 1px solid var(--gray-200);
}

.product-description-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.description-content {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 1rem;
}

/* ---------- Related Products ---------- */
.related-products {
    padding: 3rem 0;
    border-top: 1px solid var(--gray-200);
}

.related-products h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */
.public-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    color: var(--gray-300);
    font-size: 0.875rem;
}

.footer-col a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
}

/* ---------- Empty State ---------- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-actions .btn span {
        display: none;
    }

    .page-hero-title {
        font-size: 1.5rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .price-display .price-new {
        font-size: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .meta-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════
   OPTION IMAGE TAGS - نمایش تصاویر آپلود شده
   ═══════════════════════════════════════════════════════════ */
.item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.75rem;
    align-items: flex-start;
}

/* ═══════════════════════════════════════════════════════════
   OPTION TAG - تگ متنی با لیبل و مقدار
   ═══════════════════════════════════════════════════════════ */
.option-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.8125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.option-tag::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #F97316, #DC2626);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-tag:hover {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-color: #FED7AA;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.option-tag:hover::before {
    opacity: 1;
}

.option-tag-label {
    color: #6B7280;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
}

.option-tag-value {
    color: #111827;
    font-weight: 600;
    font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════════════════════
   OPTION IMAGE TAG - کارت تصویر آپلود شده
   ═══════════════════════════════════════════════════════════ */
.option-image-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.option-image-tag::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #10B981, #059669);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-image-tag:hover {
    border-color: #F97316;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
}

.option-image-tag:hover::before {
    opacity: 1;
}

/* Wrapper تصویر */
.option-image-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #F3F4F6;
}

.option-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-image-tag:hover .option-image-wrapper img {
    transform: scale(1.1);
}

/* Overlay ذره‌بین */
.option-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.option-image-tag:hover .option-image-overlay {
    opacity: 1;
}

/* برچسب زیر تصویر */
.option-image-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    color: #C2410C;
    border: 1px solid #FED7AA;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
}

.option-image-label i {
    font-size: 0.625rem;
    color: #F97316;
}

/* ═══════════════════════════════════════════════════════════
   FULL IMAGE PREVIEW MODAL - کیفیت اصلی + زوم + دانلود
   ═══════════════════════════════════════════════════════════ */
.full-image-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
}

.full-image-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Backdrop */
.full-image-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Close Button */
.full-image-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.full-image-close:hover {
    background: #DC2626;
    border-color: #DC2626;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* Header */
.full-image-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 90vw;
    margin-bottom: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.full-image-title {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.full-image-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #F97316, #DC2626);
    border-radius: 2px;
}

.full-image-actions {
    display: flex;
    gap: 0.5rem;
}

.full-image-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.full-image-action-btn:hover {
    background: #F97316;
    border-color: #F97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Image Body */
.full-image-body {
    position: relative;
    z-index: 5;
    max-width: 90vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.full-image-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
    border-radius: 16px;
}

.full-image-img.zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
    transform: scale(2);
}

/* Loader */
.full-image-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: #F97316;
    font-size: 1rem;
    z-index: 6;
}

.full-image-loader i {
    font-size: 2.5rem;
}

.full-image-loader span {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Hint */
.full-image-hint {
    position: relative;
    z-index: 5;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.full-image-hint i {
    color: #F97316;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .option-image-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .option-image-label {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
    }
    
    .item-options {
        gap: 0.5rem;
    }
    
    .option-tag {
        font-size: 0.75rem;
        padding: 0.3125rem 0.75rem;
    }
    
    .option-tag-label {
        font-size: 0.6875rem;
    }
    
    .option-tag-value {
        font-size: 0.75rem;
    }
    
    .full-image-modal {
        padding: 1rem;
    }
    
    .full-image-close {
        top: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .full-image-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .full-image-body {
        max-width: 95vw;
        max-height: 60vh;
    }
    
    .full-image-img {
        max-width: 95vw;
        max-height: 60vh;
    }
    
    .full-image-hint {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .option-image-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .full-image-body {
        max-height: 50vh;
    }
    
    .full-image-img {
        max-height: 50vh;
    }
}