/**
 * Seller profile (static design) — white cards on APS gradient; namespaced with .sp-
 */
.seller-profile-page {
    --sp-teal: #0d9488;
    --sp-teal-dark: #004f59;
    --sp-teal-light: #14b8a6;
    --sp-teal-bg: #ccfbf1;
    --sp-amber: #eab308;
    --sp-lime: #e8ff14;
    --sp-dark-cta: #01333d;
    --sp-card: #ffffff;
    --sp-border: #e5e7eb;
    --sp-text: #111827;
    --sp-text-secondary: #4b5563;
    --sp-text-muted: #6b7280;
    --sp-radius: 8px;
    --sp-radius-lg: 12px;
    --sp-font-display: "Wix Madefor Display", sans-serif;
    --sp-font-body: "Roboto", sans-serif;
    font-family: var(--sp-font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--sp-text);
    padding: 1.25rem 0 2rem;
}

.sp-container {
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .sp-container {
        padding: 0 1.5rem;
    }
}

.sp-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sp-card {
    background: var(--sp-card);
    border-radius: 0;
    border: 1px solid var(--sp-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

/* Profile header */
.sp-profile-section {
    padding: 2.25rem 2.6rem;
}

.sp-profile-top {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.sp-seller-logo {
    width: 220px;
    height: 220px;
    border-radius: var(--sp-radius);
    background: #f3f4f6;
    border: 1px solid var(--sp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.sp-seller-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-seller-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
    line-height: 2;
}

.sp-seller-info h1 {
    /* padding-top: 35px; */
    font-family: var(--sp-font-display);
    font-size: 2.3rem !important;
    font-weight: 700;
    color: var(--sp-teal-dark);
    margin-bottom: 0.35rem;
}

@media (min-width: 768px) {
    .sp-seller-info h1 {
        font-size: 2.3rem !important;
    }
}

.sp-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.sp-star {
    color: var(--sp-amber);
    width: 28px;
    height: 28px;
    display: inline-block;
    flex: 0 0 auto;
    font-size: 0;
    line-height: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.85c.43 0 .83.22 1.06.59l2.39 3.8a1.2 1.2 0 0 0 .8.53l4.41 1.08a1.25 1.25 0 0 1 .66 2.07l-2.92 3.38c-.2.24-.3.55-.27.87l.34 4.48a1.25 1.25 0 0 1-1.79 1.21l-4.14-1.68a1.2 1.2 0 0 0-.91 0l-4.14 1.68a1.25 1.25 0 0 1-1.79-1.21l.34-4.48c.03-.32-.07-.63-.27-.87L2.68 10.92a1.25 1.25 0 0 1 .66-2.07l4.41-1.08c.32-.08.6-.27.8-.53l2.39-3.8c.23-.37.63-.59 1.06-.59Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.85c.43 0 .83.22 1.06.59l2.39 3.8a1.2 1.2 0 0 0 .8.53l4.41 1.08a1.25 1.25 0 0 1 .66 2.07l-2.92 3.38c-.2.24-.3.55-.27.87l.34 4.48a1.25 1.25 0 0 1-1.79 1.21l-4.14-1.68a1.2 1.2 0 0 0-.91 0l-4.14 1.68a1.25 1.25 0 0 1-1.79-1.21l.34-4.48c.03-.32-.07-.63-.27-.87L2.68 10.92a1.25 1.25 0 0 1 .66-2.07l4.41-1.08c.32-.08.6-.27.8-.53l2.39-3.8c.23-.37.63-.59 1.06-.59Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Double-layer partial-fill star widget (aggregate rating) ── */
.sp-stars-widget {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.sp-stars-track,
.sp-stars-fill {
    display: flex;
    gap: 3px;
}

.sp-stars-track .sp-star {
    color: #d1d5db;
}

.sp-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    /* width set inline as percentage */
}

/* ── Interactive stars (modal) ── */
.sp-stars-interactive {
    display: flex;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.sp-star--interactive {
    width: 28px;
    height: 28px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.1s ease;
    outline: none;
}

.sp-star--interactive.is-active,
.sp-star--interactive.is-hovered {
    color: var(--sp-amber);
}

.sp-rating-num {
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-teal-dark);
}

.sp-rating-count {
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--sp-teal-dark);
}

/* City line — sits below h1 in the identity row */
.sp-seller-city-line {
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--sp-teal-dark);
    margin: 2px 0 0;
}

/* Profile body: mobile-only tagline */
.sp-profile-body {
    margin-top: 0;
    display: none;
}

.sp-seller-tagline {
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--sp-teal-dark);
    margin-bottom: 12px;
    display: none;
}

.sp-seller-tagline span {
    color: var(--sp-teal-dark);
}

.sp-seller-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.sp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--sp-teal-dark);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: var(--sp-font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
}

.sp-btn-primary:hover {
    background: #0a5c52;
    color: #fff;
}

.sp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f5f5f5;
    color: #01333d;
    padding: 9px 18px;
    border-radius: 999px;
    font-family: var(--sp-font-display) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.sp-btn-outline:hover {
    background: var(--sp-teal-bg);
}

.sp-profile-actions-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
    padding-top: 4px;
}

