@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.deal-page *,
.deal-page *::before,
.deal-page *::after {
    box-sizing: border-box;
}

.deal-page {
    --primary: #7a2bc9;
    --primary-dark: #481088;
    --accent: #fc8019;
    --accent-dark: #e06a08;
    --green: #16a34a;
    --green-soft: #ecfdf3;
    --red: #e11d48;
    --ink: #1f2430;
    --muted: #6b7280;
    --line: #eceef2;
    --bg: #f4f5f8;
    --card: #fff;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 24, 40, .06);
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.45;
}

.deal-page .ic {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -.125em;
    flex-shrink: 0
}

.deal-page a {
    color: inherit
}

.deal-page .wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px 56px
}

.deal-page .crumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
    min-width: 0
}

.deal-page .crumb a,
.deal-page .crumb .cur {
    white-space: nowrap
}

.deal-page .crumb a {
    text-decoration: none;
    color: var(--muted)
}

.deal-page .crumb a:hover {
    color: var(--primary)
}

.deal-page .crumb .sep {
    opacity: .5
}

.deal-page .crumb .cur {
    color: var(--ink);
    font-weight: 600
}

/* ══ TOP GRID ══ */
.deal-page .deal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 336px);
    gap: 18px;
    align-items: start;
    min-width: 0
}

.deal-page .deal-main {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 32px;
    min-width: 0
}

/* ══ GALLERY — main stage on top, thumbnail rail below with < > scrollers ══ */
.deal-page .gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0
}

.deal-page .stage {
    position: relative;
    background: #fafafb;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    width: 100%
}

.deal-page .slides {
    position: absolute;
    inset: 0
}

.deal-page .slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transform: scale(.97);
    transition: opacity .5s ease, transform .5s ease;
    pointer-events: none
}

.deal-page .slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto
}

.deal-page .slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px
}

.deal-page .noimg {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600
}

.deal-page .stage .wish {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 17px;
    transition: .2s;
    z-index: 4
}

.deal-page .stage .wish.on {
    color: var(--red);
    border-color: #fecdd3;
    background: #fff1f2
}

.deal-page .stage .wish:hover {
    transform: scale(1.08)
}

.deal-page .gal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    font-size: 15px;
    z-index: 4;
    transition: opacity .2s, color .2s, border-color .2s;
    opacity: 0
}

.deal-page .stage:hover .gal-arrow {
    opacity: 1
}

.deal-page .gal-arrow.prev {
    left: 10px
}

.deal-page .gal-arrow.next {
    right: 10px
}

.deal-page .gal-arrow:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: #fff
}

.deal-page .dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 4
}

.deal-page .dot-g {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd0d8;
    cursor: pointer;
    transition: .25s;
    border: none;
    padding: 0
}

.deal-page .dot-g.active {
    background: var(--primary);
    width: 18px;
    border-radius: 4px
}

/* thumbnail rail (below the stage) */
.deal-page .thumb-strip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px
}

.deal-page .tstrip-arrow {
    flex: 0 0 auto;
    width: 26px;
    height: 66px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    transition: .2s
}

.deal-page .tstrip-arrow:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: #faf5ff
}

.deal-page .tstrip-arrow:disabled {
    opacity: .3;
    cursor: default;
    color: var(--muted);
    border-color: var(--line);
    background: #fff
}

.deal-page .thumbs {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px
}

.deal-page .thumbs::-webkit-scrollbar {
    display: none
}

.deal-page .thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    padding: 0;
    background: #fff;
    overflow: hidden;
    position: relative
}

.deal-page .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.deal-page .thumb:hover {
    border-color: var(--primary)
}

.deal-page .thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(122, 43, 201, .2)
}

/* ══ INFO ══ */
.deal-page .info {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.deal-page .info h1 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.2px;
    margin-bottom: 10px
}

/* title clamp — 2 lines + show more / show less */
.deal-page .info h1.clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 4px
}

.deal-page .info h1.expandable {
    margin-bottom: 4px
}

.deal-page .title-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    margin: 0 0 10px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    line-height: 1.4
}

.deal-page .title-more[hidden] {
    display: none
}

.deal-page .title-more:hover {
    text-decoration: underline
}

.deal-page .title-more .cv {
    display: inline-block;
    transition: transform .2s
}

.deal-page .title-more.open .cv {
    transform: rotate(180deg)
}

.deal-page .bought {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 9px;
    align-self: flex-start;
    background: #fff7ed;
    border: 1px solid #ffe2c2;
    color: #9a5510;
    padding: 4px 11px;
    border-radius: 20px;
    font-weight: 600
}

