/* CSS Variables */
:root {
    --accent-color: #ff6b6b;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* إخفاء محدد العملات بشكل دائم */
.currency-btn,
.currency-dropdown,
.currency-option,
#currencyBtn,
#currencyDropdown {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
}

/* إذا كان هناك أي عنصر يحتوي على هذه الكلاسات */
[class*="currency"] {
    display: none !important;
}
body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #22376a, #4a90e2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.content-hidden {
    opacity: 0;
    visibility: hidden;
}

.content-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

/* Buttons */
.btn-pulse {
    display: inline-block;
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-large {
    padding: 15px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    direction: rtl;
    top: 0;
    left: 0;
    width: 100%;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: slideText 20s linear infinite;
}

.announcement-badge {
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    color: white;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    animation: pulse 1.5s infinite, glow 2s infinite;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.announcement-text {
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.announcement-highlight {
    color: #ffeaa7;
    font-weight: bold;
    background: linear-gradient(45deg, #ffeaa7, #fdcb6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Product Details */
.product-details {
    padding-top: 140px;
    background-color: var(--bg-light);
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: visible;
    box-shadow: var(--shadow-md);
    position: relative;
    background: #f8f9fa;
    display: block;
}

.main-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 1;
    visibility: visible;
}

.thumbnail-gallery {
    /* display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 10px 5px;
    max-width: calc(80px * 3 + 1rem * 3); */
    /* إخفاء شريط التمرير */
     /* scrollbar-width: none; 
     -ms-overflow-style: none;  */
}

.thumbnail-gallery::-webkit-scrollbar {
    display: none; 
}

.thumbnail {
    /* width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0; */
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.thumbnail img.loaded {
    opacity: 1;
}

.product-info {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.product-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Color Selector */
.color-selector {
    margin: 1.5rem 0;
}

.color-selector label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.color-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-option {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    padding: 3px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-option.selected {
    border-color: var(--primary-color);
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.color-swatch.pink { background-color: #ff69b4; }
.color-swatch.black { background-color: #2c2c2c; }
.color-swatch.blue { background-color: #4169e1; }

.color-name {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    color: var(--text-light);
}

.color-checkmark {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: var(--transition);
}

.color-option.selected .color-checkmark {
    opacity: 1;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--text-dark);
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    background: var(--bg-light);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.125rem;
    transition: var(--transition);
}

.quantity-input input {
    width: 60px;
    border: none;
    text-align: center;
    font-size: 1rem;
    padding: 10px;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

/* Feature Grid Section */
.feature-grid-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    margin-top: 0px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

.feature-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: #f8f9fa;
    display: block;
    width: 100%;
}

.feature-image:hover {
    transform: translateY(-5px);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-content {
    padding: 20px;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.feature-description {
    margin-bottom: 30px;
}

.feature-description p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.feature-highlights {
    margin-bottom: 40px;
}

.highlight-item {
    display: flex;
    /* align-items: flex-start; */
    gap: 15px;
    margin-bottom: 25px;
}

.highlight-icon {
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-text h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.highlight-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Image Slider */
.image-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform-style: preserve-3d;
    perspective: 1000px;
}

#feature-image-src {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    filter: brightness(1);
    position: relative;
}

#feature-image-src.fade-out {
    animation: imageFadeOut 0.8s ease-in-out forwards;
}

#feature-image-src.fade-in {
    animation: imageFadeIn 0.8s ease-in-out forwards;
}

#feature-image-src.zoom-effect {
    animation: subtleZoom 10s ease-in-out infinite;
}

.slider-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hot-tag {
    position: absolute;
    top: 20px;
    left: 38%;
    transform: translateX(-38%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    animation: pulseGlow 2s ease-in-out infinite, floatUpDown 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-right: 4px solid #007bff;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.reviewer-location {
    color: #666;
    font-size: 0.85rem;
}

.review-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-date {
    color: #888;
    font-size: 0.85rem;
}

.review-form-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.review-form-container h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
}

.star:hover,
.star.active {
    color: #ffc107;
}

/* Checkout Section */
.checkout-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.checkout-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.order-summary {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    font-family: inherit;
}

.whatsapp-float .wa-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(180deg,#25D366,#128C7E);
    box-shadow: 0 6px 18px rgba(18,140,126,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.whatsapp-float .wa-label {
    background: #ffffff;
    color: #075e54;
    padding: 10px 14px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    white-space: nowrap;
    font-size: 14px;
    border: 1px solid rgba(7,94,84,0.06);
}

/* Subscription Dialog */
.subscription-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.dialog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.dialog-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes slideText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6); }
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(0deg); }
    40% { transform: translateY(-8px) rotate(5deg); }
    60% { transform: translateY(-4px) rotate(-5deg); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes imageFadeOut {
    0% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
        filter: brightness(1) blur(0px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02) rotateY(10deg);
        filter: brightness(0.8) blur(2px);
    }
    100% {
        opacity: 0;
        transform: scale(1.05) rotateY(20deg);
        filter: brightness(0.6) blur(4px);
    }
}

@keyframes imageFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95) rotateY(-20deg);
        filter: brightness(0.6) blur(4px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02) rotateY(-10deg);
        filter: brightness(0.8) blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
        filter: brightness(1) blur(0px);
    }
}

@keyframes subtleZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 30px rgba(255, 107, 107, 0.7);
        transform: scale(1.05);
    }
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

@keyframes shimmerLoad {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive Design */
/* Tablets */
@media (max-width: 1024px) {
    .product-container {
        gap: 3rem;
        padding: 0 15px;
    }
    
    .feature-grid {
        gap: 40px;
        padding: 0 15px;
    }
    
    .feature-title {
        font-size: 2rem;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .thumbnail-gallery {
        max-width: calc(80px * 4 + 1rem * 3);
    }
    /* #feature-image-id{
        display: none !important;
    } */
    .thumbnail {
    width: 80px;
    height: 80px;
    }
    .nav-menu {
        top: 115px !important;
    }
    
    .product-details {
        padding-top: 120px;
    }
    
    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 10px 0px;
    }
    .container {
    padding: 0 20px;
}
    .main-image {
        height: 40vh;
        min-height: 300px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 0px;
    }
    
    .feature-title {
        font-size: 1.8em;
    }
    .feature-description p{
        font-size: 1.1rem;
    }
    .feature-grid-section {
        padding: 40px 0;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .review-form-container {
        padding: 1.5rem;
    }
    
    .checkout-form {
        padding: 1.5rem;
    }
    
    .hot-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .announcement-content {
        gap: 10px;
        animation-duration: 15s;
    }
    
    .announcement-text {
        font-size: 0.9rem;
    }
    
    .announcement-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
        /* #feature-image-id{
        display: none !important;
    } */
    .product-info {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    .feature-description p{
        font-size: 1.1rem;
    }
    .feature-content {
        padding: 10px;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .highlight-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }
    
    .feature-actions {
        flex-direction: column;
    }
    
    .feature-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .color-options {
        justify-content: center;
    }
    
    .color-swatch {
        width: 40px;
        height: 40px;
    }
    
    .quantity-input input {
        width: 50px;
    }
    
    .dialog-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .dialog-header h3 {
        font-size: 1.1rem;
    }
    
    .whatsapp-float .wa-label {
        display: none;
    }
    
    .whatsapp-float {
        left: 14px;
        bottom: 14px;
    }
    
    .whatsapp-float .wa-btn {
        width: 52px;
        height: 52px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .thumbnail-gallery {
        max-width: calc(60px * 4 + 1rem * 3);
    }
}

/* Very Small Screens */
@media (max-width: 320px) {
        /* #feature-image-id{
        display: none !important;
    } */
    .product-container {
        padding: 0 10px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .feature-grid {
        padding: 0 10px;
    }
    
    .announcement-content {
        flex-direction: column;
        gap: 5px;
    }
    
    .color-options {
        gap: 0.5rem;
    }
    
    .color-swatch {
        width: 35px;
        height: 35px;
    }
    .feature-title {
        font-size: 1rem;
    }
    .feature-description p{
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .loading-screen {
        padding: 20px 0;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .main-image {
        height: 50vh;
    }
    
    .product-details {
        padding-top: 100px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .main-image img,
    .feature-image img,
    .thumbnail img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .announcement-bar,
    .subscription-dialog {
        display: none !important;
    }
    
    .product-details {
        padding-top: 0;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}


    /* تنسيقات اختيار العملة */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.currency-selector {
    position: relative;
    display: inline-block;

}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.currency-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.currency-flag {
    font-size: 1.1rem;
}

.currency-code {
    font-weight: 600;
    color: var(--text-dark);
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: none;
    margin-top: 5px;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.currency-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: var(--bg-light);
}

.currency-option.selected {
    background: var(--primary-color);
    color: var(--text-white);
}

.currency-option.selected .currency-code {
    color: var(--text-white);
}

.currency-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.currency-name {
    font-size: 0.8rem;
    color: var(--text-light);
}

.currency-option.selected .currency-name {
    color: rgba(255, 255, 255, 0.9);
}

.currency-code {
    font-size: 0.9rem;
    font-weight: 600;
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
    }
    
    .currency-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .currency-dropdown {
        min-width: 180px;
        right: 0;
    }
    
    .currency-option {
        padding: 10px 12px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .currency-btn .currency-code {
        display: none;
    }
    
    .currency-btn {
        padding: 6px 8px;
    }
    
    .currency-flag {
        font-size: 1rem;
    }
}






    .thumbnail-gallery-container {
    position: relative;
    max-width: calc(90px * 3 + 2rem * 2);
    margin: 0 auto;
}

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    padding: 10px 0px;
    overflow: scroll;
    scroll-behavior: smooth;
    max-width: calc(90px * 3 + 1rem * 2);
    margin: 0 auto;
}

.thumbnail {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
    opacity: 1;
    transform: scale(1);
}

.thumbnail.active {
    border-color: var(--primary-color);
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

/* الأسهم الجانبية */
.thumbnail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.thumbnail-nav:hover {
    background: var(--primary-color);
    /* border-color: var(--primary-color); */
    color: var(--text-white);
    transform: translateY(-50%) scale(1.1);
}

.thumbnail-prev {
    left: -20px;
}

.thumbnail-next {
    right: -20px;
}

.thumbnail-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.thumbnail-nav:disabled:hover {
    background: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-dark);
    transform: translateY(-50%) scale(1);
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    .thumbnail-gallery-container {
        max-width: calc(90px * 3 + 0.8rem * 2);
    }

    .thumbnail-gallery {
        max-width: calc(90px * 3 + 0.8rem * 2);
        /* gap: 0.8rem; */
    }

    .thumbnail {
        width: 85px;
        border-width: 2px;
    }

    .thumbnail-nav {
        width: 35px;
        height: 35px;
    }

    .thumbnail-prev {
        left: -15px;
    }

    .thumbnail-next {
        right: -15px;
    }
}

@media (max-width: 480px) {
    .thumbnail-gallery-container {
        max-width: calc(85px * 3 + 0.6rem * 2);
    }

    .thumbnail-gallery {
        max-width: calc(85px * 3 + 0.6rem * 2);
        gap: 0.6rem;
    }

    .thumbnail {
        width: 85px;
        height: 85px;
        border-width: 2px;
    }

    .thumbnail-nav {
        width: 30px;
        height: 30px;
    }

    .thumbnail-prev {
        left: -10px;
    }

    .thumbnail-next {
        right: -10px;
    }
}

@media (max-width: 360px) {
    .thumbnail-gallery-container {
        max-width: calc(80px * 3 + 0.5rem * 2);
    }

    .thumbnail-gallery {
        max-width: calc(80px * 3 + 0.5rem * 2);
        gap: 0.5rem;
    }

    .thumbnail {
        width: 80px;
        height: 80px;
    }

    .thumbnail-nav {
        width: 25px;
        height: 25px;
    }
}




    .mobile-price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.old-price-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
}

.original-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 480px) {
    .mobile-price-container {
        gap: 6px;
    }
    
    .product-price-mobile {
        font-size: 1rem;
    }
    
    .original-price {
        font-size: 0.75rem;
    }
    
    .discount-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

@media (max-width: 360px) {
    .mobile-price-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .old-price-mobile {
        gap: 4px;
    }
}
/* زر الواتساب المعدل */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 90px; /* ارتفاع أعلى ليكون فوق زر الطلب */
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    font-family: inherit;
}

.whatsapp-float .wa-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(180deg,#25D366,#128C7E);
    box-shadow: 0 6px 18px rgba(18,140,126,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.whatsapp-float .wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 22px rgba(18,140,126,0.35);
}

.whatsapp-float .wa-label {
    background: #ffffff;
    color: #075e54;
    padding: 10px 14px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    white-space: nowrap;
    font-size: 14px;
    border: 1px solid rgba(7,94,84,0.06);
}

/* زر الطلب الثابت للهواتف */
.mobile-order-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 2px solid var(--primary-color);
    padding: 12px 15px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    display: none;
    animation: slideUpIn 0.3s ease-out;
}

.mobile-order-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-info-mobile {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title-mobile {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-price-mobile {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-order-btn .btn {
    flex-shrink: 0;
    min-width: 140px;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: nowrap;
}

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* إظهار الزر فقط في الهواتف */
@media (max-width: 768px) {
    .mobile-order-btn {
        display: block;
    }
    
    /* إضافة مسافة إضافية في الأسفل لمنع تداخل المحتوى */
    body {
        /* padding-bottom: 80px; */
    }
    
    /* تعديل موقع زر الواتساب في الهواتف */
    .whatsapp-float {
        left: 15px;
        bottom: 85px;
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .mobile-order-content {
        gap: 10px;
    }
    
    .product-title-mobile {
        font-size: 0.8rem;
    }
    
    .product-price-mobile {
        font-size: 1rem;
    }
    
    .mobile-order-btn .btn {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        left: 12px;
        bottom: 80px;
    }
    
    .whatsapp-float .wa-btn {
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-float .wa-label {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 360px) {
    .mobile-order-btn {
        padding: 10px 12px;
    }
    
    .product-title-mobile {
        font-size: 0.75rem;
    }
    
    .product-price-mobile {
        font-size: 0.9rem;
    }
    
    .mobile-order-btn .btn {
        min-width: 110px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .whatsapp-float {
        left: 10px;
        bottom: 75px;
    }
    
    .whatsapp-float .wa-btn {
        width: 48px;
        height: 48px;
    }
    
    .whatsapp-float .wa-label {
        display: none; /* إخفاء النص في الشاشات الصغيرة جداً */
    }
}

/* للأجهزة اللوحية */
@media (min-width: 769px) and (max-width: 1024px) {
    .whatsapp-float {
        bottom: 25px;
    }
}

/* إخفاء زر الواتساب عندما يكون زر الطلب غير ظاهر */
@media (min-width: 769px) {
    .whatsapp-float {
        bottom: 25px;
    }
}