/* Seller header action buttons (mockup-aligned) */
.sp-seller-actions {
    gap: 14px;
}

.sp-seller-actions .sp-btn-primary,
.sp-seller-actions .sp-btn-outline {
    min-height: 34px;
    padding: 7px 28px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.sp-seller-actions .sp-btn-primary {
    background: #004f63;
    border: 1px solid #004f63;
    color: #ffffff;
    box-shadow: none;
}

.sp-seller-actions .sp-btn-primary:hover {
    background: #004759;
    border-color: #004759;
}

.sp-btn-primary svg,
.sp-btn-primary img {
    width: 14px;
    height: 14px;
    filter: invert(67%) sepia(90%) saturate(2359%) hue-rotate(126deg) brightness(102%) contrast(108%);
}

.sp-seller-actions .sp-btn-primary svg,
.sp-seller-actions .sp-btn-primary img {
    width: 18px;
    height: 18px;
}

.sp-seller-actions .sp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f5f5f5;
    color: #01333d;
    padding: 7px 18px;
    border-radius: 999px;
    font-family: var(--sp-font-display) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.sp-seller-actions .sp-btn-outline:hover {
    background: var(--sp-teal-bg);
}

.sp-btn-outline svg,
.sp-btn-outline img {
    width: 14px;
    height: 14px;
    filter: invert(67%) sepia(90%) saturate(2359%) hue-rotate(126deg) brightness(102%) contrast(108%);
}

.sp-seller-actions .sp-btn-outline svg,
.sp-seller-actions .sp-btn-outline img {
    width: 18px;
    height: 18px;
}

/* Favorite: outline heart (idle) + solid teal (favorited); dark tooltip on hover */
.sp-favorite-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    z-index: 10;
    overflow: visible;
}

.favorite-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    line-height: 0;
    border-radius: 50%;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.favorite-btn:hover {
    color: #64748b;
    background-color: rgba(148, 163, 184, 0.12);
}

.favorite-btn:focus-visible {
    outline: 2px solid var(--sp-teal);
    outline-offset: 2px;
}

.favorite-btn .heart-icon {
    display: block;
    flex-shrink: 0;
}

.favorite-btn .heart-icon-outline {
    width: 22px;
    height: 22px;
}

.favorite-btn .heart-icon-filled {
    display: none;
    width: 22px;
    height: 22px;
}

.favorite-btn.favorited {
    color: #14b8a6;
    background: none;
}

.favorite-btn.favorited:hover {
    color: #0d9488;
}

.favorite-btn.favorited .heart-icon-outline {
    display: none;
}

.favorite-btn.favorited .heart-icon-filled {
    display: block;
}

.favorite-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    padding: 8px 12px;
    background: #0a0a0a;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    font-family: var(--sp-font-body);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 9999;
}

.favorite-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #0a0a0a transparent transparent transparent;
}

.sp-favorite-wrap:hover .favorite-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.favorite-tooltip-remove {
    display: none;
}

.sp-favorite-wrap.is-favorited .favorite-tooltip-add {
    display: none;
}

