/* CSS for Product Details Page */

/* Modern Product Details Styles - Matching Shop Design */
.product-details-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 2rem 0;
}

.product-header {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.breadcrumb-modern a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-modern a:hover {
    color: #28a745;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Product Content */
.product-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* Gallery - Updated to match shop style */
.product-gallery-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

/* Product Badge Header - نفس التصميم من الشوب */
.product-badge-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    min-height: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.product-badge {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.sold-out-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Main Product Image - نفس حجم وتصميم الشوب */
.product-image-wrapper {
    position: relative;
    height: 500px; /* ارتفاع أكبر للصورة الرئيسية */
    overflow: hidden;
    background: #f8f9fa; /* خلفية فاتحة */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-top: -40px; /* عشان تبقى تحت الـ badge header */
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* الصورة هتظهر كاملة */
    transition: transform 0.5s ease;
}

.product-gallery-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

/* Gallery Actions - نفس موضع الأزرار */
.gallery-actions {
    position: absolute;
    top: calc(40px + 1rem);
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.gallery-action-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-action-btn:hover {
    background: #28a745;
    color: white;
    transform: scale(1.1);
}

/* Gallery Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 5px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 5px;
}

.thumb-item {
    min-width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #28a745;
}

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

/* Product Info */
.product-info {
    padding-left: 2rem;
}
/* Price Styling - تحسين شكل الأسعار */
.price-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.7rem;
    font-weight: 700;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1;
    letter-spacing: -0.02em;
}

.old-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration-thickness: 2px;
    text-decoration-color: #dc3545;
    opacity: 0.8;
}

/* إضافة علامة التخفيض */
.price-wrapper.has-sale {
    position: relative;
}

.price-wrapper.has-sale::after {
    content: attr(data-discount);
    position: absolute;
    top: -10px;
    right: -20px;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* أسعار المنتجات المرتبطة */
.rp-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.rp-price-current {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -0.01em;
}

.rp-price-old {
    font-size: 0.875rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration-thickness: 1.5px;
    text-decoration-color: #dc3545;
    opacity: 0.8;
}

/* أسعار صفحة الشوب */
.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -0.01em;
}

.price-old {
    font-size: 0.875rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration-thickness: 1.5px;
    text-decoration-color: #dc3545;
    opacity: 0.8;
}

/* إضافة رمز العملة بشكل أصغر */
.current-price::before,
.price-current::before,
.rp-price-current::before {
    font-size: 0.7em;
    font-weight: 500;
    margin-right: 0.1em;
}

.old-price::before,
.price-old::before,
.rp-price-old::before {
    font-size: 0.8em;
    font-weight: 400;
}

/* Responsive للأسعار */
@media (max-width: 767px) {
    .current-price {
        font-size:1.45rem;
    }
    
    .old-price {
        font-size: 1.25rem;
    }
    
    .price-current,
    .rp-price-current {
        font-size: 1.1rem;
    }
    
    .price-old,
    .rp-price-old {
        font-size: 0.8rem;
    }
}

/* تأثيرات حلوة للأسعار */
.current-price,
.price-current,
.rp-price-current {
    text-shadow: 0 1px 2px rgba(40, 167, 69, 0.1);
}

/* عند الـ hover على المنتج */
.product-card:hover .price-current {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.related-product-card:hover .rp-price-current {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.stock-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.stock-badge.out-stock {
    background: #f8d7da;
    color: #721c24;
}

.product-desc {
    color: #666;
    line-height: 1.8;
    margin: 1.5rem 0;
}

/* Action Buttons */
.actions-wrapper {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.add-cart-btn {
    flex: 1;
    padding: 1rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.add-cart-btn:hover {
    background: #000;
    transform: translateY(-2px);
    color: white;
}

.add-cart-btn.in-cart {
    background: #ffc107;
}

.add-cart-btn.in-cart:hover {
    background: #e0a800;
    color: white;
}

.add-cart-btn.sold-out {
    background: #dc3545;
    cursor: not-allowed;
}





.wishlist-btn.active {
    background: #ffaa00;
    border-color: #ffaa00;
    color: white;
}

/* Product Meta */
.product-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.meta-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.meta-label {
    font-weight: 600;
    color: #666;
    width: 120px;
}

.meta-value {
    color: #333;
}

/* Related Products Section - نفس تصميم الشوب */
.related-section {
    margin-top: 3rem;
}

.section-header {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Related Products Grid */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Related Product Card - نفس تصميم الشوب */
.related-product-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.rp-badge-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    min-height: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.rp-image-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: white;
}

.rp-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-product-card:hover .rp-image-wrapper img {
    transform: scale(1.05);
}

.rp-actions {
    position: absolute;
    top: calc(40px + 1rem);
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.rp-add-to-cart-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 0.75rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-product-card:hover .rp-add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.rp-add-to-cart-btn:hover {
    background: #000;
    color: white;
}

.rp-add-to-cart-btn.in-cart {
    background: #ffc107;
}

.rp-add-to-cart-btn.sold-out {
    background: #6c757d;
    cursor: not-allowed;
}

.rp-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.rp-category {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.rp-name {
    font-size: 1.7rem;
  font-family: 'Poppins', sans-serif;

    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.rp-name:hover {
    color: #28a745;
}

.rp-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.rp-price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.rp-price-old {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

@media (max-width: 991px) {
    .product-info {
        padding-left: 0;
        margin-top: 2rem;
    }
    .product-image-wrapper {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .product-image-wrapper {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .product-image-wrapper {
        height: 300px;
    }
    @media (max-width: 576px) {

    .rp-name {

        font-size: 1rem !important;
                font-family: 'Poppins', sans-serif;


    }


    .rp-price-current {

        font-size: .88rem !important;

    }


    .rp-price-old {

        font-size: 0.9rem !important;

    }

}
}
/* Notification and Animation Styles */
.notification {
    font-weight: 500;
    font-size: 0.9rem;
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: center;
    min-width: 250px;
    word-wrap: break-word;
}

.notification i {
    font-size: 1.1rem;
}

.notification.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification.notification-error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.6s ease-in-out;
}