.deal-page .bought b {
    color: #7c3f08;
    font-weight: 800
}

.deal-page .bought .ic {
    color: var(--accent-dark);
    font-size: 13px
}

.deal-page .rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 14px
}

.deal-page .rating .num {
    font-weight: 700
}

.deal-page .rating .count {
    color: var(--muted)
}

.deal-page .rating .count b {
    color: var(--ink);
    font-weight: 700
}

.deal-page .stars {
    display: inline-flex;
    color: #f5b301
}

.deal-page .stars .ic {
    font-size: 13px
}

.deal-page .stars .off {
    color: #d9d9d9;
    display: inline-flex
}

.deal-page .price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px
}

.deal-page .disc {
    color: var(--red);
    font-weight: 700;
    font-size: 15px
}

.deal-page .mrp {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 15px
}

.deal-page .price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0px
}

.deal-page .price .amt {
    color: var(--red);
    font-weight: 800;
    font-size: 31px;
    letter-spacing: -.5px
}

.deal-page .price .ic {
    color: var(--muted);
    font-size: 14px
}

.deal-page .price-info-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer
}

.deal-page .price-info-wrap .price-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2430;
    color: #fff;
    font-size: 11.5px;
    line-height: 1.6;
    padding: 10px 13px;
    border-radius: 10px;
    width: 270px;
    white-space: normal;
    z-index: 20;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .22);
    pointer-events: none
}

.deal-page .price-info-wrap .price-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2430
}

.deal-page .price-info-wrap:hover .price-tooltip {
    display: block
}

.deal-page .badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 4px
}

.deal-page .pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #fff
}

.deal-page .pill.l {
    color: var(--red)
}

.deal-page .pill.s {
    color: var(--accent-dark)
}

.deal-page .pill.g {
    color: var(--green)
}


/* ══ STORE BADGE (restyled) ══ */
.deal-page .store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px 5px 5px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8f1ff 0%, #f1e6ff 100%);
    border: 1px solid #e4d2fb;
    box-shadow: 0 1px 2px rgba(122, 43, 201, .09);
    text-decoration: none;
    line-height: 1.1
}

.deal-page .store-badge .sb-ic {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 1px 3px rgba(72, 16, 136, .32)
}

.deal-page .store-badge .sb-txt {
    display: flex;
    flex-direction: column;
    gap: 1px
}

.deal-page .store-badge .sb-lbl {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #9b6fd0
}

.deal-page .store-badge .sb-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -.1px
}

.deal-page .store-badge.sm {
    padding: 3px 11px 3px 3px;
    gap: 6px
}

.deal-page .store-badge.sm .sb-ic {
    width: 19px;
    height: 19px;
    font-size: 10px
}

.deal-page .store-badge.sm .sb-lbl {
    display: none
}

.deal-page .store-badge.sm .sb-name {
    font-size: 11px
}

/* ══ SOCIAL PROOF STRIP ══ */
.deal-page .social-proof {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(90deg, #fffaf4 0%, #fdfbff 55%, #fff 100%)
}

.deal-page .sp-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap
}

.deal-page .sp-item b {
    color: var(--ink);
    font-weight: 800;
    font-size: 12.5px
}

.deal-page .sp-item .ic {
    font-size: 13px
}

.deal-page .sp-item.v .ic {
    color: #2563eb
}

.deal-page .sp-item.l .ic {
    color: var(--red)
}

.deal-page .sp-item.s .ic {
    color: var(--accent)
}

.deal-page .sp-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d8dbe2;
    flex-shrink: 0
}

.deal-page .sp-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, .5);
    animation: spPulse 2s infinite
}

@keyframes spPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, .5)
    }

    70% {
        box-shadow: 0 0 0 6px rgba(22, 163, 74, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0)
    }
}

@media(prefers-reduced-motion:reduce) {
    .deal-page .sp-live {
        animation: none
    }
}

.deal-page .rec-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    margin-top: 18px
}

.deal-page .rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.deal-page .rec-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 10px;
    text-align: center;
    background: #fafafb
}

.deal-page .rec-box .cap {
    font-size: 11px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px
}

.deal-page .rec-box .val {
    font-size: 18px;
    font-weight: 800
}

.deal-page .rec-box .dt {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px
}

.deal-page .rec-box.high .cap .ic {
    color: var(--red)
}

.deal-page .rec-box.low .cap .ic {
    color: var(--green)
}

