/*! Kazmi Carpets - announcement bar + product search overlay */

:root { --kzb-h: 42px; }

/* ---------------- announcement bar ---------------- */
.kzb-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--kzb-h);
  z-index: 950;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  background: #241A13;
  color: #F6F1E8;
  border-bottom: 1px solid rgba(139, 106, 60, .5);
}
body.admin-bar .kzb-bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .kzb-bar { top: 46px; } }

.kzb-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(200,183,154,.16) 48%, transparent 66%);
  transform: translateX(-100%);
  animation: kzbShine 7s ease-in-out 2s infinite;
}
@keyframes kzbShine { 0% { transform: translateX(-100%); } 22%, 100% { transform: translateX(120%); } }

.kzb-bar__msg {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.kzb-bar__msg svg { width: 16px; height: 16px; color: #C8B79A; flex: 0 0 auto; }
.kzb-bar__dot { width: 4px; height: 4px; border-radius: 50%; background: #8B6A3C; flex: 0 0 auto; }
.kzb-bar__count {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #C8B79A;
  white-space: nowrap;
}
.kzb-bar__count b { color: #F6F1E8; font-weight: 500; font-variant-numeric: tabular-nums; }

@media (max-width: 620px) {
  .kzb-bar { gap: 10px; padding: 0 12px; }
  .kzb-bar__msg { font-size: 10.5px; letter-spacing: .08em; }
  .kzb-bar__msg .kzb-long { display: none; }
  .kzb-bar__count { font-size: 10px; }
  .kzb-bar__count .kzb-lbl { display: none; }
}

/* the floating header drops below the bar */
body.kazmi-has-topbar #kc-header { top: calc(var(--kzh-gap, 18px) + var(--kzb-h)); }
body.kazmi-has-topbar.admin-bar #kc-header { top: calc(var(--kzh-gap, 18px) + var(--kzb-h) + 32px); }
@media (max-width: 782px) {
  body.kazmi-has-topbar.admin-bar #kc-header { top: calc(var(--kzh-gap, 18px) + var(--kzb-h) + 46px); }
}
body.kazmi-has-topbar .kzh-panel { top: calc(var(--kzh-gap, 18px) + var(--kzb-h) + 74px); }

@media (prefers-reduced-motion: reduce) {
  .kzb-bar::after { animation: none !important; opacity: 0; }
}
/* ---------------- search button in the header ---------------- */
.kzs-btn {
  margin-left: 6px;
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(139, 106, 60, .5);
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #241A13;
  padding: 0;
  transition: background-color .3s ease, transform .2s ease;
}
.kzs-btn:hover { background: rgba(139, 106, 60, .12); }
.kzs-btn:active { transform: scale(.94); }
.kzs-btn:focus-visible { outline: 2px solid #8B6A3C; outline-offset: 3px; }
.kzs-btn svg { width: 18px; height: 18px; }

/* ---------------- search overlay ---------------- */
.kzs-ovl {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  background: rgba(20, 14, 10, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.kzs-ovl.is-open { opacity: 1; visibility: visible; }
.kzs-ovl__panel {
  margin-top: 14vh;
  width: min(680px, 92%);
  transform: translateY(-14px) scale(.98);
  opacity: 0;
  transition: transform .5s cubic-bezier(.16,.8,.24,1), opacity .4s ease;
}
.kzs-ovl.is-open .kzs-ovl__panel { transform: none; opacity: 1; }
.kzs-ovl__field {
  display: flex; align-items: center; gap: 14px;
  background: #F6F1E8;
  border: 1px solid #C8B79A;
  border-radius: 999px;
  padding: 6px 8px 6px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.kzs-ovl__field svg { width: 22px; height: 22px; color: #8B6A3C; flex: 0 0 auto; }
.kzs-ovl__field input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 16px; color: #241A13; padding: 14px 0; min-width: 0;
}
.kzs-ovl__field input::placeholder { color: #9A8A76; }
.kzs-ovl__go {
  border: 0; background: #241A13; color: #F6F1E8;
  border-radius: 999px; padding: 13px 26px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background-color .3s ease;
}
.kzs-ovl__go:hover { background: #8B6A3C; }
.kzs-ovl__quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; justify-content: center; }
.kzs-ovl__quick a {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: #F6F1E8; text-decoration: none;
  border: 1px solid rgba(246,241,232,.4);
  border-radius: 999px; padding: 9px 16px;
  opacity: 0; transform: translateY(8px);
  transition: background-color .3s ease, border-color .3s ease;
}
.kzs-ovl__quick a:hover { background: rgba(246,241,232,.14); border-color: #F6F1E8; }
.kzs-ovl.is-open .kzs-ovl__quick a { animation: kzsQuick .5s cubic-bezier(.16,.8,.24,1) forwards; }
.kzs-ovl.is-open .kzs-ovl__quick a:nth-child(1) { animation-delay: .16s; }
.kzs-ovl.is-open .kzs-ovl__quick a:nth-child(2) { animation-delay: .22s; }
.kzs-ovl.is-open .kzs-ovl__quick a:nth-child(3) { animation-delay: .28s; }
.kzs-ovl.is-open .kzs-ovl__quick a:nth-child(4) { animation-delay: .34s; }
.kzs-ovl.is-open .kzs-ovl__quick a:nth-child(5) { animation-delay: .40s; }
@keyframes kzsQuick { to { opacity: 1; transform: none; } }

.kzs-ovl__close {
  position: absolute; top: 22px; right: 24px;
  width: 44px; height: 44px;
  border: 1px solid rgba(246,241,232,.4);
  background: transparent; border-radius: 50%;
  color: #F6F1E8; cursor: pointer; font-size: 20px; line-height: 1;
}
.kzs-ovl__close:hover { background: rgba(246,241,232,.14); }
.kzs-ovl__hint {
  text-align: center; color: rgba(246,241,232,.7);
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-top: 20px;
}

@media (max-width: 620px) {
  .kzs-ovl__panel { margin-top: 10vh; width: 94%; }
  .kzs-ovl__field { padding: 6px 6px 6px 16px; gap: 8px; }
  .kzs-ovl__field input { font-size: 16px; padding: 12px 0; }
  .kzs-ovl__go { padding: 12px 16px; font-size: 11px; letter-spacing: .12em; }
  .kzs-ovl__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .kzs-ovl, .kzs-ovl__panel, .kzs-ovl__quick a { transition: none !important; animation: none !important; }
  .kzs-ovl.is-open .kzs-ovl__quick a { opacity: 1; transform: none; }
}