.sp-favorite-wrap.is-favorited .favorite-tooltip-remove {
    display: inline;
}

.sp-online-mark {
    display: none;
    flex-shrink: 0;
}

.sp-icon-btn {
    background: none;
    border: 1px solid var(--sp-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: border-color 0.2s, color 0.2s;
}

.sp-icon-btn:hover {
    border-color: var(--sp-teal);
    color: var(--sp-teal);
}

.sp-online {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--sp-border);
}

/* Contact & map */
.sp-contact-location {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 2.6rem;
    padding-bottom: 2.6rem;
}

.sp-contact-location-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

.sp-contact-location-row .sp-contact-list,
.sp-contact-location-row .sp-map-col {
    flex: 1 1 0;
    min-width: 0;
}

.sp-map-col {
    display: flex;
    flex-direction: column;
}

.sp-contact-heading {
    font-family: var(--sp-font-display);
    font-size: 24px;
    font-weight: 700;
    color: #004f63;
    margin: 0;
}

.sp-contact-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding-left: 0;
    overflow: visible;
}

.sp-contact-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    overflow: visible;
}

.sp-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* background: var(--sp-teal-bg); */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    overflow: visible;
}

.sp-contact-icon svg {
    width: 24px;
    height: 24px;
    fill: #00ffc8;
}

.sp-contact-label {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    color: #01323c;
}

.sp-contact-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--sp-teal-dark);
}

.sp-contact-value a {
    color: var(--sp-teal-dark);
    text-decoration: none;
}

.sp-contact-value a:hover {
    text-decoration: underline;
}

.sp-map-placeholder {
    background: #e5e7eb;
    border-radius: var(--sp-radius);
    height: 375px;
    border: 1px solid var(--sp-border);
    overflow: hidden;
}

.sp-map-image {
    display: block;
    width: 100%;
    height: 100%;
    height: 375px;
    object-fit: cover;
    object-position: center;
}

.sp-map-placeholder svg {
    opacity: 0.35;
}

.sp-map-text {
    color: var(--sp-text-muted);
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

/* Inventory */
.sp-inventory-section {
    padding: 2.6rem;
}

.sp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.sp-section-title {
    font-family: var(--sp-font-display), sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--sp-teal-dark);
}

.model-search-wrap {
    display: flex;
    align-items: center;
    width: min(460px, 100%);
    background: #f0f0f0;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--sp-border);
    flex-shrink: 0;
}

.model-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    color: #305259;
    padding: 0.45rem 0.85rem;
}

.model-search-btn {
    width: 44px;
    height: 36px;
    border: none;
    background: #00FFB5;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.model-search-btn:hover {
    background: #00e6a3;
}

.model-search-btn svg {
    width: 14px;
    height: 14px;
}

.sp-no-results {
    display: none;
    padding: 2rem;
    text-align: center;
    color: var(--sp-text-muted);
    font-size: 15px;
    background: #f9fafb;
    border-radius: var(--sp-radius);
    border: 1px dashed var(--sp-border);
    margin-top: 1rem;
}

.sp-no-results.is-visible {
    display: block;
}

.sp-parts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 2.6rem;
}

.sp-part-card {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
    cursor: pointer;
}

.sp-part-card:hover {
    border-color: var(--sp-teal);
}

.sp-part-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgb(153, 153, 153);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sp-part-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-part-details {
    padding: 10px 12px 12px;
    background-color: #f0f0f0;
}

.sp-part-name {
    font-family: var(--sp-font-body);
    font-size: 20px;
    font-weight: 500;
    color: #002d3b;
    margin-bottom: 2px;
}

.sp-part-sku {
    font-size: 14px;
    color: #002d3b;
    margin-bottom: 5px;
}

.sp-part-price {
    font-size: 18px;
    font-weight: 700;
    color: #12a69c;
}

