/* ===================================================================
   Sun Pumps – Shop Widget  v2.0
   =================================================================== */
.sp-wrap *, .sp-wrap *::before, .sp-wrap *::after { box-sizing: border-box; }
.sp-wrap {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #1F2D34;
    background: #F5F4EF;
}

/* ===================================================================
   TABS
   =================================================================== */
.sp-tabs {
    background: inherit;
    padding: 20px 0;
    border-top: 1px solid #0f1a1f24;
    border-bottom: 1px solid #0f1a1f24;
}

.sp-tabs__inner {
    display: flex;
    align-items: stretch;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    cursor: default;
    scrollbar-width: none;
}
.sp-tabs__inner::-webkit-scrollbar { display: none; }


@media (min-width: 769px) {
    .sp-tabs__inner {
        overflow-x: auto;
    }
    .sp-tabs__tab {
        flex: 0 0 calc(100% / 7);
    }
}

.sp-tabs__tab {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.sp-tabs__tab-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 20px 13px;
    border-bottom: 3px solid transparent;
    color: #5C6B73;
    transition: color .18s, border-color .18s;
    white-space: nowrap;
    cursor: pointer;
}

.sp-tabs__tab:hover .sp-tabs__tab-in { color: #1F2D34; }

/* Active – dark filled box (matching reference design) */
.sp-tabs__tab--active .sp-tabs__tab-in {
 background: #0F1A1F;
    border: 0px;
    padding: 14px 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: background 200ms;
    color: rgb(255, 255, 255) !important;
}

/* "All products" active – red filled */
.sp-tabs__tab--all-active .sp-tabs__tab-in {
    background: #0F1A1F;
	border-radius:8px !important;
    color: #fff !important;
    border-color: transparent;
}

.sp-tabs__icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}
.sp-tabs__icon--img { object-fit: contain; }

.sp-tabs__label { font-size: 13px; line-height: 1.2; }
.sp-tabs__count { font-size: 11px; color: #9AA5AA; }
.sp-tabs__tab--active .sp-tabs__count,
.sp-tabs__tab--all-active .sp-tabs__count { color: inherit; opacity: .75; }


.sp-toolbar{
	border-bottom:1px solid #0f1a1f24;
	padding-bottom:20px;
}
/* ===================================================================
   LAYOUT
   =================================================================== */
.sp-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
}

/* ===================================================================
   SIDEBAR
   =================================================================== */
.sp-sidebar {
/*     background: #fff; */
/*     border-right: 1px solid #E4E3DC; */
    /* no sticky on any breakpoint — causes issues */
}

.sp-filter {
    padding: 18px 20px 20px 0px;
    border-bottom: 1px solid #F0EFE8;
}

.sp-filter__lbl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    color: #8C9DA5;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sp-filter__val {
    font-size: 18px;
    font-weight: 700;
    color: #1F2D34;
    letter-spacing: 0;
    text-transform: none;
}
.sp-filter__val small { font-size: 11px; color: #9AA5AA; }

/* Search */
.sp-search-wrap { position: relative; }
.sp-search {
    width: 100%;
    padding: 9px 36px 9px 12px !important;
    border: 1px solid #E4E3DC !important;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    color: #1F2D34;
    background: #fff;
    outline: none;
    transition: border-color .18s;
    -webkit-appearance: none;
}
.sp-search:focus { border-color: #1F2D34; }
.sp-search-ico {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: #9AA5AA;
    pointer-events: none;
}

/* Range sliders */
.sp-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 2px;
    background: #E4E3DC;
    outline: none;
    cursor: pointer;
    margin: 4px 0 6px;
}
.sp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #ED1C2B;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    cursor: pointer;
    transition: transform .15s;
}
.sp-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.sp-range::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #ED1C2B;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.sp-filter__ends { display: flex; justify-content: space-between; font-size: 11px; color: #9AA5AA; }

