﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e8 50%, #f1f8e9 100%);
    color: #2c3e50;
    line-height: 1.6;
    direction: rtl;
    min-height: 100vh;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}


/* Header with breadcrumb */

.page-header {
    background: none;
    padding: 30px 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    background: rgba(131, 241, 157, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.back-button:hover {
    background: rgba(101, 123, 105, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.page-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


/* Main content grid */

.product-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}


/* Image gallery */

.gallery-section {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 85, 48, 0.1);
}

.main-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    max-height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.05);
}

.thumbnails-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item.active {
    border-color: #1e88e5;
    transform: scale(1.1);
}

.thumbnail-item:hover {
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}


/* Product info */

.info-section {
    background: #fff;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 85, 48, 0.1);
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(131, 241, 157, 0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.brand-info {
    background: linear-gradient(135deg, #e3f2fd, #e8f5e8);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-right: 4px solid #1e88e5;
}

.brand-info i {
    color: #43a047;
    margin-left: 10px;
}

.contact-action {
    margin-top: 30px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(131, 241, 157, 0.2);
    color: #fff;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.3);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(30, 136, 229, 0.4);
    background: rgba(0, 131, 30, 0.2);
    color: #fff;
}


/* Product details sections */

.details-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.detail-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.1);
    transition: transform 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3f2fd;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-title i {
    color: #43a047;
}

.detail-content {
    color: #555;
    line-height: 2;
    white-space: pre-line;
    flex-grow: 1;
}

.detail-content p {
    margin-bottom: 15px;
    display: block;
    width: 100%;
}

.detail-content ul {
    padding-right: 20px;
}

.detail-content li {
    margin-bottom: 12px;
    display: list-item;
    line-height: 1.8;
}

.detail-content br {
    display: block;
    margin: 10px 0;
    content: "";
}


/* Related products */

.related-section {
    background: #fff;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 85, 48, 0.1);
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 136, 229, 0.1);
    display: block;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.related-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 8px;
}

.related-card-category {
    color: #666;
    font-size: 0.95rem;
}


/* Responsive design */

@media (max-width: 768px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-header {
        padding: 20px;
    }
    .page-title {
        font-size: 1.8rem;
    }
    .details-container {
        grid-template-columns: 1fr;
    }
    .info-section,
    .gallery-section {
        padding: 20px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .details-container {
        grid-template-columns: 1fr;
    }
}


/* Loading animation */

.image-loading {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-loaded {
    opacity: 1;
}


/* Smooth scroll */

html {
    scroll-behavior: smooth;
}