.pcv-archive-card,
.pcv-variant-table,
.pcv-compact-selector,
.pcv-product-meta,
.pcv-pokemon-filter-shell,
.pcv-pokemon-filter,
.pcv-empty {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.woocommerce-message .button.wc-forward,
.woocommerce-info .button.wc-forward,
.pcv-archive-card .added_to_cart.wc-forward,
.pcv-variant-table .added_to_cart.wc-forward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #14161a;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    text-decoration: none;
}

.woocommerce-message .button.wc-forward:hover,
.woocommerce-info .button.wc-forward:hover,
.pcv-archive-card .added_to_cart.wc-forward:hover,
.pcv-variant-table .added_to_cart.wc-forward:hover {
    border-color: #e63946;
    color: #e63946;
}

.pcv-empty {
    padding: 12px;
    border: 1px solid #e4e7eb;
    border-radius: var(--pcv-button-radius, 8px);
    color: #4b5563;
    background: #f9fafb;
}

.pcv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border: 0;
    border-radius: var(--pcv-card-radius, 8px);
    background: #ee374d;
    color: #fff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, opacity .16s ease;
}

.pcv-add-to-cart::before {
    content: "";
    width: 13px;
    height: 13px;
    margin-right: 6px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2ZM7.2 14.8c-.75 0-1.41-.41-1.75-1.03L2 4H0V2h3.31l.94 2H22l-3.6 7.59c-.34.72-1.05 1.21-1.86 1.21H8.1l-1.1 2H19v2H7.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2ZM7.2 14.8c-.75 0-1.41-.41-1.75-1.03L2 4H0V2h3.31l.94 2H22l-3.6 7.59c-.34.72-1.05 1.21-1.86 1.21H8.1l-1.1 2H19v2H7.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    flex: 0 0 auto;
}

.pcv-button:hover,
.pcv-button:focus {
    background: #d8293f;
    color: #fff;
}

.pcv-button:disabled,
.pcv-button.is-disabled {
    cursor: not-allowed;
    opacity: .55;
}

.pcv-button.is-loading {
    opacity: .75;
}

.pcv-price {
    color: #ee374d;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
}

.pcv-stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: var(--pcv-card-radius, 8px);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    text-transform: uppercase;
}

.pcv-stock-badge.is-in {
    background: #d8f4dd;
    color: #17652b;
}

.pcv-stock-badge.is-low {
    background: #fff0c2;
    color: #7a4a00;
}

.pcv-stock-badge.is-out {
    background: #f5d5d9;
    color: #8a1f2d;
}

.pcv-variation-select {
    width: 100%;
    min-height: 36px;
    padding: 7px 34px 7px 10px;
    border: 1px solid #d8dde4;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.2;
}

.pcv-variant-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e0e4ea;
    border-radius: var(--pcv-card-radius, 8px);
}

.pcv-variant-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.pcv-variant-table .pcv-col-buy {
    width: 116px;
}

.pcv-variant-table .pcv-col-price {
    width: 104px;
}

.pcv-variant-table .pcv-col-stock {
    width: 132px;
}

.pcv-variant-table th,
.pcv-variant-table td {
    padding: 14px 12px;
    border-right: 1px solid #e0e4ea;
    text-align: left;
    vertical-align: middle;
}

.pcv-variant-table th:last-child,
.pcv-variant-table td:last-child {
    border-right: 0;
}

.pcv-variant-table th {
    color: #586174;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    background: #f7f8fa;
}

.pcv-variant-table td {
    color: #111827;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    line-height: 16px;
}

.pcv-variant-table .pcv-col-price {
    color: #ee374d;
    font-weight: 800;
}

.pcv-archive-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e2e6ed;
    border-radius: 8px;
    background: #fff;
}

.pcv-archive-card.has-shadow {
    box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
}

.pcv-archive-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
}

.pcv-archive-card__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.pcv-archive-card__body {
    display: grid;
    gap: 8px;
    padding: 8px 12px 12px;
}

