/* Storefront Design V2 — scoped so the existing V1 styles remain unchanged. */
.product-card-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: #f5f5f5;
    font-family: 'IBM Plex Sans Thai', 'Kanit', sans-serif;
    background: linear-gradient(148deg, rgba(32,32,35,.97) 0%, rgba(15,15,17,.98) 58%, rgba(8,8,9,.98) 100%);
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.10), inset 0 -1px 0 rgba(0,0,0,.35);
    backdrop-filter: blur(12px);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.product-card-v2:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.23);
    box-shadow: 0 20px 48px rgba(0,0,0,.42);
}
.product-v2-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #08090c;
    text-decoration: none;
}
.product-v2-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.product-v2-cover::after {
    position: absolute;
    inset: 48% 0 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(5,5,5,.42));
}
.product-card-v2:hover .product-v2-cover-image { transform: scale(1.035); }
.product-v2-no-image {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,.32);
    background: radial-gradient(circle at 50% 40%, #202023, #09090a 70%);
    font-size: 13px;
}
.product-v2-no-image i { font-size: 34px; }
.product-v2-ribbon, .product-v2-sale, .product-v2-soldout {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: .035em;
    box-shadow: 0 5px 16px rgba(0,0,0,.28);
}
.product-v2-ribbon {
    top: 14px;
    left: 13px;
    padding: 7px 11px;
    color: #111;
    background: linear-gradient(135deg, #fff, #d6d6d6);
    border-radius: 9px;
    font-size: 11px;
}
.product-v2-ribbon i { margin-right: 6px; }
.product-v2-sale {
    top: 12px;
    right: 12px;
    min-width: 52px;
    padding: 7px 9px;
    color: #f5f5f5;
    background: rgba(10,10,10,.90);
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 9px;
    font-size: 12px;
}
.product-v2-soldout {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(127,29,29,.88);
    border-radius: 8px;
    font-size: 11px;
}
.product-v2-card-body { display: flex; flex: 1; flex-direction: column; padding: 15px 16px 16px; }
.product-v2-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #aaa; font-size: 10px; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }
.product-v2-card-meta .status-in { color: #e4e4e4; }
.product-v2-card-meta .status-out { color: #a3a3a3; }
.product-v2-card-title { display: -webkit-box; min-height: 2.8em; margin: 10px 0 8px; overflow: hidden; color: #f3f3f3; font-size: 16px; font-weight: 600; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-v2-card-price-row { display: flex; align-items: baseline; gap: 9px; margin: 0 0 15px; }
.product-v2-card-price-row strong { color: #f8f8f8; font-size: 22px; font-weight: 700; }
.product-v2-card-price-row del { color: #727582; font-size: 12px; }
.product-v2-details-button {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: auto;
    padding: 10px 14px;
    color: #101114 !important;
    background: linear-gradient(180deg, #fff, #e8e9ed);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .18s ease, background .18s ease;
}
.product-v2-details-button:hover { color: #000 !important; background: #fff; transform: translateY(-1px); }

.shop-v2-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #f5f5f5;
    font-family: 'IBM Plex Sans Thai', 'Kanit', sans-serif;
    background: transparent;
}
.shop-v2-page::before,
.shop-v2-page::after { display: none; }
.shop-v2-content { position: relative; z-index: 1; width: min(1320px, calc(100% - 36px)); margin: 0 auto; padding: 104px 0 56px; }
.shop-v2-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 0 18px; color: #aaa; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.shop-v2-breadcrumb a { color: #ddd; text-decoration: none; }
.shop-v2-breadcrumb a:hover { color: #fff; }
.shop-v2-heading { margin: 22px 0 20px; color: #f5f5f5; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.01em; }
.shop-v2-detail-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px; align-items: stretch; }
.shop-v2-panel { position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(28,28,30,.94), rgba(9,9,11,.96)); border: 1px solid rgba(255,255,255,.15); border-radius: 17px; box-shadow: 0 22px 54px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.10), inset 0 -1px 0 rgba(0,0,0,.3); backdrop-filter: blur(16px); }
.shop-v2-panel::before { position: absolute; z-index: 0; inset: 0; pointer-events: none; content: ""; background: linear-gradient(125deg, rgba(255,255,255,.065), transparent 30%, transparent 72%, rgba(255,255,255,.025)); }
.shop-v2-panel > * { position: relative; z-index: 1; }
.shop-v2-gallery { padding: 15px; }
.shop-v2-main-image-wrap { position: relative; display: grid; min-height: 330px; aspect-ratio: 1 / .88; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 42%, #262629, #080809 72%); border: 1px solid rgba(255,255,255,.13); border-radius: 13px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -12px 30px rgba(0,0,0,.18); }
.shop-v2-main-image-button { position: absolute; inset: 0; display: grid; width: 100%; height: 100%; place-items: center; padding: 0; background: transparent; border: 0; cursor: zoom-in; }
.shop-v2-main-image { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease, filter .25s ease; }
.shop-v2-main-image-button:hover .shop-v2-main-image { transform: scale(1.018); filter: brightness(1.04); }
.shop-v2-zoom-hint { position: absolute; right: 13px; bottom: 13px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: #f5f5f5; background: rgba(8,8,8,.78); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; box-shadow: 0 5px 18px rgba(0,0,0,.24); font-size: 11px; opacity: .9; transition: opacity .2s ease, background .2s ease; }
.shop-v2-main-image-button:hover .shop-v2-zoom-hint { color: #111; background: rgba(255,255,255,.92); border-color: rgba(255,255,255,.8); opacity: 1; }
.shop-v2-main-nav { position: absolute; z-index: 3; top: 50%; display: grid; width: 40px; height: 40px; place-items: center; padding: 0; color: #f5f5f5; background: rgba(8,8,8,.78); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 5px 18px rgba(0,0,0,.3); transform: translateY(-50%); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.shop-v2-main-nav:hover { color: #111; background: rgba(255,255,255,.92); transform: translateY(-50%) scale(1.06); }
.shop-v2-main-nav.is-prev { left: 13px; }
.shop-v2-main-nav.is-next { right: 13px; }
.shop-v2-image-count { position: absolute; z-index: 2; right: 13px; top: 13px; padding: 5px 9px; color: #ededed; background: rgba(5,5,5,.76); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; font-size: 11px; font-variant-numeric: tabular-nums; }
.shop-v2-image-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #737373; }
.shop-v2-image-placeholder i { font-size: 52px; }
.shop-v2-thumbnails { display: flex; gap: 9px; margin-top: 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(220,220,220,.32) transparent; padding: 3px 2px 8px; }
.shop-v2-thumb { width: 68px; height: 62px; flex: 0 0 auto; overflow: hidden; padding: 0; background: #090a0d; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; cursor: pointer; }
.shop-v2-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-v2-thumb.is-active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.2), 0 5px 16px rgba(0,0,0,.25); }
.shop-v2-thumb:hover { border-color: rgba(255,255,255,.78); }
.shop-v2-lightbox { position: fixed; z-index: 3000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 28px; background: radial-gradient(ellipse at 50% 40%, rgba(42,42,44,.82), rgba(2,2,3,.96) 70%); backdrop-filter: blur(18px) saturate(125%); }
.shop-v2-lightbox[hidden] { display: none !important; }
.shop-v2-lightbox-figure { display: flex; width: min(1120px, 84vw); max-height: 92vh; flex-direction: column; align-items: center; gap: 13px; margin: 0; }
.shop-v2-lightbox-figure img { display: block; max-width: 100%; max-height: 82vh; object-fit: contain; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(0,0,0,.38); box-shadow: 0 28px 90px rgba(0,0,0,.62), 0 0 40px rgba(255,255,255,.055); }
.shop-v2-lightbox-figure figcaption { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; color: rgba(245,245,245,.88); font-size: 13px; }
.shop-v2-lightbox-figure figcaption small { color: #c9c9c9; font-size: 12px; font-variant-numeric: tabular-nums; }
.shop-v2-lightbox-close, .shop-v2-lightbox-nav { position: fixed; z-index: 2; display: grid; place-items: center; padding: 0; color: #f5f5f5; background: rgba(18,18,20,.86); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 8px 28px rgba(0,0,0,.4); cursor: pointer; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.shop-v2-lightbox-close:hover, .shop-v2-lightbox-nav:hover { color: #111; background: rgba(255,255,255,.94); border-color: rgba(255,255,255,.8); transform: scale(1.05); }
.shop-v2-lightbox-close { top: 22px; right: 24px; width: 46px; height: 46px; border-radius: 50%; font-size: 18px; }
.shop-v2-lightbox-nav { top: 50%; width: 50px; height: 50px; border-radius: 50%; font-size: 17px; transform: translateY(-50%); }
.shop-v2-lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.shop-v2-lightbox-nav.is-prev { left: 24px; }
.shop-v2-lightbox-nav.is-next { right: 24px; }
.shop-v2-info { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 34px); }
.shop-v2-labels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.shop-v2-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; color: #d6d6d6; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.10); border-radius: 999px; font-size: 11px; }
.shop-v2-pill.is-green { color: #f3f3f3; background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.18); }
.shop-v2-pill.is-red { color: #c5c5c5; background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.12); }
.shop-v2-product-title { margin: 0 0 8px; color: #f8f8f8; font-size: clamp(24px, 2.8vw, 32px); font-weight: 600; line-height: 1.32; }
.shop-v2-category-line { margin-bottom: 20px; color: #aaa; font-size: 13px; }
.shop-v2-category-line strong { color: #fff; }
.shop-v2-price-block { margin: 0 0 19px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.shop-v2-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; color: #f8f8f8; font-size: clamp(29px, 3.6vw, 38px); font-weight: 700; line-height: 1.1; }
.shop-v2-price del { color: #737783; font-size: 17px; font-weight: 500; }
.shop-v2-agent-note { margin-top: 8px; color: #e5e5e5; font-size: 12px; }
.shop-v2-stock { margin-top: 9px; color: #aaa; font-size: 12px; }
.shop-v2-buy-controls { display: flex; gap: 12px; margin-top: 2px; }
.shop-v2-quantity { display: flex; min-width: 122px; height: 47px; align-items: center; justify-content: space-between; overflow: hidden; background: #0a0a0d; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; }
.shop-v2-quantity button { width: 38px; height: 100%; color: #d5d5d5; background: transparent; border: 0; font-size: 19px; cursor: pointer; }
.shop-v2-quantity input { width: 42px; color: #fff; background: transparent; border: 0; outline: 0; text-align: center; font-weight: 600; }
.shop-v2-buy-button { display: inline-flex; min-height: 47px; flex: 1; align-items: center; justify-content: center; gap: 9px; padding: 11px 15px; color: #111; background: linear-gradient(180deg, #fff, #d5d5d5); border: 1px solid rgba(255,255,255,.8); border-radius: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.30), inset 0 1px rgba(255,255,255,.85); cursor: pointer; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.shop-v2-buy-button:hover { color: #000; background: linear-gradient(180deg, #fff, #eee); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.95); }
.shop-v2-buy-button:disabled { color: #777; background: #292a2f; cursor: not-allowed; transform: none; }
.shop-v2-discount { margin-top: 15px; }
.shop-v2-discount label { display: block; margin-bottom: 6px; color: #a8abb5; font-size: 12px; }
.shop-v2-discount-row { display: flex; gap: 8px; }
.shop-v2-discount input { min-width: 0; flex: 1; padding: 11px 12px; color: #f3f4f6; background: #08090c; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; outline: 0; }
.shop-v2-discount button { padding: 0 14px; color: #e9eaf0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.shop-v2-discount-status { min-height: 18px; margin-top: 6px; color: #9ca3af; font-size: 11px; }
.shop-v2-total { display: flex; justify-content: space-between; margin-top: 13px; padding-top: 13px; color: #b8bbc4; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.shop-v2-total strong { color: #fff; font-size: 19px; }
.shop-v2-description { margin-top: 22px; }
.shop-v2-description-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.10); }
.shop-v2-description-icon { display: grid; width: 38px; height: 38px; place-items: center; color: #ccc; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: 11px; }
.shop-v2-description-head strong { display: block; color: #fff; font-size: 14px; }
.shop-v2-description-head span { color: #8f939e; font-size: 11px; }
.shop-v2-description-body { padding: 20px 24px; color: #b0b0b0; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.shop-v2-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 17px; color: #aeb2bd; font-size: 12px; text-decoration: none; }
.shop-v2-back:hover { color: #fff; }
.shop-v2-alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.shop-v2-alert.error { color: #fecaca; background: rgba(127,29,29,.25); border: 1px solid rgba(248,113,113,.25); }

/* ---- Purchase warning popup ---- */
.shop-v2-warning-popup { max-width: 470px !important; border: 1px solid rgba(248,113,113,.45); border-radius: 17px !important; }
.shop-v2-warning-body { text-align: start; color: #d4d4d4; font-size: 13.5px; line-height: 1.85; overflow-wrap: anywhere; padding: 14px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; }
.shop-v2-warning-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 12px 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 11px; color: #e7e7e7; font-size: 12.5px; line-height: 1.6; text-align: start; cursor: pointer; }
.shop-v2-warning-check input { margin-top: 2px; accent-color: #ffffff; flex-shrink: 0; }

/* Top-of-page warning notice (heading highlighted red, body plain) */
.shop-v2-warning-banner { margin-bottom: 16px; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(248,113,113,.28); background: rgba(127,29,29,.16); }
.shop-v2-warning-banner-title { display: inline-block; padding: 3px 10px; border-radius: 7px; background: #ef4444; color: #fff; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.shop-v2-warning-banner-body { color: #d4d4d4; font-size: 13px; line-height: 1.85; text-align: start; overflow-wrap: anywhere; }

/* ---- LZT market snapshot (one-time cached JSON) ---- */
.shop-v2-lzt { margin-top: 22px; padding: 22px 24px 24px; }
.shop-v2-lzt-block + .shop-v2-lzt-block { margin-top: 26px; }
.shop-v2-lzt-title { margin: 0 0 16px; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.shop-v2-lzt-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.shop-v2-lzt-game { min-width: 0; }
.shop-v2-lzt-game-media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.shop-v2-lzt-game-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-v2-lzt-game-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #5d5d5d; font-size: 22px; }
.shop-v2-lzt-game-name { display: block; margin-top: 11px; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.shop-v2-lzt-game-hours { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: #9c9c9c; font-size: 14.5px; }
.shop-v2-lzt-table-wrap { overflow-x: auto; background: #131313; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; }
.shop-v2-lzt-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; }
.shop-v2-lzt-table th { padding: 15px 18px; text-align: start; color: #4ade80; font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; background: transparent; border-bottom: 1px solid rgba(255,255,255,.07); }
.shop-v2-lzt-table td { padding: 16px 18px; color: #e9e9e9; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.shop-v2-lzt-table tbody tr:last-child td { border-bottom: 0; }
.shop-v2-lzt-table tbody tr:hover { background: rgba(255,255,255,.03); }
.shop-v2-lzt-cell-title { min-width: 190px; color: #fff; }
.shop-v2-lzt-empty { padding: 18px 24px; color: #9a9a9a; font-size: 13.5px; }
@media (max-width: 820px) {
    .shop-v2-detail-grid { grid-template-columns: 1fr; gap: 16px; }
    .shop-v2-main-image-wrap { min-height: 260px; }
    .shop-v2-info { padding: 21px; }
    .shop-v2-lightbox { padding: 18px; }
    .shop-v2-lightbox-figure { width: 100%; }
    .shop-v2-lightbox-figure img { max-height: 76vh; }
    .shop-v2-lightbox-nav { width: 42px; height: 42px; }
    .shop-v2-lightbox-nav.is-prev { left: 10px; }
    .shop-v2-lightbox-nav.is-next { right: 10px; }
    .shop-v2-lightbox-close { top: 12px; right: 12px; }
}
@media (max-width: 767.98px) {
    .product-item-v2 { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 520px) {
    .shop-v2-content { width: min(100% - 24px, 1320px); padding-top: 90px; }
    .shop-v2-gallery { padding: 9px; }
    .shop-v2-main-image-wrap { min-height: 230px; aspect-ratio: 1 / .84; }
    .shop-v2-buy-controls { flex-direction: column; }
    .shop-v2-quantity { width: 100%; }
    .shop-v2-buy-button { width: 100%; }
    .shop-v2-description-body { padding: 16px; }
}
