:root {
    --lodlah-primary: #ff5722;
    --lodlah-dark: #e8391f;
    --lodlah-grad: linear-gradient(135deg, #ff6b35 0%, #ff4b1f 50%, #e8391f 100%);
}

html, body { max-width: 100%; overflow-x: hidden; }

.product-detail-wrap {
    max-width: 1040px;
    margin: 54px auto 0;
    padding: 20px 16px 140px;
}

.back-link {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px;
    font-weight: 600; color: #666; text-decoration: none; margin-bottom: 16px;
    font-family: 'Kanit', sans-serif; transition: color .2s;
}
.back-link:hover { color: var(--lodlah-dark); }
@media (max-width: 768px) { .product-detail-wrap > .back-link { display: none; } }

.shop-bar-card {
    background: #fff; border-radius: 14px; border: 1px solid #eaedf3; padding: 12px 18px;
    margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.shop-bar-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.shop-bar-logo {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    border: 1px solid #eee; background: #fafafa; flex-shrink: 0;
}
.shop-bar-info { min-width: 0; flex: 1; }
.shop-bar-title {
    font-family: 'Kanit', sans-serif; font-size: 14.5px; font-weight: 600; color: #222;
    text-decoration: none; display: flex; align-items: center; gap: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shop-bar-title:hover { color: var(--lodlah-dark); }
.shop-bar-meta { font-size: 11.5px; color: #888; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn-view-shop {
    font-family: 'Kanit', sans-serif; font-size: 13px; font-weight: 700; color: #c2410c; background: #fff1ea;
    border: 1px solid #ffb899; padding: 8px 14px; border-radius: 10px; text-decoration: none;
    transition: all .2s; white-space: nowrap; flex-shrink: 0; margin-left: 10px;
}
.btn-view-shop:hover { background: var(--lodlah-dark); color: #fff; }

.product-main-card {
    background: #fff; border-radius: 18px; border: 1px solid #eaedf3; padding: 22px;
    display: flex; gap: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); margin-bottom: 16px;
    position: relative;
}
.product-img-box {
    width: 240px; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
    background: #fafafa; border: 1px solid #eee; flex-shrink: 0; position: relative;
    align-self: flex-start;
}
.product-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 769px) {
    .product-main-card {
        background: linear-gradient(100deg, #ffffff 0%, #ffffff 45%, #fff6f1 78%, #ffece3 100%);
        border-color: #f1e3dc;
        box-shadow: 0 6px 20px rgba(120, 60, 40, 0.06);
    }
    .product-main-card::before {
        content: ''; position: absolute; right: 0; bottom: 0; width: 62%; height: 74%;
        border-bottom-right-radius: 18px; pointer-events: none; z-index: 0;
        background: right bottom / 100% 100% no-repeat;
    }
    .product-main-card::after {
        content: ''; position: absolute; width: 30px; height: 30px; pointer-events: none; z-index: 0;
        background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'><circle cx='15' cy='15' r='6' fill='%2316a34a' fill-opacity='.35'/><circle cx='15' cy='15' r='13' fill='none' stroke='%2316a34a' stroke-opacity='.18' stroke-width='2'/></svg>") center / 30px 30px no-repeat;
    }
    .product-main-card.pbg-v1::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 220' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ee4d2d' stop-opacity='.10'/><stop offset='1' stop-color='%23ee4d2d' stop-opacity='0'/></linearGradient></defs><path d='M0 150 L60 130 L110 140 L160 95 L210 110 L260 70 L310 92 L360 60 L410 118 L460 150 L510 105 L560 88 L560 220 L0 220 Z' fill='url(%23g)'/><path d='M0 150 L60 130 L110 140 L160 95 L210 110 L260 70 L310 92 L360 60 L410 118 L460 150 L510 105 L560 88' fill='none' stroke='%23ee4d2d' stroke-opacity='.22' stroke-width='2.5' stroke-linejoin='round' vector-effect='non-scaling-stroke'/></svg>"); }
    .product-main-card.pbg-v1::after { right: calc(11.1% - 15px); bottom: calc(23.5% - 15px); }
    .product-main-card.pbg-v2::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 220' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ee4d2d' stop-opacity='.10'/><stop offset='1' stop-color='%23ee4d2d' stop-opacity='0'/></linearGradient></defs><path d='M0 70 C80 60 120 120 190 105 S300 40 360 80 S460 165 500 160 S545 120 560 115 L560 220 L0 220 Z' fill='url(%23g)'/><path d='M0 70 C80 60 120 120 190 105 S300 40 360 80 S460 165 500 160 S545 120 560 115' fill='none' stroke='%23ee4d2d' stroke-opacity='.22' stroke-width='2.5' stroke-linejoin='round' vector-effect='non-scaling-stroke'/></svg>"); }
    .product-main-card.pbg-v2::after { right: calc(6.6% - 15px); bottom: calc(20.2% - 15px); }
    .product-main-card.pbg-v3::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 220' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ee4d2d' stop-opacity='.10'/><stop offset='1' stop-color='%23ee4d2d' stop-opacity='0'/></linearGradient></defs><path d='M0 120 H70 V95 H150 V110 H230 V70 H320 V90 H400 V150 H470 V120 H560 V220 H0 Z' fill='url(%23g)'/><path d='M0 120 H70 V95 H150 V110 H230 V70 H320 V90 H400 V150 H470 V120 H560' fill='none' stroke='%23ee4d2d' stroke-opacity='.22' stroke-width='2.5' stroke-linejoin='miter' vector-effect='non-scaling-stroke'/></svg>"); }
    .product-main-card.pbg-v3::after { right: calc(13.8% - 15px); bottom: calc(23.5% - 15px); }
    .product-main-card.pbg-v4::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 220' preserveAspectRatio='none'><rect x='20' y='120' width='26' height='100' rx='4' fill='%23ee4d2d' fill-opacity='.06'/><rect x='65' y='95' width='26' height='125' rx='4' fill='%23ee4d2d' fill-opacity='.06'/><rect x='110' y='140' width='26' height='80' rx='4' fill='%23ee4d2d' fill-opacity='.06'/><rect x='155' y='80' width='26' height='140' rx='4' fill='%23ee4d2d' fill-opacity='.06'/><rect x='200' y='110' width='26' height='110' rx='4' fill='%23ee4d2d' fill-opacity='.06'/><rect x='245' y='70' width='26' height='150' rx='4' fill='%23ee4d2d' fill-opacity='.06'/><rect x='290' y='100' width='26' height='120' rx='4' fill='%23ee4d2d' fill-opacity='.06'/><rect x='335' y='125' width='26' height='95' rx='4' fill='%23ee4d2d' fill-opacity='.06'/><rect x='380' y='90' width='26' height='130' rx='4' fill='%23ee4d2d' fill-opacity='.06'/><rect x='425' y='165' width='26' height='55' rx='4' fill='%23ee4d2d' fill-opacity='.0'/><rect x='470' y='115' width='26' height='105' rx='4' fill='%23ee4d2d' fill-opacity='.06'/><rect x='515' y='105' width='26' height='115' rx='4' fill='%23ee4d2d' fill-opacity='.06'/><rect x='425' y='165' width='26' height='55' rx='4' fill='%2316a34a' fill-opacity='.10'/></svg>"); }
    .product-main-card.pbg-v4::after { right: calc(13.5% - 15px); bottom: calc(22.5% - 15px); }
    .product-main-card > * { position: relative; z-index: 1; }
    .product-img-box { background: #fff; border-color: #eceef3; box-shadow: 0 10px 24px rgba(120, 60, 40, 0.12); }
    .product-main-card .meta-stats-row { background: rgba(248, 250, 252, 0.88); }
}

.product-info-box { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.badge-tag-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.badge-mall {
    background: #d0011b; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px;
    border-radius: 4px; font-family: 'Kanit', sans-serif; letter-spacing: 0.3px; display: inline-flex; align-items: center; gap: 3px;
}
.badge-preferred {
    background: #ff5722; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px;
    border-radius: 4px; font-family: 'Kanit', sans-serif; letter-spacing: 0.3px; display: inline-flex; align-items: center; gap: 3px;
}
.badge-verified {
    background: #00897b; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px;
    border-radius: 4px; font-family: 'Kanit', sans-serif; letter-spacing: 0.3px; display: inline-flex; align-items: center; gap: 3px;
}

.product-name-heading { font-size: 16.5px; font-weight: 600; color: #222; line-height: 1.5; margin-bottom: 12px; }
.price-answer { margin: 10px 0 0; font-size: 11.5px; color: #9aa0aa; line-height: 1.55; }
.price-answer b { color: #7b818c; font-weight: 600; }
.product-price-large { font-family: 'Kanit', sans-serif; font-size: 28px; font-weight: 700; color: var(--lodlah-dark); margin-bottom: 10px; }

.meta-stats-row {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; margin-bottom: 14px; white-space: nowrap; overflow: hidden;
    padding: 10px 14px; background: #f8fafc; border-radius: 10px; border: 1px solid #edf2f7; font-size: 13px; color: #4a5568;
}
.meta-stat-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-stat-item .rating-star { color: #f59e0b; font-weight: 700; }
.meta-stat-item .like-heart { color: #ef4444; }

.btn-buy-shopee {
    background: var(--lodlah-grad); color: #fff !important; text-decoration: none; padding: 13px 28px;
    border-radius: 50px; font-family: 'Kanit', sans-serif; font-size: 15.5px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 6px 20px rgba(232, 57, 31, 0.35); transition: all .25s ease;
    width: fit-content; position: relative; overflow: hidden; letter-spacing: 0.3px; margin-top: auto;
}
.btn-buy-shopee::before {
    content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
    background: linear-gradient(60deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg); animation: btnShimmerAnim 3.5s infinite;
}
@keyframes btnShimmerAnim {
    0% { left: -60%; }
    22% { left: 140%; }
    100% { left: 140%; }
}
.btn-buy-shopee:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232, 57, 31, 0.45); color: #fff !important; }
#mainBuyBtn {
    width: 100%; font-size: 19px; padding: 16px 24px; letter-spacing: .4px;
    background: linear-gradient(135deg, #ff7a3d 0%, #ff4b1f 45%, #e02a10 100%);
    box-shadow: 0 8px 22px rgba(232, 57, 31, 0.45), inset 0 -3px 0 rgba(0,0,0,.12);
    animation: buyGlow 2.4s ease-in-out infinite;
}
#mainBuyBtn:hover { animation-play-state: paused; }
@keyframes buyGlow {
    0%, 100% { box-shadow: 0 8px 22px rgba(232,57,31,.45), 0 0 0 0 rgba(255,75,31,.55), inset 0 -3px 0 rgba(0,0,0,.12); }
    60% { box-shadow: 0 8px 22px rgba(232,57,31,.45), 0 0 0 12px rgba(255,75,31,0), inset 0 -3px 0 rgba(0,0,0,.12); }
}
@media (prefers-reduced-motion: reduce) { #mainBuyBtn, .btn-mobile-sticky-buy { animation: none !important; } }


.stale-alt { background: #fff; border: 1.5px solid #ffd2c2; border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.stale-alt-note { font-size: 13px; color: #6b7280; margin: -6px 0 12px; }
.stale-alt .prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 768px) { .stale-alt { padding: 12px; } .stale-alt .prod-grid { grid-template-columns: 1fr 1fr; } }
.notify-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.notify-duo.is-single { grid-template-columns: 1fr; }
.notify-duo.is-single .notify-card { flex-direction: row; align-items: center; justify-content: space-between; }
.notify-duo.is-single .notify-head { flex: 1 1 auto; min-width: 0; }
.notify-duo.is-single .notify-btn { width: auto; flex: 0 0 auto; padding: 8px 22px; }
@media (max-width: 768px) {
    .notify-duo.is-single .notify-head { flex-direction: row; text-align: left; gap: 10px; }
    .notify-duo.is-single .notify-btn { padding: 8px 14px; }
}
@media (max-width: 420px) { .notify-duo.is-single .notify-icon { display: none; } }
.notify-card {
    --tone: #e8391f; --tone-soft: #ffe1d6; --tone-bg1: #fff8f6; --tone-bg2: #fff0ec; --tone-line: #ffcdbf; --tone-ink: #c22a12; --tone-sub: #7a5148;
    background: #fff;
    border: 1px solid #eceff4; border-radius: 14px; padding: 14px 16px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0;
    box-shadow: none;
}
.notify-line { --tone: #06c755; --tone-soft: #d7f7e4; --tone-bg1: #f5fdf8; --tone-bg2: #eafaf0; --tone-line: #b5ecca; --tone-ink: #067a37; --tone-sub: #4a6b56; }
.notify-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.notify-text { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.notify-icon {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 19px; background: var(--tone-soft); color: var(--tone);
}
.notify-follow .notify-icon { animation: none; }
@keyframes followBellPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232,57,31,0.25); }
    50% { box-shadow: 0 0 0 7px rgba(232,57,31,0); }
}
.notify-text { min-width: 0; }
.notify-title { font-family: 'Kanit', sans-serif; font-size: 14.5px; font-weight: 600; color: #374151; line-height: 1.35; white-space: nowrap; overflow: hidden; }
.notify-desc { font-size: 12.5px; color: #8a919c; line-height: 1.5; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.notify-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 42px;
    padding: 8px 12px; border-radius: 50px; font-family: 'Kanit', sans-serif; font-size: 14px; font-weight: 700;
    text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; line-height: 1.3; text-align: center;
}
.notify-btn:hover { transform: translateY(-1px); }
.notify-btn { min-height: 38px; font-size: 13.5px; }
.btn-follow-price { background: #fff; color: #e8391f !important; border: 1.5px solid #f3b9a8; box-shadow: none; font-weight: 600; }
.btn-follow-price:hover { background: #fff3ef; }
.btn-follow-price.active { background: #e8391f; color: #fff !important; border-color: #e8391f; }
.btn-follow-price:disabled { opacity: 0.6; cursor: default; }
.follow-quick { display: flex; align-items: center; justify-content: center; gap: 5px; width: fit-content; margin: 8px auto 0; padding: 4px 12px; border: 1px solid #f3d0c4; border-radius: 999px; background: transparent; color: #b4533a; font-family: 'Kanit', sans-serif; font-size: 12px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.follow-quick i { font-size: 11.5px; }
.follow-quick:hover { background: #fff3ef; }
.follow-quick.active { background: #fff3ef; border-color: #f3b9a8; color: #e8391f; }
.follow-quick:disabled { opacity: 0.6; cursor: default; }
.btn-line-add { background: #fff; color: #06a34a !important; border: 1.5px solid #9fe0b8; box-shadow: none; font-weight: 600; }
.btn-line-add:hover { background: #f0fdf4; }
.btn-line-add i { font-size: 16px; }
.follow-list-link {
    display: block; text-align: right; font-size: 12.5px; color: #888; text-decoration: none; margin: -10px 0 16px;
}
.follow-list-link:hover { color: #e8391f; text-decoration: underline; }


.statsBox {
    background: #fff; border: 1px solid #eaedf3; border-radius: 14px; padding: 14px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.statItem { background: #f9f9fb; padding: 10px 14px; border-radius: 10px; border-left: 4px solid var(--lodlah-dark); }
.statLabel { font-size: 11.5px; color: #666; margin-bottom: 3px; display: flex; align-items: center; }
.statVal { font-family: 'Kanit', sans-serif; font-size: 15px; font-weight: 700; color: #111; }
.statVal.discount { color: #1b7a43; }
.statHint { font-size: 11px; color: #888; margin-top: 3px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tooltip-wrap { position: relative; display: inline-flex; align-items: center; cursor: help; flex-shrink: 0; }
.info-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; font-size: 10px; background: #007bff; color: #fff; border-radius: 3px; margin-left: 4px; font-weight: bold;
}
.tooltip-text {
    visibility: hidden; width: 220px; background-color: #222; color: #fff; text-align: left;
    border-radius: 6px; padding: 8px 10px; position: absolute; z-index: 100; bottom: 125%; left: 0;
    opacity: 0; transition: opacity 0.2s; font-size: 11px; line-height: 1.4; font-weight: normal; pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.tooltip-text::after {
    content: ""; position: absolute; top: 100%; left: var(--arrow-x, 20px); margin-left: -5px;
    border-width: 5px; border-style: solid; border-color: #222 transparent transparent transparent;
}
.tooltip-wrap:hover .tooltip-text { visibility: visible; opacity: 1; }

.chart-card-box {
    background: #fff; border-radius: 18px; border: 1px solid #eaedf3; padding: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04); margin-bottom: 20px;
}
.chart-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.chart-head-title { font-family: 'Kanit', sans-serif; font-size: 15.5px; font-weight: 700; color: #222; display: flex; align-items: center; gap: 6px; }
.chart-date-range { font-size: 12px; color: #888; }
.chart-canvas-wrap { position: relative; height: 220px; width: 100%; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #eaedf3; }
.share-label { font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 14px; color: #333; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 14px; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 13px; text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.2; }
.share-btn i { font-size: 15px; }
.share-line { background: #06c755; color: #fff !important; }
.share-fb { background: #1877f2; color: #fff !important; }
.share-copy { background: #f1f3f6; color: #333; }
.share-copy.is-done { background: #dcfce7; color: #15803d; }
.share-btn:hover { filter: brightness(1.06); }

.coupon-line { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 14px; background: #fff8f6; border: 1px solid #ffded8; border-radius: 12px; font-size: 12.5px; color: #6b5a57; line-height: 1.5; }
.coupon-line i { color: var(--lodlah-dark); flex-shrink: 0; }
.coupon-why { color: #6b5a57; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.coupon-go { font-weight: 600; color: #c2321a; text-decoration: none; white-space: nowrap; }
.coupon-go:hover { text-decoration: underline; color: #c2321a; }
.kw-compare { margin: 0 0 24px; padding: 12px 14px; background: #f6f8fb; border: 1px solid #e3e8ef; border-radius: 12px; }
.kw-compare-line { margin: 0; font-size: 13.5px; line-height: 1.7; color: #333; }
.kw-compare-kw { font-family: 'Kanit', sans-serif; font-weight: 600; color: var(--lodlah-dark); text-decoration: underline; text-underline-offset: 3px; }
.kw-verdict { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.kw-v-low { background: #dcfce7; color: #166534; }
.kw-v-mid { background: #eef2f7; color: #475569; }
.kw-v-high { background: #fff1e6; color: #b45309; }
.kw-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.kw-chips-label { font-size: 12px; color: #6b7280; margin-right: 2px; }
.kw-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; background: #fff; border: 1px solid #dfe5ee; border-radius: 999px; font-size: 12.5px; color: #333; text-decoration: none; }
.kw-chip small { color: #16a34a; font-weight: 600; }
.kw-chip:hover { border-color: var(--lodlah-dark); color: var(--lodlah-dark); }

.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 36px 0 16px; gap: 10px; }
.sec-title h2 { font-family: 'Kanit', sans-serif; font-size: 1.2rem; font-weight: 700; color: #222; margin: 0; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card {
    background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #eaedf3;
    text-decoration: none; color: inherit; display: flex; flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03); transition: transform .2s, box-shadow .2s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,0.08); }
.prod-img-wrap { width: 100%; aspect-ratio: 1 / 1; position: relative; background: #fbfbfb; overflow: hidden; }
.prod-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.prod-shop-name { font-size: 11.5px; color: #888; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-title {
    font-size: 13.5px; font-weight: 500; color: #222; line-height: 1.4; height: 38px;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px;
}
.prod-foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.prod-price { font-family: 'Kanit', sans-serif; font-size: 14px; font-weight: 700; color: var(--lodlah-dark); line-height: 1.2; }
.prod-sales { font-size: 11px; color: #999; }

.mobile-sticky-bar { display: none; }
@media (min-width: 769px) {
    .mobile-sticky-bar {
        display: flex; position: fixed; left: 50%; bottom: calc(78px + var(--mx-ck-h, 0px)); z-index: 99;
        width: min(620px, calc(100% - 32px)); gap: 18px; align-items: center; justify-content: space-between;
        background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border: 1px solid #f1d5cb; border-radius: 18px;
        padding: 12px 14px 12px 22px; box-shadow: 0 12px 34px rgba(30,20,15,.18);
        opacity: 0; pointer-events: none; transform: translate(-50%, 30px);
        transition: opacity .35s ease, transform .45s cubic-bezier(.175,.885,.32,1.275);
    }
    .mobile-sticky-bar.visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
    .mobile-sticky-bar.is-nudge { animation: none; }
    .mobile-sticky-left { display: flex; flex-direction: column; min-width: 0; }
    .mobile-sticky-price { font-family: 'Kanit', sans-serif; font-size: 24px; font-weight: 700; color: var(--lodlah-dark); line-height: 1.15; }
    .mobile-sticky-label { font-size: 12px; color: #888; line-height: 1.3; }
    .btn-mobile-sticky-buy {
        background: linear-gradient(135deg, #ff7a3d 0%, #ff4b1f 45%, #e02a10 100%); color: #fff !important; text-decoration: none;
        padding: 14px 30px; border-radius: 50px; font-family: 'Kanit', sans-serif; font-size: 17px; font-weight: 700;
        display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; flex-shrink: 0;
        box-shadow: 0 6px 18px rgba(232,57,31,.45); transition: transform .2s;
    }
    .btn-mobile-sticky-buy:hover { transform: translateY(-2px); }
    .mobile-sticky-bar.visible .btn-mobile-sticky-buy { animation: buyGlow 2.4s ease-in-out .9s infinite; }
}
.exit-pop { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.exit-pop[hidden] { display: none; }
.exit-card { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 22px 22px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); animation: exitIn .25s ease-out; }
@keyframes exitIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.exit-close { position: absolute; top: 10px; right: 12px; border: 0; background: #f1f3f6; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; color: #555; cursor: pointer; }
.exit-title { font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 18px; color: #222; margin-bottom: 14px; padding-right: 36px; }
.exit-body { display: flex; gap: 14px; align-items: center; }
.exit-img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex-shrink: 0; border: 1px solid #eee; }
.exit-info { min-width: 0; }
.exit-name { font-size: 13px; color: #555; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exit-label { font-size: 12.5px; color: #888; margin-top: 6px; }
.exit-price { font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 30px; color: #e8391f; line-height: 1.1; }
.exit-price span { font-size: 15px; }
.exit-note { display: inline-block; margin-top: 4px; background: #dcfce7; color: #15803d; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; }
.exit-go { display: block; margin-top: 18px; text-align: center; background: linear-gradient(135deg, #ff6a3d, #ee4d2d); color: #fff !important; text-decoration: none; font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 16px; padding: 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(238,77,45,.3); }
.mobile-sticky-bar.is-nudge { animation: stickyNudge .7s ease-in-out 1; }
@keyframes stickyNudge { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-10px); } 50% { transform: translateY(0); } 70% { transform: translateY(-5px); } }


.error-card {
    background: #fff; border-radius: 18px; padding: 40px 20px; text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04); border: 1px solid #ffebee;
}

.nf-wrap {
    background: #fff; border-radius: 18px; padding: 32px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04); border: 1px solid #f0f0f0;
    margin-bottom: 28px;
}
.nf-shop-banner {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: #fff7f2; border: 1px solid #ffe0cc; border-radius: 12px;
    margin-bottom: 24px;
}
.nf-shop-banner img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 1px solid #f0f0f0; flex-shrink: 0;
}
.nf-shop-banner .nf-shop-text { font-size: 13px; color: #555; line-height: 1.5; }
.nf-shop-banner .nf-shop-text b { color: #222; font-family: 'Kanit', sans-serif; }

.nf-steps { list-style: none; margin: 0; padding: 0; counter-reset: nf-step; }
.nf-step {
    display: flex; gap: 14px; padding: 16px 0; position: relative;
    counter-increment: nf-step;
    opacity: 0; transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}
.nf-step.nf-step-visible { opacity: 1; transform: translateY(0); }
.nf-step:not(:last-child)::after {
    content: ''; position: absolute; left: 17px; top: 46px; bottom: -4px;
    width: 2px; background: linear-gradient(180deg, #ffccbc, #fff);
    transform: scaleY(0); transform-origin: top;
    transition: transform .4s ease .2s;
}
.nf-step.nf-step-visible:not(:last-child)::after { transform: scaleY(1); }
.nf-step-num {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--lodlah-grad); color: #fff; font-weight: 700;
    font-family: 'Kanit', sans-serif; font-size: 14px; z-index: 1;
    transform: scale(0.6); transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nf-step.nf-step-visible .nf-step-num { transform: scale(1); }
.nf-step-num::before { content: counter(nf-step); }
.nf-step-body { padding-top: 4px; }
.nf-step-title {
    font-family: 'Kanit', sans-serif; font-size: 15px; font-weight: 700;
    color: #222; margin-bottom: 4px;
}
.nf-step-desc { font-size: 13px; color: #777; line-height: 1.6; }

.nf-bestsellers-title {
    font-family: 'Kanit', sans-serif; font-size: 17px; font-weight: 700;
    color: #222; margin: 8px 0 14px;
}

.nf-retry-title {
    font-family: 'Kanit', sans-serif; font-size: 15px; font-weight: 700;
    color: #222; margin: 28px 0 10px;
}
.nf-search-box-wrap {
    background: #f8fafc; border: 2px solid #ffded8; border-radius: 18px;
    padding: 8px; display: flex; align-items: center; gap: 6px;
    transition: all .2s; box-shadow: 0 0 24px rgba(232, 57, 31, 0.25);
    max-width: 100%;
}
.nf-search-box-wrap:focus-within {
    border-color: var(--lodlah-dark); background: #fff;
    box-shadow: 0 6px 24px rgba(232, 57, 31, 0.35);
}
.nf-search-box-wrap.is-invalid {
    border-color: #dc3545 !important; animation: shakeBox 0.3s ease-in-out;
}
@keyframes shakeBox {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.nf-search-box-wrap input {
    flex: 1; border: none; outline: none; padding: 12px 14px;
    font-size: 14.5px; font-family: 'Sarabun', sans-serif; color: #222;
    background: transparent; min-width: 0;
}
.nf-search-box-wrap button {
    border: none; padding: 0 20px; height: 44px; border-radius: 12px;
    font-family: 'Kanit', sans-serif; font-size: 14px; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: all .2s;
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    background: var(--lodlah-grad); color: #fff;
    box-shadow: 0 4px 12px rgba(232,57,31,0.3);
}
.nf-search-box-wrap button:hover { opacity: 0.9; }


.campaign-live-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: #1d1e24; color: #fff; text-decoration: none; border-radius: 12px;
    padding: 10px 16px; margin-bottom: 12px; font-size: 13.5px; line-height: 1.5;
}
.campaign-live-strip b { color: #ffb199; font-family: 'Kanit', sans-serif; }
.campaign-live-strip-cta { font-family: 'Kanit', sans-serif; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
    background: #ffb199; color: #1d1e24; padding: 3px 11px; border-radius: 999px; animation: stripNudge 3.2s ease-in-out infinite; }
@keyframes stripNudge { 0%, 82%, 100% { transform: translateX(0) rotate(0); } 86% { transform: translateX(-2px) rotate(-3deg); } 90% { transform: translateX(2px) rotate(3deg); } 94% { transform: translateX(-1px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .campaign-live-strip-cta { animation: none; } }
.campaign-live-strip:hover { color: #fff; background: #2a2b33; }
.campaign-live-group { margin-bottom: 12px; }
.campaign-live-group .campaign-live-strip { margin-bottom: 0; }
.campaign-live-group.is-multi { background: #1d1e24; border-radius: 12px; overflow: hidden; }
.campaign-live-group.is-multi .campaign-live-strip { border-radius: 0; }
.campaign-live-group.is-multi .campaign-live-strip + .campaign-live-strip { border-top: 1px solid rgba(255,255,255,0.09); }

.meta-stat-link { color: inherit; text-decoration: none; }
.meta-stat-link:hover span { color: var(--lodlah-dark); text-decoration: underline; }

.price-fresh-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.price-fresh-row .product-price-large { margin-bottom: 0; }
.shop-code-note { display: block; margin: 10px 0 0; text-align: center; font-size: 12px; color: #8a8d99; text-decoration: none; }
.shop-code-note b { font-weight: 600; color: #c2321a; }
.shop-code-note:hover b { text-decoration: underline; }
.price-fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5c5f6b; text-decoration: none; }
.price-fresh-stale { color: #b42d14; }
.price-fresh-stale:hover { text-decoration: underline; color: #8f2311; }
.fresh-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-fresh { background: #16a34a; }
.dot-week { background: #9aa0ad; }
.dot-stale { background: #e8391f; }

.price-chip {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%;
    padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 12px; line-height: 1.4;
}
.chip-good { background: #ecfdf3; color: #14532d; border: 1px solid #bbe5c8; }
.chip-normal { background: #f1f3f6; color: #33363f; border: 1px solid #dde0e6; }
.chip-high { background: #fff3e0; color: #8a4a06; border: 1px solid #f6d3a1; }

.campaign-box {
    background: #fff1ec; border: 1px solid #f5c4b3; border-radius: 14px; padding: 14px 16px;
    margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px;
}
.campaign-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.campaign-title { font-family: 'Kanit', sans-serif; font-size: 16px; font-weight: 700; color: #1d1e24; }
.campaign-countdown { display: flex; gap: 4px; }
.campaign-countdown div { background: #fff; border-radius: 8px; padding: 3px 8px; text-align: center; min-width: 38px; }
.campaign-countdown b { display: block; font-family: 'Kanit', sans-serif; font-size: 15px; color: var(--lodlah-dark); line-height: 1.3; }
.campaign-countdown small { font-size: 10px; color: #5c5f6b; }
.campaign-text { margin: 0; font-size: 13.5px; line-height: 1.6; color: #3a3d47; }
.campaign-box-pre {
    position: relative;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,209,102,0.6) 0, rgba(255,209,102,0) 160px),
        radial-gradient(circle at 0% 100%, rgba(255,255,255,0.55) 0, rgba(255,255,255,0) 180px),
        linear-gradient(135deg, #ffefd6 0%, #ffdccb 55%, #ffc7b2 100%);
    border: 2px solid #ff8a5c;
    box-shadow: 0 8px 22px rgba(232, 57, 31, 0.14);
}
.campaign-box-pre .campaign-title { color: #8f2410; }
.campaign-box-pre .campaign-title i { color: #e8391f; }
.campaign-box-pre .campaign-title span { color: #e8391f; }
.campaign-box-pre .campaign-countdown div { background: #1d1e24; min-width: 40px; box-shadow: 0 3px 8px rgba(0,0,0,0.15); }
.campaign-box-pre .campaign-countdown b { color: #fff; font-variant-numeric: tabular-nums; }
.campaign-box-pre .campaign-countdown small { color: #ffd2c2; }
.campaign-box-pre .campaign-countdown .cd-sec b { color: #ffd166; }
.campaign-box-pre .campaign-text { font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 14.5px; color: #3a1d14; }
.campaign-box-pre.is-started { border-color: #16a34a; }
.xtra-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: -4px 0 14px; padding: 9px 12px; border-radius: 12px; background: #fffbeb; border: 1px dashed #f5b971; }
.xtra-row { font-size: 13px; color: #6b3d05; }
.xtra-row i { color: #d97706; }
.xtra-box > .xtra-row { flex: 1 1 100%; }
.xtra-foot { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.xtra-foot .xtra-check { margin-left: auto; }
.all-codes-btn { border: 0; background: none; padding: 2px 0; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 12.5px; color: #92400e; cursor: pointer; white-space: nowrap; }
.all-codes-btn i { font-size: 11px; display: inline-block; transition: transform .2s; }
.all-codes-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.all-codes { flex: 1 1 100%; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px dashed #f5b971; }
.all-codes[hidden] { display: none; }
.all-codes-group { display: flex; flex-direction: column; gap: 4px; }
.all-codes-head { font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 12.5px; color: #111; background: #fef3c7; padding: 4px 10px; border-radius: 8px; margin: 0 -4px; }
.all-codes-head i { color: #111; }
.calc-tag { display: inline-block; padding: 0 6px; border-radius: 999px; background: #dcfce7; color: #15803d; font-family: 'Kanit', sans-serif; font-size: 11px; font-weight: 600; line-height: 1.6; vertical-align: 1px; }
.calc-tag i { color: #15803d !important; }
.vip-tag { display: inline-block; padding: 0 6px; border-radius: 4px; background: #111; color: #fff; font-family: 'Kanit', sans-serif; font-size: 11px; font-weight: 600; line-height: 1.6; vertical-align: 1px; letter-spacing: .3px; }
.nw { white-space: nowrap; }
.product-plain-link { text-decoration: none; }
a.product-name-heading { display: block; color: #222; }
a.product-name-heading:hover { color: var(--lodlah-dark); }
a.product-price-large { display: inline-block; }
a.product-price-large:hover, a.price-chip:hover { filter: brightness(1.08); }
a.price-chip { width: fit-content; }
.product-img-link { position: relative; display: block; }
.img-shopee-hint { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(29, 30, 36, 0.72); color: #fff; font-family: 'Kanit', sans-serif; font-size: 11.5px; font-weight: 600; pointer-events: none; }
.camp-click { position: relative; cursor: pointer; }
.camp-click.pop-open { z-index: 30; }
.camp-click > .camp-box-link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.camp-click > *:not(.camp-box-link) { position: relative; z-index: 1; pointer-events: none; }
.camp-click a, .camp-click details, .camp-click summary, .camp-click button { pointer-events: auto; }
.camp-click:hover { filter: brightness(1.02); }
.near-fill-link { font-weight: 600; color: #c2321a !important; white-space: nowrap; }
.voucher-ticket-list { display: flex; flex-direction: column; gap: 4px; }
.voucher-ticket-calc.calc-oneline { display: flex; flex-wrap: nowrap; white-space: nowrap; }
.calc-oneline .calc-save { flex-shrink: 0; }
.calc-price { color: #e8391f; font-family: 'Kanit', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap;
    background: linear-gradient(100deg, #e8391f 0%, #e8391f 42%, #ffd2c4 50%, #e8391f 58%, #e8391f 100%); background-size: 300% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: calcTextShine 4s ease-in-out infinite; }
@keyframes calcTextShine { 0%, 65% { background-position: 100% 0; } 95%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .calc-price { animation: none; } }
.calc-save { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #dcfce7; border: 1px solid #86efac; color: #15803d; font-family: 'Kanit', sans-serif; font-size: 12px; font-weight: 600; white-space: nowrap; }
.xtra-check { font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 12.5px; color: #b45309 !important; white-space: nowrap; }
.voucher-ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voucher-ticket-row .voucher-ticket-title { min-width: 0; }
.voucher-ticket-title b { color: #c2321a; }
.voucher-collect-btn {
    flex-shrink: 0; text-decoration: none; white-space: nowrap; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 13px;
    background: #e8391f; color: #fff !important; padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 10px rgba(232,57,31,0.28);
}
.voucher-collect-btn:hover { background: #c2321a; }
.voucher-collect-soon { flex-shrink: 0; font-size: 12px; color: #8a4a06; white-space: nowrap; }
.voucher-ticket-calc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.calc-info { position: relative; display: inline-block; }
.calc-info summary { list-style: none; cursor: pointer; color: #b42d14; font-size: 14px; line-height: 1; padding: 2px; }
.calc-info summary::-webkit-details-marker { display: none; }
.calc-info-pop {
    position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(calc(-50% + var(--dx, 0px))); z-index: 20; width: min(250px, calc(100vw - 24px)); white-space: normal;
    background: #1d1e24; color: #fff; border-radius: 12px; padding: 11px 13px; box-shadow: 0 10px 24px rgba(0,0,0,0.22); font-size: 12.5px; line-height: 1.55;
}
.calc-info-pop::before { content: ''; position: absolute; top: -6px; left: calc(50% - var(--dx, 0px)); margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #1d1e24; }
.calc-info-pop p { margin: 0 0 8px; color: #e5e7eb; }
.calc-info-pop a { display: block; text-align: center; background: #fff; color: #c2321a !important; text-decoration: none; font-family: 'Kanit', sans-serif; font-weight: 600; border-radius: 8px; padding: 6px 8px; }
@media (max-width: 768px) { .calc-info-pop { left: auto; right: -40px; transform: translateX(var(--dx, 0px)); } .calc-info-pop::before { left: auto; right: calc(44px - var(--dx, 0px)); } }
.calc-info summary { padding: 6px; margin: -4px; position: relative; z-index: 2; }
.voucher-ticket { background: #fff; border: 1px dashed #eaa48f; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.voucher-ticket-title { font-size: 13px; font-weight: 600; color: #1d1e24; display: flex; gap: 6px; align-items: baseline; }
.voucher-ticket-title i { color: var(--lodlah-dark); }
.voucher-ticket-sub { font-size: 12.5px; color: #5c5f6b; }
.voucher-ticket-calc { font-size: 13px; color: #8a4a06; }
.campaign-box-live { background: #fff; border-color: #f5c4b3; }
.voucher-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #f5c4b3; background: #fff7f4; border-radius: 12px; padding: 10px 12px; }
.voucher-row-vip { border-color: #e3d8f5; background: #faf7ff; }
.voucher-row-info { display: flex; flex-direction: column; min-width: 0; }
.voucher-row-info b { font-size: 13.5px; }
.voucher-row-info small { font-size: 12px; color: #5c5f6b; }
.voucher-row-price { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; }
.voucher-row-price small { font-size: 11.5px; color: #5c5f6b; }
.voucher-row-price b { font-family: 'Kanit', sans-serif; font-size: 17px; color: #c2321a; }
.voucher-row-vip .voucher-row-price b { color: #5b2bb5; }
.voucher-near { font-size: 13px; color: #8a4a06; }
.voucher-note { font-size: 12px; color: #5c5f6b; line-height: 1.5; }

.cta-sub-links { display: flex; flex-wrap: nowrap; justify-content: center; gap: 16px; margin-top: 10px; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.cta-sub-links a { color: #b42d14; text-decoration: underline; }
.cta-sub-links a:hover { color: #8f2311; }

.chart-summary { margin: -6px 0 12px; font-size: 13.5px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #f0fdf4; color: #14532d; border-radius: 10px; padding: 8px 12px; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: #5c5f6b; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-line { display: inline-block; width: 16px; height: 0; border-top: 1.5px dashed #64748b; }
.legend-campaign { border-top: 1px dashed rgba(100,116,139,0.7); }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.legend-dot-min { background: #16a34a; }
.legend-dot-now { background: #e8391f; }

.prod-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.prod-shopee-mini {
    display: block; text-align: center; margin: 0 12px 12px; padding: 6px 8px; border-radius: 8px;
    border: 1px solid #f5c4b3; color: #b42d14; background: #fff7f4; font-family: 'Kanit', sans-serif;
    font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.prod-shopee-mini:hover { background: #ffe9e1; color: #8f2311; }
.prod-price-cheaper { color: #15803d; }


.deal-box { position: relative; border-radius: 16px; padding: 0 0 14px; margin-bottom: 14px; overflow: hidden;
    background: linear-gradient(160deg, #fff7f2 0%, #ffe9df 100%); border: 2px solid #ff8a65; box-shadow: 0 8px 24px rgba(232,57,31,.15); }
.deal-ribbon { background: linear-gradient(90deg, #e8391f, #ff6b35); color: #fff; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 13.5px; padding: 8px 16px; display: flex; align-items: center; gap: 7px; }
.deal-main { padding: 12px 16px 4px; }
.deal-label { font-family: 'Kanit', sans-serif; font-size: 14px; font-weight: 600; color: #9a3412; }
.deal-price { font-family: 'Kanit', sans-serif; font-weight: 800; font-size: 46px; line-height: 1.05; color: #d7261b; letter-spacing: -1px; margin: 2px 0 6px; }
.deal-price span { font-size: 20px; font-weight: 700; margin-left: 6px; letter-spacing: 0; }
.deal-save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.deal-save { background: #16a34a; color: #fff; font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
.product-price-large.is-was { text-decoration: line-through; text-decoration-thickness: 2px; color: #9ca3af; }
.deal-terms { margin-top: 8px; font-size: 12.5px; color: #7a5148; }
.deal-box .voucher-near, .deal-box .voucher-note { padding: 0 16px; margin-top: 8px; }
.deal-hot { border-color: #e8391f; animation: dealGlow 2.4s ease-in-out infinite; }
.deal-hot .deal-ribbon::after { content: '🔥 ลดแรง'; margin-left: auto; background: #fff; color: #e8391f; font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.deal-hot .deal-price { font-size: 54px; }
@keyframes dealGlow { 0%,100% { box-shadow: 0 8px 24px rgba(232,57,31,.15); } 50% { box-shadow: 0 8px 30px rgba(232,57,31,.38); } }

@media (max-width: 768px) {
    .nf-wrap { padding: 22px 16px; }
    .nf-shop-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .product-detail-wrap { padding: 16px 12px 140px; }
    .product-main-card { flex-direction: column; gap: 16px; padding: 16px; }
    .product-img-box { width: 100%; max-width: 210px; margin: 0 auto; }
    .statsBox { grid-template-columns: 1fr 1fr; gap: 8px; }
    .prod-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .btn-buy-shopee { width: 100%; font-size: 15px; padding: 13px 14px; white-space: nowrap; overflow: hidden; }
    #mainBuyBtn { font-size: 17.5px; padding: 15px 14px; }
    .campaign-live-strip { font-size: 12.5px; padding: 9px 12px; }
    .meta-stats-row { gap: 0.8em; padding: 9px 8px; justify-content: center; }
    .meta-stats-row .meta-stat-item { gap: 0.35em; }
    .deal-price { font-size: 40px; } .deal-hot .deal-price { font-size: 46px; }
    .deal-ribbon { font-size: 12.5px; padding: 7px 12px; } .deal-main { padding: 10px 12px 2px; }
    .notify-duo { gap: 8px; }
    .notify-card { padding: 12px 10px; gap: 10px; }
    .notify-head { flex-direction: column; text-align: center; gap: 6px; }
    .notify-head .notify-text { width: 100%; }
    .chart-summary { padding: 8px 10px; text-align: center; }
    .notify-icon { width: 36px; height: 36px; font-size: 16px; }
    .notify-title { font-size: 13.5px; }
    .notify-desc { font-size: 11.5px; }
    .notify-btn { font-size: 12.5px; min-height: 40px; padding: 7px 8px; gap: 5px; }

    .hide-on-mobile-similar-10 { display: none !important; }
    .hide-on-mobile-other-4   { display: none !important; }

    .mobile-sticky-bar {
        display: flex; position: fixed; left: 0; right: 0; bottom: calc(56px + var(--mx-ck-h, 0px));
        background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
        border-top: 1px solid #eef0f4; padding: 10px 14px; z-index: 99; gap: 12px;
        align-items: center; justify-content: space-between; box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
        opacity: 0; pointer-events: none; transform: translateY(30px);
        transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .mobile-sticky-bar.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .mobile-sticky-left { display: flex; flex-direction: column; min-width: 0; }
    .mobile-sticky-label { font-size: 10.5px; color: #888; line-height: 1.2; }
    .mobile-sticky-price {
        font-family: 'Kanit', sans-serif; font-size: 21px; font-weight: 700; color: var(--lodlah-dark);
        line-height: 1.2; display: inline-block; transform-origin: left center;
    }
    .mobile-sticky-bar.visible .mobile-sticky-price { animation: pricePopAnim 0.45s ease-out 0.15s 1; }
    @keyframes pricePopAnim {
        0% { transform: scale(1); }
        50% { transform: scale(1.18); color: #ff2200; text-shadow: 0 0 10px rgba(232,57,31,0.3); }
        100% { transform: scale(1); }
    }
    .btn-mobile-sticky-buy {
        background: linear-gradient(135deg, #ff7a3d 0%, #ff4b1f 45%, #e02a10 100%); color: #fff !important; text-decoration: none; padding: 13px 22px;
        border-radius: 50px; font-family: 'Kanit', sans-serif; font-size: 16px; font-weight: 700;
        display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 5px 16px rgba(232, 57, 31, 0.45);
        white-space: nowrap; flex: 1 1 auto; max-width: 62%; position: relative; overflow: hidden;
    }
    .mobile-sticky-bar.visible .btn-mobile-sticky-buy { animation: buyGlow 2.4s ease-in-out .9s infinite; }
    .btn-mobile-sticky-buy::before {
        content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
        background: linear-gradient(60deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
        transform: rotate(25deg);
    }
    .mobile-sticky-bar.visible .btn-mobile-sticky-buy::before { animation: stickyBtnShimmerAnim 0.8s ease-out 0.2s 1; }
    @keyframes stickyBtnShimmerAnim {
        0% { left: -60%; }
        100% { left: 140%; }
    }
}
@media (max-width: 350px) {
    .meta-stats-row { padding: 9px 4px; gap: 0.6em; }
    .chart-summary { padding: 8px 4px; }
}
.product-main-card.pmc-click > .pmc-card-link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; display: block; }
.product-main-card.pmc-click > *:not(.pmc-card-link) { position: relative; z-index: 1; }
.product-main-card.pmc-click > *:not(.pmc-card-link):not(a):not(button) { pointer-events: none; }
.product-main-card.pmc-click a, .product-main-card.pmc-click button, .product-main-card.pmc-click input, .product-main-card.pmc-click select, .product-main-card.pmc-click textarea, .product-main-card.pmc-click label, .product-main-card.pmc-click summary, .product-main-card.pmc-click [onclick], .product-main-card.pmc-click [role="button"] { pointer-events: auto; }
