/**
 * Pokémon TCG Frontend Styles
 * Styles for the cardchecker shortcode
 */

.pokemon-tcg-cardchecker {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Search Container */
.pokemon-tcg-search-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pokemon-tcg-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-main {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input-group {
    display: flex;
    flex: 1;
    gap: 10px;
    align-items: center;
    max-width: 100%;
}

.search-input {
    flex: 1;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    min-height: 40px;
    background-color: white;
    transition: border-color 0.3s ease;
    max-width: 60vw;
}

.search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.search-type {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

.search-button {
    padding: 12px 24px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: #005a87;
}

/* Advanced Filters */
.advanced-filters {
    border-top: 1px solid #e1e5e9;
    padding-top: 20px;
}

.advanced-filters h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-filters h4::before {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.advanced-filters h4.collapsed::before {
    transform: rotate(-90deg);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 70vw;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.filter-select {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #007cba;
}

/* Search Controls */
.search-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.sorting-group,
.view-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sorting-group label,
.view-group label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.sort-select,
.view-select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 120px;
}

/* Results Container */
.pokemon-tcg-results-container {
    position: relative;
}

.results-count {
    background: #e7f3ff;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #005a87;
    font-weight: 500;
}

.results-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results p {
    margin: 10px 0;
    font-size: 16px;
}

/* Set Information Display */
.set-info-display {
    padding: 20px;
    margin-bottom: 25px;
}

.set-info-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.set-logo {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.set-info-details {
    text-align: center;
}

.set-name {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.set-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6c757d;
    justify-content: center;
}

.set-series {
    font-weight: 600;
    color: #495057;
}

.set-release-date {
    font-style: italic;
}

.set-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #495057;
    justify-content: center;
}

.set-printed-total,
.set-total {
    background: #007cba;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-image-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #f8f9fa;
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.card-item:hover .card-image {
    transform: scale(1.05);
}

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    color: #999;
    font-size: 14px;
    background: #f8f9fa;
}

.fallback-image {
    opacity: 0.8;
    border: 2px dashed #ccc;
}

/* Card detail page fallback styling */
.card-detail-image.fallback-image {
    border: 2px dashed #ccc;
    opacity: 0.9;
}

.card-info {
    padding: 15px;
}

.card-name {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.card-name .card-number {
    font-weight: 400;
    color: #007cba;
    font-size: 14px;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-details p {
    margin: 10px 0 0 0!important;
    font-size: 13px;
    color: #666;
}

/* Card detail page - target the meta items */
.card-detail-meta-item {
    margin: 10px 0 0 0!important;
}

.card-detail {
    margin: 0 0 0px 0!important;
    font-size: 12px;
    color: #333;
    line-height: 1.3;
}

.card-detail strong {
    color: #007cba;
    font-weight: 600;
}

.card-number {
    font-weight: 600;
    color: #007cba;
}

.card-set {
    font-weight: 500;
    color: #555;
}

.card-types,
.card-subtypes {
    color: #777;
}

.card-rarity {
    font-weight: 500;
    color: #d63384;
}

.card-price {
    font-weight: 600;
    color: #198754;
    font-size: 14px;
}

/* Pagination */
.pokemon-tcg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #005a87;
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Loading Spinner */
.pokemon-tcg-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pokemon-tcg-loading p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Error Message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

/* Card Modal */
.card-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.card-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1000px;
    height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 10001;
    cursor: pointer;
    line-height: 1;
}

.card-modal-close:hover,
.card-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.card-modal-body {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.card-modal-image {
    flex: 0 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px!important;
    width: 500px;
    height: 500px;
}

.card-modal-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    padding-top:50px!important;
}

.card-image-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px!important;
    width: 100%;
    padding-bottom: 40px!important;
}

.set-image-overlay {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.set-image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transform: scale(2)!important;
}

.card-number-overlay {
    background: #007cba;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-modal-info {
    flex: 1;
    min-width: 0;
}

.card-modal-info h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #2c3e50;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.modal-card-detail {
    margin: 8px 0;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}

.modal-card-detail:last-child {
    border-bottom: none;
}

.modal-card-detail strong {
    color: #007cba;
    font-weight: 600;
    min-width: 120px;
    display: inline-block;
    margin-right: 10px;
    font-size: 12px;
}

.modal-card-detail span {
    color: #333;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
}

/* Special styling for flavor text */
.modal-card-detail.flavor-text {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
    background-color: #f9f9f9;
}

.modal-card-detail.flavor-text span {
    display: block;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.5;
}

/* Attack items styling */
.modal-card-detail.attack-item {
    margin: 4px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-left: 20px;
}

.modal-card-detail.attack-item:last-child {
    border-bottom: none;
}

.attack-name {
    color: #007cba;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.attack-description {
    color: #333;
    font-weight: 400;
    display: block;
    line-height: 1.4;
    margin-left: 0;
}

/* Price section styling */
.modal-card-detail.price-section-header {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 16px 0 8px 0;
    font-weight: 700;
    color: #495057;
    border-left: 4px solid #007cba;
}

.modal-card-detail.price-item {
    margin: 4px 0;
    padding: 4px 0;
    margin-left: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-card-detail.price-item:last-child {
    border-bottom: none;
}

/* Make cards clickable */
.card-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .search-input {
        width: 100%;
        max-width: 60vw;
    }
    
    .search-type {
        width: 100%;
        max-width: 100%;
    }
    
    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sorting-group,
    .view-group {
        justify-content: space-between;
    }
    
    .set-info-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .set-logo {
        width: 180px;
        height: 180px;
    }
    
    .set-name {
        font-size: 20px;
    }
    
    .set-meta,
    .set-stats {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .card-image-container {
        height: auto;
    }
    
    .card-info {
        padding: 12px;
    }
    
    .card-name {
        font-size: 14px;
    }
    
    .card-details p {
        font-size: 12px;
        margin: 10px 0 0 0!important;
    }
    
    .pokemon-tcg-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Modal responsive */
    .card-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .card-modal-body {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .card-modal-image {
        flex: none;
        text-align: center;
    }
    
    .card-modal-image img {
        max-width: 280px;
    }
    
    .card-modal-info h2 {
        font-size: 20px;
        text-align: center;
    }

    .filter-group {
        max-width: 70vw;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .pokemon-tcg-search-container {
        padding: 15px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-group {
        max-width: 70vw;
    }
    
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .card-image-container {
        height: auto;
    }
    
    .card-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .card-info {
        padding: 6px;
    }
    
    .card-name {
        font-size: 11px;
        line-height: 1.1;
    }
    
    .card-details p {
        font-size: 9px;
        margin: 10px 0 0 0!important;
    }
}



/* Card Detail Page Styles */
.pokemon-tcg-card-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card-detail-back-button {
    margin-bottom: 30px;
}



.card-detail-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.card-detail-image-section {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.card-detail-set-above {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.card-detail-set-image {
    width: 240px;
    height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.card-detail-number-above {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-detail-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Buy Set Button */
.card-detail-buy-set {
    margin-top: 20px;
    text-align: center;
}

.buy-set-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007cba72 0%, #005a8758 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.buy-set-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 124, 186, 0.4);
    color: white;
    text-decoration: none;
}

.buy-set-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.button-icon {
    font-size: 18px;
}

.button-text {
    white-space: nowrap;
}

.card-detail-info-section {
    flex: 1;
    min-width: 0;
}

.card-detail-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.2;
}

.card-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.card-detail-meta-item {
    font-size: 14px;
    line-height: 1.4;
}

.card-detail-meta-item strong {
    color: #555;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.card-detail-section {
    margin-bottom: 30px;
}

.card-detail-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007cba;
}

.card-detail-attack {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.attack-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.attack-description {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

.card-detail-ability {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.ability-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.ability-description {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

.card-detail-flavor-text {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    font-style: italic;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.card-detail-artist {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.price-section {
    margin-bottom: 25px;
}

.price-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.price-item strong {
    color: #555;
    font-weight: 600;
}

.price-item:last-child {
    border-bottom: none;
}

.price-update-info {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.price-update-controls {
    margin-bottom: 15px;
    text-align: right;
}

.force-update-prices-btn {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.force-update-prices-btn:hover {
    background: #005a87;
}

.force-update-prices-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.price-source {
    font-size: 11px;
    font-weight: normal;
    color: #666;
    font-style: italic;
    margin-top: -8px;
    margin-bottom: 10px;
}

/* Responsive Card Detail */
@media (max-width: 768px) {
    .pokemon-tcg-card-detail-page {
        padding: 15px;
    }
    
    .card-detail-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .card-detail-image-section {
        flex: none;
        width: 100%;
    }
    
    .card-detail-title {
        font-size: 24px;
    }
    
    .card-detail-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .buy-set-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .button-text {
        font-size: 13px;
    }
}

/* PWA Specific Styles */
.pwa-icon {
    object-fit: contain;
    background: white;
    border-radius: 8px;
}
@media (display-mode: standalone) {
    .pokemon-tcg-cardchecker {
        padding-top: 20px;
    }
    
    /* Hide browser UI elements when in standalone mode */
    body {
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Ensure proper spacing for mobile app experience */
    .pokemon-tcg-search-container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .cards-grid {
        gap: 15px;
    }
    
    .card-item {
        border-radius: 12px;
    }
}

/* PWA Install Button Animation */
#pwa-install-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    }
}

/* Mobile-first PWA optimizations */
@media (max-width: 480px) {
    .pokemon-tcg-cardchecker {
        margin: 0;
        padding: 10px;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input,
    .search-type,
    .search-button {
        width: 100%;
        max-width: 60vw;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-group {
        max-width: 70vw;
    }
    
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .card-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .card-info {
        padding: 6px;
    }
    
    .card-name {
        font-size: 11px;
        line-height: 1.1;
    }
    
    .card-details p {
        font-size: 9px;
        margin: 10px 0 0 0!important;
    }

}


