﻿/* ========================================
   Product Details - Modern Elegant Style
   ======================================== */

/* ============ Container ============ */
.product-details-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

/* ============ Breadcrumb ============ */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

    .product-breadcrumb a {
        color: var(--text-muted);
        transition: color 0.25s ease;
    }

        .product-breadcrumb a:hover {
            color: var(--brown-500);
        }

    .product-breadcrumb .separator {
        color: var(--brown-200);
    }

    .product-breadcrumb .current {
        color: var(--brown-500);
        font-weight: 600;
    }

/* ============ Product Main Layout ============ */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

@media (max-width: 991px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============ Gallery ============ */
.product-gallery {
    position: static;
    top: 100px;
}

.gallery-main {
    position: relative; /* ← برای موقعیت‌دهی Lightbox */
    overflow: hidden;
    border-radius: 20px;
    background: var(--cream-100);
    aspect-ratio: 1 / 1;
    border: 1px solid var(--cream-200);
    cursor: zoom-in;
}

    .gallery-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: zoom-in;
    }

    .gallery-main:hover img {
        transform: scale(1.05);
    }

.gallery-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

    .gallery-badge.featured {
        background: rgba(201, 169, 122, 0.95);
        color: #fff;
    }

    .gallery-badge.out-of-stock {
        background: rgba(184, 85, 62, 0.95);
        color: #fff;
    }

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.6rem;
}

.gallery-thumb {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--cream-100);
}

    .gallery-thumb:hover {
        border-color: var(--brown-200);
    }

    .gallery-thumb.active {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(201, 169, 122, 0.15);
    }

    .gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ============ Product Info ============ */
.product-info {
    padding-top: 0.5rem;
}

.product-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--brown-500);
    background: var(--cream-100);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.product-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

    .product-rating-summary .stars {
        color: #e8b923;
        font-size: 0.95rem;
    }

    .product-rating-summary .rating-value {
        font-weight: 700;
        color: var(--brown-600);
    }

    .product-rating-summary .rating-count {
        color: var(--text-muted);
    }

.product-short-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--cream-200);
}

/* ============ Price Box ============ */
.product-price-box {
    background: linear-gradient(135deg, var(--cream-100) 0%, var(--cream-50) 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--cream-200);
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--brown-600);
    line-height: 1;
}

.product-price-discounted {
    font-size: 1.7rem;
    font-weight: 800;
    color: #b8553e;
    line-height: 1;
}

.product-price-old {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-discount-badge {
    background: #b8553e;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
}

.product-currency {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============ Attributes ============ */
.product-attributes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.attribute-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: #fff;
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

    .attribute-item:hover {
        border-color: var(--brown-200);
        background: var(--cream-50);
    }

    .attribute-item i {
        color: var(--accent);
        font-size: 1.1rem;
    }

    .attribute-item .label {
        color: var(--text-muted);
        font-size: 0.8rem;
    }

    .attribute-item .value {
        color: var(--text-dark);
        font-weight: 600;
    }

/* ============ Add to Cart Section ============ */
.product-actions {
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quantity-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--cream-300);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.quantity-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--brown-500);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .quantity-btn:hover {
        background: var(--cream-100);
    }

.quantity-input {
    width: 50px;
    height: 38px;
    border: none;
    text-align: center;
    font-weight: 700;
    color: var(--text-dark);
    background: transparent;
    font-size: 0.95rem;
}

    .quantity-input:focus {
        outline: none;
    }

.stock-status {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: auto;
}

    .stock-status.in-stock {
        color: #4a6b2e;
    }

    .stock-status.low-stock {
        color: #b8801e;
    }

    .stock-status.out-of-stock {
        color: #b8553e;
    }

.btn-add-to-cart {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--brown-500) 0%, var(--brown-600) 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 14px rgba(125, 95, 62, 0.25);
}

    .btn-add-to-cart:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(125, 95, 62, 0.35);
        color: #fff;
    }

    .btn-add-to-cart:active {
        transform: translateY(0);
    }

    .btn-add-to-cart:disabled {
        background: var(--cream-300);
        color: var(--text-muted);
        cursor: not-allowed;
        box-shadow: none;
    }

        .btn-add-to-cart:disabled:hover {
            transform: none;
            box-shadow: none;
        }

/* ============ Trust Badges ============ */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cream-200);
}

.trust-badge {
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    background: var(--cream-50);
    transition: all 0.25s ease;
}

    .trust-badge:hover {
        background: var(--cream-100);
    }

    .trust-badge i {
        font-size: 1.3rem;
        color: var(--accent);
        display: block;
        margin-bottom: 0.35rem;
    }

    .trust-badge span {
        font-size: 0.75rem;
        color: var(--text-muted);
        font-weight: 500;
    }

