/* Quiet entry points beneath the global search field. */
body .searchbar { overscroll-behavior: contain; }
/* Avoid a transformed containing block: the close control stays visible while scrolling. */
body #searchbar.open { transform: none; }
body #searchbar .searchbar-close { position: fixed; inset: 12px 16px auto auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; z-index: 2; }
body #searchbar .search-discovery {
    width: min(100% - 96px, 1000px);
    margin: clamp(80px, 10vh, 112px) auto 64px;
    color: #333;
}
body #searchbar .search-discovery[hidden] { display: none; }
body #searchbar .search-discovery-section + .search-discovery-section { margin-top: 80px; }
body #searchbar .search-discovery h2 {
    margin: 0;
    text-align: center;
    font: 300 30px/1.4 "Raleway", sans-serif;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #767676;
}
body #searchbar .search-brand-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 912px;
    margin: 32px auto 0;
    gap: 32px;
}
body #searchbar .search-brand-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 13px;
    min-height: 100px;
    padding: 12px 8px;
    opacity: .72;
    transition: opacity .2s ease;
}
body #searchbar .search-brand-link img { display: block; object-fit: contain; max-width: 100%; }
body #searchbar .search-brand-symbol { width: 28px; height: 28px; }
body #searchbar .search-brand-wordmark { width: 144px; height: 26px; }
body #searchbar .search-brand-link--rolex .search-brand-wordmark { width: 96px; }
body #searchbar .search-brand-link--richard-mille .search-brand-wordmark { width: 175px; }
body #searchbar .search-collections-slider { margin-top: 32px; width: 100%; }
body #searchbar .search-collections-slider:not(.swiper-initialized) { overflow-x: auto; scroll-snap-type: x mandatory; }
body #searchbar .search-collection-links { display: flex; align-items: flex-start; }
body #searchbar .search-collection-link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-shrink: 0;
    gap: 18px;
    padding: 0;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;
}
body #searchbar .search-collections-slider:not(.swiper-initialized) .search-collection-link { width: 31%; margin-right: 24px; }
body #searchbar .search-collection-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #f5f5f3;
}
body #searchbar .search-collection-name { font-size: 18px; line-height: 1.4; font-weight: 400; text-align: left; text-transform: uppercase; }
body #searchbar .search-collection-controls { display: flex; align-items: center; gap: 40px; margin-top: 24px; }
body #searchbar .search-collection-controls[hidden] { display: none; }
body #searchbar .search-collection-scrollbar { position: relative; flex: 1; height: 2px; background: #e7e7e4; }
body #searchbar .search-collection-scrollbar .swiper-scrollbar-drag { background: #888; cursor: grab; }
body #searchbar .search-collection-arrows { display: flex; gap: 12px; }
body #searchbar .search-collection-arrows button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: #777; cursor: pointer; -webkit-appearance: none; }
body #searchbar .search-collection-arrows button:disabled { opacity: .3; cursor: default; }
body #searchbar .search-collection-arrows svg { color: inherit; }
body #searchbar .search-collection-arrows button:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
body #searchbar .search-discovery a:focus-visible { outline: 1px solid #9b7658; outline-offset: 6px; }
body .searchbar-recent { width: min(100% - 48px, 785px); margin-bottom: 0; }
body .searchbar-recent-item { text-align: left; background: none; border: 0; padding: 0; }
html[data-theme="dark"] body #searchbar .search-discovery { color: #e4e4e4; }
html[data-theme="dark"] body #searchbar .search-brand-link img { filter: brightness(0) invert(1); }
html[data-theme="dark"] body #searchbar .search-discovery h2,
html[data-theme="dark"] body #searchbar .search-collection-arrows button { color: #aaa; }
html[data-theme="dark"] body #searchbar .search-collection-scrollbar { background: #38383b; }
@media (hover: hover) {
    body #searchbar .search-brand-link:hover { opacity: 1; }
    body #searchbar .search-collection-link:hover { color: #9b7658; }
}
@media (max-width: 1279px) {
    body #searchbar .search-discovery h2 { font-size: 24px; }
}
@media (max-width: 900px) {
    body #searchbar .search-discovery { width: min(100% - 48px, 680px); }
    body #searchbar .search-collection-name { font-size: 16px; }
}
@media (max-width: 600px) {
    body #searchbar .search-discovery { margin-top: 72px; margin-bottom: 40px; }
    body #searchbar .search-discovery h2 { font-size: 24px; }
    body #searchbar .search-discovery-section + .search-discovery-section { margin-top: 56px; }
    body #searchbar .search-brand-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
    body #searchbar .search-brand-link { min-height: 80px; padding: 8px 0; gap: 10px; }
    body #searchbar .search-brand-symbol { width: 24px; height: 24px; }
    body #searchbar .search-brand-wordmark { width: 104px; height: 22px; }
    body #searchbar .search-brand-link--rolex .search-brand-wordmark { width: 70px; }
    body #searchbar .search-brand-link--richard-mille .search-brand-wordmark { width: 144px; }
    body #searchbar .search-collection-name { font-size: 16px; }
    body #searchbar .search-collections-slider { width: calc(100% + 24px); margin-top: 28px; }
    body #searchbar .search-collections-slider:not(.swiper-initialized) .search-collection-link { width: 85%; margin-right: 16px; }
    body #searchbar .search-collection-controls { margin-top: 18px; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    body #searchbar .search-discovery a { transition: none; }
}

