.wpcsv-products {
    width: 100%;
    margin: 1.5rem 0;
}

.wpcsv-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.wpcsv-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.wpcsv-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.wpcsv-product-card--hidden {
    display: none;
}

.wpcsv-product-card--revealed {
    animation: wpcsvReveal .35s ease both;
}

@keyframes wpcsvReveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.wpcsv-product-image-wrap {
    position: relative;
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ffffff;
}

.wpcsv-product-image-wrap > a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.wpcsv-product-image {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
}

.wpcsv-product-placeholder {
    font-size: 64px;
}

.wpcsv-best-price {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #15803d;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(21, 128, 61, .25);
}

.wpcsv-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.wpcsv-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.wpcsv-product-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 700;
}

.wpcsv-product-title {
    margin: 0 0 10px;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
}

.wpcsv-product-title a {
    color: inherit;
    text-decoration: none;
}

.wpcsv-product-title a:hover {
    text-decoration: underline;
}

.wpcsv-product-description {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.wpcsv-price-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: auto;
}

.wpcsv-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
}

.wpcsv-price-row strong {
    white-space: nowrap;
    color: #111827;
}

.wpcsv-price-row--best {
    background: #ecfdf5;
    color: #166534;
}

.wpcsv-price-row--best strong {
    color: #166534;
}

.wpcsv-store-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpcsv-no-prices {
    margin-top: auto;
    color: #94a3b8;
    font-style: italic;
}

.wpcsv-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.wpcsv-load-more {
    min-width: 170px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.wpcsv-load-more:hover {
    transform: translateY(-1px);
    opacity: .9;
}

.wpcsv-load-more:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .4);
    outline-offset: 3px;
}

.wpcsv-message {
    padding: 14px 16px;
    margin: 1rem 0;
    border-radius: 8px;
    background: #f1f5f9;
}

.wpcsv-message--error {
    border-left: 4px solid #dc2626;
}

@media (max-width: 980px) {
    .wpcsv-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wpcsv-products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .wpcsv-product-image-wrap {
        min-height: 190px;
    }

    .wpcsv-product-image {
        height: 165px;
    }
}

.wpcsv-search-wrap {
    position: relative;
    width: 100%;
    margin: 0 0 24px;
}

.wpcsv-product-search {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px 12px 48px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wpcsv-product-search::placeholder {
    color: #94a3b8;
}

.wpcsv-product-search:focus {
    border-color: #64748b;
    outline: none;
    box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.13);
}

.wpcsv-search-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 1;
    color: #64748b;
    font-size: 25px;
    line-height: 1;
    transform: translateY(-52%);
    pointer-events: none;
}

.wpcsv-no-results {
    margin: 28px 0 0;
    padding: 18px;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.wpcsv-product-card[hidden],
.wpcsv-load-more-wrap[hidden],
.wpcsv-no-results[hidden] {
    display: none !important;
}

.wpcsv-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.wpcsv-toolbar .wpcsv-search-wrap {
    flex: 1;
    margin: 0;
}

.wpcsv-cart-link,
.wpcsv-continue-link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.wpcsv-cart-link:hover,
.wpcsv-continue-link:hover {
    color: #111827;
    text-decoration: none;
    border-color: #94a3b8;
}

.wpcsv-cart-count {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
}

.wpcsv-add-cart {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.wpcsv-add-cart--added {
    background: #15803d;
}

.wpcsv-cart-view {
    margin-top: 8px;
}

.wpcsv-cart-title {
    margin: 0 0 22px;
    color: #111827;
}


.wpcsv-cart-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
}

.wpcsv-cart-summary-title {
    min-width: 0;
}

.wpcsv-cart-summary .wpcsv-cart-title {
    margin: 0;
}

.wpcsv-cart-filter-summary {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.35;
}

.wpcsv-cart-summary-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-left: auto;
    white-space: nowrap;
    color: #111827;
}

.wpcsv-cart-summary-total span {
    font-size: 0.9rem;
}

.wpcsv-cart-summary-total strong {
    font-size: 1.08rem;
    font-weight: 800;
}

@media (max-width: 600px) {
    .wpcsv-cart-summary {
        align-items: center;
        gap: 12px;
    }

    .wpcsv-cart-summary-total {
        gap: 5px;
    }

    .wpcsv-cart-summary-total span {
        font-size: 0.78rem;
    }

    .wpcsv-cart-summary-total strong {
        font-size: 0.94rem;
    }

    .wpcsv-cart-filter-summary {
        font-size: 0.74rem;
    }
}

.wpcsv-cart-grid {
    display: grid;
    gap: 16px;
}

.wpcsv-cart-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.06);
}

.wpcsv-cart-item-image {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fff;
}

.wpcsv-cart-item-image img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.wpcsv-cart-item-body {
    padding: 18px 20px;
}

.wpcsv-cart-item h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 18px;
}

.wpcsv-cart-availability small {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-weight: 700;
}

.wpcsv-cart-availability > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wpcsv-cart-availability span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.wpcsv-cart-unavailable {
    color: #94a3b8;
    font-style: italic;
}

.wpcsv-remove-cart,
.wpcsv-clear-cart {
    padding: 9px 13px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fff;
    color: #b91c1c;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.wpcsv-remove-cart {
    margin-top: 16px;
}

.wpcsv-clear-cart {
    margin-left: auto;
}

.wpcsv-empty-cart {
    padding: 30px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
}

.wpcsv-clear-cart[hidden],
.wpcsv-empty-cart[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .wpcsv-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .wpcsv-cart-link,
    .wpcsv-continue-link {
        width: 100%;
    }

    .wpcsv-clear-cart {
        width: 100%;
        margin-left: 0;
    }

    .wpcsv-cart-item {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .wpcsv-cart-item-image {
        min-height: 130px;
        padding: 10px;
    }

    .wpcsv-cart-item-image img {
        height: 95px;
    }

    .wpcsv-cart-item-body {
        padding: 14px;
    }
}

/* Cart filters and supermarket availability */
.wpcsv-cart-layout {
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.wpcsv-cart-filters {
    position: sticky;
    top: 24px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.07);
}

.wpcsv-cart-filters h3 {
    margin: 0 0 20px;
    color: #111827;
    font-size: 20px;
}

.wpcsv-cart-filters label {
    display: block;
    margin: 16px 0 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.wpcsv-cart-filters select {
    width: 100%;
    min-height: 46px;
    padding: 9px 38px 9px 12px;
    border: 1px solid #dbe3ec;
    border-radius: 11px;
    background-color: #fff;
    color: #111827;
    font: inherit;
}

.wpcsv-cart-total {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.wpcsv-cart-total > span,
.wpcsv-cart-total > strong,
.wpcsv-cart-total > small {
    display: block;
}

.wpcsv-cart-total > span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wpcsv-cart-total > strong {
    margin-top: 5px;
    color: #111827;
    font-size: 25px;
    line-height: 1.2;
}

.wpcsv-cart-total > small {
    margin-top: 6px;
    color: #64748b;
}

.wpcsv-cart-item {
    transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease, transform .2s ease;
}

.wpcsv-cart-item--available {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .13), 0 7px 22px rgba(15, 23, 42, .08) !important;
}

.wpcsv-cart-item--unavailable {
    opacity: .46;
    filter: grayscale(.18);
}

.wpcsv-cart-availability {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
    padding: 9px 11px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}

.wpcsv-cart-item--available .wpcsv-cart-availability {
    background: #f0fdf4;
    color: #15803d;
}

.wpcsv-cart-store-price {
    color: #111827;
    white-space: nowrap;
}

@media (max-width: 780px) {
    .wpcsv-cart-layout {
        grid-template-columns: 1fr;
    }

    .wpcsv-cart-filters {
        position: static;
    }
}

/* Version 1.7.0: exclusive filters and receipt-style shopping list */
.wpcsv-filter-field {
    display: grid;
    gap: 7px;
}

.wpcsv-filter-field--disabled {
    opacity: .48;
}

.wpcsv-filter-field select:disabled {
    cursor: not-allowed;
    background: #f1f5f9;
}

.wpcsv-create-list {
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    padding: 11px 16px;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.wpcsv-create-list:hover:not(:disabled) {
    opacity: .9;
}

.wpcsv-create-list:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.wpcsv-receipt-overlay[hidden] {
    display: none !important;
}

.wpcsv-receipt-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .68);
}

body.wpcsv-receipt-open {
    overflow: hidden;
}

.wpcsv-receipt {
    position: relative;
    width: min(100%, 620px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 36px 28px 30px;
    border-radius: 4px;
    background: #fff;
    color: #111;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    font-family: "Courier New", Courier, monospace;
}

.wpcsv-receipt::before,
.wpcsv-receipt::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    height: 8px;
    background: linear-gradient(135deg, transparent 5px, #fff 0) 0 0/10px 10px repeat-x,
                linear-gradient(45deg, transparent 5px, #fff 0) 0 0/10px 10px repeat-x;
}

.wpcsv-receipt::before {
    top: -7px;
}

.wpcsv-receipt::after {
    bottom: -7px;
    transform: rotate(180deg);
}

.wpcsv-receipt-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wpcsv-receipt-head h3 {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: inherit;
    font-size: 20px;
}

.wpcsv-receipt-rule {
    margin: 16px 0;
    border-top: 2px dashed #111;
}

.wpcsv-receipt-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wpcsv-receipt-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) minmax(80px, auto) auto;
    gap: 10px;
    align-items: start;
    padding: 11px 0;
    border-bottom: 1px dashed #9ca3af;
    font-size: 14px;
    line-height: 1.4;
}

.wpcsv-receipt-product {
    font-weight: 700;
}

.wpcsv-receipt-market {
    color: #4b5563;
    text-align: right;
}

.wpcsv-receipt-price {
    white-space: nowrap;
    text-align: right;
}

.wpcsv-receipt-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 3px double #111;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .wpcsv-receipt {
        padding: 34px 18px 26px;
    }

    .wpcsv-receipt-item {
        grid-template-columns: 24px minmax(0, 1fr) auto;
    }

    .wpcsv-receipt-market {
        grid-column: 2;
        text-align: left;
        font-size: 12px;
    }

    .wpcsv-receipt-price {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

/* Version 1.8.0: sharing and closed cart archive */
.wpcsv-carts-link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
}

