/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .search-input {
        width: 200px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    /* Modal */
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    /* Sidebar */
    .cart-sidebar,
    .wishlist-sidebar {
        width: 350px;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 10px;
    }
    
    body {
        padding-top: 70px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-navigation {
        padding: 0 1rem;
    }
    
    .hero-nav-btn {
        padding: 0.75rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .category-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-card {
        height: 300px;
    }
    
    .collection-overlay h3 {
        font-size: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-intro {
        font-size: 1rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat h3 {
        font-size: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Modal */
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .product-details h2 {
        font-size: 1.5rem;
    }
    
    /* Sidebar */
    .cart-sidebar,
    .wishlist-sidebar {
        width: 100%;
        right: -100%;
    }
    
    /* Utility */
    .whatsapp-float {
        bottom: 1rem;
        left: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Medium */
@media (max-width: 575px) {
    .container {
        padding: 0 5px;
    }
    
    body {
        padding-top: 65px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-text {
        padding: 0 10px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Sections */
    .products-section,
    .collections-section,
    .about-section,
    .contact-section {
        padding: 3rem 0;
    }
    
    .features {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .collection-card {
        height: 250px;
    }
    
    .collection-overlay h3 {
        font-size: 1.3rem;
    }
    
    .collection-overlay p {
        font-size: 1rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-feature {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .about-feature i {
        font-size: 2rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-form-container {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    /* Modal */
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .main-image {
        height: 200px;
    }
    
    .product-details h2 {
        font-size: 1.3rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Mobile Small */
@media (max-width: 375px) {
    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.4rem;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .collection-card {
        height: 200px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat h3 {
        font-size: 1.3rem;
    }
    
    /* Modal */
    .main-image {
        height: 150px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .product-actions {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-navigation,
    .hero-indicators,
    .back-to-top,
    .whatsapp-float,
    .modal,
    .cart-sidebar,
    .wishlist-sidebar {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .hero-slide {
        position: static;
        opacity: 1;
        background: none !important;
    }
    
    .hero-content {
        color: var(--text-color);
    }
    
    .hero-title,
    .hero-subtitle {
        color: var(--text-color);
    }
    
    .products-section,
    .collections-section,
    .about-section,
    .contact-section {
        padding: 1rem 0;
    }
    
    .products-grid,
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card,
    .collection-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .footer {
        background: white;
        color: var(--text-color);
        border-top: 2px solid var(--border-color);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #ff0000;
        --text-color: #000000;
        --text-light: #333333;
        --bg-color: #ffffff;
        --bg-light: #f0f0f0;
        --border-color: #000000;
        --shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .product-card,
    .feature-card,
    .collection-card,
    .contact-card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loading-spinner {
        animation: none;
    }
    
    .hero-slide {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ffffff;
        --secondary-color: #ff6b6b;
        --text-color: #ffffff;
        --text-light: #cccccc;
        --bg-color: #1a1a1a;
        --bg-light: #2d2d2d;
        --border-color: #404040;
        --shadow: 0 2px 10px rgba(0,0,0,0.5);
        --shadow-hover: 0 5px 20px rgba(0,0,0,0.7);
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .dropdown-content {
        background: var(--bg-color);
        border: 1px solid var(--border-color);
    }
    
    .modal-content {
        background: var(--bg-color);
        color: var(--text-color);
    }
    
    .cart-sidebar,
    .wishlist-sidebar {
        background: var(--bg-color);
    }
}