* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: whitesmoke;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mobile-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(139, 155, 139, 0.2);
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

/* Product Image Section */
.product-image-section {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #a8e6cf 0%, #8B9B8B 25%, #a8e6cf 50%, #8B9B8B 75%, #a8e6cf 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.product-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(139, 155, 139, 0.2);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(139, 155, 139, 0.3);
}

.product-image {
    width: 45%;
    height: 70%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(139, 155, 139, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: translateY(-10px) scale(1.02);
}

.product-image img {
    width: 100%;         /* أو أي نسبة مثل 300px */
    height: 500px;        /* يحافظ على التناسق */
    max-height: 700px;   /* تحكم بالارتفاع الأقصى */
    object-fit: cover;   /* أو contain حسب الشكل المطلوب */
    border-radius: 10px; /* اختياري: زوايا ناعمة */
}

.image-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(139, 155, 139, 0.2);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Product Info Section */
.product-info {
    padding: 60px 80px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    position: relative;
    z-index: 5;
    flex: 1;
    max-width: none;
}

.product-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: linear-gradient(90deg, #8B9B8B, #a8e6cf, #8B9B8B);
    border-radius: 3px;
    margin-top: 15px;
}

.product-title {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #8B9B8B 0%, #a8e6cf 25%, #8B9B8B 50%, #a8e6cf 75%, #8B9B8B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -1px;
}

.price {
    font-size: 36px;
    font-weight: 800;
    color: #2d3748;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.price::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8B9B8B, #a8e6cf);
    border-radius: 2px;
}

.quantity-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding: 25px 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(168, 230, 207, 0.2);
}

.quantity-label {
    font-size: 24px;
    font-weight: 600;
    color: #4a5568;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(168, 230, 207, 0.2);
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, #a8e6cf 0%, #8B9B8B 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 230, 207, 0.4);
}

.quantity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 230, 207, 0.6);
    background: linear-gradient(135deg, #8B9B8B 0%, #6b7b6b 100%);
}

.quantity-btn:active {
    transform: translateY(0);
}

.quantity-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    min-width: 40px;
    text-align: center;
}

.product-description {
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(168, 230, 207, 0.15);
}

.product-description h3 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #8B9B8B 0%, #a8e6cf 25%, #8B9B8B 50%, #a8e6cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-align: center;
}

.product-description ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

.product-description li {
    font-size: 18px;
    color: #4a5568;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    position: relative;
    line-height: 1.6;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(168, 230, 207, 0.1);
}

.product-description li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 230, 207, 0.2);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(168, 230, 207, 0.3);
}

