/*

Adapted from Tooplate 2163 Spectrum
https://www.tooplate.com/view/2163-spectrum
Free HTML CSS Template

Rebuilt as LESSBUT — stainless steel product marketplace.

*/

/* ============ Root tokens ============ */
:root {
    --white: #F6F7F8;
    --ink: #14181B;
    --steel: #7C8791;
    --silver: #D7DBDE;
    --accent: #2E7D8C;
    --copper: #B5722E;
    --font: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--silver);
    color: var(--ink);
}

a {
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============ Scroll reveal ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Header ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--white);
}

.site-header.scrolled {
    border-bottom: 2px solid var(--ink);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    flex: 0 0 auto;
}

.logo b {
    color: var(--copper);
}

.main-nav {
    display: flex;
    gap: 34px;
    align-items: center;
}

.main-nav a:not(.cart-pill) {
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.12s linear, color 0.12s linear;
}

.main-nav a:not(.cart-pill):nth-of-type(3n+1):hover {
    background: var(--accent);
    color: var(--white);
}

.main-nav a:not(.cart-pill):nth-of-type(3n+2):hover {
    background: var(--silver);
    color: var(--ink);
}

.main-nav a:not(.cart-pill):nth-of-type(3n):hover {
    background: var(--copper);
    color: var(--white);
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--ink);
    color: var(--white);
    padding: 9px 14px 9px 22px;
    border-radius: 40px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cart-pill svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 30px;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.cart-count.bump {
    transform: scale(1.35);
}

.cart-pill:hover {
    background: var(--copper);
}

/* ============ Mobile menu ============ */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    z-index: 210;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--ink);
    margin: 5px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(380px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: var(--ink);
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.18, 1);
    overflow-y: auto;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--white);
    text-decoration: none;
    padding: 12px 0;
    transition: color 0.2s ease;
}

.mobile-menu a:nth-child(3n+1):hover { color: var(--accent); }
.mobile-menu a:nth-child(3n+2):hover { color: var(--silver); }
.mobile-menu a:nth-child(3n):hover { color: var(--copper); }

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ============ Section 1: Hero Color-Block Split ============ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 70px;
}

.hero-left {
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px clamp(32px, 5vw, 80px);
}

