/**
 * Big Survey Shop v5 - Styles
 * Location: /css/bs-shop.css
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

.bsf, .bsf *, .bsp, .bsp *, .bsp-ov, .bsp-ov * {
    box-sizing: border-box;
    font-family: 'Montserrat', 'Gotham', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========================================
   FILTERS
   ======================================== */
.bsf-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    margin-bottom: 14px;
}

.bsf-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 15px;
    cursor: pointer;
}

.bsf-hdr:hover {
    background: #fafafa;
}

.bsf-ttl {
    font-weight: 700;
    font-size: 14px;
    color: #222;
    border: 1.5px solid #333;
    padding: 2px 12px;
    border-radius: 2px;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.bsf-arr {
    color: #888;
    transition: transform 0.2s;
}

.bsf-box.collapsed .bsf-arr {
    transform: rotate(180deg);
}

.bsf-box.collapsed .bsf-body {
    display: none;
}

.bsf-body {
    padding: 4px 15px 15px;
}

/* Checkbox rows */
.bsf-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
    cursor: pointer;
    gap: 9px;
    position: relative;
    border-radius: 3px;
    transition: background 0.15s;
}

.bsf-row:hover {
    background: #fafafa;
}

.bsf-row.bsf-has .bsf-name {
    color: #222;
    font-weight: 600;
}

.bsf-row.bsf-has .bsf-cnt {
    color: #222;
    font-weight: 700;
}

.bsf-row input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkbox */
.bsf-ck {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid #bbb;
    border-radius: 3px;
    flex-shrink: 0;
    background: #fff;
    position: relative;
    transition: all 0.15s;
}

.bsf-row input:checked + .bsf-ck {
    background: #f5c518 !important;
    border-color: #d4a80d !important;
}

.bsf-row input:checked + .bsf-ck::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #222;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    display: block !important;
}

.bsf-name {
    flex: 1;
    font-size: 13.5px;
    color: #555;
    line-height: 1.3;
    transition: color 0.15s;
    font-weight: 500;
}

.bsf-cnt {
    font-size: 13px;
    color: #bbb;
    min-width: 20px;
    text-align: right;
    font-weight: 500;
}

.bsf-sub {
    padding-left: 18px;
}

.bsf-hide {
    display: none !important;
}

/* Show More button */
.bsf-more {
    display: block;
    width: 100%;
    padding: 9px;
    margin-top: 6px;
    background: #f5c518;
    border: 1px solid #d4a80d;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #222;
    text-align: center;
    letter-spacing: 0.4px;
    transition: all 0.15s;
}

.bsf-more:hover {
    background: #e6b800;
}

.bsf-more:focus,
.bsf-more:active {
    background: #e6b800;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.4);
}

/* Price slider */
.bsf-slider {
    position: relative;
    height: 38px;
    margin: 10px 0 4px;
    display: flex;
    align-items: center;
}

.bsf-trk-bg {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    transform: translateY(-50%);
}

.bsf-trk-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    background: #222;
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.bsf-rng {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    z-index: 2;
}

.bsf-rng::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #222;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 2.5px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bsf-rng::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #222;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 2.5px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bsf-pr {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.bsf-pf {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 8px 10px;
    flex: 1;
    background: #fafafa;
    min-width: 0;
}

.bsf-rm {
    font-size: 13px;
    color: #777;
    font-weight: 700;
    margin-right: 4px;
}

.bsf-pf input[type="number"] {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    background: transparent;
    color: #222;
    -moz-appearance: textfield;
    min-width: 0;
    font-weight: 600;
    font-family: inherit;
}

.bsf-pf input::-webkit-outer-spin-button,
.bsf-pf input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.bsf-dash {
    color: #aaa;
    font-size: 13px;
    flex-shrink: 0;
}

.bsf-upd {
    display: block;
    width: 100%;
    padding: 10px;
    background: #f5c518;
    border: 1px solid #d4a80d;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    text-align: center;
    letter-spacing: 0.4px;
    font-family: inherit;
    transition: all 0.15s;
}

.bsf-upd:hover {
    background: #e6b800;
}

.bsf-upd:focus,
.bsf-upd:active {
    background: #e6b800;
    outline: none;
}

/* ========================================
   PRODUCT GRID
   ======================================== */
.bsp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.bsp-count {
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.bsp-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bsp-sort-lbl {
    font-size: 13.5px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.bsp-sort select {
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 13.5px;
    color: #333;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}

.bsp-grid {
    display: grid;
    gap: 16px;
}

.bsp-c4 {
    grid-template-columns: repeat(4, 1fr);
}

.bsp-c3 {
    grid-template-columns: repeat(3, 1fr);
}

.bsp-c2 {
    grid-template-columns: repeat(2, 1fr);
}

.bsp-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.bsp-card:hover {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

.bsp-img {
    display: block;
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f9f9f9;
}

.bsp-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s;
}

.bsp-card:hover .bsp-img img {
    transform: scale(1.03);
}

.bsp-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
}

/* Product selection indicator */
.bsp-tick-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.08);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
    z-index: 2;
}

.bsp-tick-circle svg {
    opacity: 0.4;
    transition: opacity 0.2s;
}

.bsp-tick-circle:hover {
    background: #f5c518;
    border-color: #d4a80d;
}

.bsp-tick-circle:hover svg {
    opacity: 1;
}

.bsp-tick-circle.active {
    background: #f5c518;
    border-color: #d4a80d;
}

.bsp-tick-circle.active svg {
    opacity: 1;
}

