:root {
    --bg: #f5f5f5;
    --paper: #ffffff;
    --ink: #0a0a0a;
    --ink-2: #2c2c2c;
    --muted: #757575;
    --line: #e6e6e6;
    --line-2: #f0f0f0;
    --green: #00aa5b;
    --green-dark: #008f4d;
    --green-soft: #e6f4ed;
    --tg: #2aabee;
    --tg-dark: #1f95d4;
    --price: #04A065;
    --warn: #ff5722;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body { margin: 0; padding: 0; }

body {
    min-height: 100dvh;
    color: var(--ink);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

button, .btn, .thumb, .nav-arrow {
    touch-action: manipulation;
}

img { max-width: 100%; height: auto; }
.slide, .thumb img { image-rendering: -webkit-optimize-contrast; }

.topbar {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.topbar-in {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    flex: 0 0 auto;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name strong { font-weight: 700; font-size: 15px; }
.brand-name small { color: var(--muted); font-size: 12px; margin-top: 1px; }

.topbar-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.topbar-meta .verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--green-dark);
    font-weight: 600;
}

.topbar-meta .verified svg { width: 14px; height: 14px; }

.crumbs {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px 8px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.crumbs a:hover { color: var(--green-dark); }

.crumbs .sep { opacity: 0.5; }

.crumbs .current { color: var(--ink); }

.listing {
    max-width: 1180px;
    margin: 0 auto;
    padding: 4px 20px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.gallery {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    overflow: hidden;
}

.slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.slide.active { opacity: 1; }

.frame-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.frame-tag svg { width: 13px; height: 13px; color: #4ade80; }

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    transition: background 0.18s ease, transform 0.18s ease;
    opacity: 0;
}

.gallery:hover .nav-arrow,
.nav-arrow:focus-visible { opacity: 1; }

.nav-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.nav-arrow.prev { left: 12px; }
.nav-arrow.next { right: 12px; }
.nav-arrow svg { width: 18px; height: 18px; }

.thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 8px;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.thumb {
    appearance: none;
    border: 2px solid transparent;
    background: var(--bg);
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

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

.thumb:hover { transform: translateY(-1px); }

.thumb.active {
    border-color: var(--green);
}

.thumb.more {
    background: var(--bg);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    display: grid;
    place-items: center;
}

.info {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

h1 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.18;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--ink);
}

.subtitle {
    margin: 6px 0 0;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.5;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.price-main {
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.price-main em {
    font-style: normal;
    color: var(--green);
}

.price-old {
    color: var(--muted);
    font-size: 14px;
    text-decoration: line-through;
}

.price-saving {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
}

.specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    padding: 14px 0;
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
}

.spec {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
}

.spec-label {
    color: var(--muted);
    flex: 0 0 auto;
}

.spec-value {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

.spec-value.green { color: var(--green-dark); }

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}

.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--green);
    color: #fff;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary svg path { stroke: #fff; }
.btn-primary svg rect { fill: rgba(255, 255, 255, 0.18); }

.btn-secondary {
    background: var(--paper);
    color: var(--tg);
    border: 1px solid var(--line);
}
.btn-secondary:hover { background: #f0f9ff; border-color: var(--tg); }
.btn-secondary svg { fill: var(--tg); }

.btn:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink-2);
}

.trust li svg {
    width: 16px;
    height: 16px;
    color: var(--green);
    flex: 0 0 auto;
}

.note {
    margin: 0;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.note svg {
    width: 18px;
    height: 18px;
    color: var(--green);
    flex: 0 0 auto;
    margin-top: 1px;
}

.footer {
    border-top: 1px solid var(--line);
    background: var(--paper);
    margin-top: auto;
}

.footer-in {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.footer-in a {
    color: var(--muted);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

.footer-in a:hover { color: var(--ink); text-decoration-color: var(--ink); }

@media (max-width: 880px) {
    body { font-size: 14px; }
    .topbar-in { padding: 10px 14px; }
    .brand-name strong { font-size: 14px; }
    .brand-name small { font-size: 11px; }
    .topbar-meta { font-size: 12px; }
    .crumbs { padding: 10px 14px 6px; font-size: 12px; }
    .listing {
        padding: 4px 14px 20px;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .gallery { border-radius: 10px; }
    .info { padding: 16px; border-radius: 10px; gap: 14px; }
    .frame-tag { font-size: 11px; padding: 5px 9px; }
    .nav-arrow { display: none; }
    h1 { font-size: 20px; }
    .subtitle { font-size: 13.5px; margin-top: 4px; }
    .price-main { font-size: 26px; }
    .price-saving { font-size: 12px; padding: 3px 8px; }
    .specs { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
    .actions { grid-template-columns: 1fr; }
    .btn { height: 48px; font-size: 14px; }
    .trust { grid-template-columns: 1fr; }
    .thumbs { grid-template-columns: repeat(4, 1fr); }
    .footer-in { padding: 14px; font-size: 12px; gap: 8px; }
}

@media (max-width: 420px) {
    .thumbs { grid-template-columns: repeat(3, 1fr); padding: 6px; gap: 5px; }
    .topbar-meta .verified-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
