﻿/* /Content/sa-product-widget.css */
#sa-product-app {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: #111;
}

.sa-container {
    /*    max-width: 1120px;
*/ margin: 0 auto;
    padding: 24px 16px 18px;
}

@media (min-width: 768px) {
    .sa-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 24px;
    }
}

@media (min-width: 1024px) {
    .sa-grid {
        grid-gap: 32px;
    }
}

.sa-breadcrumb {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.sa-title {
    font-weight: 700;
    font-size: 28px;
    margin: 4px 0 8px;
}

@media (min-width:768px) {
    .sa-title {
        font-size: 32px;
    }
}

.sa-muted {
    color: #6b7280;
    font-size: 14px;
}

.sa-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,0.02);
}

.sa-panel {
    margin-top: 16px;
}

    .sa-panel h3 {
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 8px;
    }

    .sa-panel .sa-body {
        color: #374151;
        font-size: 14px;
    }

.sa-hero {
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(0,0,0,0.03);
    border: 1px solid #f3f4f6;
    position: relative;
    background: #f3f4f6;
}

.sa-hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sa-chip {
    position: absolute;
    background: rgba(255,255,255,0.86);
    color: #374151;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

    .sa-chip.tl {
        top: 8px;
        left: 8px;
    }

    .sa-chip.br {
        bottom: 8px;
        right: 8px;
    }

.sa-thumbs {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-top: 12px;
}

@media (min-width:768px) {
    .sa-thumbs {
        grid-template-columns: repeat(6,minmax(0,1fr));
    }
}

.sa-thumb {
    aspect-ratio: 16/9;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    position: relative;
    background: #fff;
}

    .sa-thumb.active {
        outline: 2px solid #2563eb;
        border-color: #2563eb;
    }

.sa-thumb-label {
    position: absolute;
    left: 8px;
    bottom: 8px;
    right: auto;
    top: auto;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(229,231,235,.9);
    border-radius: 999px;
    padding: 2px 8px;
    pointer-events: none;
}
}

.sa-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sa-pill {
    background: #f3f4f6;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
}

.sa-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

    .sa-btn:hover {
        background: #f9fafb;
    }

    .sa-btn.primary {
        background: #0f1111;
        color: #fff;
        border-color: #0f1111;
    }

    .sa-btn.outline {
        border-color: #d1d5db;
        color: #111;
    }

    .sa-btn.round {
        border-radius: 999px;
        padding: 6px 10px;
        font-size: 13px;
    }

.sa-input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
}

    .sa-input.small {
        padding: 4px 8px;
        font-size: 13px;
        width: 7.5rem;
        text-transform: uppercase;
    }

    .sa-input.zip {
        width: 6rem;
        text-align: center;
    }

.sa-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sa-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    display: grid;
    place-items: center;
    cursor: pointer;
}

    .sa-swatch.active {
        border-color: #2563eb;
        outline: 2px solid #bfdbfe;
    }

    .sa-swatch svg {
        width: 20px;
        height: 20px;
    }

.sa-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
    border-top: 1px solid #e5e7eb;
    padding: 10px 16px;
    z-index: 40;
}

.sa-sticky-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sa-subtle {
    color: #6b7280;
    font-size: 12px;
}

.sa-strong {
    font-weight: 600;
}

.sa-logo-mock {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%,-50%);
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 22px;
    border: 1px solid rgba(0,0,0,0.2);
}

/* ===== hero layout ===== */
#hero-rotator { /* wrapper keeps natural height */
    position: relative;
    overflow: hidden;
}

.hero-slide {
    display: none;
    opacity: 0;
    transition: opacity .8s ease-in-out;
}

    .hero-slide.active {
        display: block;
        opacity: 1;
    }

    /* optional: images fill their columns neatly */
    .hero-slide img {
        width: 100%;
        height: 80%;
        object-fit: cover;
    }

/* ===== mobile hero layout ===== */
#mobile-hero-rotator {
    position: relative;
    overflow: hidden;
}

.m-hero-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

    .m-hero-slide.active {
        display: block;
        opacity: 1;
    }

/* base styling for the background block used in each slide */
.thebest {
    /* match your inline style defaults, but keep some in CSS */
    background-position-x: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important; /* uses the image’s aspect ratio */
    min-height: 45vh; /* ensure visible area on phones */
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* center the inner content vertically a bit nicer on small screens */
    .thebest .row {
        width: 100%;
        margin: 0;
    }

.phone-hero-text-style-1,
.phone-hero-text-style-2,
.phone-hero-text-style-3 {
    display: flex;
    margin: 0.15rem 0;
    text-align: center;
}

.phone-hero-text-style-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Make the CTA a little narrower on small screens */
.m-cta {
    max-width: 320px;
}

/* Inline brand row */
.sa-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap; /* keep it on one line */
}

.sa-brand-text {
    display: flex;
    align-items: baseline; /* keeps sizes aligned nicely */
    gap: .4rem;
}

.sa-brand-title {
    font-weight: 700;
}

.sa-brand-sub {
    opacity: .9;
}

.price.on-sale {
    color: var(--sale-red);
    font-weight: 900; /* Extra bold for emphasis */
}

.sale-tag {
    font-weight: 700;
    color: var(--sale-red);
    margin-left: 8px;
    font-size: 14px;
}

/* --- New CSS to add/modify in the <style> block --- */
/*.sale-badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;*/ /* Ensure it's above the image */
/*}

    .sale-badge-container .sale-tag {
        font-weight: 700;
        color: var(--sale-red);
        margin-left: 8px;
        font-size: 14px;
        text-transform: uppercase;
        box-shadow: 0 1px 4px rgba(0,0,0,.2);
        margin: 0;
    }

    .sale-badge-container .sale-tag {
        background: #fff;
        padding: 2px 6px;
        border-radius: 6px;
        font-size: 12px;
        color: #374151;
        box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    }

    .sale-badge-container .sale-tag {
        position: absolute;
        background: rgba(255,255,255,0.86);
        color: #374151;
        font-size: 12px;
        padding: 2px 6px;
        border-radius: 6px;
        box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    }

        .sale-badge-container .sale-tag.tl {
            top: 8px;
            left: 8px;
        }

        .sale-badge-container .sale-tag.br {
            bottom: 8px;
            right: 8px;
        }*/



.sa-hero-wrap {
    position: relative;
}

.sa-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d00;
    color: #fff;
    padding: 4px 10px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}