/* Etsy Theme - Responsive Styles */

/* Tablet - 968px and below */
@media (max-width: 968px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .product-gallery-main {
        position: static;
    }
    
    .container {
        padding: var(--spacing-md);
    }
    
    .page-header h1 {
        font-size: var(--font-size-3xl);
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    /* Typography adjustments */
    body {
        font-size: 13px;
    }
    
    .page-title {
        font-size: var(--font-size-2xl);
    }
    
    .page-header h1 {
        font-size: var(--font-size-3xl);
    }
    
    /* Layout */
    .container {
        padding: var(--spacing-md);
    }
    
    /* Header & Navigation - 2 Section */
    .header-top-content {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .site-logo {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 20px;
        height: 20px;
    }
    
    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .header-nav-content {
        padding: 0 16px;
    }
    
    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-link {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--spacing-md);
    }
    
    .product-image {
        height: 180px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    /* Page Actions */
    .page-actions {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
    
    /* Filters */
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search-form {
        min-width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    /* Product Detail */
    .product-detail {
        padding: var(--spacing-lg) 0;
    }
    
    .product-info h1 {
        font-size: var(--font-size-2xl);
    }
    
    .product-price-large {
        font-size: var(--font-size-xl);
    }
    
    .product-compare-price {
        font-size: var(--font-size-lg);
    }
    
    .product-meta {
        grid-template-columns: 1fr 1fr;
    }
    
    .add-to-cart-section {
        position: static;
        margin-top: var(--spacing-lg);
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: var(--font-size-sm);
    }
    
    /* Search Box */
    .search-box {
        max-width: 100%;
    }
    
    /* Table - Make scrollable */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    /* Cards */
    .card-body {
        padding: var(--spacing-md);
    }
    
    /* Footer */
    .site-footer {
        padding: var(--spacing-lg) 0;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .container {
        padding: var(--spacing-sm);
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .product-meta {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .page-header {
        padding: var(--spacing-lg) 0;
    }
    
    .page-header h1 {
        font-size: var(--font-size-2xl);
    }
    
    .product-info h1 {
        font-size: var(--font-size-xl);
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .main-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 600px) {
    .site-header {
        position: static;
    }
    
    .product-gallery-main {
        position: static;
    }
    
    .add-to-cart-section {
        position: static;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .main-nav,
    .filters-bar,
    .add-to-cart-section,
    .related-section {
        display: none;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
}
