/* ======================================
   RESPONSIVE STYLES
====================================== */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    /* Layout adjustments */
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    /* About section */
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }
    
    .about-image {
        margin-bottom: var(--spacing-md);
    }
    
    /* Testimonials */
    .testimonial {
        flex: 0 0 calc(50% - var(--spacing-md));
    }
    
    /* Instagram grid */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Product detail */
    .product-detail-content {
        flex-direction: column;
    }
    
    .product-gallery, .product-info {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }
    
    .product-gallery {
        margin-bottom: var(--spacing-md);
    }
    
    /* Cart page */
    .cart-content {
        flex-direction: column;
    }
    
    .cart-items, .cart-totals {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .cart-totals {
        margin-top: var(--spacing-md);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Checkout page */
    .checkout-content {
        flex-direction: column;
    }
    
    .checkout-form-container, .order-summary {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .order-summary {
        margin-top: var(--spacing-md);
    }
    
    /* Contact page */
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .contact-form-container {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .contact-info {
        margin-bottom: var(--spacing-md);
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    /* Header */
    .header-top {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo {
        margin-bottom: var(--spacing-sm);
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-col {
        flex: 0 0 100%;
        margin-bottom: var(--spacing-md);
        padding-right: 0;
    }
    
    /* Hero section */
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    /* Products section */
    .categories {
        flex-wrap: wrap;
    }
    
    /* Testimonials */
    .testimonial {
        flex: 0 0 100%;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius-md);
        border-right: 1px solid var(--color-border);
        margin-bottom: var(--spacing-xs);
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius-md);
    }
    
    /* Product page */
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 0 0 50%;
        text-align: center;
    }
    
    /* Cart table */
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: var(--spacing-sm);
        text-align: left;
        font-weight: 500;
    }
    
    .product-info {
        justify-content: flex-end;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form elements */
    .form-row {
        flex-direction: column;
    }
    
    .form-group.half {
        width: 100%;
    }
    
    /* Checkout actions */
    .checkout-actions {
        flex-direction: column;
    }
    
    .checkout-actions .btn {
        margin-bottom: var(--spacing-xs);
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1, .page-title {
        font-size: 1.8rem;
    }
    
    h2, .section-title {
        font-size: 1.5rem;
    }
    
    /* Layout */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    /* Products grid */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Instagram grid */
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Product gallery */
    .thumbnail-images {
        justify-content: center;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}
