/* مسیر ناوبری */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #666;
}

    .breadcrumb a {
        color: var(--primary-green);
        text-decoration: none;
    }

    .breadcrumb span {
        margin: 0 5px;
    }

/* بخش اصلی محصول */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 2rem 0;
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

/* گالری تصاویر محصول */
.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    background-color: var(--light-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

    .main-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    height: 80px;
    background-color: var(--light-green);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .thumbnail.active {
        border-color: var(--primary-green);
    }

    .thumbnail:hover {
        border-color: var(--primary-green);
    }

    .thumbnail img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* اطلاعات محصول */
.product-info {
    padding: 0 10px;
}

.product-title {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: var(--yellow);
    margin-left: 10px;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.product-code {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.price-section {
    background-color: var(--light-green);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
    display: block;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-left: 10px;
}

.stock-status {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--primary-green);
}

    .stock-status i {
        margin-left: 5px;
    }

.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    background-color: var(--light-green);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
}

.add-to-cart {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    flex-grow: 1;
    font-size: 1rem;
}

    .add-to-cart:hover {
        background-color: #3d8b40;
    }

.buy-now {
    background-color: var(--yellow);
    color: var(--dark-text);
    border: none;
    padding: 0 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    flex-grow: 1;
    font-size: 1rem;
}

    .buy-now:hover {
        background-color: #FBC02D;
    }

.product-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
}

    .meta-item i {
        margin-left: 10px;
        color: var(--primary-green);
    }

/* تب های اطلاعات محصول */
.product-tabs {
    margin: 3rem 0;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    position: relative;
}

    .tab-btn.active {
        color: var(--primary-green);
    }

        .tab-btn.active:after {
            content: '';
            position: absolute;
            bottom: -1px;
            right: 0;
            width: 100%;
            height: 3px;
            background-color: var(--primary-green);
        }

.tab-content {
    padding: 25px 0;
    display: none;
}

    .tab-content.active {
        display: block;
    }

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

    .specs-table tr {
        border-bottom: 1px solid var(--border);
    }

    .specs-table td {
        padding: 12px 15px;
    }

        .specs-table td:first-child {
            font-weight: 500;
            width: 30%;
            color: var(--dark-text);
        }

/* رسپانسیو صفحه محصول */
@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .main-image {
        height: 300px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .tabs-header {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-meta {
        grid-template-columns: 1fr;
    }
}



/* استایل‌های مربوط به دراپ‌دان تعداد */
.quantity-selector {
    position: relative;
    margin-bottom: 15px;
}

.quantity-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 16px center;
    background-size: 16px;
    padding-left: 45px;
    transition: border-color 0.3s;
    text-align: center;
}

    .quantity-dropdown:focus {
        outline: none;
        border-color: #4a90e2;
        box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    }

    .quantity-dropdown:hover {
        border-color: #bbb;
    }

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .quantity-dropdown {
        padding: 10px 14px;
        font-size: 14px;
        padding-left: 40px;
    }
}

.price-section {
    direction: rtl;
}

.current-price, .original-price {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .current-price .price-amount {
        font-size: 1.5rem;
        font-weight: bold;
        color: #e53935;
    }

    .current-price .currency {
        font-size: 0.9rem;
        color: #666;
    }

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-top: 0.25rem;
}

    .original-price .price-amount {
        font-size: 1.1rem;
    }

    .original-price .currency {
        font-size: 0.875rem;
    }

.discount-badge-product {
    background: #e53935;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.price-unit-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #1976d2;
}

    .price-unit-info i {
        margin-left: 0.5rem;
    }

.quantity-info {
    font-size: 0.875rem;
    color: #666;
    margin-right: 0.5rem;
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

/* استایل‌های جدید برای بخش انتخاب تعداد کیسه */
.bag-quantity-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.bag-quantity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.bag-quantity-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.bag-size-selector {
    margin-bottom: 20px;
}

.bag-size-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.quantity-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

    .quantity-dropdown:focus {
        outline: none;
        border-color: #4299e1;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    }

.bag-quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #4a5568;
    transition: all 0.2s ease;
}

    .quantity-btn:hover {
        background: #f7fafc;
        border-color: #cbd5e0;
    }

    .quantity-btn:active {
        background: #edf2f7;
        transform: scale(0.95);
    }

    .quantity-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.bag-quantity-input {
    width: 80px;
    height: 44px;
    text-align: center;
    padding: 0 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: white;
}

    .bag-quantity-input:focus {
        outline: none;
        border-color: #4299e1;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    }

.quantity-info-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    color: #718096;
    font-size: 14px;
}

.info-value {
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.total-weight-display {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
}

.total-weight-label {
    font-size: 14px;
    opacity: 0.9;
}

.total-weight-value {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}

/* استایل‌های جدید برای دکمه‌های بلندتر */
.product-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.add-to-cart, .buy-now {
    height: 60px;
    font-size: 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: white;
}

.add-to-cart {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.buy-now {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

    .add-to-cart:hover, .buy-now:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .add-to-cart:active, .buy-now:active {
        transform: translateY(0);
    }

@@media (max-width: 768px) {
    .bag-quantity-section {
        padding: 15px;
        margin: 15px 0;
    }

    .bag-quantity-controls {
        gap: 8px;
    }

    .quantity-btn {
        width: 40px;
        height: 40px;
    }

    .bag-quantity-input {
        width: 70px;
        height: 40px;
    }

    .product-actions {
        flex-direction: column;
        gap: 12px;
    }

    .add-to-cart, .buy-now {
        height: 55px;
        font-size: 16px;
    }
}