.sp-part-price-unavailable {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.sp-inventory-footer,
.sp-warranty-footer,
.sp-reviews-footer {
    text-align: center;
}

/* Warranty */
.sp-warranty-section {
    padding: 2.6rem;
}

.sp-warranty-intro h2 {
    font-family: var(--sp-font-display);
    font-size: 24px;
    font-weight: 700;
    color: #004f63;
    margin-bottom: 1.25rem;
}

.sp-warranty-intro p {
    font-size: 16px;
    color: #002d3b;
    line-height: 2;
}

.sp-warranty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.sp-warranty-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 0.75rem;
    min-width: 0;
    width: 100%;
    max-width: 325px;
}

.sp-warranty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* background: var(--sp-teal-dark); */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.sp-warranty-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    background-color: #f0f0f0;
    border-radius: var(--sp-radius);
    padding: 1rem 1rem;
    max-width: 325px;
    margin: 0 auto;
    color: var(--sp-teal-dark);
    min-width: 0;
    overflow: hidden;
}

.sp-warranty-icon svg {
    width: 50px;
    height: 50px;
    fill: #00ffc8;
}

.sp-warranty-icon-mask {
    width: 50px;
    height: 50px;
    display: block;
    background-color: #00ffc8;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.sp-warranty-icon-mask-processing {
    -webkit-mask-image: url("../images/icons/processing.svg");
    mask-image: url("../images/icons/processing.svg");
}

.sp-warranty-icon-mask-delivery {
    -webkit-mask-image: url("../images/icons/fast-delivery.svg");
    mask-image: url("../images/icons/fast-delivery.svg");
}

.sp-warranty-card h3 {
    font-family: var(--sp-font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-teal-dark);
    margin-bottom: 6px;
}

.sp-warranty-card p {
    font-size: 18px;
    color: var(--sp-text-secondary);
    line-height: 1.55;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sp-warranty-footer .sp-btn-warranty-policy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #00ffb5;
    color: #01333d;
    border: none;
    padding: 12px 32px;
    border-radius: 999px;
    font-family: var(--sp-font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
    min-height: 38px;
}

.sp-warranty-footer .sp-btn-warranty-policy:hover {
    filter: brightness(0.95);
    color: #01333d;
}

.sp-warranty-footer .sp-btn-warranty-policy svg {
    flex-shrink: 0;
    filter: none;
}

/* About */
.sp-about-section {
    padding: 2.6rem;
}

.sp-about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 3.5rem;
    align-items: start;
}

.sp-about-text {
    min-width: 0;
    overflow: hidden;
}

.sp-about-section h2 {
    font-family: var(--sp-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--sp-text);
    margin-bottom: 1rem;
}

.sp-about-text p {
    line-height: 1.65;
    font-size: 16px;
    color: #002d3b;
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
    word-break: break-all;
    max-width: 100%;
}

.sp-categories-label {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--sp-teal-dark);
    font-family: var(--sp-font-body);
    margin: 6rem 0 8px;
}

.sp-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sp-tag {
    background: #66fff7;
    color: var(--sp-teal-dark);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: default;
    font-family: var(--sp-font-display);
    transition: background 0.2s, color 0.2s;
}

.sp-tag:hover {
    background: var(--sp-teal-dark);
    color: #fff;
}

.sp-about-photos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 480px;
    max-width: 100%;
    flex-shrink: 0;
}

.sp-about-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
    overflow: hidden;
    background: #e5e7eb;
}

.sp-about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: inherit;
    object-position: center;
}

/* Reviews */
.sp-reviews-section {
    padding: 2.6rem;
}

.sp-reviews-section > h2 {
    font-family: var(--sp-font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--sp-teal-dark);
    margin-bottom: 1.25rem;
}

.sp-reviews-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.sp-reviews-summary {
    color: #002d3b;
    line-height: 1.4;
}

.sp-reviews-summary-count {
    color: #5e6f76;
}

.sp-reviews-sort-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.sp-reviews-sort-label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--sp-teal-dark);
    margin: 0;
}

.sp-reviews-sort-select {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #002d3b;
    background: #fff;
    border: 1px solid rgba(0, 79, 99, 0.22);
    border-radius: 10px;
    padding: 0.45rem 2rem 0.45rem 0.65rem;
    min-width: 11.5rem;
    cursor: pointer;
    appearance: none;
    background-image: 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='%23004f63' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    background-size: 12px;
}

