/* Qalta Bedniereba: new parts of the site from the client's WhatsApp list of 24.11.2026:
   - a search field in the top bar ("the search field should be easier to see, it is hidden"),
   - four photo tiles on the home page between "ფასდაკლებები" and "ახალი პროდუქცია",
   - a new footer ("more beautiful"),
   - one shared phone number on the contact page ("weird numbers"; one number for all branches now).
   Written by hand (qb-white.css is generated). Uses the white design's colours, so dark mode works too.
   Loaded after qb-white.css by common/header.twig (both copies). */

/* ---------- Search field in the top bar ---------- */
html.qb-themed .qb-head-search {
  display: flex;
  align-items: center;
  flex: 0 1 460px;
  min-width: 200px;
  height: 40px; /* the same as the round buttons: the top bar keeps its height */
  margin: 0 28px;
  padding: 0 4px 0 20px;
  background: var(--qb-input-bg);
  border: 1.5px solid var(--qb-header-text);
  border-radius: 999px;
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.25s ease;
}
/* The field takes the free space; the links on the left keep one line each. */
html.qb-themed .header-top ul { flex-shrink: 0; }
html.qb-themed .header-top ul li a { white-space: nowrap; }
html.qb-themed .qb-head-search:focus-within { box-shadow: 0 0 0 4px var(--qb-accent-soft); }
html.qb-themed .qb-head-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--qb-text);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.3px;
  -webkit-appearance: none;
  appearance: none;
}
html.qb-themed .qb-head-search input::placeholder { color: var(--qb-text); opacity: 0.62; }
html.qb-themed .qb-head-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
html.qb-themed .qb-head-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--qb-accent);
  color: var(--qb-accent-text);
  transition: transform 0.2s ease;
}
html.qb-themed .qb-head-search button:hover { transform: scale(1.06); }
html.qb-themed .qb-head-search button svg,
html.qb-themed .qb-search-toggle svg { width: 17px; height: 17px; }
html.qb-themed .qb-search-toggle { display: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
html.qb-themed .qb-search-toggle .icon { color: var(--qb-header-icon, var(--qb-header-text)); }
html.qb-themed .qb-search-toggle:focus { outline: none; }
html.qb-themed .qb-search-toggle:focus-visible .icon { outline: 2px solid var(--qb-accent); outline-offset: 2px; }

/* Computers: the field sits in the top bar on every page, so the home page's own search bar above the banner
   (light grey, half under the menu on wide screens) is not shown twice. */
@media (min-width: 1200px) {
  html.qb-themed .carousel .search { display: none !important; }
}
/* Smaller screens: a magnifier button in the top bar opens the field under the bar. */
@media (max-width: 1199.98px) {
  html.qb-themed .qb-search-toggle { display: flex; }
  html.qb-themed .qb-head-search {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 5;
    min-width: 0;
    height: 50px;
    margin: 0;
    box-shadow: var(--qb-shadow-hover);
  }
  html.qb-themed.qb-search-open .qb-head-search { display: flex; }
  html.qb-themed .qb-head-search input { font-size: 16px; } /* 16 px: phones do not zoom into the field */
  /* The home page's own search bar stays here; easier to see now. */
  html.qb-themed .carousel .search { border: 1.5px solid var(--qb-text); }
  html.qb-themed .carousel .search input::placeholder { color: var(--qb-text) !important; opacity: 0.62; }
}

/* ---------- Home page: four photo tiles (Admin > Design > Banners) ---------- */
html.qb-themed .qb-tiles { margin: 50px 0 80px; }
html.qb-themed .qb-tiles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
html.qb-themed .qb-tile {
  position: relative;
  display: block;
  overflow: hidden;
  height: 0;
  padding-top: 125%; /* 4:5, like the client's example */
  border-radius: var(--qb-radius);
  background: var(--qb-surface-2);
  box-shadow: var(--qb-shadow);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
html.qb-themed .qb-tile img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.qb-themed .qb-tile::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.32) 55%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
html.qb-themed .qb-tile__title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  font-family: var(--qb-font-heading);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
html.qb-themed .qb-tile:hover,
html.qb-themed .qb-tile:focus { color: #fff; text-decoration: none; }
html.qb-themed .qb-tile:focus-visible { outline: 3px solid var(--qb-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  html.qb-themed .qb-tile:hover img { scale: 1.06; }
}
@media (max-width: 991.98px) {
  html.qb-themed .qb-tiles { margin-bottom: 60px; }
  html.qb-themed .qb-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  html.qb-themed .qb-tile__title { left: 14px; right: 14px; bottom: 13px; font-size: 18px; }
}

/* ---------- Footer ---------- */
html.qb-themed footer.qb-footer { padding: 72px 0 0; border-top: 1px solid var(--qb-line) !important; }
html.qb-themed .qb-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}
html.qb-themed .qb-footer__logo { display: inline-block; }
html.qb-themed .qb-footer__logo img { display: block; width: auto; max-width: 220px; height: auto; max-height: 64px; }
html.qb-themed .qb-footer__about {
  max-width: 330px;
  margin: 18px 0 24px;
  color: var(--qb-footer-text);
  font-size: 14px;
  line-height: 1.75;
}
html.qb-themed .qb-footer__social { display: flex; gap: 12px; }
html.qb-themed .qb-footer .qb-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--qb-surface);
  color: var(--qb-footer-title);
  box-shadow: inset 0 0 0 1px var(--qb-line), 0 8px 18px -14px rgba(0, 0, 0, 0.45);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
html.qb-themed .qb-footer .qb-footer__social a:hover {
  background: var(--qb-accent);
  color: var(--qb-accent-text);
  transform: translateY(-2px);
}
html.qb-themed .qb-footer__social svg { width: 19px; height: 19px; }
html.qb-themed .qb-footer__title {
  margin-bottom: 22px;
  color: var(--qb-footer-title);
  font-family: var(--qb-font-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.35;
}
html.qb-themed .qb-footer__list { margin: 0; padding: 0; list-style: none; }
html.qb-themed .qb-footer__list li + li { margin-top: 13px; }
html.qb-themed .qb-footer a { color: var(--qb-footer-text); text-decoration: none; transition: color 0.2s ease; }
html.qb-themed .qb-footer a:hover { color: var(--qb-footer-title); text-decoration: none; }
html.qb-themed .qb-footer__list a,
html.qb-themed .qb-footer__line { font-size: 14px; line-height: 1.55; }
html.qb-themed .qb-footer__line { display: inline-flex; align-items: flex-start; gap: 10px; }
html.qb-themed .qb-footer__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--qb-footer-title);
  opacity: 0.75;
}
html.qb-themed .qb-footer .qb-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--qb-footer-title);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
html.qb-themed .qb-footer__phone .qb-footer__icon { width: 22px; height: 22px; margin: 0; opacity: 1; }
html.qb-themed .qb-footer__note { margin: 4px 0 18px 32px; color: var(--qb-muted); font-size: 13px; }
html.qb-themed .qb-footer .footer-bottom .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0 64px; /* the round "to the top" and Messenger buttons float over the corners */
}
@media (max-width: 1199.98px) {
  html.qb-themed .qb-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 575.98px) {
  html.qb-themed footer.qb-footer { padding-top: 48px; }
  html.qb-themed .qb-footer__grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
  html.qb-themed .qb-footer .footer-bottom .content { justify-content: center; text-align: center; }
}

/* ---------- Contact page: one shared phone for all branches ---------- */
html.qb-themed .qb-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 28px;
  padding: 10px 26px 10px 10px;
  border-radius: 999px;
  background: var(--qb-surface-2);
  color: var(--qb-heading) !important;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
html.qb-themed .qb-contact-phone:hover { transform: translateY(-2px); box-shadow: var(--qb-shadow); }
html.qb-themed .qb-contact-phone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--qb-accent);
  color: var(--qb-accent-text);
}
html.qb-themed .qb-contact-phone__icon svg { width: 22px; height: 22px; }
html.qb-themed .qb-contact-phone__text { display: flex; flex-direction: column; line-height: 1.35; }
html.qb-themed .qb-contact-phone__label { color: var(--qb-muted); font-size: 13px; }
html.qb-themed .qb-contact-phone__number { font-size: 23px; font-weight: 700; letter-spacing: 0.6px; }
