/* ==========================================
   COSMETIC SHOP - RESPONSIVE STYLES
   ========================================== */

/* ==========================================
   LARGE DESKTOP (1400px and up)
   ========================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* ==========================================
   TABLET LANDSCAPE (992px - 1199px)
   ========================================== */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   TABLET (768px - 991px)
   ========================================== */
@media (max-width: 991px) {
    /* Header */
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: var(--spacing-md);
    }
    
    /* Navigation */
    .nav-menu {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .mega-menu {
        min-width: 100%;
    }
    
    .mega-menu-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hero */
    .heroSwiper {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Content Grids */
    .content-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gift Section */
    .gift-card {
        flex-direction: column;
    }
    
    .gift-image {
        width: 100%;
    }
}

/* ==========================================
   MOBILE LANDSCAPE (576px - 767px)
   ========================================== */
@media (max-width: 767px) {
    /* Typography */
    .section-header h2,
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Header */
    .logo h2 {
        font-size: 1.2rem;
    }
    
    .user-icon span {
        display: none;
    }
    
    .user-actions {
        gap: var(--spacing-xs);
    }
    
    /* Navigation */
    .nav-menu {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--spacing-xs);
    }
    
    .nav-item {
        white-space: nowrap;
    }
    
    .mega-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        min-width: auto;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
    }
    
    /* Hero */
    .heroSwiper {
        height: 350px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .product-info {
        padding: var(--spacing-sm);
    }
    
    .product-info h3 {
        font-size: 0.9rem;
    }
    
    /* Features */
    .features-section {
        padding: var(--spacing-lg) 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-item h3 {
        font-size: 0.9rem;
    }
    
    .feature-item p {
        font-size: 0.75rem;
    }
    
    /* Content Grids */
    .content-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gift Section */
    .gift-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-top {
        padding: var(--spacing-lg) 0;
    }
}

/* ==========================================
   MOBILE PORTRAIT (up to 575px)
   ========================================== */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header */
    .header-content {
        padding: var(--spacing-sm) 0;
    }
    
    .main-nav {
        padding: var(--spacing-xs) 0;
    }
    
    /* Hero */
    .heroSwiper {
        height: 300px;
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    .hero-title {
        font-size: 1.3rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-md);
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 1rem;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sections */
    .category-section,
    .special-offers,
    .beauty-content,
    .brands-section,
    .gift-section,
    .blog-section {
        padding: var(--spacing-lg) 0;
    }
    
    /* Section Header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    /* Video Cards */
    .video-card h3 {
        font-size: 0.95rem;
        padding: var(--spacing-sm);
    }
    
    .video-card p {
        padding: 0 var(--spacing-sm) var(--spacing-sm);
        font-size: 0.8rem;
    }
    
    .play-overlay i {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }
    
    /* Blog Cards */
    .blog-content {
        padding: var(--spacing-md);
    }
    
    .blog-content h3 {
        font-size: 1rem;
    }
    
    .blog-content p {
        font-size: 0.85rem;
    }
    
    /* Gift Section */
    .gift-content {
        padding: var(--spacing-md);
    }
    
    .gift-content h3 {
        font-size: 1.2rem;
    }
    
    /* Scroll to Top */
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================
   EXTRA SMALL MOBILE (up to 380px)
   ========================================== */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.1rem;
    }
    
    .section-header h2,
    .section-title {
        font-size: 1.3rem;
    }
    
    .product-info h3 {
        font-size: 0.85rem;
    }
    
    .feature-item {
        padding: var(--spacing-sm);
    }
    
    .footer-column h3 {
        font-size: 1rem;
    }
}

/* ==========================================
   LANDSCAPE ORIENTATION
   ========================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .heroSwiper {
        height: 90vh;
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .top-notification-bar,
    .main-header,
    .scroll-to-top,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination,
    .add-to-cart,
    .cta-button {
        display: none !important;
    }
    
    .product-card,
    .blog-card,
    .video-card {
        break-inside: avoid;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}








/*  ریسپانسیو بودن دکمه افزودن به سبد خرید در قسمت محصولات شگفت انگیز */

/* نمایش دکمه افزودن به سبد خرید در دسکتاپ (هاور) */
.product-card .add-to-cart-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: #ff4081;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

/* در موبایل: دکمه به صورت ایکون نمایش داده شود */
@media (max-width: 768px) {
    .product-card .add-to-cart-btn {
        opacity: 1;
        transform: none;
        position: absolute;
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    /* متن دکمه مخفی شود و فقط آیکون نمایش داده شود */
    .product-card .add-to-cart-btn span {
        display: none;
    }

    /* آیکون سبد خرید */
    .product-card .add-to-cart-btn::before {
        content: "🛒";
    }

    /* حذف افکت هاور در موبایل */
    .product-card:hover .add-to-cart-btn {
        opacity: 1;
        transform: none;
    }
}
