:root {
    --search-green: #123f35;
    --search-green-dark: #092d26;
    --search-cream: #f5f1e8;
    --search-paper: #fffdf8;
    --search-gold: #d59c48;
    --search-ink: #16362f;
    --search-muted: #718078;
    --search-line: rgba(18, 63, 53, .13);
}

.search-modal__content { min-height: 100vh; border: 0; border-radius: 0; color: var(--search-ink); background: var(--search-cream); }
.search-modal { position: fixed; inset: 0; overflow: hidden; }
.search-modal .modal-dialog { width: 100%; max-width: none; height: 100%; margin: 0; }
.search-modal .modal-content { display: flex; height: 100%; min-height: 0; overflow: hidden; }
.search-modal__topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 18px clamp(20px, 5vw, 76px); color: #fff; background: var(--search-green); }
.search-modal__brand { display: inline-flex; align-items: center; gap: 11px; color: #fff !important; font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-decoration: none; }
.search-modal__brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--search-gold); font-size: .63rem; letter-spacing: .02em; }
.search-modal__close { display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 10px 15px; color: #fff; background: transparent; font: inherit; font-size: .72rem; letter-spacing: .04em; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.search-modal__close:hover, .search-modal__close:focus-visible { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.12); transform: translateY(-1px); }
.search-modal__body { flex: 1 1 auto; width: min(1200px, calc(100% - 42px)); min-height: 0; margin: 0 auto; padding: clamp(30px, 4vw, 52px) 0 72px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.search-modal__body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.search-modal__intro { display: block; margin-bottom: 27px; }
.search-modal__intro-copy { min-width: 0; }
.search-modal__kicker { margin: 0 0 14px; color: var(--search-gold); font-size: .69rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.search-modal__intro h2 { margin: 0; color: var(--search-green); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.45rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.06em; line-height: .95; }
.search-modal__input-wrap { display: flex; align-items: center; gap: 17px; border: 1px solid var(--search-green); border-radius: 12px; padding: 0 18px; background: var(--search-paper); box-shadow: 0 16px 40px rgba(13, 52, 43, .08); }
.search-modal__input-wrap > i { color: var(--search-green); font-size: 1.05rem; }
.search-modal__input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 20px 0; color: var(--search-ink); background: transparent; font: inherit; font-size: 1.02rem; }
.search-modal__input:focus, .search-modal__input:focus-visible { outline: none !important; box-shadow: none !important; }
.search-modal__input::placeholder { color: #91a099; }
.search-modal__clear { display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 50%; color: var(--search-green); background: #edf1ec; transition: color .2s ease, background .2s ease; }
.search-modal__clear:hover, .search-modal__clear:focus-visible { color: #fff; background: var(--search-green); }
.search-modal__status { display: flex; align-items: center; gap: 9px; min-height: 45px; margin-top: 22px; color: var(--search-muted); font-size: .78rem; font-weight: 700; }
.search-modal__status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--search-gold); }
.search-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.search-product-grid--results:empty { display: none; }
.search-product-grid--results { margin-top: 4px; margin-bottom: 76px; }
.search-product-card { min-width: 0; overflow: hidden; border: 1px solid var(--search-line); border-radius: 16px; background: var(--search-paper); box-shadow: 0 8px 24px rgba(13, 52, 43, .05); transition: transform .25s ease, box-shadow .25s ease; }
.search-product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 35px rgba(13, 52, 43, .12); }
.search-product-card__media { position: relative; display: block; aspect-ratio: 1 / 1.08; overflow: hidden; background: #e6e2d9; color: #fff; text-decoration: none; }
.search-product-card__media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(8, 29, 24, .58), transparent); opacity: .8; }
.search-product-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; pointer-events: none; }
.search-product-card__media::after, .search-product-card__view { pointer-events: none; }
.search-product-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(18,63,53,.35); font-size: 2rem; background: #e7e3d9; }
.search-product-card:hover .search-product-card__media img { transform: scale(1.05); }
.search-product-card__view { position: absolute; z-index: 1; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: .68rem; font-weight: 700; opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease; }
.search-product-card:hover .search-product-card__view, .search-product-card__media:focus-visible .search-product-card__view { opacity: 1; transform: translateY(0); }
.search-product-card__body { display: flex; min-height: 106px; flex-direction: column; justify-content: space-between; gap: 14px; padding: 16px; }
.search-product-card__body p { overflow: hidden; margin: 0 0 7px; color: var(--search-gold); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.search-product-card__body h4 { overflow: hidden; margin: 0; color: var(--search-ink); font-size: .94rem; font-weight: 650; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.search-product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.search-product-card__footer strong { color: var(--search-green); font-size: .9rem; }
.search-product-card__footer form { margin: 0; }
.search-product-card__footer button { display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 50%; color: #fff; background: var(--search-green); transition: background .2s ease, transform .2s ease; }
.search-product-card__footer button:hover, .search-product-card__footer button:focus-visible { background: var(--search-gold); transform: rotate(90deg); }
.search-section-heading { margin-bottom: 24px; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--search-line); }
.search-section-heading h3 { margin: 0; color: var(--search-green); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 400; letter-spacing: -.04em; }
.search-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 72px 20px; border: 1px dashed rgba(18,63,53,.24); border-radius: 16px; color: var(--search-muted); text-align: center; background: rgba(255,253,248,.58); }
.search-empty i { margin-bottom: 8px; color: var(--search-gold); font-size: 1.8rem; }
.search-empty strong { color: var(--search-green); font-size: 1.1rem; }
.search-empty span { font-size: .84rem; }
@media (max-width: 900px) { .search-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .search-modal__body { width: min(100% - 28px, 1200px); } .search-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; } .search-product-card__body { min-height: 98px; padding: 12px; } .search-product-card__body h4 { font-size: .82rem; } }
@media (max-width: 390px) { .search-product-grid { grid-template-columns: 1fr; } .search-product-card__media { aspect-ratio: 1.35 / 1; } .search-modal__topbar { min-height: 72px; } .search-modal__close span { display: none; } }