@media (max-width: 1180px) {
    body #searchbar::before { content: ""; position: fixed; inset: 0 0 auto; height: 60px; background: inherit; z-index: 1; pointer-events: none; }
}

/* A single toolbar row: query, clear, magnifier and close share one baseline. */
@media(max-width:1180px){
 body #searchbar .searchbar-top{position:sticky;top:0;z-index:3;padding:20px 24px 16px;margin:0;background:inherit}
 body #searchbar::before{display:none}
 body #searchbar .searchbar-input-wrapper{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:4px;width:100%;min-width:0}
 body #searchbar .global-search-input{width:100%!important;min-width:0;max-width:100%;text-align:left;padding:10px 0;font-size:24px;transition:none}
 body #searchbar .global-search-input::placeholder{padding-left:0}
 body #searchbar .find{position:static;display:flex;gap:8px;align-items:center;flex:none}
 body #searchbar .find-clear{white-space:nowrap;font-size:11px;line-height:44px}
 body #searchbar .find-divider{height:20px}
 body #searchbar .find-icon,body #searchbar .searchbar-close{position:relative;inset:auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:none;width:44px;min-width:44px;height:44px;margin:0;padding:11px}
 body #searchbar .searchbar-close svg{width:19px;height:19px;flex:none}
 body #searchbar .searchbar-subtitle{margin-top:12px;max-width:340px;font-size:12px;line-height:1.5}
 body #searchbar{transition:transform .3s ease,visibility .3s;scroll-padding-top:136px}
}
@media(prefers-reduced-motion:reduce){body #searchbar{transition:none}}

/* One brand result, with clear destinations for brands in more than one category. */
body .searchbar-result-category.dc-search-brand{display:flex;align-items:center;gap:28px;padding:24px 0;min-height:100px;border-bottom:1px solid rgba(128,128,128,.2)}
body .dc-search-brand-logo{display:flex;align-items:center;justify-content:center;flex:0 0 120px;height:60px;overflow:visible}
body .dc-search-brand-logo img{display:block;width:100%;height:100%;max-width:120px;object-fit:contain;object-position:center;filter:brightness(0)}
html[data-theme=dark] body .dc-search-brand-logo img{filter:brightness(0) invert(1)}
body .dc-search-brand-body{flex:1;display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0}
body .dc-search-brand-links{display:flex;flex-wrap:wrap;gap:12px 24px;font:400 14px/1.5 Raleway,sans-serif}
body .dc-search-brand-links a{padding:8px 0;color:inherit;text-decoration:none;transition:color .15s}
body .dc-search-brand-links a:hover{color:#b58358}
@media(max-width:700px){body .searchbar-result-category.dc-search-brand{gap:20px}body .dc-search-brand-logo{flex-basis:88px;height:48px}body .dc-search-brand-body{display:block}body .dc-search-brand-body .searchbar-result-category-title{font-size:24px;margin:0 0 10px}body .dc-search-brand-links{font-size:12px;gap:4px 18px}}
