/* ========================================== */
/* صفحة تفاصيل المنتج */
/* ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Amazon Ember", Arial, sans-serif;

}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background: #f5f5f5;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ========================================== */
/* البانر الإعلاني (موحد - Full Width & 415px Height) */
/* ========================================== */

.product-banner {
    width: 100vw;
    /* عرض الشاشة بالكامل */
    max-width: 100%;

    /* الخلطة السحرية لإلغاء الفراغات الجانبية */
    margin-inline-start: calc(-50vw + 50%);
    margin-inline-end: calc(-50vw + 50%);

    margin-top: 0;
    /* لصق البانر بالأعلى */
    margin-bottom: 30px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* تم الاستغناء عن .banner-container */

.banner-link {
    display: block;
    width: 100%;
    /* الارتفاع الموحد */
    height: 415px;
    min-height: 415px;
    max-height: 415px;

    position: relative;
    overflow: hidden;
    border-radius: 0;
    /* شلنا الحواف المدورة */
    transition: none;
}

/* إلغاء تأثيرات الحركة الزائدة */
.banner-link:hover {
    transform: none;
}

.banner-img {
    width: 100%;
    height: 100%;

    /* ملء كامل (مط) حسب المعيار الجديد */
    object-fit: fill;
    object-position: center;

    display: block;
    transition: transform 0.5s ease;
    border-radius: 0;
    margin: 0;
}

/* تكبير بسيط للصورة فقط عند الهوفر */
.banner-link:hover .banner-img {
    transform: scale(1.02);
}

/* ========================================== */
/* Responsive - نفس مقاسات الهيرو في الصفحات التانية */
/* ========================================== */

@media (max-width: 992px) {
    .banner-link {
        height: 350px;
        min-height: 350px;
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .banner-link {
        height: 250px;
        min-height: 250px;
        max-height: 250px;
    }
}

/* ========================================== */
/* Product Details Section */
/* ========================================== */

.product-details-section {
    padding: 40px 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #b42f4c;
}

.breadcrumb i {
    font-size: 12px;
    color: #999;
}

.breadcrumb span {
    color: #1a1a1a;
    font-weight: 600;
}

/* Product Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* ========================================== */
/* Product Images */
/* ========================================== */

.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 12px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    inset-inline-start: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.wishlist-btn i {
    font-size: 20px;
    color: #b42f4c;
}

.wishlist-btn.active i {
    color: #b42f4c;
}

.badges {
    position: absolute;
    top: 15px;
    inset-inline-end: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-condition {
    background: #15803d;
    color: #fff;
}

.image-zoom {
    position: absolute;
    bottom: 15px;
    inset-inline-end: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-zoom i {
    color: #fff;
    font-size: 16px;
}

.image-zoom:hover {
    background: #b42f4c;
    transform: scale(1.1);
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumbnail {
    height: 120px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: #b42f4c;
}

.thumbnail:hover {
    border-color: #b42f4c;
    transform: scale(1.05);
}

/* ========================================== */
/* Product Info */
/* ========================================== */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #f0f0f0;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 15px;
}

.product-category i {
    font-size: 12px;
}

.product-title {
    font-size: 32px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Pricing */
.product-pricing {
    padding: 20px;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe0e6 100%);
    border-radius: 12px;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-price {
    font-size: 42px;
    font-weight: 900;
    color: #b42f4c;
}

.currency {
    font-size: 20px;
    font-weight: 700;
}

/* Description */
.product-description {
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-right: 4px solid #b42f4c;
}

.product-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* ========================================== */
/* Product Specifications */
/* ========================================== */

.product-specifications {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
}

.specs-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specs-title i {
    color: #b42f4c;
    font-size: 20px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.spec-item:hover {
    border-color: #b42f4c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 47, 76, 0.1);
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.spec-label i {
    font-size: 14px;
    color: #b42f4c;
}

.spec-value {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.spec-highlight {
    color: #15803d;
}

/* ========================================== */
/* Seller Info */
/* ========================================== */

.seller-info {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.seller-avatar {
    position: relative;
    flex-shrink: 0;
}

.seller-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-badge i {
    font-size: 14px;
    color: #15803d;
}

.seller-details {
    flex: 1;
}

.seller-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.seller-location,
.seller-rating {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.seller-location i {
    color: #b42f4c;
}

.seller-rating i {
    color: #fbbf24;
}

/* ========================================== */
/* Contact Section */
/* ========================================== */

.contact-section {
    position: relative;
}

.contact-btn {
    width: 100%;
    padding: 18px 25px;
    background: linear-gradient(135deg, #b42f4c 0%, #8d2439 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(180, 47, 76, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 47, 76, 0.4);
}

.contact-btn i:last-child {
    margin-right: auto;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.contact-btn.active i:last-child {
    transform: rotate(180deg);
}

.contact-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
    overflow: hidden;
}

.contact-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1a1a1a;
}

.dropdown-header i {
    color: #b42f4c;
    font-size: 18px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.contact-option:hover {
    background: #f9f9f9;
}

.option-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp .option-icon {
    background: #d4f4dd;
}

.whatsapp .option-icon i {
    color: #25D366;
    font-size: 24px;
}

.phone .option-icon {
    background: #e0f2fe;
}

.phone .option-icon i {
    color: #0284c7;
    font-size: 22px;
}

.email .option-icon {
    background: #fef3c7;
}

.email .option-icon i {
    color: #d97706;
    font-size: 20px;
}

.option-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.option-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.option-number {
    font-size: 14px;
    color: #666;
}

.contact-option>i {
    color: #b42f4c;
    font-size: 16px;
}

.dropdown-note {
    padding: 12px 20px;
    background: #fff5f7;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-note i {
    color: #b42f4c;
    flex-shrink: 0;
}

/* ========================================== */
/* Product Tabs */
/* ========================================== */

.product-tabs {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    background: #f9f9f9;
}

.tab-btn {
    flex: 1;
    padding: 18px 25px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #b42f4c;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: #b42f4c;
    background: #fff;
}

.tab-btn.active {
    color: #b42f4c;
    background: #fff;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tabs-content {
    padding: 35px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 24px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.tab-panel h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 25px 0 15px;
}

.tab-panel p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.tab-panel ul {
    list-style: none;
    padding: 0;
}

.tab-panel ul li {
    padding: 10px 0;
    font-size: 15px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-panel ul li i {
    color: #b42f4c;
    font-size: 14px;
}

/* ========================================== */
/* Related Products (5 منتجات) */
/* ========================================== */

.related-products {
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #b42f4c;
}

.products-slider {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px 15px 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-card .price {
    padding: 0 15px 15px;
    font-size: 20px;
    font-weight: 900;
    color: #b42f4c;
}

/* ========================================== */
/* Responsive */
/* ========================================== */

@media (max-width: 1200px) {

    .container,
    .banner-container {
        padding: 0 40px;
    }

    .products-slider {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {

    .container,
    .banner-container {
        padding: 0 24px;
    }

    .banner-link {
        height: 280px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .main-image {
        height: 450px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .products-slider {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .container,
    .banner-container {
        padding: 0 16px;
    }

    .banner-link {
        height: 240px;
    }

    .product-title {
        font-size: 24px;
    }

    .current-price {
        font-size: 32px;
    }

    .tabs-header {
        flex-direction: column;
    }

    .tabs-content {
        padding: 25px 20px;
    }

    .products-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .container,
    .banner-container {
        padding: 0 12px;
    }

    .banner-link {
        height: 200px;
    }

    .banner-link:hover {
        transform: none;
    }

    .banner-link:hover .banner-img {
        transform: none;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .product-layout {
        padding: 20px 15px;
    }

    .main-image {
        height: 350px;
    }

    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .thumbnail {
        height: 80px;
    }

    .product-title {
        font-size: 20px;
    }

    .current-price {
        font-size: 28px;
    }

    .specs-grid {
        gap: 10px;
    }

    .spec-item {
        padding: 12px;
    }

    .products-slider {
        grid-template-columns: 1fr;
    }
}