.wpcsv-carts-link:hover {
    color: #111827;
    text-decoration: none;
    border-color: #94a3b8;
}

.wpcsv-receipt-head small {
    display: block;
    margin-top: 7px;
    color: #6b7280;
    text-align: center;
    font-size: 12px;
}

.wpcsv-share-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 2px dashed #9ca3af;
}

.wpcsv-share-section h4 {
    margin: 0 0 12px;
    text-align: center;
    font-family: inherit;
    font-size: 15px;
    text-transform: uppercase;
}

.wpcsv-share-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.wpcsv-share-button {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: 700 12px/1.2 Arial, sans-serif;
    cursor: pointer;
}

.wpcsv-share-button:hover {
    background: #f3f4f6;
}

.wpcsv-closed-carts-grid {
    display: grid;
    gap: 16px;
}

.wpcsv-closed-cart-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .06);
}

.wpcsv-closed-cart-card h3 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 17px;
}

.wpcsv-closed-cart-card p {
    margin: 0 0 5px;
    color: #64748b;
    font-size: 13px;
}

.wpcsv-closed-cart-card > strong {
    color: #111827;
    font-size: 17px;
    white-space: nowrap;
}

.wpcsv-closed-cart-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 9px;
}

.wpcsv-view-closed-cart,
.wpcsv-delete-closed-cart {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.wpcsv-view-closed-cart {
    border: 0;
    background: #111827;
    color: #fff;
}

.wpcsv-delete-closed-cart {
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
}

.wpcsv-no-closed-carts {
    padding: 20px;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.wpcsv-no-closed-carts[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .wpcsv-toolbar {
        flex-wrap: wrap;
    }

    .wpcsv-toolbar .wpcsv-search-wrap {
        flex-basis: 100%;
    }

    .wpcsv-share-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Version 1.9.0: printable receipt with fixed footer */
.wpcsv-receipt {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wpcsv-receipt-content {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.wpcsv-receipt-head {
    flex: 0 0 auto;
}

.wpcsv-receipt-scroll {
    min-height: 120px;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 5px;
}

.wpcsv-receipt-footer {
    flex: 0 0 auto;
    padding-top: 4px;
    background: #fff;
}

.wpcsv-receipt-footer .wpcsv-receipt-total {
    margin-top: 12px;
}

@media (max-width: 720px) {
    .wpcsv-share-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wpcsv-share-button {
        min-width: 0;
        padding-right: 5px;
        padding-left: 5px;
        font-size: 11px;
    }
}

@page {
    size: A4 portrait;
    margin: 16mm 20mm;
}

@media print {
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body * {
        visibility: hidden !important;
    }

    .wpcsv-receipt-overlay,
    .wpcsv-receipt-overlay * {
        visibility: visible !important;
    }

    .wpcsv-receipt-overlay {
        position: absolute !important;
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        left: 0 !important;
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .wpcsv-receipt {
        display: block !important;
        width: 100% !important;
        max-width: 170mm !important;
        max-height: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-before: avoid !important;
        break-before: avoid-page !important;
    }

    .wpcsv-receipt::before,
    .wpcsv-receipt::after {
        display: none !important;
    }

    .wpcsv-receipt-content,
    .wpcsv-receipt-scroll,
    .wpcsv-receipt-footer {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .wpcsv-receipt-scroll {
        min-height: 0 !important;
        padding-right: 0 !important;
    }

    .wpcsv-receipt-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .wpcsv-receipt-close,
    .wpcsv-share-section {
        display: none !important;
    }
}


/* Modern shop header and page-title suppression */
.wpcsv-shop-page .entry-title,
.wpcsv-shop-page .page-title,
.wpcsv-shop-page .wp-block-post-title,
.wpcsv-shop-page main > article > header.entry-header,
.wpcsv-shop-page .site-main > .page-header {
    display: none !important;
}

.wpcsv-shop-page .wpcsv-products {
    margin-top: 0;
}

.wpcsv-shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 28px rgba(15,23,42,.08);
}

.wpcsv-shop-home,
.wpcsv-shop-nav-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 15px;
    border-radius: 12px;
    color: #334155;
    font-weight: 800;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.wpcsv-shop-home:hover,
.wpcsv-shop-nav-link:hover {
    background: #f1f5f9;
    color: #111827;
    transform: translateY(-1px);
}

.wpcsv-shop-home.is-active,
.wpcsv-shop-nav-link.is-active {
    background: #111827;
    color: #fff;
}

.wpcsv-shop-home.is-active .wpcsv-shop-home-icon {
    transform: rotate(180deg);
}

.wpcsv-shop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.wpcsv-shop-nav-link.is-active .wpcsv-cart-count {
    background: #fff;
    color: #111827;
}

.wpcsv-search-wrap--shop {
    margin-bottom: 24px;
}

.wpcsv-shop-header .wpcsv-clear-cart {
    min-height: 46px;
    margin-left: 4px;
}

@media (max-width: 720px) {
    .wpcsv-shop-header {
        align-items: stretch;
        flex-direction: column;
        padding: 10px;
    }

    .wpcsv-shop-home {
        width: 100%;
    }

    .wpcsv-shop-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .wpcsv-shop-header .wpcsv-clear-cart {
        grid-column: 1 / -1;
        width: 100%;
        margin-left: 0;
    }

    .wpcsv-shop-nav-link {
        min-width: 0;
        padding-inline: 10px;
        text-align: center;
    }
}

/* v1.10.1: full-width sticky shop navigation */
.wpcsv-shop-header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 24px;
    padding: 12px max(18px, calc((100vw - 1200px) / 2));
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 5px 18px rgba(15,23,42,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.admin-bar .wpcsv-shop-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .wpcsv-shop-header {
        top: 46px;
    }
}

@media (max-width: 720px) {
    .wpcsv-shop-header {
        width: 100vw;
        padding: 9px 12px;
        border-radius: 0;
    }

    .wpcsv-shop-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpcsv-shop-nav:has(.wpcsv-shop-nav-link:only-child) {
        grid-template-columns: 1fr;
    }
}


/* v1.10.2: hide theme title remnants and catalog header alignment */
.wpcsv-shop-page h1.entry-title,
.wpcsv-shop-page h1.page-title,
.wpcsv-shop-page .entry-header > h1,
.wpcsv-shop-page .page-header > h1,
.wpcsv-shop-page .post-title,
.wpcsv-shop-page .page__title,
.wpcsv-shop-page .page-heading,
.wpcsv-shop-page .titlebar,
.wpcsv-shop-page .title-bar,
.wpcsv-shop-page .hero-title {
    display: none !important;
}

.wpcsv-shop-header--catalog {
    justify-content: flex-end;
}

@media (max-width: 720px) {
    .wpcsv-shop-header--catalog {
        flex-direction: row;
    }

    .wpcsv-shop-header--catalog .wpcsv-shop-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* v1.10.3: compact two-column mobile catalog and flush header */
.wpcsv-shop-page .wpcsv-products,
.wpcsv-shop-page .wpcsv-shop-header {
    margin-top: 0 !important;
}

@media (max-width: 640px) {
    .wpcsv-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .wpcsv-product-card {
        border-radius: 12px;
    }

    .wpcsv-product-image-wrap {
        min-height: 135px;
        padding: 10px;
    }

    .wpcsv-product-image {
        height: 120px;
    }

    .wpcsv-product-body {
        padding: 12px;
    }

    .wpcsv-product-title {
        font-size: 15px;
        line-height: 1.3;
    }

    .wpcsv-best-price {
        right: 8px;
        bottom: 8px;
        padding: 5px 7px;
        font-size: 10px;
    }

    .wpcsv-price-list {
        gap: 5px;
    }

    .wpcsv-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
        padding: 6px;
        font-size: 10px;
        line-height: 1.2;
    }

    .wpcsv-price-row strong {
        font-size: 11px;
    }
}


/* v1.10.7: top-aligned prices and compact cart button */
.wpcsv-price-list {
    margin-top: 0;
}

.wpcsv-no-prices {
    margin-top: 0;
}

.wpcsv-add-cart {
    width: auto;
    min-height: 34px;
    align-self: flex-start;
    gap: 4px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.15;
}

.wpcsv-add-cart > span:first-child {
    font-size: 13px;
    line-height: 1;
}

@media (max-width: 640px) {
    .wpcsv-add-cart {
        min-height: 30px;
        margin-top: 8px;
        padding: 5px 7px;
        border-radius: 7px;
        font-size: 10px;
    }

    .wpcsv-add-cart > span:first-child {
        font-size: 11px;
    }
}

/* v1.10.8: full-width cart button anchored to card bottom */
.wpcsv-add-cart {
    width: 100%;
    align-self: stretch;
    justify-content: center;
    margin-top: auto;
}

@media (max-width: 640px) {
    .wpcsv-add-cart {
        width: 100%;
        margin-top: auto;
    }
}

/* v1.10.9: extra breathing room above the bottom cart button */
.wpcsv-price-list,
.wpcsv-no-prices {
    margin-bottom: 14px;
}

@media (max-width: 640px) {
    .wpcsv-price-list,
    .wpcsv-no-prices {
        margin-bottom: 10px;
    }
}

/* v1.11.0: cart filters moved into the sticky shop header */
.wpcsv-cart-results--full {
    width: 100%;
}

.wpcsv-shop-nav--cart-controls {
    flex: 1;
    justify-content: flex-end;
}

.wpcsv-header-filter {
    min-width: 190px;
    margin: 0;
}

.wpcsv-header-filter select {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 9px 38px 9px 13px;
    border: 1px solid #dbe3ec;
    border-radius: 11px;
    background-color: #fff;
    color: #111827;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.wpcsv-header-filter.wpcsv-filter-field--disabled select {
    cursor: not-allowed;
    opacity: .48;
}

.wpcsv-create-list--header {
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 9px 17px;
    border: 0;
    border-radius: 11px;
    background: #15803d;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.wpcsv-create-list--header:disabled {
    cursor: not-allowed;
    opacity: .45;
}

@media (max-width: 760px) {
    .wpcsv-shop-nav--cart-controls {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .wpcsv-header-filter {
        min-width: 0;
    }

    .wpcsv-header-filter select {
        min-height: 40px;
        padding: 7px 29px 7px 9px;
        font-size: 12px;
    }

    .wpcsv-create-list--header {
        grid-column: 1 / -1;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 13px;
    }
}


/* v1.11.2: cart availability and total moved into sticky header */
.wpcsv-shop-nav--cart-controls {
    flex-wrap: wrap;
}

.wpcsv-header-cart-summary {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.wpcsv-header-cart-summary .wpcsv-cart-filter-summary {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.wpcsv-header-cart-total {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.wpcsv-create-list--header {
    background: #111827;
}

.wpcsv-create-list--header:hover:not(:disabled) {
    background: #000;
}

@media (max-width: 760px) {
    .wpcsv-header-cart-summary {
        grid-column: 1 / -1;
        margin-top: 2px;
        padding-top: 9px;
        gap: 10px;
    }

    .wpcsv-header-cart-summary .wpcsv-cart-filter-summary {
        font-size: 11px;
    }

    .wpcsv-header-cart-total {
        font-size: 12px;
    }
}


/* v1.11.3: disable Remove for products unavailable under the active filter */
.wpcsv-remove-cart:disabled,
.wpcsv-remove-cart[aria-disabled="true"] {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: .72;
    box-shadow: none;
    pointer-events: none;
}


/* Version 1.11.7: plain cheapest-alternative row */
.wpcsv-cart-cheapest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 2px 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.wpcsv-cart-cheapest strong {
    color: #111827;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .wpcsv-cart-cheapest {
        gap: 7px;
        margin: -2px 1px 10px;
        font-size: 11px;
    }

    .wpcsv-cart-cheapest strong {
        font-size: 12px;
    }
}


/* Version 1.11.8: compact cheapest-price panel and smaller Remove button */
.wpcsv-cart-availability {
    margin-bottom: 4px;
}

.wpcsv-cart-cheapest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding: 7px 10px;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
    line-height: 1.25;
}

.wpcsv-cart-cheapest-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wpcsv-cart-cheapest-arrow {
    color: #16a34a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.wpcsv-cart-cheapest strong {
    color: #15803d;
    font-size: 12px;
    white-space: nowrap;
}

.wpcsv-remove-cart {
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .wpcsv-cart-availability {
        margin-bottom: 3px;
    }

    .wpcsv-cart-cheapest {
        gap: 6px;
        margin-bottom: 8px;
        padding: 6px 8px;
        font-size: 10.5px;
    }

    .wpcsv-cart-cheapest-arrow {
        font-size: 13px;
    }

    .wpcsv-cart-cheapest strong {
        font-size: 11px;
    }

    .wpcsv-remove-cart {
        margin-top: 8px;
        padding: 5px 8px;
        font-size: 11px;
    }
}


/* Version 1.11.9: center Remove directly beneath the cart product image */
.wpcsv-cart-item-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
}

.wpcsv-cart-item-media .wpcsv-remove-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .wpcsv-cart-item-media {
        gap: 6px;
    }
}


/* Version 1.11.10: keep Remove at the bottom of the image column */
.wpcsv-cart-item-media {
    align-self: stretch;
    min-height: 100%;
    padding-bottom: 12px;
}

.wpcsv-cart-item-media .wpcsv-remove-cart {
    margin-top: auto;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
}

@media (max-width: 640px) {
    .wpcsv-cart-item-media {
        padding-bottom: 9px;
    }
}


/* Version 1.11.11: align Remove with the price stack and show potential savings */
.wpcsv-cart-item-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.wpcsv-cart-price-stack {
    margin-top: auto;
}

.wpcsv-cart-item-media {
    padding-bottom: 18px;
}

.wpcsv-cart-item-media .wpcsv-remove-cart {
    margin-top: auto;
}

.wpcsv-cart-savings {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.wpcsv-cart-savings[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .wpcsv-cart-item-media {
        padding-bottom: 14px;
    }

    .wpcsv-cart-savings {
        margin-top: 16px;
        padding: 12px;
        font-size: 12px;
    }
}

/* Version 1.12.2: hidden category scrollbar and unclipped active ring */
.wpcsv-category-stories {
    display: flex;
    gap: 13px;
    width: 100%;
    box-sizing: border-box;
    margin: 12px 0 24px;
    padding: 10px 12px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.wpcsv-category-stories::-webkit-scrollbar,
.wpcsv-category-stories::-webkit-scrollbar-track,
.wpcsv-category-stories::-webkit-scrollbar-thumb {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.wpcsv-category-story {
    flex: 0 0 auto;
    width: 68px;
    min-width: 68px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.wpcsv-category-story-ring {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto;
    place-items: center;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #f97316, #ec4899, #8b5cf6) border-box;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .09);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.wpcsv-category-story-ring > span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: #f8fafc;
    font-size: 27px;
    line-height: 1;
}

.wpcsv-category-story:hover .wpcsv-category-story-ring,
.wpcsv-category-story:focus-visible .wpcsv-category-story-ring {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .14);
}

.wpcsv-category-story.is-active .wpcsv-category-story-ring {
    border-width: 4px;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #111827;
}

.wpcsv-category-story:not(.is-active) {
    opacity: .82;
}

@media (max-width: 640px) {
    .wpcsv-category-stories {
        gap: 10px;
        margin-top: 9px;
        margin-bottom: 18px;
        padding: 9px 10px 13px;
    }

    .wpcsv-category-story {
        width: 58px;
        min-width: 58px;
    }

    .wpcsv-category-story-ring {
        width: 54px;
        height: 54px;
    }

    .wpcsv-category-story-ring > span {
        width: 43px;
        height: 43px;
        font-size: 23px;
    }
}


/* v1.12.3: restore desktop cart controls as a fixed sidebar */
@media (min-width: 981px) {
    .wpcsv-products--cart-view {
        padding-right: 330px;
    }

    .wpcsv-shop-header--cart {
        position: fixed;
        top: 24px;
        right: 24px;
        left: auto;
        z-index: 999;
        display: flex;
        width: 290px;
        max-height: calc(100vh - 48px);
        margin: 0;
        padding: 18px;
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        overflow-y: auto;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 10px 34px rgba(15, 23, 42, .13);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    body.admin-bar .wpcsv-shop-header--cart {
        top: 56px;
        max-height: calc(100vh - 80px);
    }

    .wpcsv-shop-header--cart .wpcsv-shop-home {
        width: 100%;
        min-height: 42px;
        justify-content: flex-start;
        padding: 9px 11px;
        border: 1px solid #e5e7eb;
        background: #f8fafc;
    }

    .wpcsv-shop-header--cart .wpcsv-shop-nav--cart-controls {
        display: flex;
        width: 100%;
        flex: none;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .wpcsv-shop-header--cart .wpcsv-header-filter {
        width: 100%;
        min-width: 0;
    }

    .wpcsv-shop-header--cart .wpcsv-header-filter select,
    .wpcsv-shop-header--cart .wpcsv-create-list--header {
        width: 100%;
    }

    .wpcsv-shop-header--cart .wpcsv-header-cart-summary {
        display: grid;
        width: 100%;
        margin-top: 2px;
        padding-top: 12px;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wpcsv-shop-header--cart .wpcsv-header-cart-summary .wpcsv-cart-filter-summary {
        line-height: 1.45;
    }

    .wpcsv-shop-header--cart .wpcsv-header-cart-total {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        padding-top: 2px;
        font-size: 15px;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .wpcsv-products--cart-view {
        padding-right: 292px;
    }

    .wpcsv-shop-header--cart {
        right: 14px;
        width: 260px;
        padding: 15px;
    }
}

/* v1.12.4: true two-column desktop cart layout */
@media (min-width: 981px) {
    .wpcsv-products--cart-view {
        display: grid;
        grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
        column-gap: 28px;
        align-items: start;
        padding-right: 0;
    }

    .wpcsv-products--cart-view > .wpcsv-products-data {
        display: none;
    }

    .wpcsv-products--cart-view > .wpcsv-shop-header--cart {
        position: sticky;
        top: 24px;
        right: auto;
        left: auto;
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 48px);
        margin: 0;
        padding: 18px;
        overflow-y: auto;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 8px 26px rgba(15, 23, 42, .09);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.admin-bar .wpcsv-products--cart-view > .wpcsv-shop-header--cart {
        top: 56px;
        max-height: calc(100vh - 80px);
    }

    .wpcsv-products--cart-view > .wpcsv-cart-view {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        width: 100%;
    }

    .wpcsv-products--cart-view .wpcsv-cart-results,
    .wpcsv-products--cart-view .wpcsv-cart-grid {
        min-width: 0;
        width: 100%;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .wpcsv-products--cart-view {
        grid-template-columns: 250px minmax(0, 1fr);
        column-gap: 20px;
        padding-right: 0;
    }

    .wpcsv-products--cart-view > .wpcsv-shop-header--cart {
        right: auto;
        width: 100%;
        padding: 15px;
    }
}


/* v1.12.5: real in-container two-column cart structure */
@media (min-width: 981px) {
    .wpcsv-products--cart-view {
        display: block !important;
        padding-right: 0 !important;
    }

    .wpcsv-cart-page-layout {
        display: grid;
        grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
        gap: 28px;
        align-items: start;
        width: 100%;
        max-width: 100%;
    }

    .wpcsv-cart-page-layout > .wpcsv-shop-header--cart {
        position: sticky !important;
        top: 24px !important;
        z-index: 20;
        grid-column: 1;
        width: 100% !important;
        max-width: none !important;
        height: auto;
        max-height: calc(100vh - 48px);
        margin: 0 !important;
        padding: 18px !important;
        overflow-y: auto;
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        border: 1px solid #e5e7eb !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: 0 8px 26px rgba(15, 23, 42, .09) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        left: auto !important;
        right: auto !important;
    }

    body.admin-bar .wpcsv-cart-page-layout > .wpcsv-shop-header--cart {
        top: 56px !important;
        max-height: calc(100vh - 80px);
    }

    .wpcsv-cart-page-layout > .wpcsv-cart-view {
        grid-column: 2;
        min-width: 0;
        width: 100%;
    }

    .wpcsv-cart-page-layout .wpcsv-shop-nav--cart-controls {
        display: flex;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .wpcsv-cart-page-layout .wpcsv-shop-home,
    .wpcsv-cart-page-layout .wpcsv-header-filter,
    .wpcsv-cart-page-layout .wpcsv-header-filter select,
    .wpcsv-cart-page-layout .wpcsv-create-list--header {
        width: 100%;
        min-width: 0;
    }

    .wpcsv-cart-page-layout .wpcsv-shop-home {
        justify-content: flex-start;
        border: 1px solid #e5e7eb;
        background: #f8fafc;
    }

    .wpcsv-cart-page-layout .wpcsv-header-cart-summary {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 2px;
        padding-top: 12px;
    }

    .wpcsv-cart-page-layout .wpcsv-header-cart-total {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .wpcsv-cart-page-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 20px;
    }

    .wpcsv-cart-page-layout > .wpcsv-shop-header--cart {
        padding: 15px !important;
    }
}

@media (max-width: 980px) {
    .wpcsv-cart-page-layout {
        display: block;
    }
}

/* v1.12.6: separate sticky Continue shopping header above cart columns */
.wpcsv-cart-top-header {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(15,23,42,.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.wpcsv-cart-top-header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.wpcsv-cart-top-header .wpcsv-shop-home {
    display: inline-flex;
    width: auto;
    min-height: 42px;
    padding: 9px 15px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.admin-bar .wpcsv-cart-top-header {
    top: 32px;
}

@media (min-width: 981px) {
    .wpcsv-cart-page-layout {
        margin-top: 24px;
    }

    .wpcsv-cart-sidebar {
        position: sticky;
        top: 86px;
        z-index: 20;
        grid-column: 1;
        width: 100%;
        max-height: calc(100vh - 110px);
        padding: 18px;
        overflow-y: auto;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 8px 26px rgba(15,23,42,.09);
    }

    body.admin-bar .wpcsv-cart-sidebar {
        top: 118px;
        max-height: calc(100vh - 142px);
    }

    .wpcsv-cart-sidebar .wpcsv-shop-nav--cart-controls {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .wpcsv-cart-sidebar .wpcsv-header-filter,
    .wpcsv-cart-sidebar .wpcsv-header-filter select,
    .wpcsv-cart-sidebar .wpcsv-create-list--header {
        width: 100%;
        min-width: 0;
    }

    .wpcsv-cart-sidebar .wpcsv-header-cart-summary {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 2px;
        padding-top: 12px;
    }

    .wpcsv-cart-sidebar .wpcsv-header-cart-total {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
}

@media (max-width: 980px) {
    .wpcsv-cart-top-header-inner {
        padding: 8px 12px;
    }

    .wpcsv-cart-page-layout {
        margin-top: 0;
    }

    .wpcsv-cart-sidebar {
        position: sticky;
        top: 59px;
        z-index: 70;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 10px 12px;
        background: rgba(255,255,255,.97);
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 12px rgba(15,23,42,.05);
    }

    body.admin-bar .wpcsv-cart-sidebar {
        top: 105px;
    }

    .wpcsv-cart-sidebar .wpcsv-shop-nav--cart-controls {
        display: grid;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
        gap: 8px;
        align-items: stretch;
    }

    .wpcsv-cart-sidebar .wpcsv-create-list--header,
    .wpcsv-cart-sidebar .wpcsv-header-cart-summary {
        grid-column: 1 / -1;
    }

    .wpcsv-cart-sidebar .wpcsv-header-filter,
    .wpcsv-cart-sidebar .wpcsv-header-filter select,
    .wpcsv-cart-sidebar .wpcsv-create-list--header {
        width: 100%;
        min-width: 0;
    }
}

/* v1.12.7: centered text header and strict 1/3 + 2/3 desktop cart columns */
@media (min-width: 981px) {
    .wpcsv-cart-top-header-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        padding: 8px 20px;
        text-align: center;
    }

    .wpcsv-cart-top-header .wpcsv-shop-home {
        display: inline;
        width: auto;
        min-height: 0;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #111827;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.4;
        text-decoration: none;
    }

    .wpcsv-cart-top-header .wpcsv-shop-home:hover,
    .wpcsv-cart-top-header .wpcsv-shop-home:focus {
        color: #000;
        text-decoration: underline;
        background: transparent;
    }

    .wpcsv-cart-top-header .wpcsv-shop-home-icon {
        display: none;
    }

    .wpcsv-cart-page-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
        align-items: start;
        gap: 24px;
    }

    .wpcsv-cart-sidebar {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }

    .wpcsv-cart-main,
    .wpcsv-cart-content,
    .wpcsv-cart-results,
    .wpcsv-cart-page-layout > .wpcsv-cart-items-wrap {
        grid-column: 2;
        width: 100%;
        min-width: 0;
    }
}


/* v1.12.8: larger bold Continue shopping link with left arrow */
@media (min-width: 981px) {
    .wpcsv-cart-top-header .wpcsv-shop-home {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.25;
        text-decoration: none;
    }

    .wpcsv-cart-top-header .wpcsv-shop-home-icon {
        display: inline-block;
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
    }
}


/* v1.12.9: minimum 72px sticky cart header */
.wpcsv-cart-top-header-inner {
    min-height: 72px !important;
}

/* v1.12.10: center category circles when the row has spare space */
.wpcsv-category-stories::before,
.wpcsv-category-stories::after {
    content: "";
    flex: 1 1 0;
    min-width: 0;
}

/* v2.0.0: followed products */
.wpcsv-product-card {
    position: relative;
}

.wpcsv-follow-product {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wpcsv-follow-product:hover,
.wpcsv-follow-product:focus-visible {
    border-color: #111827;
    background: #fff;
}

.wpcsv-follow-product--active {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.wpcsv-follow-icon {
    font-size: 17px;
    line-height: 1;
}

.wpcsv-followed-products-view {
    width: 100%;
}

.wpcsv-followed-title {
    margin: 0 0 22px;
    color: #111827;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
}

.wpcsv-no-followed {
    margin: 32px 0;
    padding: 24px;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    background: #f9fafb;
    color: #6b7280;
    text-align: center;
}

.wpcsv-followed-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    line-height: 22px;
    text-align: center;
}

@media (max-width: 600px) {
    .wpcsv-follow-product {
        top: 8px;
        right: 8px;
        min-width: 30px;
        min-height: 30px;
        padding: 5px 7px;
    }

    .wpcsv-follow-label {
        display: none;
    }

    .wpcsv-follow-icon {
        font-size: 16px;
    }
}

/* v2.0.1: emoji-only shop header actions */
.wpcsv-shop-nav-link--emoji {
    position: relative;
    width: 48px;
    min-width: 48px;
    padding: 8px;
    gap: 0;
    font-size: 22px;
}

.wpcsv-shop-nav-link--emoji .wpcsv-cart-count,
.wpcsv-shop-nav-link--emoji .wpcsv-followed-count {
    position: absolute;
    top: 2px;
    right: 2px;
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

@media (max-width: 640px) {
    .wpcsv-shop-nav-link--emoji {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 20px;
    }
}

/* v2.0.2: compact text navigation in one row */
.wpcsv-shop-nav {
    flex-wrap: nowrap;
}

.wpcsv-shop-nav-link--compact {
    min-width: 0;
    min-height: 40px;
    gap: 5px;
    padding: 7px 9px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.1;
}

.wpcsv-shop-nav-link--compact .wpcsv-shop-nav-icon {
    flex: 0 0 auto;
    font-size: 15px;
}

.wpcsv-shop-nav-link--compact .wpcsv-shop-nav-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpcsv-shop-nav-link--compact .wpcsv-cart-count,
.wpcsv-shop-nav-link--compact .wpcsv-followed-count {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

@media (max-width: 640px) {
    .wpcsv-shop-header {
        padding-right: 8px;
        padding-left: 8px;
    }

    .wpcsv-shop-nav {
        width: 100%;
        gap: 4px;
    }

    .wpcsv-shop-nav-link--compact {
        flex: 1 1 0;
        min-width: 0;
        min-height: 38px;
        padding: 6px 5px;
        font-size: 10px;
    }

    .wpcsv-shop-nav-link--compact .wpcsv-shop-nav-icon {
        font-size: 13px;
    }

    .wpcsv-shop-nav-link--compact .wpcsv-cart-count,
    .wpcsv-shop-nav-link--compact .wpcsv-followed-count {
        min-width: 16px;
        height: 16px;
        padding: 0 3px;
        font-size: 9px;
    }
}


/* v2.0.3: shorter mobile navigation labels */
.wpcsv-shop-nav-text--mobile {
    display: none;
}

@media (max-width: 640px) {
    .wpcsv-shop-nav-text--desktop {
        display: none;
    }

    .wpcsv-shop-nav-text--mobile {
        display: inline;
    }
}


/* v2.0.4: two-column mobile shop navigation with larger labels */
@media (max-width: 640px) {
    .wpcsv-shop-header {
        min-height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .wpcsv-shop-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 6px;
        align-items: stretch;
    }

    .wpcsv-shop-nav-link--compact {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 7px 8px;
        font-size: 12px;
        line-height: 1.15;
        justify-content: center;
    }

    .wpcsv-shop-nav-link--compact .wpcsv-shop-nav-icon {
        font-size: 14px;
    }

    .wpcsv-shop-nav-link--compact .wpcsv-cart-count,
    .wpcsv-shop-nav-link--compact .wpcsv-followed-count {
        min-width: 17px;
        height: 17px;
        font-size: 9px;
    }
}

/* v2.0.5: all three mobile Shop navigation items in one row */
@media (max-width: 600px) {
    .wpcsv-shop-header .wpcsv-shop-nav,
    .wpcsv-shop-header-inner .wpcsv-shop-nav {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-item,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-item {
        min-width: 0 !important;
        width: 100% !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        white-space: nowrap !important;
    }
}


/* v2.0.9: guest login notices for cart, lists, and followed views */
.wpcsv-login-notice {
    width: min(100%, 1180px);
    margin: 14px auto 18px;
    padding: 12px 16px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.wpcsv-login-notice a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wpcsv-login-notice a:hover,
.wpcsv-login-notice a:focus {
    color: #111827;
}

@media (max-width: 767px) {
    .wpcsv-login-notice {
        width: calc(100% - 24px);
        margin: 10px 12px 14px;
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* v2.1.4: verified account synchronization status */
.wpcsv-sync-status {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    max-width: min(360px, calc(100vw - 32px));
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}
.wpcsv-sync-status--saved { border-color: #86efac; color: #166534; }
.wpcsv-sync-status--saving,
.wpcsv-sync-status--retrying { border-color: #fde68a; color: #854d0e; }
.wpcsv-sync-status--error { border-color: #fca5a5; color: #991b1b; }
@media (max-width: 767px) {
    .wpcsv-sync-status { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
}


/* v2.1.5: immediate follow feedback beside the top-right heart */
.wpcsv-follow-product {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease, transform .12s ease;
}

.wpcsv-follow-product:active {
    transform: scale(.96);
}

.wpcsv-follow-feedback {
    position: absolute;
    top: 17px;
    right: 112px;
    z-index: 6;
    padding: 5px 9px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateX(5px);
    transition: opacity .15s ease, transform .15s ease;
    white-space: nowrap;
}

.wpcsv-follow-feedback--unfollowed {
    background: #fff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, .16);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .10);
}

.wpcsv-follow-feedback--visible {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 600px) {
    .wpcsv-follow-feedback {
        top: 12px;
        right: 46px;
    }
}

/* v2.1.7: success/saving sync notices are intentionally suppressed. */
.wpcsv-sync-status--saved,
.wpcsv-sync-status--saving { display: none !important; }


/* v2.1.8: prevent sticky mobile hover/focus from covering the followed state */
.wpcsv-follow-product--active,
.wpcsv-follow-product--active:hover,
.wpcsv-follow-product--active:focus,
.wpcsv-follow-product--active:focus-visible,
.wpcsv-follow-product--active:active {
    border-color: #111827 !important;
    background: #111827 !important;
    color: #fff !important;
    outline: none;
}

.wpcsv-follow-product:focus {
    outline: none;
}

@media (hover: none), (pointer: coarse) {
    .wpcsv-follow-product:hover,
    .wpcsv-follow-product:focus,
    .wpcsv-follow-product:focus-visible {
        box-shadow: 0 4px 14px rgba(15, 23, 42, .10);
    }

    .wpcsv-follow-product:not(.wpcsv-follow-product--active):hover,
    .wpcsv-follow-product:not(.wpcsv-follow-product--active):focus,
    .wpcsv-follow-product:not(.wpcsv-follow-product--active):focus-visible {
        border-color: rgba(17, 24, 39, .12);
        background: rgba(255, 255, 255, .94);
        color: #111827;
    }
}

/* v2.1.9: keep the shop's sticky headers below theme navigation overlays. */
.wpcsv-shop-header,
.wpcsv-shop-header--cart,
.wpcsv-cart-top-header,
.wpcsv-cart-page-layout > .wpcsv-shop-header--cart,
.wpcsv-products--cart-view > .wpcsv-shop-header--cart {
    z-index: 10 !important;
}

/* Common mobile-menu open states: explicitly drop plugin headers behind the overlay. */
body.menu-open .wpcsv-shop-header,
body.mobile-menu-open .wpcsv-shop-header,
body.nav-open .wpcsv-shop-header,
body.offcanvas-open .wpcsv-shop-header,
body.modal-open .wpcsv-shop-header,
html.menu-open .wpcsv-shop-header,
html.mobile-menu-open .wpcsv-shop-header,
html.nav-open .wpcsv-shop-header,
html.offcanvas-open .wpcsv-shop-header,
html.modal-open .wpcsv-shop-header {
    z-index: 0 !important;
}


/* v2.2.0: clean sticky shop header directly below the main website header. */
:root {
    --wpcsv-sticky-top: 0px;
}

.wpcsv-shop-header,
.wpcsv-shop-header--catalog,
.wpcsv-shop-header--cart {
    position: sticky !important;
    top: var(--wpcsv-sticky-top) !important;
    z-index: 10 !important;
    background: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* The separate cart top bar follows the same clean visual treatment. */
.wpcsv-cart-top-header {
    background: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* v2.2.1: remove theme-created space above the sticky shop header. */
body.wpcsv-shop-page #page,
body.wpcsv-shop-page #content,
body.wpcsv-shop-page .site-content,
body.wpcsv-shop-page #primary,
body.wpcsv-shop-page .content-area,
body.wpcsv-shop-page main.site-main,
body.wpcsv-shop-page main,
body.wpcsv-shop-page article,
body.wpcsv-shop-page .entry-content,
body.wpcsv-shop-page .page-content,
body.wpcsv-shop-page .wp-block-post-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.wpcsv-shop-page .wpcsv-products,
body.wpcsv-shop-page .wpcsv-shop-header,
body.wpcsv-shop-page .wpcsv-shop-header--catalog,
body.wpcsv-shop-page .wpcsv-shop-header--cart {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Block themes often add a top block-gap before page content. */
body.wpcsv-shop-page .wp-site-blocks > main,
body.wpcsv-shop-page .is-layout-flow > .wpcsv-products:first-child,
body.wpcsv-shop-page .entry-content > .wpcsv-products:first-child,
body.wpcsv-shop-page .wp-block-post-content > .wpcsv-products:first-child {
    margin-block-start: 0 !important;
}


/* v2.2.2: compact category titles below emoji circles */
.wpcsv-category-story-label {
    display: block;
    width: 100%;
    margin-top: 5px;
    overflow: hidden;
    color: #475569;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpcsv-category-story.is-active .wpcsv-category-story-label {
    color: #111827;
    font-weight: 700;
}

@media (max-width: 640px) {
    .wpcsv-category-story-label {
        margin-top: 4px;
        font-size: 8px;
    }
}


/* v2.2.5: full-width follow-limit notice, especially for mobile */
.wpcsv-follow-limit-notice {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 2147483000;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 10px 15px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity .16s ease, transform .16s ease;
}
.wpcsv-follow-limit-notice--visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
@media (max-width: 600px) {
    .wpcsv-follow-limit-notice {
        left: 12px;
        right: 12px;
        bottom: 14px;
        width: auto;
        max-width: none;
        transform: translateY(10px);
        font-size: 13px;
    }
    .wpcsv-follow-limit-notice--visible {
        transform: translateY(0);
    }
}


/* Version 2.2.7: quantity controls in cart */
.wpcsv-cart-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 3px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
}
.wpcsv-cart-quantity button {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.wpcsv-cart-quantity button:active { transform: scale(.94); }
.wpcsv-quantity-value {
    min-width: 20px;
    text-align: center;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}
.wpcsv-cart-item-media .wpcsv-remove-cart { margin-top: 0; }
@media (max-width: 640px) {
    .wpcsv-cart-quantity { gap: 6px; }
    .wpcsv-cart-quantity button { width: 26px; height: 26px; font-size: 17px; }
}

/* v2.3.4: v2.3.1 baseline plus a desktop-only gap below the sticky cart header. */
:root {
    --wpcsv-cart-header-height: 72px;
}

body.wpcsv-shop-page .wpcsv-cart-sidebar {
    top: calc(var(--wpcsv-sticky-top, 0px) + var(--wpcsv-cart-header-height, 72px)) !important;
    z-index: 9 !important;
}

@media (min-width: 981px) {
    body.wpcsv-shop-page .wpcsv-cart-sidebar {
        top: calc(var(--wpcsv-sticky-top, 0px) + var(--wpcsv-cart-header-height, 72px) + 12px) !important;
        max-height: calc(100vh - var(--wpcsv-sticky-top, 0px) - var(--wpcsv-cart-header-height, 72px) - 28px) !important;
    }
}


/* Version 2.3.6: quantity subtotal on a separate row, hidden for one item */
.wpcsv-cart-line-total {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.wpcsv-cart-line-total.is-hidden {
    display: none;
}

.wpcsv-cart-line-amount {
    color: #374151;
    font-weight: 600;
}


/* Version 2.3.7: keep quantity subtotal inside the green availability box */
.wpcsv-cart-availability {
    display: block;
}

.wpcsv-cart-availability-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.wpcsv-cart-availability .wpcsv-cart-line-total {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(21, 128, 61, 0.14);
}


/* Version 2.3.8: plain, smaller receipt quantity detail */
.wpcsv-receipt-product {
    background: transparent !important;
}

.wpcsv-receipt-product-name {
    display: inline;
}

.wpcsv-receipt-quantity-detail {
    display: inline;
    margin-left: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    line-height: inherit;
    white-space: nowrap;
}

/* Version 2.3.9: distinguish the cheapest-market label from the green price */
.wpcsv-cart-cheapest-label {
    color: #c2410c;
    font-weight: 700;
}

.wpcsv-cart-cheapest-arrow {
    color: #ea580c;
}


/* Version 2.4.0: cheapest-first supermarket-count notice */
.wpcsv-cart-cheapest-markets {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}
.wpcsv-cart-cheapest-markets[hidden] { display: none !important; }
@media (max-width: 640px) {
    .wpcsv-cart-cheapest-markets { margin-top: 10px; padding: 12px; font-size: 12px; }
}


/* Version 2.4.2: theme-proof plain receipt quantity detail */
.wpcsv-receipt .wpcsv-receipt-product,
.wpcsv-receipt .wpcsv-receipt-product-name,
.wpcsv-receipt .wpcsv-receipt-quantity-detail {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.wpcsv-receipt .wpcsv-receipt-quantity-detail {
    display: inline !important;
    margin: 0 0 0 5px !important;
    padding: 0 !important;
    color: #6b7280 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap;
}


/* Version 2.4.3: force receipt quantity text to render as unboxed plain text */
.wpcsv-receipt .wpcsv-receipt-item,
.wpcsv-receipt .wpcsv-receipt-item > *,
.wpcsv-receipt .wpcsv-receipt-product,
.wpcsv-receipt .wpcsv-receipt-product-name {
    background-image: none !important;
}

.wpcsv-receipt .wpcsv-receipt-quantity-detail {
    all: unset !important;
    display: inline !important;
    margin-left: 5px !important;
    color: #6b7280 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}


/* Version 2.4.4: remove grey boxes from cart quantity subtotal values */
.wpcsv-cart-line-quantity,
.wpcsv-cart-line-amount {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}


/* Version 2.4.5: lighter cart quantity subtotal text */
.wpcsv-cart-line-quantity,
.wpcsv-cart-line-amount {
    color: #94a3b8 !important;
}


/* Version 2.4.6: guest follow limit login link */
.wpcsv-follow-limit-login {
    color: #fff !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    white-space: normal;
}
.wpcsv-follow-limit-login:hover,
.wpcsv-follow-limit-login:focus {
    color: #fff !important;
    text-decoration-thickness: 2px !important;
}


/* Version 2.4.8: allow interaction with the guest follow-limit login link */
.wpcsv-follow-limit-notice--visible {
    pointer-events: auto !important;
}
.wpcsv-follow-limit-notice--visible .wpcsv-follow-limit-login {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1;
}


/* v2.4.9: disable quantity controls for products unavailable in the selected supermarket. */
.wpcsv-cart-quantity.is-disabled {
    opacity: .52;
}
.wpcsv-cart-quantity button:disabled,
.wpcsv-cart-quantity button[aria-disabled="true"] {
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    background: #f3f4f6 !important;
    color: #9ca3af !important;
}

/* Today's price changes page */
.wpcsv-price-changes-view {
    width: 100%;
}
.wpcsv-price-changes-title {
    margin: 0 0 18px;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}
.wpcsv-price-change-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.wpcsv-price-change-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
}
.wpcsv-price-change-row--decreased { border-left-color: #16a34a; }
.wpcsv-price-change-row--increased { border-left-color: #dc2626; }
.wpcsv-price-change-row--available { border-left-color: #0284c7; }
.wpcsv-price-change-row--unavailable { border-left-color: #64748b; }
.wpcsv-price-change-store {
    min-width: 0;
    font-weight: 700;
    color: #0f172a;
}
.wpcsv-price-change-values {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: .9rem;
}
.wpcsv-price-change-values del { color: #94a3b8; }
.wpcsv-price-change-row small {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: .72rem;
}
.wpcsv-price-change-row--decreased small { color: #15803d; }
.wpcsv-price-change-row--increased small { color: #b91c1c; }
.wpcsv-no-price-changes {
    padding: 28px 18px;
    text-align: center;
    color: #64748b;
}
@media (max-width: 600px) {
    .wpcsv-price-change-row {
        grid-template-columns: 1fr;
    }
    .wpcsv-price-change-values {
        justify-content: flex-start;
    }
}

/* v2.5.5: show today's changes directly in the supermarket price rows. */
.wpcsv-price-row--changed {
    align-items: flex-start;
}
.wpcsv-price-change-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    line-height: 1.15;
}
.wpcsv-price-change-inline del {
    color: #94a3b8 !important;
    font-size: .76rem;
    font-weight: 500;
    text-decoration-thickness: 1px;
}
.wpcsv-price-row--change-decreased .wpcsv-store-name,
.wpcsv-price-row--change-decreased .wpcsv-price-change-inline strong,
.wpcsv-price-row--change-available .wpcsv-store-name,
.wpcsv-price-row--change-available .wpcsv-price-change-inline strong {
    color: #15803d !important;
}
.wpcsv-price-row--change-increased .wpcsv-store-name,
.wpcsv-price-row--change-increased .wpcsv-price-change-inline strong,
.wpcsv-price-row--change-unavailable .wpcsv-store-name,
.wpcsv-price-row--change-unavailable .wpcsv-price-change-inline strong {
    color: #dc2626 !important;
}

/* v2.5.6: use row backgrounds, not colored text, for price direction. */
.wpcsv-price-row--change-decreased {
    background: #dcfce7 !important;
    border-color: #86efac !important;
}
.wpcsv-price-row--change-increased {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}
.wpcsv-price-row--change-decreased .wpcsv-store-name,
.wpcsv-price-row--change-decreased .wpcsv-price-change-inline strong,
.wpcsv-price-row--change-increased .wpcsv-store-name,
.wpcsv-price-row--change-increased .wpcsv-price-change-inline strong {
    color: #1f2937 !important;
}
.wpcsv-price-row--change-decreased .wpcsv-price-change-inline del,
.wpcsv-price-row--change-increased .wpcsv-price-change-inline del {
    color: #64748b !important;
}


/* v2.5.7: on the Price changes view, only real price movements may be highlighted. */
.wpcsv-products--price-changes-view .wpcsv-best-price {
    display: none !important;
}
.wpcsv-products--price-changes-view .wpcsv-price-row--best:not(.wpcsv-price-row--changed) {
    background: transparent !important;
    border-color: #e2e8f0 !important;
    color: inherit !important;
}

/* v2.5.8: compact single-row mobile cards for the Price changes view only. */
@media (max-width: 640px) {
    .wpcsv-products--price-changes-view .wpcsv-price-changes-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px;
    }

    .wpcsv-products--price-changes-view .wpcsv-product-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        min-height: 190px;
    }

    .wpcsv-products--price-changes-view .wpcsv-product-image-wrap {
        flex: 0 0 33.333%;
        width: 33.333%;
        min-width: 0;
        min-height: 0;
        padding: 10px;
        align-self: stretch;
    }

    .wpcsv-products--price-changes-view .wpcsv-product-image-wrap > a {
        min-height: 100%;
    }

    .wpcsv-products--price-changes-view .wpcsv-product-image {
        width: 100%;
        height: 100%;
        max-height: 170px;
        object-fit: contain;
    }

    .wpcsv-products--price-changes-view .wpcsv-product-body {
        flex: 1 1 66.667%;
        width: 66.667%;
        min-width: 0;
        padding: 12px;
    }

    .wpcsv-products--price-changes-view .wpcsv-product-title {
        padding-right: 34px;
        font-size: 14px;
        line-height: 1.25;
    }

    .wpcsv-products--price-changes-view .wpcsv-price-list {
        width: 100%;
    }

    .wpcsv-products--price-changes-view .wpcsv-follow-product {
        top: 8px;
        right: 8px;
        min-height: 30px;
        padding: 5px 8px;
    }
}


/* v2.5.9: place Add to cart below the image on mobile Price changes cards. */
@media (max-width: 640px) {
    .wpcsv-products--price-changes-view .wpcsv-product-image-wrap {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .wpcsv-products--price-changes-view .wpcsv-product-image-wrap > a {
        flex: 1 1 auto;
        min-height: 0;
    }

    .wpcsv-products--price-changes-view .wpcsv-product-image-wrap > .wpcsv-add-cart {
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
        padding: 7px 5px;
        min-height: 34px;
        font-size: 11px;
        line-height: 1.15;
    }
}

/* v2.6.0: keep all four Shop navigation links on one mobile row */
@media (max-width: 640px) {
    .wpcsv-shop-header .wpcsv-shop-nav,
    .wpcsv-shop-header-inner .wpcsv-shop-nav {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 3px !important;
        width: 100% !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-link--compact,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        gap: 3px !important;
        padding: 6px 3px !important;
        font-size: 9px !important;
        white-space: nowrap !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-link--compact .wpcsv-shop-nav-icon,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact .wpcsv-shop-nav-icon {
        font-size: 12px !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-link--compact .wpcsv-cart-count,
    .wpcsv-shop-header .wpcsv-shop-nav-link--compact .wpcsv-followed-count,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact .wpcsv-cart-count,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact .wpcsv-followed-count {
        min-width: 14px !important;
        height: 14px !important;
        padding: 0 2px !important;
        font-size: 8px !important;
    }
}

/* v2.6.1: clearer four-item mobile Shop navigation */
@media (max-width: 640px) {
    .wpcsv-shop-header .wpcsv-shop-nav,
    .wpcsv-shop-header-inner .wpcsv-shop-nav {
        gap: 6px !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-link--compact,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact {
        min-height: 42px !important;
        gap: 4px !important;
        padding: 7px 4px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: -0.1px !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-link--compact .wpcsv-shop-nav-icon,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact .wpcsv-shop-nav-icon {
        font-size: 14px !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-link--compact .wpcsv-cart-count,
    .wpcsv-shop-header .wpcsv-shop-nav-link--compact .wpcsv-followed-count,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact .wpcsv-cart-count,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact .wpcsv-followed-count {
        min-width: 15px !important;
        height: 15px !important;
        font-size: 8px !important;
    }
}

/* v2.6.2: subtle mobile separators between the four Shop navigation links */
@media (max-width: 640px) {
    .wpcsv-shop-header .wpcsv-shop-nav,
    .wpcsv-shop-header-inner .wpcsv-shop-nav {
        gap: 0 !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-item,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-item {
        position: relative !important;
        min-width: 0 !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-item + .wpcsv-shop-nav-item,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-item + .wpcsv-shop-nav-item {
        border-left: 1px solid #e2e8f0 !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-link--compact,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact {
        border-radius: 0 !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}


/* v2.6.3: distinct mobile navigation buttons */
@media (max-width: 640px) {
    .wpcsv-shop-header .wpcsv-shop-nav,
    .wpcsv-shop-header-inner .wpcsv-shop-nav {
        gap: 5px !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-link--compact,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact {
        background: #fef5f8 !important;
        border: 1px solid #f6dfe8 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-link--compact:hover,
    .wpcsv-shop-header .wpcsv-shop-nav-link--compact:focus,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact:hover,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact:focus {
        background: #fcebf1 !important;
    }

    .wpcsv-shop-header .wpcsv-shop-nav-link--compact.is-active,
    .wpcsv-shop-header-inner .wpcsv-shop-nav-link--compact.is-active {
        background: #f9dce7 !important;
        border-color: #efbfd0 !important;
    }
}


/* v2.6.4: render the mobile Price changes cart button in its final column immediately. */
.wpcsv-products--price-changes-view .wpcsv-add-cart--mobile-image {
    display: none;
}

@media (max-width: 640px) {
    .wpcsv-products--price-changes-view .wpcsv-add-cart--mobile-image {
        display: flex !important;
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
        padding: 7px 5px;
        min-height: 34px;
        font-size: 11px;
        line-height: 1.15;
    }

    .wpcsv-products--price-changes-view .wpcsv-add-cart--desktop-body {
        display: none !important;
    }
}

/* v2.6.5: keep old and new changed prices on one line on mobile. */
@media (max-width: 640px) {
    .wpcsv-products--price-changes-view .wpcsv-price-change-inline {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        white-space: nowrap !important;
    }

    .wpcsv-products--price-changes-view .wpcsv-price-change-inline del,
    .wpcsv-products--price-changes-view .wpcsv-price-change-inline strong {
        display: inline !important;
        margin: 0 !important;
    }
}

/* v3.0.6: lighter yellow followed-card border and badge. */
.wpcsv-price-changes-followed-section { margin-bottom: 22px; }
.wpcsv-price-changes-other-title {
    margin: 28px 0 16px;
    padding-top: 22px;
    border-top: 2px solid #e5e7eb;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    font-weight: 800;
    color: #334155;
}
.wpcsv-product-card--price-followed {
    background: inherit !important;
    border: 3px solid #fde68a !important;
    box-shadow: none !important;
}
.wpcsv-product-card--price-followed .wpcsv-product-title { font-weight: 800; }
.wpcsv-price-followed-badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    right: auto;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    background: #fef3c7;
    color: #713f12;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}
.wpcsv-price-changes-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0 4px;
}
.wpcsv-price-changes-load-more-wrap[hidden] { display: none !important; }
@media (max-width: 640px) {
    .wpcsv-price-followed-badge { top: 8px; left: 8px; right: auto; font-size: 11px; padding: 5px 8px; }
    .wpcsv-price-changes-other-title { margin-top: 22px; padding-top: 18px; }
}

/* v3.0.7: followed-products price impact summary. */
.wpcsv-followed-price-summary {
    margin: -4px 0 26px;
}
.wpcsv-followed-price-summary[hidden] { display: none !important; }
.wpcsv-followed-price-summary-inner {
    padding: 18px 20px;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #60a5fa;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a5f;
}
.wpcsv-followed-price-summary-title {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 800;
}
.wpcsv-followed-price-summary p {
    margin: 7px 0;
    line-height: 1.55;
}
.wpcsv-followed-price-summary-example { font-weight: 650; }
.wpcsv-followed-price-summary small {
    display: block;
    margin-top: 10px;
    color: #64748b;
}
@media (max-width: 640px) {
    .wpcsv-followed-price-summary { margin-top: -2px; }
    .wpcsv-followed-price-summary-inner { padding: 15px 16px; }
}

/* v3.1.0: reserve stable image and initial catalog space for Core Web Vitals. */
.wpcsv-products--catalog-view .wpcsv-product-image-wrap {
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.wpcsv-products--catalog-view .wpcsv-product-image {
    width: 100%;
    height: 100%;
    max-height: 190px;
    aspect-ratio: 1 / 1;
}

.wpcsv-products:not(.wpcsv-products--cart-view):not(.wpcsv-products--followed-view):not(.wpcsv-products--price-changes-view) .wpcsv-products-grid:empty {
    min-height: 720px;
}

@media (max-width: 640px) {
    .wpcsv-products--catalog-view .wpcsv-product-image {
        max-height: 120px;
    }

    .wpcsv-products:not(.wpcsv-products--cart-view):not(.wpcsv-products--followed-view):not(.wpcsv-products--price-changes-view) .wpcsv-products-grid:empty {
        min-height: 560px;
    }
}


/* v3.1.1: stabilize above-the-fold catalogue geometry to reduce CLS. */
:root {
    /* CuteViral's normal header height. JS refines this only when needed. */
    --wpcsv-sticky-top: 72px;
}

body.admin-bar {
    --wpcsv-sticky-top: 104px;
}

.wpcsv-products--catalog-view .wpcsv-shop-header--catalog {
    min-height: 58px;
}

.wpcsv-products--catalog-view .wpcsv-shop-nav-link--compact {
    box-sizing: border-box;
}

.wpcsv-products--catalog-view .wpcsv-cart-count,
.wpcsv-products--catalog-view .wpcsv-followed-count {
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    padding-inline: 0;
    font-variant-numeric: tabular-nums;
}

.wpcsv-products--catalog-view .wpcsv-search-wrap--shop {
    min-height: 52px;
}

.wpcsv-products--catalog-view .wpcsv-category-stories {
    min-height: 101px;
    contain: layout paint;
}

.wpcsv-products--catalog-view .wpcsv-product-card {
    contain: layout paint;
}

.wpcsv-products--catalog-view .wpcsv-product-title {
    min-height: 3.65rem;
}

.wpcsv-products--catalog-view .wpcsv-add-cart {
    flex: 0 0 44px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --wpcsv-sticky-top: 110px;
    }
}

@media (max-width: 640px) {
    :root {
        --wpcsv-sticky-top: 64px;
    }

    body.admin-bar {
        --wpcsv-sticky-top: 110px;
    }

    .wpcsv-products--catalog-view .wpcsv-shop-header--catalog {
        min-height: 54px;
    }

    .wpcsv-products--catalog-view .wpcsv-category-stories {
        min-height: 88px;
    }

    .wpcsv-products--catalog-view .wpcsv-product-title {
        min-height: 2.9rem;
    }

    .wpcsv-products--catalog-view .wpcsv-cart-count,
    .wpcsv-products--catalog-view .wpcsv-followed-count {
        flex-basis: 15px;
        width: 15px;
        min-width: 15px !important;
    }
}


/* v3.1.2: CSV last-updated timestamp below the category circles. */
.wpcsv-products--catalog-view .wpcsv-csv-updated {
    margin: 4px 0 18px;
    min-height: 20px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 640px) {
    .wpcsv-products--catalog-view .wpcsv-csv-updated {
        margin: 2px 0 14px;
        font-size: 12px;
    }
}

/* v3.1.4: tighter catalogue controls and compact update timestamp. */
.wpcsv-products--catalog-view .wpcsv-search-wrap--shop {
    margin-bottom: 12px;
}

.wpcsv-products--catalog-view .wpcsv-category-stories {
    margin-top: 4px;
    margin-bottom: 8px;
    padding-top: 6px;
    padding-bottom: 8px;
}

.wpcsv-products--catalog-view .wpcsv-csv-updated {
    margin: 0 0 10px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .wpcsv-products--catalog-view .wpcsv-search-wrap--shop {
        margin-bottom: 8px;
    }

    .wpcsv-products--catalog-view .wpcsv-category-stories {
        margin-top: 2px;
        margin-bottom: 4px;
        padding-top: 4px;
        padding-bottom: 6px;
    }

    .wpcsv-products--catalog-view .wpcsv-csv-updated {
        margin: 0 0 7px;
        overflow: hidden;
        color: #94a3b8;
        font-size: 10px;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}



/* v3.1.5: force compact catalogue spacing against theme/legacy overrides. */
.wpcsv-products.wpcsv-products--catalog-view > .wpcsv-search-wrap.wpcsv-search-wrap--shop {
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 7px !important;
}

.wpcsv-products.wpcsv-products--catalog-view > .wpcsv-category-stories {
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 3px !important;
    padding-top: 3px !important;
    padding-bottom: 4px !important;
}

.wpcsv-products.wpcsv-products--catalog-view > p.wpcsv-csv-updated {
    min-height: 0 !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

@media (max-width: 640px) {
    .wpcsv-products.wpcsv-products--catalog-view > .wpcsv-search-wrap.wpcsv-search-wrap--shop {
        margin-bottom: 4px !important;
    }

    .wpcsv-products.wpcsv-products--catalog-view > .wpcsv-category-stories {
        margin-top: 0 !important;
        margin-bottom: 1px !important;
        padding-top: 2px !important;
        padding-bottom: 3px !important;
    }

    .wpcsv-products.wpcsv-products--catalog-view > p.wpcsv-csv-updated {
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 0 5px !important;
        overflow: hidden !important;
        color: #9ca3af !important;
        font-size: 9px !important;
        font-weight: 400 !important;
        line-height: 1.15 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}


/* v3.1.6: use more mobile width for the update line and rebalance vertical spacing. */
@media (max-width: 640px) {
    .wpcsv-products.wpcsv-products--catalog-view > .wpcsv-search-wrap.wpcsv-search-wrap--shop {
        margin-top: -5px !important;
        margin-bottom: 4px !important;
    }

    .wpcsv-products.wpcsv-products--catalog-view > .wpcsv-category-stories {
        margin-bottom: 6px !important;
    }

    .wpcsv-products.wpcsv-products--catalog-view > p.wpcsv-csv-updated {
        box-sizing: border-box !important;
        width: calc(100% + 20px) !important;
        max-width: none !important;
        margin: 0 -10px 5px !important;
        padding: 0 2px !important;
        overflow: visible !important;
        font-size: 9px !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }
}

/* v3.1.7: equal mobile spacing above and below the search bar. */
@media (max-width: 640px) {
    .wpcsv-products.wpcsv-products--catalog-view > .wpcsv-search-wrap.wpcsv-search-wrap--shop {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }
}


/* v3.1.8: reserve space above enlarged active category circles on mobile. */
@media (max-width: 640px) {
    .wpcsv-products.wpcsv-products--catalog-view > .wpcsv-category-stories {
        box-sizing: border-box !important;
        margin-top: 0 !important;
        padding-top: 10px !important;
        overflow-y: hidden !important;
    }
}


/* v3.1.9: reserve top clearance for enlarged/outlined active category circles on desktop too. */
@media (min-width: 641px) {
    .wpcsv-products.wpcsv-products--catalog-view > .wpcsv-category-stories {
        box-sizing: border-box !important;
        margin-top: 0 !important;
        padding-top: 12px !important;
        overflow-y: hidden !important;
    }
}


/* v3.2.0: search and market selector share one catalogue toolbar row. */
.wpcsv-products--catalog-view .wpcsv-catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 4px 0;
}
.wpcsv-products--catalog-view .wpcsv-catalog-toolbar .wpcsv-search-wrap--shop {
    width: 100%;
    margin: 0 !important;
    min-width: 0;
}
.wpcsv-products--catalog-view .wpcsv-market-select-wrap {
    min-width: 0;
}
.wpcsv-products--catalog-view .wpcsv-market-select {
    width: 100%;
    height: 44px;
    padding: 0 34px 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #fff;
    color: #374151;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
@media (max-width: 640px) {
    .wpcsv-products--catalog-view .wpcsv-catalog-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(112px, 36%);
        gap: 7px;
        margin: 4px 0;
    }
    .wpcsv-products--catalog-view .wpcsv-market-select {
        height: 42px;
        padding-left: 9px;
        padding-right: 24px;
        font-size: 12px;
    }
}

/* v3.2.3: highlight the selected supermarket price row in red and restore v3.2.0 toolbar styling. */
.wpcsv-products--catalog-view .wpcsv-price-row.wpcsv-price-row--selected-market {
    border-color: #ef4444 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.22);
}

/* v3.2.7: reusable price-changes product slider shortcode. */
.wpcsv-price-slider {
    width: 100%;
    margin: 20px 0;
}
.wpcsv-price-slider__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.wpcsv-price-slider__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}
.wpcsv-price-slider__shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wpcsv-price-slider__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, calc((100% - 36px) / 4));
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    padding: 2px;
}
.wpcsv-price-slider__track::-webkit-scrollbar { display: none; }
.wpcsv-price-slider__card {
    position: relative;
    scroll-snap-align: start;
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.wpcsv-price-slider__followed-star {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #f5b800;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 1px 5px rgba(0,0,0,.14);
}
.wpcsv-price-slider__followed-star {
    border: 0;
    padding: 0;
    cursor: pointer;
}
.wpcsv-price-slider__followed-star:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.wpcsv-price-slider__followed-star[hidden] { display: none; }
.wpcsv-price-slider__followed-hint {
    position: absolute;
    top: 10px;
    left: 42px;
    z-index: 3;
    max-width: calc(100% - 52px);
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff7cc;
    color: #6b5200;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}
.wpcsv-price-slider__followed-hint[hidden] { display: none; }
.wpcsv-price-slider__followed-hint.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.wpcsv-price-slider__card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.wpcsv-price-slider__image-wrap {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}
.wpcsv-price-slider__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.wpcsv-price-slider__placeholder {
    font-size: 42px;
}
.wpcsv-price-slider__name {
    display: -webkit-box;
    min-height: 48px;
    padding: 10px 10px 6px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}
.wpcsv-price-slider__changes {
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding: 6px 10px 10px;
}
.wpcsv-price-slider__change {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 5px 7px;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 11px;
}
.wpcsv-price-slider__change--decreased { background: #ecfdf5; }
.wpcsv-price-slider__change--increased { background: #fef2f2; }
.wpcsv-price-slider__values {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.wpcsv-price-slider__values del { color: #94a3b8; }

.wpcsv-price-slider__card--all {
    border-style: dashed;
    background: #fafafa;
}
.wpcsv-price-slider__all-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    min-height: 100%;
    padding: 20px;
    color: inherit;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}
.wpcsv-price-slider__all-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    font-size: 22px;
}

.wpcsv-price-slider__arrow {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}
.wpcsv-price-slider__arrow:disabled {
    opacity: .35;
    cursor: default;
}

.wpcsv-price-slider__more {
    display: none;
}
@media (max-width: 640px) {
    .wpcsv-price-slider__track {
        grid-auto-columns: minmax(150px, calc((100% - 10px) / 2.15));
        gap: 10px;
    }
    .wpcsv-price-slider__arrow { display: none; }
    .wpcsv-price-slider__more {
        position: absolute;
        right: 4px;
        top: 50%;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 5px 7px;
        border: 1px solid rgba(15, 23, 42, .12);
        border-radius: 999px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 2px 8px rgba(15, 23, 42, .14);
        color: #334155;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        pointer-events: none;
        opacity: 1;
        transform: translateY(-50%);
        transition: opacity .28s ease, transform .28s ease;
    }
    .wpcsv-price-slider__more.is-fading {
        opacity: 0;
        transform: translate(5px, -50%);
    }
    .wpcsv-price-slider__more[hidden] { display: none; }
    .wpcsv-price-slider__more strong { font-size: 15px; line-height: .8; }
    .wpcsv-price-slider__title { font-size: 17px; }
    .wpcsv-price-slider__name { font-size: 12px; min-height: 43px; }
}
