.search-panel {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: transform .3s, opacity .2s, visibility 0s linear .3s;
}

.search-panel.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.search-panel:not(.is-open) {
    pointer-events: none;
}

.search-close {
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
}

.search-results {
    display: none;
    max-width: 720px;
    padding-top: 10px;
}

.search-results.has-results {
    display: block;
}

.search-result {
    width: 100%;
    display: grid;
    grid-template-columns: 11px 1fr auto;
    align-items: center;
    gap: 11px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

.search-result:hover {
    background: rgba(22, 184, 173, .08);
}

.search-result strong,
.search-result small {
    display: block;
}

.search-result strong {
    font-size: 13px;
}

.search-result small,
.search-result b,
.no-results {
    font: 9px var(--mono);
    color: var(--muted);
}

.search-result b {
    color: var(--ink);
    white-space: nowrap;
}

.search-result-swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

.search-result-swatch.red { background: var(--red); }
.search-result-swatch.yellow { background: var(--yellow); }
.search-result-swatch.graphite { background: #636361; }
.search-result-swatch.mist { background: #d7d8d2; }
.search-result-swatch.steel { background: #afb2b1; }
.no-results { margin: 10px 0 0; }

.collection-card .yellow-lines {
    transform: rotate(-20deg) scale(1.2) !important;
}

.modal-visual.has-image {
    background: var(--paper);
}

.modal-visual.has-image img {
    mix-blend-mode: normal;
    object-fit: contain;
}

@keyframes filan-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes filan-reveal {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}

.collection-card,
.product-card,
.spare-card {
    animation: filan-rise .65s both;
    animation-timing-function: cubic-bezier(.2, .75, .25, 1);
}

.collection-card:nth-child(2),
.product-card:nth-child(2),
.spare-card:nth-child(2) { animation-delay: .08s; }
.collection-card:nth-child(3),
.product-card:nth-child(3),
.spare-card:nth-child(3) { animation-delay: .16s; }
.product-card:nth-child(4),
.spare-card:nth-child(4) { animation-delay: .24s; }
.product-card:nth-child(5) { animation-delay: .32s; }
.product-card:nth-child(6) { animation-delay: .4s; }

.collection-card:hover,
.product-card:hover,
.spare-card:hover {
    transform: translateY(-7px) !important;
}

.collection-card:hover .card-art,
.product-card:hover .product-visual,
.spare-card:hover .spare-visual {
    filter: saturate(1.12) brightness(1.04);
}

.collection-card .card-art,
.product-card .product-visual,
.spare-card .spare-visual {
    transition: filter .3s ease, transform .3s ease;
}

.collection-card:hover .line-art {
    transform: rotate(-20deg) scale(1.38);
}

.button,
.add-button,
.round-arrow,
.social-links a,
.cart-button,
.search-toggle {
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.button:hover,
.add-button:hover,
.round-arrow:hover {
    transform: translateY(-2px);
}

.product-card:hover .add-button,
.spare-card:hover .add-button {
    background: var(--ink);
    color: var(--paper);
}

.product-image,
.spare-image {
    transition: transform .45s cubic-bezier(.2, .75, .25, 1);
}

.product-card:hover .product-image,
.spare-card:hover .spare-image {
    transform: scale(1.045);
}

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

.cart-item {
    align-items: flex-start;
}

.cart-item-main {
    min-width: 0;
}

.cart-item-main p {
    max-width: 220px;
}

.cart-item-side {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cart-item-side strong {
    white-space: nowrap;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    border: 1px solid var(--line);
    padding: 4px 8px;
    font: 11px var(--mono);
}

.quantity-control button,
.remove-item {
    display: grid;
    place-items: center;
    color: var(--ink);
}

.quantity-control button {
    width: 18px;
    height: 18px;
    font-size: 17px;
}

.quantity-control button:hover,
.remove-item:hover {
    color: var(--red);
}

.remove-item {
    font-size: 21px;
    line-height: 1;
}

.product-buy,
.spare-buy {
    gap: 8px;
}

.card-quantity {
    width: 48px;
    height: 31px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    padding: 0 5px;
    text-align: center;
    font: 11px var(--mono);
}

.card-quantity:focus {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.product-buy .add-button,
.spare-buy .add-button {
    flex: 0 0 auto;
}

.floating-cart {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    z-index: 7;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.9);
    transition: opacity .25s, transform .25s, visibility 0s linear .25s;
    box-shadow: 0 9px 25px rgba(33, 31, 32, .2);
}

.floating-cart.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

.floating-cart svg {
    width: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floating-cart b {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal);
    color: var(--ink);
    font: 10px var(--mono);
}

.floating-cart:not(.has-items) b {
    background: var(--paper);
    color: var(--muted);
}

.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floating-cart:hover {
    background: var(--teal);
    color: var(--ink);
    transform: translateY(-3px) scale(1.03);
}

.social-footer {
    grid-column: 1 / -1;
    margin-top: 64px;
    padding: 0;
    background: transparent;
    color: #f4f2ed;
    text-align: left;
}

.social-footer h2 {
    margin: 0 0 18px;
    color: var(--teal);
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -.03em;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #f4f2ed;
    transition: color .2s, transform .2s;
}

.site-footer {
    background: #091321;
    color: #f4f2ed;
}

.site-footer .footer-links p {
    color: var(--teal);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 24px;
}

.site-footer .footer-links a,
.site-footer .footer-brand p {
    color: #f4f2ed;
}

.site-footer .footer-bottom {
    border-top-color: rgba(244, 242, 237, .22);
    color: rgba(244, 242, 237, .62);
}

.social-links a:hover {
    color: var(--teal);
    transform: translateY(-2px);
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-links a:first-child svg,
.social-links a:nth-child(3) svg {
    fill: currentColor;
    stroke: none;
}

@media(max-width:800px){
    .floating-cart{right:18px;bottom:18px;width:54px;height:54px}
    .social-footer{text-align:left}
}

.brand img,
.checkout-header .checkout-brand img {
    height: 48px;
    object-fit: contain;
}

.site-header .brand img,
.site-footer .brand img {
    filter: brightness(0) invert(1);
}