/* ══ BUY CARD ══ */
.deal-page .buy-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    min-width: 0
}

.deal-page .buy-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px
}

.deal-page .buy-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap
}

.deal-page .buy-top .p {
    font-size: 25px;
    font-weight: 800
}

.deal-page .saved {
    font-size: 12.5px;
    color: var(--green);
    font-weight: 600
}

/* share tools — unchanged behaviour */
.deal-page .share-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0
}

.deal-page .stool {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
    font-size: 16px
}

.deal-page .stool:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: #faf5ff
}

.deal-page .stool.copied {
    color: var(--green);
    border-color: #bbf7d0;
    background: var(--green-soft)
}

.deal-page .share-dd-wrap {
    position: relative
}

.deal-page .share-dd {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 184px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: var(--shadow);
    padding: 6px;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s
}

.deal-page .share-dd.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.deal-page .share-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: .15s;
    cursor: pointer
}

.deal-page .share-dd-item:hover {
    background: #f6f6f8
}

.deal-page .s-ic-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0
}

.deal-page .s-wa {
    background: #25d366
}

.deal-page .s-fb {
    background: #1877f2
}

.deal-page .s-tg {
    background: #229ed9
}

.deal-page .optimal {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--green-soft);
    border: 1px solid #bbf7d0;
    border-radius: 11px;
    padding: 11px 13px;
    margin-bottom: 12px
}

.deal-page .optimal .ic {
    color: var(--green);
    font-size: 18px
}

.deal-page .optimal .t {
    font-size: 13px;
    font-weight: 700;
    color: #166534;
    line-height: 1.3
}

.deal-page .optimal .t small {
    display: block;
    font-weight: 500;
    color: #4d7c5a;
    font-size: 10.5px
}

.deal-page .btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13.5px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .2s;
    text-decoration: none
}

.deal-page .btn-amazon {
    background: var(--accent);
    color: #1f2430;
    margin-bottom: 11px
}

.deal-page .btn-amazon:hover {
    background: var(--accent-dark);
    color: #fff
}

.deal-page .btn-wish {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid #e5d6f7;
    margin-bottom: 18px
}

.deal-page .btn-wish:hover {
    background: #faf5ff
}

.deal-page .btn-wish.on {
    color: var(--red);
    border-color: #fecdd3;
    background: #fff1f2
}

.deal-page .alert-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px
}

.deal-page .alert-head .ic {
    color: var(--primary);
    font-size: 16px
}

.deal-page .alert-head .h {
    font-size: 14px;
    font-weight: 700
}

.deal-page .alert-sub {
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 13px
}

.deal-page .target-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px
}

.deal-page .target-row label {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap
}

.deal-page .target-row .field {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    padding: 0 11px
}

.deal-page .target-row .field span {
    color: var(--muted);
    font-size: 13px
}

.deal-page .target-row input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    padding: 9px 4px;
    background: transparent
}

.deal-page .target-row .field:focus-within {
    border-color: var(--primary)
}

.deal-page .btn-alert {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    margin-bottom: 9px
}

.deal-page .btn-alert:hover {
    filter: brightness(1.08)
}

.deal-page .alert-note {
    font-size: 10.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px
}

/* ══ PANELS ══ */
.deal-page .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-top: 16px
}

.deal-page .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px
}

.deal-page .panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700
}

.deal-page .panel-title .ic {
    color: var(--primary)
}

.deal-page .tabs {
    display: flex;
    gap: 2px;
    background: #f1f2f5;
    border-radius: 10px;
    padding: 3px
}

.deal-page .tab {
    border: none;
    background: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s
}

.deal-page .tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08)
}

/* ══ PRICE HISTORY CHART (redesigned) ══ */
.deal-page .chart-box {
    position: relative;
    width: 100%;
    min-height: 200px;
    padding: 2px 0 0
}

.deal-page #chart {
    width: 100%;
    height: 250px;
    display: block;
    overflow: visible;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent
}

.deal-page #chart text {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased
}

.deal-page #chart .hit {
    cursor: crosshair
}

.deal-page .chart-tip {
    position: absolute;
    pointer-events: none;
    background: #1f2430;
    color: #fff;
    border: 0;
    border-radius: 11px;
    padding: 8px 12px;
    font-size: 11.5px;
    line-height: 1.5;
    white-space: nowrap;
    z-index: 6;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .20);
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity .14s ease, left .08s linear, top .08s linear
}

