.cpc-live-search {
    max-width: 520px;
    margin: 0 auto 30px;
    position: relative;
}
 
.cpc-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cpc-search-input {
    width: 100%;
    padding: 14px 80px 14px 18px;
    border-radius: 999px;
    border: 1px solid #ced4da;
    background: #fff;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
 
.cpc-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
 
.cpc-search-clear {
   position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent !important;
    font-size: 20px;
    color: #6b7280 !important;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s 
ease;
}
 
.cpc-live-search.is-searching .cpc-search-input-wrap.has-value .cpc-search-clear {
    opacity: 0;
    pointer-events: none;
}

.cpc-search-clear:hover {
    color: #ababab;
}

.cpc-search-input-wrap.has-value .cpc-search-clear {
    opacity: 1;
    pointer-events: auto;
}
 
.cpc-search-submit {
 position: absolute;
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #f9f9f9;
    color: #000 !important;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 39px;
    /* border-radius: 0 999px 999px 0; */
    transition: background-color 0.2s 
ease;
}
 
.cpc-search-submit:hover {
    background: #ececec;
}
 
.cpc-search-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
}

.cpc-search-icon::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    top: 1px;
    left: 1px;
}

.cpc-search-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 2px;
    background-color: currentColor;
    transform: rotate(45deg);
    right: 0;
    bottom: -1px;
    transform-origin: top right;
}

.cpc-search-inline-spinner {
    position: absolute;
    top: 50%;
    right: 56px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    animation: cpc-spin 0.8s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    transform: translateY(-50%);
}

.cpc-live-search.is-searching .cpc-search-inline-spinner {
    opacity: 1;
}
 
.cpc-search-results {
    background: #fff;
    box-shadow: 0 25px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 10;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}
 
.cpc-search-results[hidden] {
    display: none !important;
}
 
.cpc-search-state {
    padding: 24px;
    text-align: center;
    font-size: 15px;
    color: #4b5563;
}
 
@keyframes cpc-spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
 
.cpc-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b5bbc5 transparent;
    flex: 1 1 auto;
    min-height: 0;
}

.cpc-search-view-all-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.cpc-search-view-all .cpc-search-card--view-all,
.cpc-search-view-all-footer .cpc-search-card--view-all {
    justify-content: center;
    align-items: center;
    min-height: 54px;
    text-align: center;
}

.cpc-search-view-all-label {
    font-weight: 600;
    color: #0b4eb2;
    font-size: 14px;
}

.cpc-search-list::-webkit-scrollbar {
    width: 6px;
}

.cpc-search-list::-webkit-scrollbar-track {
    background: transparent;
}

.cpc-search-list::-webkit-scrollbar-thumb {
    background: #b5bbc5;
    border-radius: 999px;
}
 
.cpc-search-item {
    margin: 0;
    padding: 0;
}
 
.cpc-search-card {
    display: flex;
    gap: 10px;
    padding: 5px;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.2s 
ease;
    border-bottom: 1px solid #e5e7eb !important;
    align-items: flex-start;
}
 
.cpc-search-card:last-child {
    border-bottom: none;
}
 
.cpc-search-card:hover {
    background: #f9fafb;
}
 
.cpc-search-thumb {
    width: 45px;
    height: 90px;
    min-width: 88px;
    overflow: hidden;
    background: #f3f4f6;
    /* align-items: center; */
    justify-content: center;
    flex-shrink: 0;
}
 
.cpc-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
.cpc-search-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 12px;
}
 
.cpc-search-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
 
.cpc-search-title {
    font-weight: 600;
    margin: 0 !important;
    color: #0b4eb2;
    font-size: 14px !important;
    word-wrap: break-word;
}
 
.cpc-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 10px;
    /* margin: 6px 0 8px; */
    color: #1d4b2c;
    align-items: center;
}
 
.cpc-search-stock {
    font-weight: 600;
    color: #059669;
    font-size: 13px;
}
 
.cpc-search-sku {
    font-weight: 400;
    color: #111827;
    font-size: 13px;
}
 
.cpc-search-sku strong {
    font-weight: 500;
    color: #374151;
}

.cpc-search-artist {
    font-weight: 500;
    color: #1d4b2c;
    font-size: 13px;
  line-height: 1.3;
    max-width: 260px;       
   margin-left: auto;
    margin-right: auto;
    white-space: nowrap;     /* no second line */
    overflow: hidden;
    text-overflow: ellipsis; /* ... */
    text-align: center;
    display: block;

}
 
.cpc-search-eancode {
    font-weight: 400;
    color: #1d1d1f;
    font-size: 13px;
}

.cpc-search-eancode strong {
    font-weight: 500;
    color: #0f172a;
}

