.sp-page {
    background: #f9f4f6;
    min-height: 60vh;
}

/* ── Breadcrumb ── */
.sp-breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #f5e6ec;
    padding: 12px 0;
}

.sp-breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

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

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

.sp-breadcrumb .sep {
    color: #ddd;
}

/* ── Wrap ── */
.sp-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* ── Grid ── */
.sp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

/* ── Gallery ── */
.sp-main-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    background: #fdf0f3;
    position: relative;
}

.sp-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.sp-main-img:hover img {
    transform: scale(1.04);
}

.sp-badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 2;
}

.sp-badge-hot {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e8547a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.sp-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.sp-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: border-color 0.18s;
    background: #fdf0f3;
    flex-shrink: 0;
}

.sp-thumb:hover,
.sp-thumb.sp-thumb-active {
    border-color: #e8547a;
}

.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ── Info panel ── */
.sp-category-tag {
    font-size: 12px;
    color: #e8547a;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-decoration: none;
    display: inline-block;
}

.sp-title {
    font-size: 26px;
    font-weight: 900;
    color: #2d1b2e;
    line-height: 1.25;
    margin-bottom: 16px;
}

.sp-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sp-price-now {
    font-size: 32px;
    font-weight: 900;
    color: #e63946;
}

.sp-price-now.is-free {
    color: #2e7d32;
    font-size: 26px;
}

.sp-price-old {
    font-size: 18px;
    color: #bbb;
    text-decoration: line-through;
}

.sp-price-save {
    font-size: 12px;
    background: #fff0f3;
    color: #e63946;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.sp-divider {
    border: none;
    border-top: 1px solid #f5e6ec;
    margin: 18px 0;
}

/* ── Meta ── */
.sp-meta-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sp-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
}

.sp-meta-item strong {
    color: #2d1b2e;
    min-width: 95px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Qty */
.sp-qty-wrap {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid #f0d6e0;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
    height: 40px;
    background: #fff;
}

.sp-qty-btn {
    background: #fff;
    border: none;
    width: 38px;
    flex: 0 0 38px;
    height: 100%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #e8547a;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.sp-qty-btn:hover {
    background: #fff0f3;
}

.sp-qty-num {
    width: 46px;
    flex: 0 0 46px;
    height: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #2d1b2e;
    background: #fff;
    border: none;
    border-left: 1.5px solid #f0d6e0;
    border-right: 1.5px solid #f0d6e0;
    outline: none;
    padding: 0;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
    font-family: inherit;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.sp-qty-num::-webkit-inner-spin-button,
.sp-qty-num::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Action buttons ── */
.sp-actions {
    display: flex;
    gap: 10px;
}

.sp-btn {
    flex: 1;
    padding: 14px 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.18s,
        transform 0.15s,
        box-shadow 0.18s;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sp-btn:active {
    transform: scale(0.97);
}

.sp-btn-cart {
    background: #e8547a;
    color: #fff;
    box-shadow: 0 4px 16px rgba(232, 84, 122, 0.32);
}

.sp-btn-cart:hover {
    background: #c73d62;
    transform: translateY(-2px);
}

.sp-btn-buy {
    background: #2d1b2e;
    color: #fff;
    box-shadow: 0 4px 14px rgba(45, 27, 46, 0.22);
}

.sp-btn-buy:hover {
    background: #1a0f1e;
    transform: translateY(-2px);
}

.sp-btn-download {
    background: #2e7d32;
    color: #fff;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.28);
}

.sp-btn-download:hover {
    background: #1b5e20;
}

/* ── Trust strip ── */
.sp-trust {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
    padding: 14px 0 0;
    border-top: 1px solid #f5e6ec;
}

.sp-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
}

/* ── Description tabs ── */
.sp-tabs-section {
    margin-top: 36px;
    background: #fff;
    border-radius: 18px;
    padding: 0 28px 28px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.sp-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1.5px solid #f5e6ec;
    margin-bottom: 24px;
}

.sp-tab {
    padding: 16px 22px;
    font-size: 14px;
    font-weight: 700;
    color: #bbb;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1.5px;
    transition: all 0.15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.sp-tab.active {
    color: #e8547a;
    border-color: #e8547a;
}

.sp-tab:hover:not(.active) {
    color: #e8547a;
}

.sp-tab-panel {
    display: none;
}

.sp-tab-panel.active {
    display: block;
}

.sp-tab-panel .sp-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.9;
}

.sp-tab-panel .sp-desc p {
    margin-bottom: 12px;
}

/* ── Related ── */
.sp-related {
    margin-top: 40px;
}

.sp-related-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sp-related-header h2 {
    font-size: 20px;
    font-weight: 900;
    color: #2d1b2e;
    margin: 0;
}

.sp-related-header span {
    color: #e8547a;
    font-size: 18px;
}

.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sp-rel-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    text-decoration: none;
    display: block;
}

.sp-rel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sp-rel-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fdf0f3;
}

.sp-rel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-rel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.sp-rel-body {
    padding: 12px 14px;
}

.sp-rel-name {
    font-size: 13px;
    font-weight: 700;
    color: #2d1b2e;
    margin-bottom: 5px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-rel-price {
    font-size: 15px;
    font-weight: 900;
    color: #e63946;
}

.sp-rel-price.free {
    color: #2e7d32;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sp-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sp-title {
        font-size: 22px;
    }

    .sp-price-now {
        font-size: 26px;
    }

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

    .sp-tabs-section {
        padding: 0 16px 20px;
    }

    .sp-tab {
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sp-wrap {
        padding: 20px 14px 40px;
    }

    .sp-actions {
        flex-direction: column;
    }

    .sp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
