* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Arabic', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    direction: rtl;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.grand {
    color: #d4af37;
}

.baby {
    color: white;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cart-icon:hover {
    background: rgba(255,255,255,0.1);
}

.cart-icon i {
    font-size: 1.5rem;
    color: #d4af37;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Product Gallery */
.product-gallery {
    padding: 1rem;
}

.gallery-container {
    text-align: center;
}

.main-image {
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    min-width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #d4af37;
    transform: scale(1.1);
}

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

/* Product Details */
.product-details {
    padding: 1rem;
}

.product-info h2 {
    font-size: 1.4rem;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-code {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Pricing Options */
.pricing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.price-card.active {
    border-color: #d4af37;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.price-header h3 {
    font-size: 1rem;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.min-quantity {
    font-size: 0.8rem;
    color: #666;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 1.5rem;
}

.quantity-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d2d2d;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    border: none;
    background: #d4af37;
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control button:hover {
    background: #b8941f;
    transform: scale(1.1);
}

.quantity-control input {
    width: 80px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Total Price */
.total-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #d4af37;
}

.total-price span {
    font-size: 1.2rem;
    color: #2d2d2d;
}

.total-price strong {
    color: #d4af37;
    font-size: 1.4rem;
}

/* Order Button */
.order-btn {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    margin-bottom: 2rem;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.order-btn:active {
    transform: translateY(0);
}

/* Similar Products */
.similar-products {
    padding: 1rem;
    background: #f8f9fa;
}

.similar-products h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2d2d2d;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.product-card h4 {
    font-size: 0.9rem;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-card .price {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100%;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    background: #2d2d2d;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-cart:hover {
    background: rgba(255,255,255,0.1);
}

.cart-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    color: #2d2d2d;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    font-size: 0.8rem;
    color: #666;
}

.cart-item-price {
    font-weight: 600;
    color: #d4af37;
}

.remove-item {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-footer {
    padding: 1rem;
    border-top: 2px solid #e0e0e0;
    background: #f8f9fa;
}

.cart-total {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #2d2d2d;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
}

/* Order Form */
.order-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.order-overlay.active {
    opacity: 1;
    visibility: visible;
}

.order-form {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.order-overlay.active .order-form {
    transform: scale(1);
}

.form-header {
    background: #2d2d2d;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.form-header h3 {
    font-weight: 600;
}

.close-form {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-form:hover {
    background: rgba(255,255,255,0.1);
}

#orderForm {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d2d2d;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4af37;
}

.order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.order-summary h4 {
    margin-bottom: 0.5rem;
    color: #2d2d2d;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.final-total {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
    font-size: 1.1rem;
    color: #2d2d2d;
}

.final-total span {
    color: #d4af37;
    font-size: 1.3rem;
}

.submit-order-btn {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Contact Section */
.contact-section {
    padding: 2rem 1rem;
    background: #2d2d2d;
    color: white;
}

.contact-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.contact-link:hover {
    transform: translateY(-3px);
}

.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #005577 100%);
}

.app {
    background: linear-gradient(135deg, #34a853 0%, #0f9d58 100%);
}

.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-details,
.similar-products {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .main-image img {
        height: 250px;
    }
    
    .pricing-options {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        grid-template-columns: 1fr;
    }
}