/* Playful Paws - Responsive Styles
   Mobile, Tablet, and Desktop Breakpoints
*/

/* ===== Large Desktop (1400px and up) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .header {
        max-width: 1400px;
    }
    
    .footer {
        max-width: 1400px;
    }
}

/* ===== Desktop (1024px - 1399px) ===== */
@media (max-width: 1399px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Tablet (768px - 1023px) ===== */
@media (max-width: 1023px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-collection-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shop-filters {
        width: 100%;
    }
    
    .product-details {
        grid-template-columns: 1fr;
    }
    
    .cart-page {
        grid-template-columns: 1fr;
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .account-info {
        grid-template-columns: 1fr;
    }
    
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-search-input {
        width: 150px;
    }
    
    .header-search-input:focus {
        width: 200px;
    }
}

/* ===== Mobile Large (576px - 767px) ===== */
@media (max-width: 767px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .header-search {
        display: none;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-collection-text h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select,
    .filter-btn {
        width: 100%;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: var(--spacing-sm);
    }
    
    .cart-item-image {
        grid-row: 1 / -1;
        width: 80px;
        height: 80px;
    }
    
    .cart-item-quantity {
        grid-column: 2;
    }
    
    .cart-item-remove {
        grid-column: 2;
        justify-self: start;
    }
    
    .product-quantity {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-page {
        padding: var(--spacing-lg);
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .legal-content {
        padding: var(--spacing-lg);
    }
}

/* ===== Mobile Small (375px - 575px) ===== */
@media (max-width: 575px) {
    .container {
        padding: var(--spacing-sm);
    }
    
    .header {
        padding: var(--spacing-sm);
    }
    
    .header-logo {
        font-size: 1.25rem;
    }
    
    .header-logo svg {
        width: 32px;
        height: 32px;
    }
    
    .header-icon {
        width: 36px;
        height: 36px;
    }
    
    .header-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .header-badge {
        width: 18px;
        height: 18px;
        font-size: 0.625rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 0.875rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .featured-collection-text h2 {
        font-size: 1.75rem;
    }
    
    .featured-collection-text p {
        font-size: 1rem;
    }
    
    .newsletter h2 {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .footer-grid {
        gap: var(--spacing-lg);
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .product-info h1 {
        font-size: 1.75rem;
    }
    
    .product-price-large {
        font-size: 1.5rem;
    }
    
    .account-header {
        padding: var(--spacing-lg);
    }
    
    .account-section {
        padding: var(--spacing-lg);
    }
    
    .about-content,
    .contact-form,
    .legal-content {
        padding: var(--spacing-md);
    }
}

/* ===== Extra Small (up to 374px) ===== */
@media (max-width: 374px) {
    .header-logo {
        font-size: 1rem;
    }
    
    .header-logo svg {
        width: 28px;
        height: 28px;
    }
    
    .header-icon {
        width: 32px;
        height: 32px;
    }
    
    h1 { font-size: 1.25rem; }
    h2 { font-size: 1.125rem; }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .product-card-content {
        padding: var(--spacing-sm);
    }
    
    .product-card-content h3 {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.125rem;
    }
}

/* ===== Landscape Orientation ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .mobile-nav {
        padding: var(--spacing-lg);
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .footer,
    .btn,
    .product-wishlist-btn,
    .cart-item-remove,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .product-card,
    .cart-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
