/* Coocase – dark like the photos (black backgrounds), the logo's red as accent, readable on every screen */
:root {
    --bg: #0a0a0b; --panel: #141416; --panel2: #1b1b1e; --line: #2a2a2e; --text: #ececee; --muted: #9a9aa2;
    --red: #d2282b; --red2: #ef4446; --radius: 12px; --wrap: 1180px;
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--red2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h2 { font-size: 1.5rem; }
h3, .h3 { font-size: 1.15rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); margin: 0 0 .4em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(10, 10, 11, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .14em; font-size: 1.15rem; flex: 0 0 auto; }
.site-header nav { min-width: 0; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--red); }
.site-header nav { display: flex; gap: 6px; }
.site-header nav a { color: var(--text); padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: var(--panel2); text-decoration: none; }

main.wrap { padding-top: 28px; padding-bottom: 60px; }

/* the start */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: var(--radius);
    background: radial-gradient(ellipse at 80% 50%, #2a0d0e 0%, var(--panel) 60%); border: 1px solid var(--line); margin-bottom: 24px; }
.hero > div { flex: 1 1 320px; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.hero img { flex: 0 0 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--panel); font-weight: 600; font-size: .95rem; }
.chips a:hover { border-color: var(--red); text-decoration: none; }

/* the cases */
.model { margin-bottom: 36px; scroll-margin-top: 80px; }
.model > h2 { border-left: 4px solid var(--red); padding-left: 12px; }
.grid { display: flex; flex-wrap: wrap; gap: 18px; }
.card { flex: 1 1 260px; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: #3a3a40; }
.card-image { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #232327 0%, #121214 70%); padding: 24px; min-height: 170px; }
.card-body { padding: 16px 18px 18px; }
.card h3 a { color: var(--text); }
.price { color: var(--text); font-weight: 800; font-size: 1.2rem; margin: .3em 0; }
.variants { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.variants a { display: inline-block; font-size: .85rem; padding: 3px 10px; border-radius: 999px; background: var(--panel2); color: var(--text); }

/* one case */
.crumbs { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.crumbs span { margin: 0 6px; }
.product { display: flex; flex-wrap: wrap; gap: 32px; }
.product-photo { flex: 1 1 380px; }
.main-photo { display: flex; align-items: center; justify-content: center; max-width: 560px; background: #000; border-radius: var(--radius); overflow: hidden; }
.product-photo img#main-img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 300px); min-height: 200px; object-fit: contain; }
.product-info { flex: 1 1 340px; }
.views { list-style: none; padding: 0; margin: 12px 0 0; max-width: 560px; display: flex; flex-wrap: wrap; gap: 10px; }
.views li { flex: 0 0 calc(25% - 8px); margin: 0; }
.views a { display: block; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #000; color: var(--muted); font-size: .8rem; text-align: center; }
.views a[aria-current] { border-color: var(--red); }
.views img { display: block; width: 100%; height: 90px; object-fit: contain; }
.views span { display: block; padding: 2px 0 4px; }
.main-photo { display: block; cursor: zoom-in; }
picture { display: contents; }
.lightbox:not([open]) { display: none; }
.lightbox { max-width: 96vw; max-height: 96vh; padding: 0; border: 0; border-radius: 10px; background: #000; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { display: block; max-width: 92vw; max-height: 90vh; width: auto; height: auto; }
.lightbox-close { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.description { color: #d3d3d8; }
.others { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.others a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: .9rem; width: 170px; }
.others a:hover { border-color: var(--red); text-decoration: none; }

/* panels, forms, buttons */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.button { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 700; cursor: pointer; }
.button:hover { background: var(--red2); text-decoration: none; }
.button.danger { background: transparent; border: 1px solid var(--red); color: var(--red2); }
.form label { display: block; font-weight: 600; margin-bottom: 14px; }
.form small { font-weight: 400; color: var(--muted); }
.form input, .form textarea, .form select { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; }
.notice p { margin: 0; }
.notice.ok { background: #0f2a18; border: 1px solid #1f5e33; }
.notice.error { background: #2a0f10; border: 1px solid #6e1f22; }
.table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; }
pre { background: var(--bg); padding: 12px; border-radius: 8px; overflow-x: auto; }

/* footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; padding-bottom: 28px; }

@media (max-width: 600px) {
    .hero { padding: 22px; }
    .brand span { font-size: 1rem; letter-spacing: .1em; }
    .site-header nav a { padding: 6px 10px; }
    .views { gap: 6px; } .views li { flex-basis: calc(25% - 5px); } .views img { height: 70px; }
    .panel { padding: 20px; }
    .card { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
