/* ============================================
 * Single Product Detail Page Styles
 * ============================================ */

/* ---- Banner Section ---- */
.sp-banner {
    background-color: #f5f5f5;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* ---- Banner Left Column ---- */
.sp-banner-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-left: 1rem;
}

/* ---- Breadcrumb ---- */
.sp-breadcrumb {
    margin-bottom: 1.25rem;
}

.sp-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    color: #999;
}

.sp-breadcrumb-list a {
    color: #c1292e;
    text-decoration: none;
}

.sp-breadcrumb-list a:hover {
    text-decoration: underline;
}

.sp-breadcrumb-current {
    color: #1a1a1a;
}

/* ---- Banner Title (product name) ---- */
.sp-banner-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* ---- Banner Description ---- */
.sp-banner-desc {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 28rem;
}

/* ---- Color label row text ---- */
.sp-color-label-text {
    font-size: 0.875rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

/* ---- Banner Right Side: Image + Navigation layout ---- */
.sp-banner-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ---- Big preview image (right side) ---- */
.sp-preview-img {
    max-height: 380px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

/* ---- Variant selector: small thumbnails ---- */
.sp-variant-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sp-variant-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.375rem;
    border: 2px solid #e5e5e5;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: transparent;
    transition: border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-variant-btn:hover {
    border-color: #999;
}

.sp-variant-btn.active {
    border-color: #1a1a1a;
}

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

/* ---- Color label text ---- */
.sp-color-label {
    font-size: 0.875rem;
    color: #666;
}

/* ---- Navigation links below right-side image ---- */
.sp-banner-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.sp-banner-nav-link {
    font-size: 0.875rem;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sp-banner-nav-link:hover {
    color: #b71c1c;
}

.sp-banner-nav-cta {
    text-decoration: underline;
}
.sp-banner-nav-dot {
    color: #999;
    flex-shrink: 0;
}

/* ---- Content Section Title (below big image) ---- */
.sp-content-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* ---- Specifications Heading ---- */
.sp-spec-heading {
    font-size: 1.625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

/* ---- Content Big Image ---- */
.sp-content-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2rem;
}
.sp-content-img-wrap {
    margin-bottom: 6rem;
}

/* ---- Specifications Table ---- */
.sp-spec-table-wrap {
    overflow-x: auto;
    border-top: 1px solid #ccc;
    padding-top: 1.25rem;
}

.sp-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin: 0;
    border-spacing: 0;
}

.sp-spec-table thead th {
    padding: 1.7rem 1.25rem 0.6rem;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

.sp-spec-table thead th:first-child {
    padding-left: 0;
    text-align: left;
}

.sp-spec-table thead th:not(:first-child) {
    text-align: center;
}

.sp-spec-table tbody td {
    padding: 1.3rem 1.25rem;
    vertical-align: middle;
    white-space: nowrap;
}

.sp-spec-table tbody td:first-child {
    padding-left: 0;
    text-align: left;
}

.sp-spec-table tbody td:not(:first-child) {
    text-align: center;
}

.sp-spec-table tbody tr:last-child td {
    border-bottom: none;
}

/* More column icon button */
.sp-spec-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #999;
    color: #999;
    transition: border-color 0.2s, color 0.2s;
}

.sp-spec-more-btn:hover {
    border-color: #c1292e;
    color: #c1292e;
}

.sp-spec-more-btn svg {
    width: 14px;
    height: 14px;
}

@media (min-width: 1024px) {
    .sp-spec-table {
        font-size: 1.8rem;
    }
    .sp-spec-table thead th {
        padding: 2rem 1.5rem 0.75rem;
        font-size: 1.8rem;
    }
    .sp-spec-table thead th:first-child {
        padding-left: 0;
    }
    .sp-spec-table tbody td {
        padding: 1.4rem 1.5rem;
    }
    .sp-spec-table tbody td:first-child {
        padding-left: 0;
    }
    .sp-spec-more-btn {
        width: 42px;
        height: 42px;
    }
    .sp-spec-more-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ---- Content text styling ---- */
.sp-content-text {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.8;
}

/* ---- Content Detail Grid: 1:2 ratio ---- */
.sp-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

/* ============================================
 * Desktop (>= 1024px)
 * ============================================ */
@media (min-width: 1024px) {
    .sp-banner {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .sp-banner-left {
        padding-top: 2.5rem;
        padding-left: 6rem;
    }

    .sp-breadcrumb-list {
        font-size: 1.3rem;
    }

    .sp-banner-title {
        font-size: 4.5rem;
        font-weight: 600;
    }

    .sp-banner-desc {
        font-size: 1.4rem;
        max-width: 36rem;
        margin-top: 2rem;
        margin-bottom: 4rem;
    }

    .sp-banner-right {
        min-height: 650px;
    }

    .sp-preview-img {
        max-height: 600px;
    }

    .sp-color-label-text,
    .sp-color-label {
        font-size: 1.6rem;
    }

    .sp-variant-btn {
        width: 6rem;
        height: 6rem;
    }

    .sp-banner-nav-link {
        font-size: 1.25rem;
        color: #1a1a1a;
    }

    .sp-banner-nav-link:hover {
        color: #b71c1c;
    }
    .sp-banner-nav-dot {
        color: #1a1a1a;
    }

    .sp-content-title {
        font-size: 4.5rem;
        font-weight: 600;
    }

    .sp-spec-heading {
        font-size: 3.2rem;
    }

    .sp-content-text {
        font-size: 1.5rem;
    }

    .sp-detail-grid {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
    }
}

/* ============================================
 * Mobile (<= 640px)
 * ============================================ */
@media (max-width: 640px) {
    .sp-banner-nav {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0.75rem;
    }
    .sp-banner-nav-link {
        font-size: 0.75rem;
    }

    .sp-preview-img {
        max-height: 280px;
    }

    .sp-banner-title {
        font-size: 1.625rem;
    }

    .sp-content-img-wrap { margin-bottom: 3rem; }
}

/* ============================================
 * CTA Section — match homepage style
 * ============================================ */
.fp-banner-title {
    font-family: 'Montserrat', sans-serif;
}

/* CTA section — base height (mobile) */
.fp-cta-section {
    height: 480px;
}

@media (min-width: 1024px) {
    .fp-cta-section {
        height: 720px;
    }
    .fp-cta-section p.text-sm {
        font-size: 1.25rem;
    }
    .fp-cta-section a.px-6.py-3 {
        font-size: 1.2rem;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Sweep fill hover — dark variant */
.fp-section-btn-dark {
    text-transform: none;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.7s ease, border-color 0.7s ease;
}
.fp-section-btn-dark::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    background: #b71c1c;
    border-radius: inherit;
    transition: transform 0.7s ease;
}
.fp-section-btn-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #fff;
    border-radius: inherit;
}
.fp-section-btn-dark:hover {
    color: #fff;
    border-color: #b71c1c;
}
.fp-section-btn-dark:hover::before {
    transform: scaleX(1);
}