.hero-eyebrow {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-left h1 {
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.hero-left h1 em {
    font-style: normal;
    color: var(--copper);
}

.hero-desc {
    margin-top: 28px;
    max-width: 400px;
    font-size: 1.05rem;
    color: #444;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.hero-cta {
    display: inline-block;
    width: fit-content;
    font-weight: 600;
    font-size: 1rem;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 40px;
    transition: background 0.2s ease;
}

.hero-cta:hover {
    background: var(--accent);
}

.hero-cta-ghost {
    display: inline-block;
    width: fit-content;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 40px;
    border: 2px solid var(--ink);
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-cta-ghost:hover {
    background: var(--ink);
    color: var(--white);
}

.hero-right {
    background: var(--silver);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.7s ease;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 60vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    transform: scale(0.86) rotate(-5deg);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    pointer-events: auto;
}

.hero-float {
    width: clamp(220px, 46%, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hero-bob 4.5s ease-in-out infinite;
}

.hero-float svg {
    width: 62%;
    height: 62%;
}

@keyframes hero-bob {
    0%, 100% { transform: translateY(-12px); }
    50% { transform: translateY(12px); }
}

.hero-caption {
    text-align: center;
    color: var(--ink);
}

.hero-caption h3 {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.hero-caption span {
    font-weight: 600;
    font-size: 1rem;
}

.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dots button.active {
    background: var(--ink);
    transform: scale(1.2);
}

.hero-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 10px 16px;
    border-radius: 30px;
    transform: rotate(8deg);
    z-index: 3;
}

/* ============ Section 2: Flash-Color Catalog ============ */
.catalog {
    padding: 120px 0 100px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 20px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

.section-head p {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #666;
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.filter-chip {
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--ink);
    padding: 9px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.filter-chip:hover {
    background: var(--silver);
}

.filter-chip.active {
    background: var(--ink);
    color: var(--white);
}

.filter-chip.active:hover {
    background: var(--ink);
}

.card-hidden {
    display: none !important;
}

.catalog-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 32px 32px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--ink) transparent;
}

.catalog-scroll::-webkit-scrollbar {
    height: 8px;
}

.catalog-scroll::-webkit-scrollbar-thumb {
    background: var(--ink);
    border-radius: 8px;
}

.product-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--white);
    border: 2px solid var(--ink);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: background 0.05s linear;
}

.product-media {
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-media svg,
.product-media img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.05s linear, transform 0.4s ease;
}

.product-info {
    padding: 20px 22px 64px;
    border-top: 2px solid var(--ink);
    position: relative;
}

.product-category {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 6px;
}

.product-card:hover .product-category {
    color: rgba(255, 255, 255, 0.85);
}

.product-info h3 {
    font-weight: 600;
    font-size: 1.15rem;
}

.product-info .price {
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 4px;
    display: block;
}

.add-cart {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: -56px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--ink);
    color: var(--white);
    border: none;
    cursor: pointer;
    padding: 13px 0;
    border-radius: 30px;
    transition: bottom 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.product-card:hover .product-media svg,
.product-card:hover .product-media img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.product-card:hover .add-cart {
    bottom: 18px;
}

.product-card.flash-accent:hover { background: var(--accent); }
.product-card.flash-copper:hover { background: var(--copper); }

.product-card:hover h3,
.product-card:hover .price {
    color: var(--white);
}

/* ============ Section 3: Geometric Divider ============ */
.divider {
    height: 30vh;
    min-height: 240px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.divider svg {
    width: min(900px, 92vw);
    height: 100%;
}

.divider .geo {
    fill: none;
    stroke-width: 2;
}

.geo-copper { stroke: var(--copper); }
.geo-accent { stroke: var(--accent); }

/* ============ Section 4: Sell your product ============ */
.sell-section {
    padding: 100px 0 120px;
    background: var(--white);
}

.sell-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: start;
}

.sell-intro h3 {
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.sell-intro p {
    color: #444;
    max-width: 420px;
}

.sell-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

.sell-preview {
    grid-column: 1 / -1;
}

.sell-preview img {
    max-width: 160px;
    max-height: 160px;
    object-fit: cover;
    border: 2px solid var(--ink);
    border-radius: 8px;
}

.seller-listings {
    margin-top: 88px;
}

.empty-state {
    color: #666;
    font-style: italic;
    padding: 8px 0 24px;
}

.empty-state.hidden {
    display: none;
}

.seller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.seller-grid .product-card {
    flex: initial;
}

.seller-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 2;
}

.remove-listing {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-family: var(--font);
    background: var(--white);
    border: 2px solid var(--ink);
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.remove-listing:hover {
    background: var(--ink);
    color: var(--white);
}

/* ============ Section 5: Accordion of Details ============ */
.accordion-section {
    padding: 100px 0 120px;
}

.accordion {
    max-width: 820px;
    margin: 48px auto 0;
}

.acc-item {
    border-top: 2px solid var(--ink);
    border-left: 4px solid transparent;
    transition: border-left-color 0.3s ease, background 0.3s ease;
}

.acc-item:last-child {
    border-bottom: 2px solid var(--ink);
}

.acc-trigger {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 600;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--ink);
    text-align: left;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.acc-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    position: relative;
}

.acc-icon::before,
.acc-icon::after {
    content: "";
    position: absolute;
    background: var(--copper);
    transition: transform 0.3s ease;
}

.acc-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    transform: translateY(-50%);
}

.acc-icon::after {
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    transform: translateX(-50%);
}

.acc-item.open .acc-icon::after {
    transform: translateX(-50%) scaleY(0);
}

.acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.acc-panel-inner {
    padding: 0 24px 28px;
    font-size: 1.02rem;
    color: #333;
    max-width: 640px;
}

.acc-item.open {
    border-left-color: var(--copper);
    background: rgba(46, 125, 140, 0.06);
}

/* ============ Section 6: Sticker Exit Footer ============ */
.footer {
    position: relative;
    background: var(--white);
    padding: 140px 32px 80px;
    text-align: center;
    overflow: hidden;
}

.contact-wrap {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.contact-title {
    font-weight: 700;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 40px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    text-align: left;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 0;
    padding: 14px 16px;
    width: 100%;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(46, 125, 140, 0.05);
}

.contact-submit {
    grid-column: 1 / -1;
    justify-self: start;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    background: var(--ink);
    border: none;
    cursor: pointer;
    padding: 16px 44px;
    border-radius: 40px;
    transition: background 0.2s ease;
}

.contact-submit:hover {
    background: var(--copper);
}

.form-status {
    grid-column: 1 / -1;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    min-height: 1.2em;
}

.form-status.error {
    color: var(--copper);
}

.sticker {
    position: absolute;
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 1.2rem);
    letter-spacing: 0.05em;
    color: var(--white);
    padding: 12px 22px;
    border-radius: 40px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.sticker:hover {
    transform: rotate(0deg) scale(1.08) !important;
}

.sticker-1 {
    background: var(--copper);
    top: 10px;
    left: 8%;
    transform: rotate(-12deg);
}

.sticker-2 {
    background: var(--silver);
    color: var(--ink);
    top: 30px;
    right: 6%;
    transform: rotate(10deg);
}

.sticker-3 {
    background: var(--accent);
    bottom: 40px;
    left: 18%;
    transform: rotate(7deg);
}

.sticker-4 {
    background: var(--ink);
    bottom: 70px;
    right: 16%;
    transform: rotate(-8deg);
}

/* ============ Site footer ============ */
.site-footer {
    background: var(--ink);
    color: var(--silver);
    padding-top: 56px;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
}

.site-footer-logo {
    display: inline-block;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 14px;
}

.site-footer-logo b {
    color: var(--copper);
}

.site-footer-brand p {
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 320px;
}

.site-footer-col h4 {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.site-footer-col a {
    display: block;
    font-size: 0.92rem;
    color: var(--silver);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.15s ease;
}

.site-footer-col a:hover {
    color: var(--accent);
}

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.82rem;
    color: rgba(215, 219, 222, 0.7);
}

.site-footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer-legal a {
    color: inherit;
    text-decoration: none;
}

.site-footer-legal a:hover {
    color: var(--white);
}

/* ============ Legal pages (Terms / Privacy) ============ */
.legal-header {
    background: var(--white);
    border-bottom: 2px solid var(--ink);
    padding: 20px 0;
}

.legal-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
}

.legal-page {
    padding: 64px 0 100px;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h1 {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 2.8rem);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.legal-updated {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    margin: 40px 0 14px;
}

.legal-content section:first-of-type h2 {
    margin-top: 0;
}

.legal-content p {
    color: #333;
    line-height: 1.8;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============ Product detail modal ============ */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.product-modal.open {
    opacity: 1;
    visibility: visible;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 27, 0.6);
}

.product-modal-panel {
    position: relative;
    z-index: 2;
    width: min(880px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--white);
    border: 2px solid var(--ink);
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.25s ease;
}

.product-modal.open .product-modal-panel {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
    background: var(--ink);
    color: var(--white);
}

.modal-gallery {
    background: var(--silver);
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
}

.modal-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.modal-angle-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.modal-main-image .modal-angle-inner svg,
.modal-main-image .modal-angle-inner img {
    width: 68%;
    height: 68%;
    object-fit: contain;
    filter: none;
}

.modal-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-thumb {
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 8px 10px;
    border: 2px solid var(--ink);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.modal-thumb-image {
    width: 56px;
    height: 56px;
}

.modal-thumb .modal-angle-inner svg,
.modal-thumb .modal-angle-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.modal-thumb.active {
    border-color: var(--accent);
    background: rgba(46, 125, 140, 0.1);
}

.modal-thumb-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.modal-info {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
}

.modal-info h3 {
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -0.02em;
    margin: 8px 0 14px;
}

.modal-info .price {
    font-weight: 700;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 22px;
}

.modal-desc {
    color: #444;
    line-height: 1.75;
    margin-bottom: 32px;
}

.modal-info .add-cart {
    position: static;
    margin-top: auto;
    width: fit-content;
    padding: 14px 40px;
}

/* ============ Cart drawer ============ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(420px, 92vw);
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 260;
    border-left: 2px solid var(--ink);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.18, 1);
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cart-drawer-head h3 {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--silver);
}

.cart-item-media {
    width: 64px;
    height: 64px;
    background: var(--silver);
    border: 2px solid var(--ink);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-media svg,
.cart-item-media img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.cart-item-info h4 {
    font-weight: 600;
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.cart-item-category {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 8px;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--ink);
    border-radius: 30px;
    padding: 4px 6px;
}

.qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: var(--ink);
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-value {
    min-width: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-item-line-total {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.cart-item-remove {
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
    background: none;
    border: none;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: var(--copper);
}

.cart-drawer-foot {
    border-top: 2px solid var(--ink);
    padding-top: 20px;
    margin-top: 16px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.cart-checkout-btn {
    width: 100%;
    justify-self: stretch;
}

/* ============ Checkout modal ============ */
.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.checkout-modal.open {
    opacity: 1;
    visibility: visible;
}

.checkout-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 27, 0.6);
}

.checkout-modal-panel {
    position: relative;
    z-index: 2;
    width: min(920px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border: 2px solid var(--ink);
    padding: 48px clamp(24px, 5vw, 56px);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.25s ease;
}

.checkout-modal.open .checkout-modal-panel {
    transform: translateY(0) scale(1);
}

.checkout-content h2 {
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.payment-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.payment-option input {
    width: auto;
    accent-color: var(--ink);
}

.checkout-summary {
    background: var(--silver);
    border: 2px solid var(--ink);
    padding: 28px;
}

.checkout-summary h3 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.checkout-summary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ink);
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
}

.checkout-summary-item .item-name {
    color: #333;
}

.checkout-summary-item .item-qty {
    color: #666;
    font-weight: 600;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.checkout-summary-total {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid var(--ink);
}

.checkout-summary .sell-note {
    margin-top: 20px;
    border-left-color: var(--copper);
}

.checkout-success {
    text-align: center;
    padding: 40px 20px;
}

.checkout-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.checkout-success h2 {
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 16px;
}

.checkout-success p {
    color: #444;
    max-width: 480px;
    margin: 0 auto 12px;
}

.checkout-success #checkoutDone {
    margin-top: 24px;
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-float { animation: none; }
    .hero-slide { transition: opacity 0.01ms; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .divider svg g { transform: none !important; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .header-inner { padding: 16px 24px; }
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-left { padding: 120px 28px 60px; }
    .hero-right { min-height: 60vh; padding: 50px 0; }
    .catalog { padding: 90px 0 70px; }
    .sell-section { padding: 70px 0 90px; }
    .sell-grid { grid-template-columns: 1fr; gap: 40px; }
    .accordion-section { padding: 70px 0 90px; }
    .footer { padding: 110px 24px 70px; }
    .contact-form { grid-template-columns: 1fr; }
    .product-modal-panel { grid-template-columns: 1fr; }
    .modal-gallery { padding: 32px 24px 24px; }
    .modal-info { padding: 32px 24px 40px; }
    .checkout-grid { grid-template-columns: 1fr; gap: 32px; }
    .checkout-modal-panel { padding: 40px 20px; }
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
    .site-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .site-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .site-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
    .product-card { flex-basis: 78vw; }
    .sticker-3 { left: 4%; }
    .sticker-4 { right: 4%; }
}