.deal-page .chart-tip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 9px;
    height: 9px;
    background: #1f2430;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px
}

.deal-page .chart-tip .d {
    color: #adb3c0;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .2px
}

.deal-page .chart-tip .p {
    font-weight: 800;
    color: #fff;
    font-size: 13.5px;
    letter-spacing: -.2px
}

.deal-page .ph-legend {
    display: flex;
    align-items: center;
    gap: 8px 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed var(--line)
}

.deal-page .ph-legend .lg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap
}

.deal-page .ph-legend .lg b {
    color: var(--ink);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: -.1px
}

.deal-page .ph-legend .kd {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0
}

.deal-page .ph-legend .kd.lo {
    background: var(--green)
}

.deal-page .ph-legend .kd.hi {
    background: var(--red)
}

.deal-page .ph-legend .kd.av {
    background: #aab0bb
}

.deal-page .ph-legend .kd.cu {
    background: var(--primary)
}

.deal-page .ph-legend .lg.trend.dn b {
    color: var(--green)
}

.deal-page .ph-legend .lg.trend.up b {
    color: var(--red)
}

.deal-page .ph-empty {
    padding: 34px 10px;
    text-align: center;
    color: var(--muted);
    font-size: 13px
}

.deal-page .ph-loading {
    padding: 34px 10px;
    text-align: center;
    color: var(--muted);
    font-size: 13px
}

.deal-page .ph-error {
    padding: 30px 10px;
    text-align: center;
    color: var(--red);
    font-size: 13px
}

.deal-page .ph-error button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px
}

.deal-page .ph-error button:hover {
    filter: brightness(1.08)
}

.deal-page .ph-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 10px;
    text-align: center
}

@keyframes phDraw {
    to {
        stroke-dashoffset: 0
    }
}

@keyframes phFade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@media(prefers-reduced-motion:reduce) {
    .deal-page #chart .ph-line {
        animation: none !important;
        stroke-dashoffset: 0 !important
    }

    .deal-page #chart .ph-area,
    .deal-page #chart .ph-mark {
        animation: none !important;
        opacity: 1 !important
    }
}

/* ══ SIMILAR DEALS ══ */
.deal-page .deals-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 10px;
    flex-wrap: wrap
}

.deal-page .deals-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700
}

.deal-page .deals-title .ic {
    color: var(--accent)
}

.deal-page .view-all {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.deal-page .carousel {
    position: relative
}

.deal-page .track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4*14px)/5);
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px
}

.deal-page .track::-webkit-scrollbar {
    display: none
}

.deal-page .card-deal {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    transition: .2s;
    display: flex;
    flex-direction: column
}

.deal-page .card-deal:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px)
}

.deal-page .deal-img {
    position: relative;
    height: 112px;
    border-radius: 9px;
    background: #f6f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden
}

.deal-page .deal-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.deal-page .deal-img .amz {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent);
    color: #1f2430;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px
}

.deal-page .card-deal .nm {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    height: 32px;
    overflow: hidden;
    margin-bottom: 8px
}

.deal-page .card-deal .pr {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap
}

.deal-page .card-deal .pr .d {
    color: var(--green);
    font-size: 12px;
    font-weight: 700
}

.deal-page .card-deal .pr .now {
    font-weight: 800;
    font-size: 14px
}

.deal-page .card-deal .pr .was {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 11px
}

.deal-page .btn-buy {
    margin-top: auto;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    padding: 9px;
    cursor: pointer;
    transition: .2s;
    display: block;
    text-align: center;
    text-decoration: none
}

.deal-page .btn-buy:hover {
    filter: brightness(1.08)
}

.deal-page .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 16px
}

.deal-page .arrow.left {
    left: -14px
}

.deal-page .arrow.right {
    right: -14px
}

.deal-page .arrow:hover {
    color: var(--primary);
    border-color: var(--primary)
}

.deal-page .desc-text {
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.65;
    margin-bottom: 12px
}

.deal-page .cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px
}

.deal-page .chip {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary);
    background: #faf5ff;
    border: 1px solid #ecdcff;
    padding: 5px 11px;
    border-radius: 20px
}

.deal-page .empty {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 44px 24px;
    text-align: center
}

.deal-page .empty h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px
}

.deal-page .empty p {
    font-size: 13.5px;
    color: var(--muted)
}

.deal-page .empty .back {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none
}

.deal-page .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px
}

.deal-page .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

.deal-page .toast .ic {
    color: #4ade80;
    font-size: 16px
}