/* Power type checkboxes */
.sp-pt-list { display: flex; flex-direction: column; gap: 2px; }
.sp-pt-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px !important;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.sp-pt-item:has(input:checked) { border-color: #E4E3DC; }
.sp-pt-item input[type=checkbox] { accent-color: #ED1C2B; width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.sp-pt-label { flex: 1; font-size: 13px; }
.sp-pt-count {
    font-size: 11px; color: #9AA5AA;
    padding: 1px 7px; border-radius: 20px;
    min-width: 24px; text-align: center;
}
/* Checkbox ko Gol banane ke liye basic styling */
.js-sp-pt {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ED1C2B; /* Border hamesha red rahegi */
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    display: flex; /* Flex use karenge perfect centering ke liye */
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: transparent;
}

/* Jab checkbox checked ho (Center Dot) */
.js-sp-pt:checked::before {
    content: ""; /* Khali content dot banane ke liye */
    width: 12px; /* Dot ka size */
    height: 12px;
    background-color: #ED1C2B; /* Dot ka color */
    border-radius: 50%;
    display: block;
}

/* Hover effect (Optional) */
.js-sp-pt:hover {
    box-shadow: 0 0 5px rgba(237, 28, 43, 0.3);
}
/* .sp-pt-item:has(input:checked) .sp-pt-count { background: #1F2D34; color: #fff; } */

/* Reset */
.sp-filter--reset { padding: 14px 20px; border-bottom: none; }
.sp-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px;
    border: 1px solid #E4E3DC;
    background: #fff;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    color: #5C6B73;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.sp-reset:hover { background: #F5F4EF; color: #1F2D34; }

/* Pump Finder */
.sp-finder {
    margin: 0 16px 20px;
    background: #0F1A1F !important;
    border-radius: 10px;
    padding: 18px 16px;
    color: #fff;
}
.sp-finder__q  { font-size: 11px; font-weight: 700; letter-spacing: .07em; margin: 0 0 8px; text-transform: uppercase;color:#FFDC16; }
.sp-finder__sub { font-size: 12px; line-height: 1.5; margin: 0 0 14px; opacity: .9; }
.sp-finder__btn {
    display: block;
    text-align: center;
    padding: 9px 14px;
    background: #FFDC16;
    color: #0F1A1F;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: opacity .2s;
}
.sp-finder__btn:hover { opacity: .88; }

/* ===================================================================
   CONTENT AREA
   =================================================================== */
.sp-content { 
	    padding: 20px 0px 0px 20px;
	min-width: 0; }

/* Toolbar */
.sp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.sp-toolbar__count { font-size: 13px; color: #5C6B73; margin: 0; }
.sp-toolbar__right { display: flex; align-items: center; gap: 8px; }

.sp-sort {
    padding: 8px 30px 8px 12px;
    border: 1px solid #E4E3DC;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C6B73' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 9px center;
    -webkit-appearance: none;
    font: inherit;
    font-size: 13px;
    color: #1F2D34;
    cursor: pointer;
    outline: none;
}



.sp-views{
    display:flex;
    border:1px solid #d9d9d9;
    border-radius:4px;
    overflow:hidden;
    background:#fff;
}

.sp-view-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:160px;
    border:none;
	padding:9px !important;
    background:#fff;
    color:#5f6b73;
    font-size:11px;
    letter-spacing:.12em;
    cursor:pointer;
    transition:.2s ease;
}
@media (max-width: 767px) {

    .sp-sort {
        width: 150px !important;
    }

    .sp-view-btn {
        width: 85px !important;
    }

}
.sp-view-btn + .sp-view-btn{
    border-left:1px solid #d9d9d9;
}

.sp-view-btn svg{
    width:14px;
    height:14px;
    flex-shrink:0;
}

.sp-view-btn.is-active{
    background:#101820 !important;
    color:#fff !important;
}

/* No results */
.sp-no-results {
    padding: 60px 24px;
    text-align: center;
    color: #9AA5AA;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.sp-no-results p { font-size: 15px; margin: 0; }

/* Loading */
.js-sp-grid.is-loading { opacity: .4; pointer-events: none; transition: opacity .3s; }

/* ===================================================================
   PRODUCT GRID / LIST
   =================================================================== */
.sp-products--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.sp-products--list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===================================================================
   CARD
   =================================================================== */
.sp-card {
    background: #fff;
    border: 1px solid #E4E3DC;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.sp-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-2px); }

/* Badge */
.sp-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 10px; font-weight: 700; letter-spacing: .06em;
    color: #fff; text-transform: uppercase;
    background: #1F2D34;
}
.sp-badge--sale       { background: #ED1C2B; }
.sp-badge--popular    { background: #5C6B73; }
.sp-badge--new        { background: #2a7a4b; }
.sp-badge--bestseller { background: #1F2D34; }

/* Wishlist */
.sp-wishlist {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid #E4E3DC;
    border-radius: 50%;
    cursor: pointer;
    color: #9AA5AA;
    padding: 0;
    transition: color .18s, border-color .18s;
}
.sp-wishlist:hover, .sp-wishlist.is-saved { color: #ED1C2B; border-color: #ED1C2B; }
.sp-wishlist.is-saved svg { fill: #ED1C2B; }

/* Image */
.sp-card__img-link {
    display: block;
    aspect-ratio: 4/3;
    background: #F5F4EF;
    overflow: hidden;
}
.sp-card__img-link img {
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    padding: 16px;
    transition: transform .3s;
}
.sp-card:hover .sp-card__img-link img { transform: scale(1.04); }

/* Body */
.sp-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
    gap: 5px;
    background: #fff;
    color: #1F2D34;
}
.sp-card__cat { font-size: 10px; font-weight: 700; letter-spacing: .07em; color: #9AA5AA; display: block; }
.sp-card__title { font-size: 14px; font-weight: 600; margin: 0; line-height: 1.3; color: #1F2D34; }
.sp-card__title a { color: #1F2D34 !important; text-decoration: none !important; }
.sp-card__title a:hover { color: #ED1C2B !important; }
.sp-card__desc {
    font-size: 12px; color: #5C6B73; margin: 0; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Specs */
.sp-card__specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.sp-card__spec {
    font-size: 11px;
    background: #F5F4EF;
    border: 1px solid #E4E3DC;
    border-radius: 4px;
    padding: 2px 7px;
    color: #5C6B73;
}

/* Meta row */
.sp-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #F0EFE8;
    gap: 6px;
    flex-wrap: wrap;
}
.sp-card__price-lbl { font-size: 9px; font-weight: 700; letter-spacing: .07em; color: #9AA5AA; text-transform: uppercase; display: block; margin-bottom: 2px; }
.sp-card__price { font-size: 13px; font-weight: 600; color: #1F2D34; }
.sp-card__price em { font-style: normal; font-weight: 400; color: #5C6B73; }

.sp-card__status { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.sp-stock { font-size: 11px; font-weight: 600; }
.sp-stock--in  { color: #2a7a4b; }
.sp-stock--out { color: #9AA5AA; }

/* Rating stars */
.sp-rating { display: flex; align-items: center; gap: 3px; font-size: 11px; color: #5C6B73; }
.sp-stars { font-size: 12px; line-height: 1; }
.sp-stars::before {
    content: '★★★★★';
    background: linear-gradient(90deg, #F2C32A calc(var(--r) / 5 * 100%), #E4E3DC calc(var(--r) / 5 * 100%));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA */
.sp-card__cta {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: #ED1C2B;
    color: #fff;
    text-align: center;
    font-size: 13px; font-weight: 600;
    border-radius: 7px;
    text-decoration: none;
    letter-spacing: .02em;
    transition: opacity .18s;
}
.sp-card__cta:hover { opacity: .88; color: #fff; }

/* ===================================================================
   LIST CARD
   =================================================================== */
.sp-card--list { flex-direction: row; }
.sp-card--list .sp-card__img-link {
    width: 180px; min-width: 180px;
    aspect-ratio: auto;
    border-radius: 12px 0 0 12px;
}
.sp-card--list .sp-card__body { padding: 16px 20px; }

/* ===================================================================
   PAGINATION – centered
   =================================================================== */
/* Pagination wrapper – left info + right nav (reference layout) */
.sp-pagi-wrap {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #E4E3DC;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.sp-pagi-info {
    font-size: 13px;
    color: #5C6B73;
}
.sp-pagi-info strong { color: #1F2D34; font-weight: 600; }
.sp-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.sp-pagination__btn {
    min-width: 38px; height: 38px; padding: 0 10px;
    border: 1px solid #E4E3DC;
    background: #fff;
    border-radius: 6px;
    font: inherit; font-size: 13px;
    color: #1F2D34;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
/* .sp-pagination__btn:hover { background: #F5F4EF; border-color: #9AA5AA; } */
.sp-pagination__btn.is-active { background: #0F1A1F !important; border-color: #0F1A1F !important; color: #fff; font-weight: 700; }
/* Prev/Next as text labels */
.sp-pagination__arrow { font-size: 13px; color: #5C6B73; min-width: auto; padding: 0 12px; }
.sp-pagination__dots { padding: 0 4px; color: #9AA5AA; font-size: 13px; line-height: 38px; pointer-events: none; }
/* ===================================================================
   ANIMATIONS
   =================================================================== */
@keyframes sp-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.sp-card { animation: sp-in .22s ease both; }
.sp-products--grid .sp-card:nth-child(1) { animation-delay: 0ms; }
.sp-products--grid .sp-card:nth-child(2) { animation-delay: 35ms; }
.sp-products--grid .sp-card:nth-child(3) { animation-delay: 70ms; }
.sp-products--grid .sp-card:nth-child(4) { animation-delay: 105ms; }
.sp-products--grid .sp-card:nth-child(5) { animation-delay: 140ms; }
.sp-products--grid .sp-card:nth-child(6) { animation-delay: 175ms; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 960px) {
    .sp-layout { grid-template-columns: 1fr; }
    .sp-sidebar {
        border-right: none;
        border-bottom: 1px solid #E4E3DC;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .sp-filter--reset, .sp-finder { grid-column: span 2; }
}

@media (max-width: 600px) {
    .sp-sidebar { grid-template-columns: 1fr; }
    .sp-card--list { flex-direction: column; }
    .sp-card--list .sp-card__img-link { width: 100%; border-radius: 12px 12px 0 0; }
    .sp-tabs__tab-in { padding: 12px 30px 11px; }
    .sp-content { padding: 16px 0px; }
}
