.search-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,0fr);gap:0;align-items:start;transition:grid-template-columns .67s cubic-bezier(.19,1,.22,1),gap .67s cubic-bezier(.19,1,.22,1)}
.search-layout:not([data-phase='idle']){grid-template-columns:minmax(260px,310px) minmax(0,1fr);gap:24px}.search-panel{min-width:0;position:relative;z-index:1;transition:padding .42s ease}.search-layout:not([data-phase='idle']) .search-panel{position:sticky;top:18px;padding:22px}
.search-layout:not([data-phase='idle']) .search-row{flex-direction:column}.search-layout:not([data-phase='idle']) .search-row button{width:100%}
.results-panel{min-width:0;overflow:hidden;opacity:0;transform:translateX(26px);pointer-events:none;transition:opacity .55s ease .12s,transform .67s cubic-bezier(.19,1,.22,1) .08s}
.search-layout:not([data-phase='idle']) .results-panel{opacity:1;transform:translateX(0);pointer-events:auto;overflow:visible}
.results-shell{border:1px solid #443727;border-radius:16px;background:linear-gradient(158deg,#171618,#101012);padding:24px;box-shadow:0 18px 56px #0004}.panel-head{padding-bottom:17px;border-bottom:1px solid #352e24;margin-bottom:14px}.panel-head h2{font-size:clamp(20px,2.5vw,29px);line-height:1.2;letter-spacing:-.025em;margin:11px 0 6px}.panel-head p{color:var(--muted);margin:0;font-size:13px}.status{font-size:13px;color:#d4ad71}.status:empty{display:none}
.loading-title{color:var(--gold)}.shimmer-text{background:linear-gradient(105deg,#9f7c49 7%,#e0bc7e 26%,#ffecbd 37%,#d4a664 49%,#947049 60%,#e4c388 78%);background-size:260% 100%;background-position:150% center;-webkit-background-clip:text;background-clip:text;color:transparent;animation:golden-thought 2.6s linear infinite}
@keyframes golden-thought{to{background-position:-105% center}}.skeleton-list{display:grid;gap:13px}.skeleton-card{display:flex;gap:17px;padding:17px;background:#1e1b19;border-radius:12px;border:1px solid #352b21;min-height:139px}.skeleton-photo{width:105px;min-width:105px;height:105px;border-radius:10px}.skeleton-content{flex:1;display:flex;flex-direction:column;justify-content:center;gap:11px}.skeleton-line{height:11px;width:92%;border-radius:5px}.skeleton-line.short{width:40%;height:8px}.skeleton-line.medium{width:62%}.skeleton-line.price{height:17px;width:35%}.shimmer{position:relative;overflow:hidden;background:#3a3228}.shimmer:after{content:'';position:absolute;inset:0;transform:translateX(-150%);background:linear-gradient(100deg,transparent 5%,#ebc88d55 48%,transparent 75%);animation:gold-sweep 2.1s ease-in-out infinite}@keyframes gold-sweep{to{transform:translateX(170%)}}
.results{display:grid;gap:14px}.result{min-width:0;background:#1b191a;border:1px solid #403528;border-radius:13px;padding:18px;animation:enter .45s cubic-bezier(.15,.8,.2,1) both}@keyframes enter{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
.product-top{display:flex;gap:17px;align-items:center;min-width:0}.product-photo{width:103px;min-width:103px;height:103px;background:#292522;border:1px solid #4a4033;border-radius:11px;display:flex;align-items:center;justify-content:center;overflow:hidden}.product-photo img{width:100%;height:100%;object-fit:contain;background:#eee}.image-fallback{display:flex;align-items:center;justify-content:center;color:#a68757;width:100%;height:100%;font-size:32px}.product-info{flex:1;min-width:0}.code{font-size:12px;letter-spacing:.05em;color:var(--gold);overflow-wrap:anywhere}.product-name{font-size:clamp(17px,2vw,23px);letter-spacing:-.025em;line-height:1.25;margin:7px 0;font-weight:760}.alternative{font-size:10px;color:#bdb5a7}.brand-wordmark{align-self:flex-start;max-width:113px;text-align:right;font-size:11px;letter-spacing:.04em;font-weight:800;color:#dbc295;overflow-wrap:anywhere}.brand-photo{width:84px;min-width:84px;height:43px;display:flex;justify-content:center;align-items:center}.brand-photo img{max-width:100%;max-height:100%;object-fit:contain}.brand-photo .image-fallback{font-size:12px}.offer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #393029;margin-top:16px;padding-top:15px}.offer+.offer{margin-top:13px}.offer-details{min-width:0}.offerprice{font-size:22px;color:var(--gold);font-weight:850;line-height:1.4;margin-top:5px}.stock{font-size:11px;color:#bdb4a6}.chip{display:inline-block;border:1px solid #49604c;background:#14251a;color:#9bdab5;padding:3px 8px;border-radius:5px;font-size:11px}.chip.wait{border-color:#715936;background:#261e13;color:#edc789}.whatsapp{background:#247a4d;color:white;font-size:12px;padding:12px 14px;flex-shrink:0}
@media(max-width:940px){.search-layout:not([data-phase='idle']){grid-template-columns:minmax(235px,270px) minmax(0,1fr);gap:15px}.results-shell{padding:17px}.product-photo{width:85px;min-width:85px;height:85px}.brand-wordmark{max-width:83px}}
@media(max-width:720px){.wrap{width:calc(100% - 30px)}.intro{margin:34px 0 22px}.search-layout,.search-layout:not([data-phase='idle']){grid-template-columns:minmax(0,1fr);gap:14px}.search-layout:not([data-phase='idle']) .search-panel{position:static;padding:17px}.search-layout:not([data-phase='idle']) .search-row{flex-direction:row}.results-panel{max-height:0;transform:translateY(16px);transition:max-height .5s ease,opacity .45s ease,transform .45s ease}.search-layout:not([data-phase='idle']) .results-panel{max-height:none;transform:translateY(0)}.search-row{flex-direction:row}.search-row button{width:auto!important;padding:12px 13px}.card{padding:18px}.product-top{gap:11px}.brand-photo{width:58px;min-width:58px}.brand-wordmark{max-width:60px;font-size:10px}.skeleton-photo{width:75px;min-width:75px;height:75px}.skeleton-card{min-height:105px;padding:12px}.whatsapp{padding:11px 12px}}
@media(max-width:420px){.search-row{flex-direction:column!important}.search-row button{width:100%!important}.product-photo{width:72px;min-width:72px;height:72px}.brand-wordmark{display:none}.product-name{font-size:17px}.offer{flex-direction:column;align-items:stretch}.whatsapp{width:100%}.intro h1{font-size:38px}}
@media(prefers-reduced-motion:reduce){#search-layout *,#search-layout *:before,#search-layout *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* 0.6.1 — image + placeholder occupy exactly the same photo box. */
.product-photo,.brand-photo{position:relative;overflow:hidden;}
.product-photo>img,.brand-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
.image-fallback[hidden]{display:none!important;}
.product-photo>.image-fallback,.brand-photo>.image-fallback{flex:0 0 100%;width:100%;height:100%;}

/* ATK production polish: no overlap between loaded image and fallback. */
.image-fallback[hidden]{display:none!important}
.image-fallback{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.product-photo{position:relative;flex-shrink:0}
.product-photo>img:not(.fallback-atk){position:relative;z-index:1}
.fallback-atk{width:100%;height:100%;object-fit:cover;object-position:54% 50%;border:0;background:#121113!important}
.brand-photo{position:relative}
.brand-photo>img{position:relative;z-index:1}


#search-layout[data-phase="idle"] .results-panel { display: none; }
#search-layout[data-phase="idle"] { grid-template-columns: minmax(0, 1fr); gap: 0; }
#search-layout .status:empty { display: none; }
#search-layout .search-input-wrap { min-height: 52px; }
#search-layout .results { grid-template-columns: minmax(0, 1fr); }
#search-layout .result { overflow-wrap: anywhere; }
#search-layout .gold-button { min-width: 0; }
@media (min-width:721px) {
  #search-layout:not([data-phase="idle"]) .search-input-wrap { flex: auto; }
}

.search-input-wrap { position:relative }
.part-suggestions { position:absolute; z-index:12; top:calc(100% + 5px); inset-inline:0; background:#211e1b; border:1px solid #786344; border-radius:6px; padding:4px; box-shadow:0 8px 24px #0006 }
.part-suggestion { display:block; padding:10px; border-radius:4px; cursor:pointer; color:#f5e5cb }
.part-suggestion:hover,.part-suggestion[aria-selected=true] { background:#41372b }
.offer { flex-wrap:wrap }
.offer-actions,.basket-controls { display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.offer-actions .whatsapp { width:auto; text-align:center }
.basket-gold,.basket-plain { font:inherit; padding:10px 13px; border-radius:6px; cursor:pointer }
.basket-gold { background:#e8c68f; border:1px solid #d8b67d; color:#21190d; font-weight:700 }
.offer-actions .basket-gold { font-size:13px }
.basket-plain { color:#e8c68f; background:transparent; border:1px solid #62523e }
.vin-tabs .basket-toggle { margin-inline-start:auto; color:#f3d9ac }
.basket-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
.atk-cart { box-sizing:border-box; color-scheme:dark; color:#f7f0e6; background:#171618; border:1px solid #6b5639; border-radius:14px; padding:clamp(16px,3vw,28px); width:min(540px,calc(100% - 24px)); max-height:88vh; overflow:auto; margin:auto; box-shadow:0 22px 70px #0009 }
.atk-cart::backdrop { background:#080809bb }
.basket-header,.basket-line { display:flex; justify-content:space-between; align-items:center; gap:14px }
.basket-header h2 { margin:0 }
.basket-line { padding:14px 0; border-bottom:1px solid #43392d; flex-wrap:wrap }
.basket-detail { display:grid; gap:3px; flex:1 1 200px; overflow-wrap:anywhere }
.basket-detail small,.basket-contact small { color:#cbbda8 }
.basket-qty,.basket-contact input { font:inherit; background:#100f11; border:1px solid #756044; border-radius:5px; padding:9px; color:#fff; min-width:0 }
.basket-qty { width:4.3em }
.basket-contact { display:grid; gap:12px }
.basket-contact label { display:grid; gap:4px }
.basket-contact[hidden],.part-suggestions[hidden] { display:none }
.basket-total { color:#efd4a6; font-weight:700 }
.basket-feedback { color:#f1d6a8; margin-bottom:0 }
.basket-feedback:empty { display:none }
.winter-note { display:grid; gap:4px; padding:12px 15px; border-inline-start:2px solid #a38352; color:#d8cbb9; font-size:14px; line-height:1.5 }
.winter-note strong,.winter-note a { color:#e8c68f }
.winter-note a { width:fit-content; text-decoration:underline }
.winter-vin { display:none; margin:12px 0 }
#vin-status.vin-loading + .winter-vin { display:block }