.product-description li::before {
    content: '🌿';
    position: absolute;
    right: 1px;
    top: 15px;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 25px;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.favorite-btn {
    width: 80px;
    height: 80px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(168, 230, 207, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.favorite-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(168, 230, 207, 0.3);
}

.favorite-btn.active {
    background: linear-gradient(135deg, #8B9B8B 0%, #6b7b6b 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(139, 155, 139, 0.4);
}

.heart-icon {
    width: 32px;
    height: 32px;
}

.add-to-cart-btn {
    flex: 1;
    height: 80px;
    background: linear-gradient(135deg, #a8e6cf 0%, #8B9B8B 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(168, 230, 207, 0.4);
    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.5s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(168, 230, 207, 0.6);
    background: linear-gradient(135deg, #8B9B8B 0%, #6b7b6b 100%);
    color: white;
}

.add-to-cart-btn:active {
    transform: translateY(-1px);
}

.cart-icon {
    width: 28px;
    height: 28px;
}

.bottom-indicator {
    display: none;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 0.4s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.product-image {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Design */

/* على الشاشات الصغيرة مثل الموبايل */
/* ----------------- Media Queries Custom ------------------ */

/* حجم مخصص بين 426px و 780px */
/*@media (min-width: 319px) {*/
/*    .product-image {*/
/*        width: 90% !important;*/
/*        height: 45% !important;*/
/*    }*/
/*    .product-image img {*/
/*        width: 100% !important;*/
/*        height: 100% !important;*/
/*        object-fit: cover;*/
/*    }*/

/*}*/
/*@media (min-width: 413px) and (max-width: 750px) {*/
/*    .product-image {*/
/*        width: 90% !important;*/
/*        height: 60% !important;*/
/*        border-radius: 20px !important;*/
/*    }*/

/*    .product-image img {*/
/*        width: 100% !important;*/
/*        height: 100% !important;*/
/*        object-fit: cover !important;*/
/*        border-radius: 10px !important;*/
/*    }*/
/*}*/

/*@media (min-width: 377px) {*/

/*    .product-image {*/
/*        width: 90% !important;*/
/*        height: 45% !important;*/
/*    }*/
/*    .product-image img {*/
/*        width: 100% !important;*/
/*        height: 100% !important;*/
/*        object-fit: cover;*/
/*    }*/
/*}*/

/* شاشة وسط (تابلت مثلاً) */
/* شاشات صغيرة جداً: 320px و 360px */
@media (max-width: 360px) {
    .product-image {
        width: 70% !important;
        height: 45% !important;
    }
    .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
}

/* شاشات بين 375px و 390px */
@media (min-width: 375px) and (max-width: 391px) {
    .product-image {
        width: 75% !important;
        height: 50% !important;
    }
    .product-image img {
        height: 100% !important;
    }
}

/* شاشات بين 400px و 413px */
@media (min-width: 400px) and (max-width: 413px) {
    .product-image {
        width: 78% !important;
        height: 55% !important;
    }

    .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }
}

/* من 414px إلى 424px شغال تمام */
@media (min-width: 414px) and (max-width: 424px) {
    .product-image {
        width: 80% !important;
        height: 60% !important;
    }

    .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }
}

        /* من 425px إلى 767px */
@media (min-width: 425px) and (max-width: 767px) {
    .product-image {
        width: 80% !important;
        height: 65% !important;
    }
    .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }
}

/* من 768px إلى 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-image {
        width: 60% !important;
        height: 85% !important;
    }
    .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }
}


@media (max-width: 1200px) {
    .mobile-container {
        max-width: 800px;
    }

    .product-info {
        padding: 50px 60px;
    }

    .product-title {
        font-size: 36px;
    }

    .price {
        font-size: 30px;
    }

    .product-description ul {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 800px) {
    .mobile-container {
        max-width: 95%;
        margin: 10px auto;
    }

    .product-image-section {
        height: 500px;
    }

    /*.product-image {*/
    /*    width: 70%;*/
    /*    height: 450px;*/
    /*}*/
    /*.product-image img {*/
    /*    width: 100% !important;*/
    /*    height: 100% !important;*/
    /*    object-fit: cover;*/
    /*}*/
    .product-info {
        padding: 40px 25px;
    }

    .product-title {
        font-size: 28px;
    }

    .price {
        font-size: 24px;
    }

    .quantity-section {
        padding: 20px 25px;
        margin-bottom: 40px;
    }

    .quantity-label {
        font-size: 20px;
    }

    .product-description {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .product-description h3 {
        font-size: 24px;
    }

    .product-description ul {
        gap: 12px;
    }

    .product-description li {
        font-size: 16px;
        padding: 12px 15px;
    }

    .action-buttons {
        gap: 15px;
    }

    .favorite-btn {
        width: 60px;
        height: 60px;
    }

    .heart-icon {
        width: 24px;
        height: 24px;
    }

    .add-to-cart-btn {
        height: 60px;
        font-size: 18px;
    }

    .cart-icon {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 1201px) {
    .mobile-container {
        margin: 50px auto;
        border-radius: 30px;
        box-shadow: 0 40px 100px rgba(139, 155, 139, 0.3);
    }

    .product-image-section {
        height: 700px;
        border-radius: 30px 30px 0 0;
    }

    .product-info {
        padding: 80px 120px;
    }

    .product-title {
        font-size: 48px;
    }

    .price {
        font-size: 40px;
    }
}