.cpc-search-description {
    font-size: 12px;
    color: #1f2933;
    line-height: 1.5;
    /* margin-bottom: 8px; */
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cpc-search-description strong {
    font-weight: 600;
}

.cpc-search-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    font-size: 12px;
    margin: 0;
    color: #3c3c43;
    line-height: 1.45;
}
 
.cpc-search-details span {
    display: inline-flex;
}
 
.cpc-search-details strong {
    font-weight: 600;
    color: #0f172a;
    margin-right: 4px;
}

.cpc-search-info {
    flex-basis: 100%;
    color: #334155;
}

.cpc-search-highlight {
    background: none;
    color: blue;
    font-weight: 600;
}

.cpc-search-view-all .cpc-search-card--view-all {
    justify-content: center;
    align-items: center;
    min-height: 64px;
    text-align: center;
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.cpc-search-view-all-label {
    font-weight: 600;
    color: #0b4eb2;
    font-size: 14px;
}

.cpc-search-page {
    margin: 20px 0 40px;
    width: 100%;
    position: relative;
}

.cpc-search-page-title {
    font-size: 22px;
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cpc-search-page-title small {
    font-size: 14px;
    color: #4b5563;
}

.cpc-search-page-loader {
    display: none;
    padding: 40px 0;
    min-height: 100px;
    width: 100%;
    text-align: center;
    position: relative;
}

.cpc-search-page-loader.show {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.cpc-search-page-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    animation: cpc-page-spin 0.8s linear infinite;
    margin: 0 auto;
    display: block;
}

@keyframes cpc-page-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cpc-search-loader-text {
    font-size: 14px;
    color: #4b5563;
}

.cpc-search-page-message {
    margin-top: 12px;
    color: #4b5563;
    font-size: 15px;
}

.cpc-search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1200px) {
    .cpc-search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .cpc-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cpc-search-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.cpc-search-grid-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    text-align: center;
    background: #fff;
    height: 100%;
    flex-wrap: wrap;
}

.cpc-search-grid-thumb {
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.cpc-search-grid-thumb img {
    width: auto !important;
    height: 200px !important;
    display: block;
    margin: 0 auto;
}

.cpc-search-grid-title {
      font-weight: 600  !important;
    font-size: 0.9em !important;
    line-height: 1.3;
    max-width: 260px;       
   margin-left: auto;
    margin-right: auto;
    white-space: nowrap;     /* no second line */
    overflow: hidden;
    text-overflow: ellipsis; /* ... */
    text-align: center;
    display: block;
}

.cpc-search-grid-title a {
    color: inherit;
    text-decoration: none;
}

.cpc-search-grid-title a:hover {
    text-decoration: underline;
}

.cpc-search-grid-artist {
    font-size: 13px;
    color: #666;
    font-style: italic;
  line-height: 1.3;
    max-width: 260px;       
   margin-left: auto;
    margin-right: auto;
    white-space: nowrap;     /* no second line */
    overflow: hidden;
    text-overflow: ellipsis; /* ... */
    text-align: center;
    display: block;

}

.cpc-search-grid-price {
   font-weight: 500 !important;
    font-size: .857em !important;
   }

.cpc-search-grid-actions .button {
    width: 100%;
}

.cpc-search-pagination {
    margin-top: 24px;
}

.cpc-search-pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.cpc-search-pagination ul.page-numbers li a,
.cpc-search-pagination ul.page-numbers li span,
.cpc-search-pagination li a,
.cpc-search-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d1d5db !important;
    border-radius: 6px;
    text-decoration: none;
    color: #111827 !important;
    background: #ffffff !important;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.cpc-search-pagination ul.page-numbers .current,
.cpc-search-pagination .current {
    background: #111827 !important;
    color: #fff !important;
    border-color: #111827 !important;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.cpc-search-pagination a:hover,
.cpc-search-pagination ul.page-numbers li a:hover {
    background: #f3f4f6 !important;
}

.cpc-search-pagination .dots {
    box-shadow: none;
    background: transparent !important;
    border: 1px solid transparent !important;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    min-width: auto;
}

.cpc-search-pagination .page-numbers {
    font-size: 16px;
    line-height: 1;
}

.cpc-search-pagination .page-numbers.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filter/Sort Bar Styles - ONLY for full search results page */
.cpc-search-filter-bar {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.cpc-filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cpc-filter-label {
    font-weight: bold;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.cpc-filter-search {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.cpc-filter-sort {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.cpc-filter-apply {
    padding: 8px 20px;
    background: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.cpc-filter-apply:hover {
    background: #333;
}

.cpc-filter-apply:active {
    background: #555;
}

@media (max-width: 768px) {
    .cpc-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cpc-filter-search,
    .cpc-filter-sort,
    .cpc-filter-apply {
        width: 100%;
    }
}
 
 