.deal-page .btn-alert-remove {
    background: #fff;
    color: var(--red);
    border: 1.5px solid #fecdd3;
    margin-bottom: 9px
}

.deal-page .btn-alert-remove:hover {
    background: #fff1f2
}

.deal-page .btn-alert[disabled],
.deal-page .btn-alert-remove[disabled] {
    opacity: .6;
    cursor: default
}

@media(hover:none) {
    .deal-page .gal-arrow {
        opacity: 1
    }
}

@media(max-width:1180px) {
    .deal-page .deal-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 300px)
    }

    .deal-page .deal-main {
        grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
        gap: 26px
    }

    .deal-page .track {
        grid-auto-columns: calc((100% - 3*14px)/4)
    }
}

@media(max-width:960px) {
    .deal-page .deal-grid {
        grid-template-columns: minmax(0, 1fr)
    }

    .deal-page .buy-card {
        max-width: none
    }

    .deal-page .gal-arrow {
        opacity: 1
    }

    .deal-page .track {
        grid-auto-columns: calc((100% - 2*14px)/3)
    }
}

@media(max-width:760px) {
    .deal-page .deal-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px
    }

    .deal-page .gallery {
        max-width: 460px;
        margin: 0 auto;
        width: 100%
    }

    .deal-page .track {
        grid-auto-columns: calc((100% - 14px)/2)
    }

    .deal-page .arrow {
        display: none
    }

    .deal-page .panel-head {
        flex-wrap: wrap
    }

    .deal-page .tabs {
        width: 100%;
        justify-content: space-between
    }

    .deal-page .tab {
        flex: 1;
        text-align: center;
        padding: 7px 6px
    }
}

@media(max-width:560px) {
    .deal-page .wrap {
        padding: 16px 12px 44px
    }

    .deal-page .deal-main {
        padding: 16px
    }

    .deal-page .panel {
        padding: 16px
    }

    .deal-page .buy-card {
        max-width: none;
        padding: 16px
    }

    .deal-page .rec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px
    }

    .deal-page .rec-box {
        padding: 10px 5px
    }

    .deal-page .rec-box .cap {
        font-size: 10px;
        gap: 3px;
        margin-bottom: 4px
    }

    .deal-page .rec-box .val {
        font-size: 13px
    }

    .deal-page .rec-box .dt {
        font-size: 9.5px
    }

    .deal-page .sp-sep {
        display: none
    }

    .deal-page .crumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch
    }

    .deal-page .crumb::-webkit-scrollbar {
        display: none
    }

    .deal-page .price .amt {
        font-size: 27px
    }

    .deal-page .buy-top .p {
        font-size: 22px
    }

    .deal-page .track {
        grid-auto-columns: 84%
    }

    .deal-page .thumb {
        width: 56px;
        height: 56px
    }

    .deal-page .tstrip-arrow {
        width: 22px;
        height: 58px
    }

    .deal-page .info h1 {
        font-size: 17px
    }

    .deal-page .social-proof {
        gap: 8px;
        padding: 9px 11px
    }

    .deal-page .sp-item {
        font-size: 11px
    }

    .deal-page .tab {
        padding: 6px 10px;
        font-size: 11.5px
    }

    .deal-page .ph-legend {
        gap: 6px 12px
    }

    .deal-page .ph-legend .lg {
        font-size: 11px
    }
}

.deal-page .panel-head>div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.deal-page .panel-head .ph-legend {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex-wrap: nowrap;
}

.kaassu-wl-btn {
    display: none !important;
}

/* ── price alert states ── */
.deal-page .alert-login-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    margin-bottom: 9px
}

.deal-page .alert-login-cta:hover {
    filter: brightness(1.08)
}

.deal-page .alert-active-card {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: var(--green-soft);
    border: 1px solid #bbf7d0;
    border-radius: 11px;
    padding: 11px 13px;
    margin-bottom: 11px
}

.deal-page .alert-active-card .ic {
    color: var(--green);
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 1px
}

.deal-page .alert-active-card .t {
    font-size: 12.5px;
    font-weight: 700;
    color: #166534;
    line-height: 1.35
}

.deal-page .alert-active-card .t b {
    font-weight: 800
}

.deal-page .alert-active-card .t small {
    display: block;
    font-weight: 500;
    color: #4d7c5a;
    font-size: 10.5px;
    margin-top: 2px
}

/* locked / disabled edit look */
.deal-page .target-row.locked {
    opacity: .55;
    pointer-events: none
}

