/* product-detail-responsive.css */
.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

/* موبایل */
@media (max-width: 640px) {
    .container {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .grid {
        display: block;
    }
    
    .grid-cols-1 > * {
        margin-bottom: 1rem;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .p-6 {
        padding: 1rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .h-96 {
        height: 16rem;
    }
    
    .h-20 {
        height: 4rem;
    }
    
    .date-inputs {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
        max-width: 95%;
    }
    
    .reservation-modal-content {
        width: 95%;
        max-width: 95%;
        padding: 1rem;
    }
    
    .reservation-modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .reservation-modal-footer .modal-btn {
        width: 100%;
    }
}

/* تبلت */
@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-container {
        width: 80%;
        max-width: 80%;
    }
    
    .reservation-modal-content {
        width: 80%;
        max-width: 80%;
    }
}

/* دسکتاپ */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
}

/* استایل‌های عمومی برای ریسپانسیو */
img {
    max-width: 100%;
    height: auto;
}

.unit-card {
    min-height: 120px;
}

/* بهبود نمایش در دستگاه‌های لمسی */
@media (hover: none) {
    .unit-card:hover {
        transform: none;
    }
    
    button, .modal-btn, .reservation-modal-close {
        min-height: 44px;
        min-width: 44px;
    }
}

/* بهبود خوانایی متن */
@media (max-width: 640px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}

/* بهبود نمایش فرم‌ها در موبایل */
.form-input, .form-select {
    font-size: 16px; /* جلوگیری از زوم در iOS */
}

/* بهبود نمایش Modal در دستگاه‌های مختلف */
.modal-container, .reservation-modal-content {
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}