.bsp-info {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bsp-name {
    font-size: 15px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.bsp-name:hover {
    color: #000;
}

.bsp-price {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.bsp-price del {
    color: #999;
    font-weight: 500;
    font-size: 14px;
    text-decoration: line-through;
    margin-right: 5px;
}

.bsp-from {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

/* Buttons */
.bsp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 14px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    margin-top: auto;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.bsp-cart {
    background: #f5c518;
    color: #222 !important;
    border: 1px solid #f5c518;
}

.bsp-cart:hover {
    background: #e6b800;
}

.bsp-cart svg {
    stroke: #222;
}

.bsp-wa {
    background: #25D366;
    color: #fff !important;
    border: 1px solid #25D366;
}

.bsp-wa:hover {
    background: #1fb855;
}

.bsp-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 15px;
}

.bsp-empty .bsp-btn {
    display: inline-flex;
    margin-top: 16px;
}

/* Pagination */
.bsp-pagi {
    text-align: center;
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.bsp-pagi a,
.bsp-pagi span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s;
}

.bsp-pagi a:hover {
    background: #f5c518;
    border-color: #f5c518;
    color: #222;
}

.bsp-pagi .current {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* ========================================
   MODALS & POPUPS
   ======================================== */
.bsp-ov {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bsp-ov.active {
    display: flex;
}

.bsp-popup {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: bsp-in 0.2s ease;
}

@keyframes bsp-in {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bsp-popup-x {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.bsp-popup-x:hover {
    color: #333;
}

.bsp-popup-ttl {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
    text-align: center;
    line-height: 1.4;
}

.bsp-popup-product {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #374151;
    font-weight: 600;
    text-align: left;
    line-height: 1.5;
}

.bsp-popup-product:empty {
    display: none;
}

.bsp-pp-price {
    font-weight: 500;
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.bsp-form-lbl {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.bsp-form-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #222;
    background: #fff;
    margin-bottom: 14px;
    font-family: inherit;
    transition: border 0.2s;
}

.bsp-form-input:focus {
    border-color: #f5c518;
    outline: none;
}

.bsp-form-input::placeholder {
    color: #aaa;
}

.bsp-popup-go {
    display: block;
    width: 100%;
    padding: 14px;
    background: #f5c518;
    color: #222;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

.bsp-popup-go:hover {
    background: #e6b800;
}

/* ========================================
   COMPARE BAR & POPUP
   ======================================== */
.bsp-compare-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #222;
    z-index: 99998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: bsp-bar-in 0.25s ease;
}

.bsp-compare-bar.active {
    display: block;
}

@keyframes bsp-bar-in {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.bsp-compare-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bsp-compare-thumbs {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.bsp-compare-thumbs img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #444;
    background: #333;
}

.bsp-compare-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.bsp-compare-count {
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    margin-right: auto;
}

.bsp-compare-view {
    background: #f5c518;
    color: #222;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.bsp-compare-view:hover {
    background: #e6b800;
}

.bsp-compare-quote {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.bsp-compare-quote:hover {
    background: #1fb855;
}

.bsp-compare-clear {
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.bsp-compare-clear:hover {
    color: #fff;
}

.bsp-compare-ov .bsp-compare-popup {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    max-width: 800px;
    width: 100%;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: bsp-in 0.2s ease;
}

.bsp-compare-table {
    display: grid;
    gap: 0;
}

.bsp-ct-row {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    border-bottom: 1px solid #f0f0f0;
}

.bsp-ct-row:last-child {
    border-bottom: none;
}

.bsp-ct-cell {
    padding: 12px 14px;
    font-size: 13.5px;
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bsp-ct-cell img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    background: #f9f9f9;
    padding: 4px;
    margin-bottom: 8px;
}

.bsp-ct-name {
    font-weight: 600;
    font-size: 13px;
    color: #222;
    margin-top: 4px;
}

.bsp-ct-price {
    font-weight: 700;
    font-size: 15px;
    color: #222;
    margin-top: 4px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .bsp-c4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bsp-c4,
    .bsp-c3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bsp-info {
        padding: 10px 12px;
    }

    .bsp-name {
        font-size: 13.5px;
    }

    .bsp-price {
        font-size: 15px;
    }

    .bsp-btn {
        padding: 10px;
        font-size: 13px;
    }

    .bsf-ck {
        width: 20px;
        height: 20px;
    }

    .bsf-rng::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .bsf-slider {
        height: 44px;
    }

    .bsp-popup {
        padding: 24px 20px;
    }

    .bsp-popup-ttl {
        font-size: 16px;
    }

    .bsp-compare-inner {
        padding: 10px 14px;
        gap: 10px;
    }

    .bsp-compare-thumbs img {
        width: 36px;
        height: 36px;
    }

    .bsp-compare-actions {
        gap: 6px;
    }

    .bsp-compare-view,
    .bsp-compare-quote {
        padding: 8px 12px;
        font-size: 12px;
    }

    .bsp-compare-ov .bsp-compare-popup {
        padding: 20px 16px;
        max-width: 95vw;
    }
}

@media (max-width: 480px) {
    .bsp-c4,
    .bsp-c3,
    .bsp-c2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bsp-grid {
        gap: 10px;
    }

    .bsp-info {
        padding: 8px 10px;
    }

    .bsp-name {
        font-size: 12.5px;
    }

    .bsp-price {
        font-size: 14px;
    }

    .bsp-btn {
        padding: 9px;
        font-size: 12px;
        gap: 4px;
    }

    .bsp-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .bsf-pr {
        flex-direction: column;
        gap: 8px;
    }

    .bsf-dash {
        display: none;
    }
}