/* Page-specific styles: product-details.html */

.product-details-section {
    margin-top: 0;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--very-light-blue) 0%, var(--light-blue) 100%);
    min-height: 100vh;
}

.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 155, 216, 0.1);
}

.back-link:hover {
    background: #1B2848;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 40, 72, 0.3);
}

.back-link i {
    margin-left: 0.5rem;
    font-size: 1rem;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.product-images {
    position: relative;
}

.main-image {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--very-light-blue) 100%);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 3px solid #FFD700;
}

.main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.main-image i {
    font-size: 8rem;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}

.thumbnail-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}



.thumbnail-count {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--very-light-blue) 100%);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
}

.thumbnail:hover {
    transform: translateY(-3px);
    border-color: #1b9bd8;
    box-shadow: 0 8px 20px rgba(27, 155, 216, 0.3);
}

.thumbnail.active {
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(27, 155, 216, 0.4);
}

.thumbnail i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.company-logo {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(20%) contrast(1.1) brightness(0.9);
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.3rem;
}

.company-logo:hover .logo-image {
    filter: grayscale(0%) contrast(1.2) brightness(1.1);
    opacity: 1;
    transform: scale(1.08);
}

.company-logo:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(27, 155, 216, 0.3);
}

.company-logo.active {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--very-light-blue) 100%);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(27, 155, 216, 0.4);
}

.company-logo.active .logo-image {
    filter: grayscale(0%) contrast(1.2) brightness(1.1);
    opacity: 1;
}

.logo-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(0%) contrast(1.2) brightness(1.1);
    opacity: 1;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--very-light-blue) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(27, 155, 216, 0.2);
}

.logo-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(27, 155, 216, 0.3);
}

/* Main Product Image Styles */
.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show full image without cropping */
    position: relative;
    z-index: 1;
    padding: 1rem;
    border-radius: 25px;
    transition: all 0.4s ease;
}

.main-product-image:hover {
    transform: scale(1.05);
}

/* Thumbnail Image Styles */
.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-info {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15);
    border: 3px solid #FFD700;
}

.product-title {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(27, 155, 216, 0.1);
}

.product-brand {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--light-blue);
    border-radius: 15px;
    display: inline-block;
}

.brand-name {
    font-weight: 700;
    color: var(--secondary-color);
}

.product-price {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--very-light-blue) 100%);
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(27, 155, 216, 0.2);
}

.product-description {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.product-description h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}
.product-features ul.features-list {
    list-style: none; /* لو عايز تختار أيقونة بدل bullet */
    padding-left: 0;
}

.product-features ul.features-list li {
    color: #000;        /* تأكد من لون النص */
    font-size: 16px;    /* حجم مناسب */
    line-height: 1.5;   /* spacing كويس */
    margin-bottom: 5px; /* مسافة بين العناصر */
}

.product-features ul.features-list li i {
    color: #0d6efd;     /* لون أيقونة الصح */
    margin-right: 5px;
}
.product-features {
    margin-bottom: 2rem;
}

.product-features h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    margin-bottom: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(27, 155, 216, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.features-list li:hover {
    background: rgba(27, 40, 72, 0.1);
    transform: translateX(-5px);
}

.features-list li i {
    color: var(--secondary-color);
    margin-left: 1rem;
    font-size: 1.1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Add to Cart Button for Product Details */
.add-to-cart-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1B2848;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    border: 2px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    border-color: #FFA500;
    color: white;
}

.add-to-cart-btn i {
    font-size: 1.2rem;
}

.order-button {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(27, 155, 216, 0.3);
    position: relative;
    overflow: hidden;
}

.order-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.order-button:hover::before {
    left: 100%;
}

.order-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(27, 40, 72, 0.4);
    background: #1B2848;
}

.order-button i {
    margin-left: 0.5rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(27, 155, 216, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(27, 40, 72, 0.4);
    background: #1B2848;
}

.contact-button i {
    margin-left: 0.5rem;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-info {
        padding: 2rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .order-button,
    .contact-button,
    .add-to-cart-btn {
        text-align: center;
        justify-content: center;
    }

    .thumbnail-controls {
        padding: 0.8rem;
    }



    .thumbnail-count {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .thumbnail {
        height: 70px;
    }

    .main-image {
        height: 300px;
        /* Reduced height for mobile */
    }

    .main-product-image {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
        /* Force contain on mobile */
        padding: 0.5rem;
    }
}