.pcv-archive-card__meta-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #3f4a5f;
    font-size: 12px;
}

.pcv-archive-card__title {
    color: #14161a;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-decoration: none;
}

.pcv-archive-card__title:hover,
.pcv-archive-card__title:focus {
    color: #e63946;
}

.pcv-archive-card__purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pcv-archive-card .pcv-button {
    width: 100%;
    min-height: 36px;
}

.pcv-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #374151;
}

.pcv-product-meta__label {
    margin-right: 4px;
    color: #6b7280;
    font-weight: 700;
}

.pcv-product-grid-section {
    width: 100%;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pcv-product-grid-title {
    margin: 0 0 16px;
    color: #14161a;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 26px;
}

.pcv-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--pcv-grid-desktop, 4), minmax(0, 1fr));
    gap: 16px;
}

.pcv-product-grid__item {
    min-width: 0;
}

.pcv-product-grid .pcv-archive-card {
    height: 100%;
}

.pcv-pokemon-filter {
    display: grid;
    width: 100%;
    max-width: 230px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #14161a;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pcv-filter-mobile-toggle {
    display: none;
}

.pcv-filter-mobile-toggle__icon {
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5h18v2H3V5Zm4 6h10v2H7v-2Zm3 6h4v2h-4v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5h18v2H3V5Zm4 6h10v2H7v-2Zm3 6h4v2h-4v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pcv-pokemon-filter input,
.pcv-pokemon-filter select,
.pcv-pokemon-filter button {
    font-family: inherit;
}

.pcv-filter-search,
.pcv-filter-toggle,
.pcv-filter-group {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.pcv-filter-search {
    position: relative;
}

.pcv-filter-search::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #9ca3af;
    transform: translateY(-50%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.5 3a5.5 5.5 0 0 1 4.38 8.83l3.15 3.14-1.06 1.06-3.14-3.15A5.5 5.5 0 1 1 8.5 3Zm0 1.5a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.5 3a5.5 5.5 0 0 1 4.38 8.83l3.15 3.14-1.06 1.06-3.14-3.15A5.5 5.5 0 1 1 8.5 3Zm0 1.5a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pcv-filter-search input {
    width: 100%;
    height: 36px;
    padding: 9px 12px 9px 32px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #f9fafb;
    color: #14161a;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.pcv-filter-search input::placeholder {
    color: #6b7280;
}

.pcv-filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.pcv-filter-toggle input {
    position: absolute;
    opacity: 0;
}

.pcv-filter-toggle__switch {
    position: relative;
    width: 40px;
    height: 20px;
    border-radius: 999px;
    background: #e63946;
    flex: 0 0 auto;
}

.pcv-filter-toggle__switch::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
}

.pcv-filter-toggle input:not(:checked) + .pcv-filter-toggle__switch {
    background: #d1d5db;
}

.pcv-filter-toggle input:not(:checked) + .pcv-filter-toggle__switch::after {
    right: auto;
    left: 4px;
}

.pcv-filter-label {
    display: block;
    margin: 0 0 10px;
    color: #5d6678;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 14px;
    text-transform: uppercase;
}

.pcv-filter-group select {
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #dfe4ea;
    border-radius: 6px;
    background: #f9fafb;
    color: #111827;
    font-size: 13px;
    line-height: 18px;
}

.pcv-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 13px;
    line-height: 18px;
}

.pcv-filter-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #e63946;
}

.pcv-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pcv-filter-pill input {
    position: absolute;
    opacity: 0;
}

.pcv-filter-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 12px;
    border: 1px solid #dfe4ea;
    border-radius: 999px;
    background: #f9fafb;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    cursor: pointer;
}

.pcv-filter-pill input:checked + span {
    border-color: #e63946;
    background: #e63946;
    color: #fff;
}

