/* صفحة تفاصيل المنتج */
.product-details-page {
    padding: 40px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--light-text);
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.8rem;
    margin: 0 5px;
}

.breadcrumb .current {
    color: var(--text-color);
    font-weight: 600;
}

.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zoom-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.zoom-btn:hover {
    background: var(--primary-color);
    color: white;
}

.thumbnail-gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    transform: translateY(-3px);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title {
    font-size: 2rem;
    color: var(--text-color);
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-value {
    font-weight: 700;
    color: var(--text-color);
}

.reviews-count {
    color: var(--light-text);
    font-size: 0.9rem;
}

.product-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-status.in-stock {
    background: #d4edda;
    color: #155724;
}

.product-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.product-price {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 1.8rem;
    color: var(--light-text);
    text-decoration: line-through;
}

.discount-percentage {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.product-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.meta-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

.product-description {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.product-description h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-description p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

.features-list {
    list-style: none;
    margin-top: 15px;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.features-list i {
    color: var(--primary-color);
    margin-top: 3px;
}

.product-options {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.option-group {
    margin-bottom: 25px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.color-options {
    display: flex;
    gap: 15px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.color-option.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.warranty-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warranty-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.warranty-option:hover {
    border-color: var(--primary-color);
}

.warranty-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 200px;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-input {
    width: 70px;
    height: 45px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-add-to-cart, .btn-buy-now {
    flex: 1;
    padding: 18px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.btn-buy-now {
    background: #ff6b35;
    color: white;
}

.btn-buy-now:hover {
    background: #e55a2b;
}

.btn-wishlist, .btn-compare {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-color);
    transition: var(--transition);
}

.btn-wishlist:hover, .btn-compare:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-right: 4px solid var(--primary-color);
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.info-item p {
    color: var(--light-text);
    font-size: 0.9rem;
}

.product-tabs {
    margin: 60px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    padding: 20px 30px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tabs-content {
    padding: 40px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.detailed-description h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.detailed-description h4 {
    color: var(--text-color);
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.feature {
    text-align: center;
    padding: 25px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h5 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.usage-guide {
    background: #e9f7ef;
    padding: 25px;
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
    margin-top: 20px;
}

.usage-guide p {
    margin-bottom: 10px;
    padding-right: 20px;
    position: relative;
}

.usage-guide p::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th, .specs-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background: #f8f9fa;
    color: var(--text-color);
    font-weight: 600;
    width: 30%;
}

.specs-table tr:hover {
    background: #f8f9fa;
}

.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
}

.overall-rating {
    text-align: center;
}

.rating-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.overall-rating .rating-stars {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #ffc107;
}

.rating-bars {
    flex: 1;
    min-width: 300px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.rating-bar span:first-child {
    width: 80px;
    color: var(--text-color);
}

.bar {
    flex: 1;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: #ffc107;
    border-radius: 5px;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: left;
    color: var(--light-text);
}

.btn-write-review {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-write-review:hover {
    background: var(--primary-dark);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.review {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.review-rating {
    color: #ffc107;
}

.review-date {
    color: var(--light-text);
    font-size: 0.9rem;
}

.review-body h5 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.review-body p {
    line-height: 1.7;
    color: var(--light-text);
}

.review-helpful {
    margin-top: 15px;
}

.helpful-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--light-text);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.helpful-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.faq-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #f8f9fa;
    transition: var(--transition);
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h4 {
    color: var(--text-color);
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.related-products, .complementary-products {
    margin: 60px 0;
}

.products-slider {
    position: relative;
    padding: 20px 0;
}

.products-slider .swiper-slide {
    height: auto;
}

.swiper-button-next, .swiper-button-prev {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--primary-color);
    transition: var(--transition);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: 700;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
}

.swiper-button-next {
    left: 20px;
    right: auto;
}

.swiper-button-prev {
    right: 20px;
    left: auto;
}

.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.zoom-modal.active {
    display: flex;
}

.zoom-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.zoom-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.close-zoom {
    position: absolute;
    top: -40px;
    left: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .product-details-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-image {
        height: 400px;
    }
    
    .product-meta {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-add-to-cart, .btn-buy-now {
        width: 100%;
    }
    
    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-bars {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 15px;
    }
    
    .tabs-content {
        padding: 20px;
    }
    
    .additional-info {
        grid-template-columns: 1fr;
    }
    
    .close-zoom {
        top: 20px;
        left: 20px;
    }
}