/* ============ Tabs Section ============ */
.product-tabs {
    background: #fff;
    border: 1px solid var(--cream-200);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--cream-200);
    background: var(--cream-50);
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .tab-btn:hover {
        color: var(--brown-500);
        background: var(--cream-100);
    }

    .tab-btn.active {
        color: var(--brown-600);
        border-bottom-color: var(--accent);
        background: #fff;
    }

.tab-content {
    padding: 2rem;
    display: none;
}

    .tab-content.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brown-600);
    margin-bottom: 1rem;
}

.tab-content p {
    color: var(--text-dark);
    line-height: 2;
    font-size: 0.95rem;
}

/* ============ Reviews ============ */
.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--cream-50);
    border-radius: 16px;
    margin-bottom: 2rem;
    align-items: center;
}

.rating-big {
    text-align: center;
    padding: 0 1.5rem;
    border-left: 1px solid var(--cream-300);
}

    .rating-big .number {
        font-size: 3rem;
        font-weight: 800;
        color: var(--brown-600);
        line-height: 1;
    }

    .rating-big .stars {
        color: #e8b923;
        font-size: 1rem;
        margin: 0.5rem 0;
    }

    .rating-big .count {
        font-size: 0.82rem;
        color: var(--text-muted);
    }

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
}

    .rating-bar .star-label {
        color: var(--text-muted);
        min-width: 40px;
        text-align: center;
    }

    .rating-bar .bar-track {
        flex: 1;
        height: 8px;
        background: var(--cream-200);
        border-radius: 4px;
        overflow: hidden;
    }

    .rating-bar .bar-fill {
        height: 100%;
        background: linear-gradient(90deg, #e8b923 0%, #f5d547 100%);
        border-radius: 4px;
        transition: width 0.6s ease;
    }

    .rating-bar .bar-count {
        color: var(--text-muted);
        min-width: 30px;
        text-align: left;
    }

/* ============ Review Item ============ */
.review-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--cream-200);
}

    .review-item:last-child {
        border-bottom: none;
    }

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--brown-400) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.review-author-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.review-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.review-stars {
    color: #e8b923;
    font-size: 0.85rem;
}

.review-text {
    color: var(--text-dark);
    font-size: 0.92rem;
    line-height: 1.9;
    margin: 0;
}

/* ============ Review Form ============ */
.review-form-card {
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
}

    .review-form-card h3 {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--brown-600);
        margin-bottom: 1.25rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .review-form-card h3 i {
            color: var(--accent);
        }

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

    .star-rating-input input {
        display: none;
    }

    .star-rating-input label {
        font-size: 1.8rem;
        color: var(--cream-300);
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .star-rating-input label:hover,
        .star-rating-input label:hover ~ label,
        .star-rating-input input:checked ~ label {
            color: #e8b923;
            transform: scale(1.1);
        }

        .star-rating-input label:hover {
            transform: scale(1.2);
        }

/* ============ Empty State ============ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

    .empty-state i {
        font-size: 3rem;
        color: var(--cream-300);
        margin-bottom: 1rem;
        display: block;
    }

/* ============ Related Products ============ */
.related-section {
    margin-top: 3rem;
}

    .related-section header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .related-section h2 {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--brown-600);
        margin: 0;
    }

/* ============ Toast ============ */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    min-width: 280px;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 600;
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-notification.success {
    background: #e8f0e0;
    color: #4a6b2e;
    border-right: 4px solid #7ba05b;
}

.toast-notification.error {
    background: #f5e0dc;
    color: #8f3a26;
    border-right: 4px solid #b8553e;
}