.pcv-filter-price {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

.pcv-filter-price input {
    width: 100%;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #f9fafb;
    color: #14161a;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}

.pcv-filter-reset,
.pcv-filter-submit {
    min-height: 38px;
    margin: 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    cursor: pointer;
}

.pcv-filter-reset {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
}

.pcv-filter-submit {
    margin-top: 0;
    border: 1px solid #e63946;
    background: #e63946;
    color: #fff;
}

@media (max-width: 768px) {
    .pcv-product-grid {
        grid-template-columns: repeat(var(--pcv-grid-tablet, 3), minmax(0, 1fr));
        gap: 12px;
    }

    .pcv-product-grid-title {
        margin-bottom: 12px;
        font-size: 18px;
        line-height: 24px;
    }

    .pcv-pokemon-filter-shell {
        width: 100%;
    }

    .pcv-filter-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 42px;
        margin: 0 0 12px;
        padding: 10px 14px;
        border: 0;
        border-radius: 8px;
        background: #ee374d;
        color: #fff;
        font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 18px;
        cursor: pointer;
    }

    .pcv-filter-mobile-toggle:hover,
    .pcv-filter-mobile-toggle:focus {
        background: #d8293f;
        color: #fff;
    }

    .pcv-pokemon-filter {
        display: none;
        max-width: none;
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
    }

    .pcv-pokemon-filter-shell.is-open .pcv-pokemon-filter {
        display: grid;
    }

    .pcv-variant-table-wrap {
        overflow: visible;
        border: 0;
    }

    .pcv-variant-table {
        display: block;
        min-width: 0;
        background: transparent;
    }

    .pcv-variant-table thead {
        display: none;
    }

    .pcv-variant-table tbody,
    .pcv-variant-table tr,
    .pcv-variant-table td {
        display: block;
        width: 100%;
    }

    .pcv-variant-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(70px, .55fr) minmax(88px, .7fr);
    }

    .pcv-variant-table .pcv-col-buy,
    .pcv-variant-table .pcv-col-price,
    .pcv-variant-table .pcv-col-stock {
        width: 100%;
    }

    .pcv-variant-table tr {
        margin-bottom: 6px;
        overflow: hidden;
        border: 1px solid #e0e4ea;
        border-radius: var(--pcv-card-radius, 8px);
        background: #fff;
    }

    .pcv-variant-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 28px;
        padding: 5px 12px;
        border-right: 0;
        border-bottom: 1px solid #eef1f5;
    }

    .pcv-variant-table td:last-child {
        border-bottom: 0;
    }

    .pcv-variant-table td::before {
        content: attr(data-label);
        color: #657083;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .pcv-variant-table .pcv-col-buy {
        justify-content: stretch;
        padding: 8px 12px;
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .pcv-variant-table .pcv-col-buy::before {
        display: none;
    }

    .pcv-variant-table .pcv-col-buy .pcv-button {
        width: 100%;
        min-height: 30px;
        padding: 6px 12px;
    }

    .pcv-variant-table .added_to_cart.wc-forward {
        grid-column: 1 / -1;
        grid-row: 3;
        width: calc(100% - 24px);
        min-height: 30px;
        margin: 0 12px 8px;
    }

    .pcv-variant-table td:not(.pcv-col-buy) {
        display: grid;
        align-content: center;
        justify-content: start;
        gap: 3px;
        min-height: 48px;
        border-bottom: 0;
        border-right: 1px solid #eef1f5;
    }

    .pcv-variant-table td:not(.pcv-col-buy):last-child {
        border-right: 0;
    }

    .pcv-variant-table td:not(.pcv-col-buy)::before {
        line-height: 12px;
    }

    .pcv-variant-table .pcv-col-price {
        justify-content: end;
        text-align: right;
    }

    .pcv-variant-table .pcv-col-stock {
        justify-content: center;
        text-align: center;
    }

    .pcv-variant-table .pcv-stock-badge {
        min-height: 20px;
        padding: 3px 8px;
        justify-self: center;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .pcv-product-grid {
        grid-template-columns: repeat(var(--pcv-grid-mobile, 2), minmax(0, 1fr));
    }
}
