/* Fashion Store - Responsive Styles */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Hero Section */
    .hero-slide {
        min-height: 300px;
        padding: 2rem 0;
    }
    
    .hero-slide h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-slide .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Product Cards */
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-overlay {
        position: static;
        opacity: 1;
        background: transparent;
        padding: 0.5rem;
    }
    
    .product-overlay .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Category Cards */
    .category-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .category-icon {
        margin-bottom: 0.5rem;
    }
    
    .category-icon i {
        font-size: 2rem !important;
    }
    
    /* Feature Boxes */
    .feature-box {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-box i {
        font-size: 2rem !important;
    }
    
    /* Filter Sidebar */
    .filter-sidebar {
        margin-bottom: 2rem;
        position: static;
    }
    
    /* Product Detail */
    .product-images {
        position: static;
        margin-bottom: 2rem;
    }
    
    .thumbnail-images .col-3 {
        margin-bottom: 0.5rem;
    }
    
    .size-options .btn {
        width: 40px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .quantity-controls .form-control {
        max-width: 50px;
    }
    
    /* Cart */
    .cart-item {
        padding: 1rem !important;
    }
    
    .cart-item .row > div {
        margin-bottom: 0.5rem;
    }
    
    .cart-summary {
        margin-top: 2rem;
    }
    
    .cart-summary .card {
        position: static;
    }
    
    /* Contact Form */
    .contact-info-card {
        margin-bottom: 1rem;
    }
    
    /* About Page */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2rem !important;
    }
    
    /* Footer */
    .footer .col-md-4,
    .footer .col-md-2,
    .footer .col-md-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 1rem;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-slide {
        min-height: 400px;
    }
    
    .hero-slide h1 {
        font-size: 2.2rem !important;
    }
    
    .product-image {
        height: 220px;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-slide {
        min-height: 450px;
    }
    
    .product-image {
        height: 240px;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .cart-summary .card {
        position: static;
    }
    
    .product-images {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .product-image {
        height: 250px;
    }
    
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .product-image {
        height: 280px;
    }
    
    .hero-slide {
        min-height: 500px;
    }
    
    .category-card {
        padding: 2.5rem;
    }
    
    .feature-box {
        padding: 2.5rem 1rem;
    }
}

/* Specific Responsive Utilities */

/* Hide elements on small screens */
@media (max-width: 767.98px) {
    .d-none-mobile {
        display: none !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .mb-mobile {
        margin-bottom: 1rem !important;
    }
}

/* Grid adjustments for products */
@media (max-width: 575.98px) {
    .products-grid .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .products-grid .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Cart responsive adjustments */
@media (max-width: 767.98px) {
    .cart-item .col-md-2,
    .cart-item .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cart-item .row {
        text-align: center;
    }
    
    .cart-item .text-end {
        text-align: center !important;
    }
}

/* Product detail responsive */
@media (max-width: 991.98px) {
    .product-detail .col-lg-6 {
        margin-bottom: 2rem;
    }
}

/* Navigation responsive improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white !important;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
        padding: 1rem !important;
        border: 1px solid rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1000;
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        border-radius: 6px;
        transition: background-color 0.3s ease;
        color: #3d3d3d !important;
        padding: 0.75rem 1rem;
        display: block;
        width: 100%;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: #f8f9fa !important;
        color: #0058a3 !important;
    }
    
    .navbar-nav .nav-link.active {
        background-color: #0058a3 !important;
        color: white !important;
    }
    
    /* Dropdown menus in mobile */
    .navbar-nav .dropdown-menu {
        background-color: #f8f9fa !important;
        border: none;
        box-shadow: none;
        padding: 0.5rem;
        margin-top: 0.5rem;
        border-radius: 6px;
    }
    
    .navbar-nav .dropdown-item {
        color: #3d3d3d !important;
        border-radius: 4px;
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: #0058a3 !important;
        color: white !important;
    }
    
    /* User menu specific styling */
    .navbar-nav #user-menu .dropdown-menu {
        background-color: #ffffff !important;
        border: 1px solid #e8e8e8;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Language switcher */
    .navbar-nav .dropdown-toggle::after {
        margin-left: auto;
    }
    
    /* Cart and search icons alignment */
    .navbar-nav.d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .navbar-nav.d-flex > * {
        margin-bottom: 0.5rem;
        justify-content: flex-start;
    }
}

/* Footer responsive */
@media (max-width: 767.98px) {
    .footer .row > div {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
    }
}

/* Form responsive */
@media (max-width: 575.98px) {
    .form-row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control,
    .input-group .btn {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
    }
}

/* Contact page responsive */
@media (max-width: 767.98px) {
    .contact-info-card {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .social-links-large .btn {
        display: block;
        margin: 0.5rem 0;
    }
}

/* About page responsive */
@media (max-width: 767.98px) {
    .about-image-placeholder,
    .sustainability-image-placeholder {
        height: 200px !important;
        margin-bottom: 2rem;
    }
    
    .team-member .member-photo > div {
        width: 100px !important;
        height: 100px !important;
    }
    
    .award-item {
        margin-bottom: 1.5rem;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve form accessibility */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-select {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Landscape phone adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-slide {
        min-height: 250px;
    }
    
    .hero-slide h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-slide .lead {
        font-size: 0.9rem;
    }
}

/* Print responsive styles */
@media print {
    .container {
        max-width: none !important;
        width: 100% !important;
    }
    
    .row {
        margin: 0 !important;
    }
    
    .col-md-6,
    .col-lg-4,
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
