/* DivyaKart v26: clean voice search, wishlist, profile photo and quantity UI. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wishlist-header-button,
.account-header-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe4df;
  border-radius: 12px;
  background: #f4f7f3;
  color: #214b34;
  cursor: pointer;
}

.wishlist-header-button > span {
  font: 400 25px/1 Arial, sans-serif;
}

.wishlist-header-button > b {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 11px;
  background: #d99225;
  color: #2f1a0d;
  font: 800 9px/1 Arial, sans-serif;
}

.account-avatar-shell,
.profile-photo-picker {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.account-avatar-shell {
  width: 30px;
  height: 30px;
  border: 1.5px dashed #6e8374;
}

.account-avatar-shell img,
.profile-photo-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#headerProfilePlaceholder,
#accountProfilePlaceholder {
  display: block;
  width: 42%;
  height: 42%;
  border: 1.5px solid #708278;
  border-radius: 50%;
}

#headerProfilePlaceholder::after,
#accountProfilePlaceholder::after {
  position: absolute;
  right: 20%;
  bottom: 13%;
  left: 20%;
  height: 28%;
  border: 1.5px solid #708278;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  content: "";
}

.profile-photo-editor {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 17px 0;
  padding: 13px;
  border: 1px solid #e2e8e3;
  border-radius: 12px;
  background: #f8faf8;
}

.profile-photo-picker {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border: 1.5px dashed #8ca093;
  cursor: pointer;
}

.profile-photo-picker > b {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #315e42;
  color: #fff;
  font: 700 15px/1 Arial, sans-serif;
}

.profile-photo-editor strong,
.profile-photo-editor small { display: block; }
.profile-photo-editor strong { color: #2d4435; font-size: 13px; }
.profile-photo-editor small { margin-top: 4px; color: #6e766f; font-size: 10px; line-height: 1.4; }

/* A simple outline microphone, without a colourful emoji. */
.mic-glyph {
  position: relative;
  display: block;
  width: 12px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.mic-glyph::before {
  position: absolute;
  right: -6px;
  bottom: -5px;
  left: -6px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  content: "";
}

.mic-glyph::after {
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 10px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -3px 0 -0.2px currentColor;
  content: "";
  transform: translateX(-50%);
}

.quantity-control,
.cart-quantity {
  display: grid !important;
  overflow: hidden !important;
  min-width: 88px !important;
  height: 34px !important;
  grid-template-columns: 30px 28px 30px !important;
  align-items: center !important;
  border: 1px solid #315e42 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #214b34 !important;
}

.qty-button,
.cart-qty-button {
  display: grid !important;
  width: 30px !important;
  height: 34px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: #315e42 !important;
  color: #fff !important;
  font: 800 20px/1 Arial, sans-serif !important;
}

.quantity-control strong,
.cart-quantity strong {
  display: block !important;
  width: 28px !important;
  min-width: 28px !important;
  color: #214b34 !important;
  font: 800 12px/1 Arial, sans-serif !important;
  text-align: center !important;
}

.delivery-bar button b {
  display: inline-block;
  overflow: hidden;
  max-width: min(58vw, 330px);
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

footer .footer-brand::before {
  display: block;
  width: 185px;
  height: 72px;
  margin-bottom: 8px;
  background: url("images/divyakart-logo-cropped.png") left center / contain no-repeat;
  content: "";
}

footer .footer-brand > .brand-mark,
footer .footer-brand > strong { display: none !important; }

@media (max-width: 800px) {
  .site-header .brand {
    width: 142px !important;
    flex-basis: 142px !important;
  }

  .brand-logo {
    width: 142px !important;
    filter: contrast(1.35) saturate(1.18) brightness(.7) !important;
  }

  .header-actions { gap: 6px !important; }
  .wishlist-header-button,
  .account-header-button {
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
  }

  .app-search button {
    background: #f3f6f3 !important;
    color: #315e42 !important;
    border: 1px solid #d9e2dc !important;
  }

  .app-search button.listening {
    background: #e9f1eb !important;
    box-shadow: 0 0 0 4px rgba(49, 94, 66, .12) !important;
  }

  .price-row {
    gap: 5px !important;
  }

  .quantity-control {
    min-width: 82px !important;
    grid-template-columns: 27px 28px 27px !important;
  }

  .quantity-control .qty-button {
    width: 27px !important;
  }

  .cart-item {
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }

  .cart-item .cart-quantity {
    grid-column: 2;
    justify-self: start;
    margin-top: 7px;
  }
}
