/* ==========================================================================
   PKMN Shop
   ========================================================================== */

.pkmn-shop-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Mobile sidebar toggle ---------- */

.pkmn-sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #1e8496;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pkmn-sidebar-toggle svg {
    flex-shrink: 0;
}

/* ---------- Filters ---------- */

.pkmn-shop__filters {
    display: none;
    margin-bottom: 24px;
    padding: 20px;
    background: #e8f0f2;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pkmn-shop__filters--open {
    display: block;
}

.pkmn-filter-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.pkmn-filter-group:last-child {
    border-bottom: none;
}

.pkmn-filter-group__title {
    margin: 0 0 8px;
    color: #1e8496;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pkmn-filter-group__options--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.pkmn-filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    color: #444;
    font-size: 13px;
    line-height: 1.2;
}

.pkmn-filter-checkbox-label input[type="checkbox"] {
    margin: 0;
    accent-color: #1e8496;
}

.pkmn-filter-checkbox-label img {
    flex-shrink: 0;
}

.pkmn-filter-search,
.pkmn-filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    box-sizing: border-box;
}

.pkmn-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pkmn-filter-reset {
    padding: 8px 16px;
    border: 1px solid #1e8496;
    border-radius: 6px;
    background: transparent;
    color: #1e8496;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pkmn-filter-count {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Content ---------- */

.pkmn-shop__content {
    position: relative;
}

.pkmn-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* ---------- Product cards ---------- */

.pkmn-product-item {
    display: block;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.pkmn-product-item__media {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.pkmn-product-item__image {
    position: relative;
    top: -35px;
    display: block;
    width: 100%;
    height: 230px !important;
    object-fit: cover;
    object-position: top;
}

.pkmn-product-item__fallback .pkmn-card {
    height: 230px;
    border-radius: 8px 8px 0 0;
}

.pkmn-product-item--fallback .pkmn-product-item__title {
    margin-top: 0;
}

.pkmn-product-item__info {
    padding: 15px;
}

.pkmn-product-item__title {
    margin: -45px 0 0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.pkmn-icons-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 10px;
}

.pkmn-icons-inline img {
    display: block;
    width: 22px;
    height: 22px;
}

.pkmn-icons-divider {
    width: 1px;
    height: 20px;
    margin: 0 6px;
    background: #eee;
    flex: 0 0 1px;
}

.pkmn-product-item__price {
    color: #666;
    font-size: 18px;
    font-weight: 700;
}

.pkmn-product-item__price del {
    color: #999;
    font-weight: 400;
}

.pkmn-product-item__price ins {
    color: #666;
    text-decoration: none;
}

/* ---------- No results / loading ---------- */

.pkmn-no-results {
    grid-column: 1 / -1;
    padding: 40px;
    color: #666;
    font-size: 16px;
    text-align: center;
}

.pkmn-loader {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
}

.pkmn-loader--active {
    display: flex;
}

.pkmn-loader__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e8ea;
    border-top-color: #1e8496;
    border-radius: 50%;
    animation: pkmn-spin 0.7s linear infinite;
}

@keyframes pkmn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Load more ---------- */

.pkmn-load-more-wrapper {
    padding: 24px 0;
    text-align: center;
}

.pkmn-load-more-btn {
    padding: 12px 32px;
    border: 2px solid #1e8496;
    border-radius: 8px;
    background: transparent;
    color: #1e8496;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .pkmn-product-item__media {
        height: 320px;
    }

    .pkmn-product-item__image {
        top: 0;
        height: 320px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pkmn-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .pkmn-sidebar-toggle {
        display: none;
    }

    .pkmn-shop-wrapper {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }

    .pkmn-shop__filters {
        display: block;
        width: 25%;
        position: sticky;
        top: 80px;
    }

    .pkmn-shop__content {
        width: 75%;
    }

    .pkmn-products-grid {
        grid-template-columns: repeat(var(--pkmn-columns, 3), 1fr);
    }

    .pkmn-filter-group__options--grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