.deal-page .target-row input[disabled] {
    color: var(--muted);
    cursor: not-allowed
}

/* ── modal ── */
.deal-page .pa-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease
}

.deal-page .pa-modal.open {
    opacity: 1;
    visibility: visible
}

.deal-page .pa-modal .pa-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .55);
    backdrop-filter: blur(2px)
}

.deal-page .pa-modal .pa-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 360px;
    padding: 28px 24px 22px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .28);
    transform: translateY(14px) scale(.97);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1)
}

.deal-page .pa-modal.open .pa-card {
    transform: translateY(0) scale(1)
}

.deal-page .pa-modal .pa-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f4f5f8;
    color: var(--muted);
    font-size: 15px;
    line-height: 1;
    cursor: pointer
}

.deal-page .pa-modal .pa-x:hover {
    background: #e9ebf0;
    color: var(--ink)
}

.deal-page .pa-modal .pa-ic {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-soft);
    color: var(--green);
    font-size: 27px;
    box-shadow: 0 0 0 8px rgba(22, 163, 74, .07)
}

.deal-page .pa-modal h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 7px;
    letter-spacing: -.2px
}

.deal-page .pa-modal p {
    font-size: 12.8px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 6px
}

.deal-page .pa-modal .pa-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 18px
}

.deal-page .pa-modal .pa-actions {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.deal-page .pa-modal .pa-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff
}

.deal-page .pa-modal .pa-primary:hover {
    filter: brightness(1.08)
}

.deal-page .pa-modal .pa-ghost {
    background: #fff;
    color: var(--muted);
    border: 1.5px solid var(--line)
}

.deal-page .pa-modal .pa-ghost:hover {
    background: #f7f7f9;
    color: var(--ink)
}

/* ── Email Verification Modal ── */
.deal-page .ev-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease
}

.deal-page .ev-modal.open {
    opacity: 1;
    visibility: visible
}

.deal-page .ev-modal .ev-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .55);
    backdrop-filter: blur(2px)
}

.deal-page .ev-modal .ev-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 380px;
    padding: 28px 24px 22px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .28);
    transform: translateY(14px) scale(.97);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1)
}

.deal-page .ev-modal.open .ev-card {
    transform: translateY(0) scale(1)
}

.deal-page .ev-modal .ev-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f4f5f8;
    color: var(--muted);
    font-size: 15px;
    line-height: 1;
    cursor: pointer
}

.deal-page .ev-modal .ev-x:hover {
    background: #e9ebf0;
    color: var(--ink)
}

.deal-page .ev-modal .ev-ic {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf5ff;
    color: var(--primary);
    font-size: 27px;
    box-shadow: 0 0 0 8px rgba(122, 43, 201, .07)
}

.deal-page .ev-modal h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 7px;
    letter-spacing: -.2px;
    text-align: center
}

.deal-page .ev-modal p {
    font-size: 12.8px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 16px;
    text-align: center
}

.deal-page .ev-modal .ev-field {
    margin-bottom: 14px
}

.deal-page .ev-modal .ev-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px
}

.deal-page .ev-modal .ev-field input {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s
}

.deal-page .ev-modal .ev-field input:focus {
    border-color: var(--primary)
}

.deal-page .ev-modal .ev-field input:disabled {
    background: #f9fafb;
    color: var(--muted)
}

.deal-page .ev-modal .ev-actions {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.deal-page .ev-modal .ev-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff
}

.deal-page .ev-modal .ev-primary:hover {
    filter: brightness(1.08)
}

.deal-page .ev-modal .ev-primary:disabled {
    opacity: .6;
    cursor: not-allowed
}

.deal-page .ev-modal .ev-ghost {
    background: #fff;
    color: var(--muted);
    border: 1.5px solid var(--line)
}

.deal-page .ev-modal .ev-ghost:hover {
    background: #f7f7f9;
    color: var(--ink)
}

.deal-page .ev-modal .ev-resend {
    font-size: 12px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    text-align: center
}

.deal-page .ev-modal .ev-resend:disabled {
    color: var(--muted);
    cursor: not-allowed
}

.deal-page .ev-modal .ev-error {
    color: var(--red);
    font-size: 12px;
    margin-top: 6px;
    text-align: center
}

.deal-page .ev-modal .ev-success {
    color: var(--green);
    font-size: 12px;
    margin-top: 6px;
    text-align: center
}

.deal-page .ev-modal .ev-step {
    display: none
}

.deal-page .ev-modal .ev-step.active {
    display: block
}