.toast-notification i {
    font-size: 1.2rem;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .product-title {
        font-size: 1.4rem;
    }

    .product-price,
    .product-price-discounted {
        font-size: 1.4rem;
    }

    .product-attributes {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .tab-content {
        padding: 1.25rem;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rating-big {
        border-left: none;
        border-bottom: 1px solid var(--cream-300);
        padding-bottom: 1rem;
    }

    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   Product Color Selector
   ======================================== */

.product-color-selector {
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.color-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-selector-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .color-selector-label i {
        color: var(--accent);
        font-size: 1.05rem;
    }

.selected-color-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brown-600);
    background: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--cream-200);
    transition: all 0.25s ease;
}

.color-name-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-name-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: #fff;
    border: 1.5px solid var(--cream-300);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    white-space: nowrap;
}

    .color-name-btn:hover {
        border-color: var(--brown-300);
        background: var(--cream-50);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(125, 95, 62, 0.08);
    }

    .color-name-btn .btn-check-icon {
        display: none;
        font-size: 0.8rem;
        color: #fff;
    }

    .color-name-btn.selected {
        background: linear-gradient(135deg, var(--brown-500) 0%, var(--brown-600) 100%);
        color: #fff;
        border-color: var(--brown-500);
        box-shadow: 0 6px 16px rgba(125, 95, 62, 0.25);
        transform: translateY(-2px);
    }

        .color-name-btn.selected .btn-check-icon {
            display: inline-block;
        }

    .color-name-btn:focus-visible {
        outline: 3px solid rgba(201, 169, 122, 0.3);
        outline-offset: 2px;
    }

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ============ Color Option Button ============ */
.color-option-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    padding: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .color-option-btn:hover {
        transform: scale(1.12);
        border-color: var(--cream-300);
    }

    .color-option-btn.selected {
        border-color: var(--accent);
        transform: scale(1.1);
        box-shadow: 0 0 0 3px rgba(201, 169, 122, 0.2);
    }

/* ============ Color Circle ============ */
.color-circle {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* اگه رنگ سفید یا خیلی روشن بود، یه خط دورش بذار */
.color-option-btn[data-color-hex="#FFFFFF"] .color-circle,
.color-option-btn[data-color-hex="#F5F5F5"] .color-circle,
.color-option-btn[data-color-hex="#FAFAFA"] .color-circle {
    border-color: var(--cream-300);
}

/* ============ Check Icon ============ */
.color-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.color-option-btn.selected .color-check {
    opacity: 1;
}

/* برای رنگ‌های روشن، آیکون تیک تیره بشه */
.color-option-btn[data-color-hex="#FFFFFF"].selected .color-check,
.color-option-btn[data-color-hex="#F5F5F5"].selected .color-check,
.color-option-btn[data-color-hex="#FAFAFA"].selected .color-check {
    color: var(--brown-600);
    text-shadow: none;
}

/* ============ Responsive ============ */
@media (max-width: 576px) {
    .product-color-selector {
        padding: 1rem;
    }

    .color-selector-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .color-name-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.82rem;
    }
}

/* ========================================
   Gallery Main
   ======================================== */

.product-gallery {
    /* overflow رو visible کن تا زوم کار کنه */
    overflow: visible !important;
}

.gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--cream-100);
    aspect-ratio: 1 / 1;
    border: 1px solid var(--cream-200);
    cursor: zoom-in;
}

    .gallery-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ===== زوم ساده با Transform ===== */
    .gallery-main.zoomed {
        cursor: zoom-out;
    }

        .gallery-main.zoomed img {
            transform: scale(2);
        }

/* ===== دکمه‌ی زوم ===== */
.gallery-action-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brown-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

    .gallery-action-btn:hover {
        background: var(--brown-500);
        color: #fff;
        transform: scale(1.1);
    }

.zoom-open-btn {
    bottom: 1rem;
    left: 1rem;
}

/* ========================================
   Lightbox - Fixed Overlay
   ======================================== */

.lightbox-overlay {
    position: absolute; /* ← نسبت به gallery-main */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 15, 10, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 20px; /* ← هماهنگ با gallery-main */
    overflow: hidden;
}

    .lightbox-overlay.active {
        display: flex !important;
    }

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .lightbox-content img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        cursor: zoom-in;
        transition: transform 0.3s ease;
        display: block;
    }

        .lightbox-content img.zoomed {
            transform: scale(1.5);
            cursor: zoom-out;
        }

.lightbox-close,
.lightbox-nav {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

    .lightbox-close:hover,
    .lightbox-nav:hover {
        background: var(--brown-500);
        border-color: var(--brown-500);
        transform: scale(1.1);
    }

.lightbox-close {
    top: 0.75rem;
    left: 0.75rem;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

    .lightbox-nav:hover {
        transform: translateY(-50%) scale(1.1);
    }

.lightbox-prev {
    right: 0.75rem;
}

.lightbox-next {
    left: 0.75rem;
}

/* ========================================
   Responsive - موبایل
   ======================================== */
@media (max-width: 768px) {
    .lightbox-close,
    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .lightbox-close {
        top: 0.5rem;
        left: 0.5rem;
    }

    .lightbox-prev {
        right: 0.5rem;
    }

    .lightbox-next {
        left: 0.5rem;
    }
}