.sp-reviews-sort-select:hover {
    border-color: rgba(0, 155, 170, 0.45);
}

.sp-reviews-sort-select:focus {
    outline: none;
    border-color: #009baa;
    box-shadow: 0 0 0 2px rgba(0, 155, 170, 0.2);
}

#sp-reviews-ajax-root[aria-busy="true"] {
    opacity: 0.55;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.sp-review-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sp-review-item {
    background: #f4f5f7;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-review-stars {
    display: flex;
    gap: 4px;
    color: #f7b924;
    font-size: 18px;
    margin-bottom: 4px;
}

.sp-review-stars--with-tooltip {
    position: relative;
    width: fit-content;
    overflow: visible;
    cursor: pointer;
}

.sp-review-stars-widget {
    position: relative;
    display: inline-flex;
    line-height: 1;
    cursor: pointer;
}

.sp-review-stars-track,
.sp-review-stars-fill {
    display: inline-flex;
    gap: 4px;
}

.sp-review-stars-track .sp-star {
    color: #d1d5db;
}

.sp-review-stars-fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sp-review-stars-fill .sp-star {
    color: #f7b924;
}

.sp-review-rating-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.45);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.sp-review-rating-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #0f172a transparent transparent transparent;
}

.sp-review-stars--with-tooltip:hover .sp-review-rating-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sp-review-quote {
    font-family: var(--sp-font-display);
    font-size: 18px;
    font-weight: 700;
    color: #004f63;
}

.sp-review-body {
    font-size: 16px;
    line-height: 1.6;
    color: #004f59;
    margin-bottom: 4px;
}

.sp-review-author {
    font-size: 14px;
    font-weight: 500;
    color: #004f63;
}

.sp-review-item.sp-review-hidden {
    display: none;
}

.sp-reviews-expand-wrap {
    margin-top: 0.25rem;
    text-align: left;
}

.sp-reviews-view-more {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--sp-teal-dark);
    text-decoration: none;
    text-align: left;
}

.sp-reviews-toggle-collapsed {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sp-reviews-toggle-arrow {
    flex-shrink: 0;
    color: inherit;
    vertical-align: middle;
    opacity: 0.92;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.sp-reviews-view-more:hover .sp-reviews-toggle-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.sp-reviews-toggle-expanded {
    display: inline;
}

.sp-reviews-view-more:hover {
    color: #004f59;
    text-decoration: underline;
}

.sp-reviews-view-more:hover .sp-reviews-toggle-text {
    text-decoration: underline;
}

.sp-reviews-view-more:focus {
    outline: none;
}

.sp-reviews-view-more:focus-visible {
    outline: 2px solid #009baa;
    outline-offset: 2px;
    border-radius: 2px;
}

.sp-reviews-cap-note {
    margin: 0.5rem 0 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--sp-teal-dark);
}

/* Bottom CTA strip (above site footer) */
.sp-bottom-cta {
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 0.5rem;
}

.sp-bottom-cta h2 {
    font-family: var(--sp-font-display);
    font-size: 30px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.25rem;
}

.sp-btn-cta-lime {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 34rem;
    background: var(--sp-lime);
    color: var(--sp-dark-cta);
    border: none;
    padding: 9px 22px;
    border-radius: 999px;
    font-family: var(--sp-font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
}

.sp-btn-cta-lime:hover {
    color: var(--sp-dark-cta);
}

.sp-btn-cta-lime svg {
    flex-shrink: 0;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

/* Large tablet (≤ 1100px)
   Fix the about-section's fixed 480px photo column before it crowds the text. */
@media (max-width: 1100px) {
    .sp-about-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sp-about-photos {
        width: 100%;
        flex-direction: row;
    }

    .sp-about-photo {
        flex: 1;
        min-width: 0;
    }
}

/* Tablet portrait (≤ 900px)
   2-column parts + warranty grids; tighter section padding. */
@media (max-width: 900px) {
    .sp-profile-section,
    .sp-contact-location,
    .sp-inventory-section,
    .sp-warranty-section,
    .sp-about-section,
    .sp-reviews-section {
        padding: 1.75rem;
    }

    .sp-contact-location {
        padding-top: 0;
    }

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

    .sp-warranty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-section-header {
        margin-bottom: 2rem;
    }
}

/* Phablet / small tablet (≤ 768px)
   Stack map below contact; reduce map height; scale heading sizes. */
@media (max-width: 768px) {
    .sp-contact-location-row {
        flex-direction: column;
    }

    .sp-contact-location-row .sp-contact-list,
    .sp-contact-location-row .sp-map-col {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .sp-map-placeholder,
    .sp-map-image {
        height: 260px;
    }

    .sp-section-title {
        font-size: 20px;
    }

    .sp-categories-label {
        margin-top: 2rem;
    }

    .sp-seller-info h1 {
        font-size: 1.5rem;
    }

    .sp-warranty-grid {
        grid-template-columns: 1fr;
    }

    .sp-about-photos {
        flex-direction: column;
    }

    .sp-about-photo {
        flex: none;
        width: 100%;
    }

    .sp-reviews-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sp-reviews-sort-form {
        width: 100%;
    }

    .sp-reviews-sort-select {
        width: 100%;
        min-width: 0;
    }
}

/* Phone (≤ 640px) */
@media (max-width: 640px) {
    .sp-profile-section,
    .sp-contact-location,
    .sp-inventory-section,
    .sp-warranty-section,
    .sp-about-section,
    .sp-reviews-section {
        padding: 1.25rem 1rem;
    }

    .sp-contact-location {
        padding-top: 0;
    }

    /* ── Profile identity row: [logo] [name + city] [heart] ── */
    .sp-profile-top {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .sp-seller-logo {
        width: 80px !important;
        height: 80px !important;
        flex-shrink: 0;
    }

    .sp-seller-info {
        flex: 1;
        min-width: 0;
        padding-top: 0;
    }

    .sp-seller-info h1 {
        margin-bottom: 2px;
        font-size: 1.25rem !important;
    }

    .sp-stars {
        flex-wrap: nowrap;
    }

    .sp-star{
        width: 20px !important;
        height: 20px !important;
    }

    .sp-rating-count {
        display: none;
    }

    .sp-seller-city-line {
        display: none;
    }

    .sp-profile-actions-top {
        flex-shrink: 0;
        margin-left: auto;
        width: auto;
        align-self: flex-start;
        padding-top: 0;
    }

    /* ── Full-width tagline + stacked buttons ── */
    .sp-profile-body {
        display: block;
        margin-top: 1rem;
        text-align: center;
    }

    .sp-seller-tagline {
        font-size: 13px;
        margin-bottom: 14px;
        display: block;
        
    }

    /* Move buttons to profile-body on mobile: hide from seller-info */
    .sp-seller-info .sp-seller-actions {
        display: none;
    }

    .sp-profile-body .sp-seller-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 0;
    }

    .sp-profile-body .sp-seller-actions .sp-btn-primary,
    .sp-profile-body .sp-seller-actions .sp-btn-outline {
        width: 100%;
        justify-content: center;
    }

    /* ── Rest of page ── */
    .sp-parts-grid {
        grid-template-columns: 1fr;
        margin-bottom: 1.5rem;
    }

    .sp-section-title {
        font-size: 18px;
    }

    .sp-section-header {
        margin-top: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .sp-part-name {
        font-size: 16px;
    }

    .sp-warranty-card p {
        font-size: 16px;
    }

    .sp-categories-label {
        font-size: 16px;
        margin-top: 1.5rem;
    }

    .sp-bottom-cta h2 {
        font-size: 22px;
    }

    .sp-btn-cta-lime {
        font-size: 10px;
        padding: 10px 18px;
    }
}

/* Small phone (≤ 420px) */
@media (max-width: 420px) {
    .sp-seller-logo {
        width: 64px !important;
        height: 64px !important;
    }

    .sp-profile-top {
        gap: 8px;
    }

    .sp-contact-label {
        font-size: 14px;
    }

    .sp-contact-value {
        font-size: 14px;
    }

    .sp-seller-info h1 {
        font-size: 1rem !important;
    }

    .sp-star {
        width: 18px;
        height: 18px;
    }
}
